/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-top {
    background: #0066cc;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h2 {
    color: #0066cc;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: #0066cc;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    list-style: none;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 8px 20px;
}

.dropdown-menu a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-menu a:hover {
    color: #0066cc;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(45deg, #0066cc, #004499, #0096ff, #0066cc);
    background-size: 300% 300%;
    color: white;
    text-align: center;
    padding: 150px 0 100px;
    margin-top: 80px;
    position: relative;
    animation: gradientMove 4s ease infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: waveMove 3s ease-in-out infinite;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6600, #ff8800, #ff6600);
    background-size: 200% 100%;
    animation: borderMove 2s ease infinite;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #ff6600;
    color: white;
}

.btn-primary:hover {
    background: #e55a00;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #0066cc;
    color: white;
}

.btn-secondary:hover {
    background: #004499;
    transform: translateY(-2px);
}

/* Services Grid */
.services-grid {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-grid .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image img:hover {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0066cc;
}

.service-content p {
    margin-bottom: 15px;
    color: #666;
}

.highlight {
    font-weight: 600;
    color: #ff6600 !important;
    font-size: 1.1rem;
}

/* Construction and Renovation */
.construction-renovation {
    padding: 80px 0;
}

.construction-renovation h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: #0066cc;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Execution Times */
.execution-times {
    padding: 80px 0;
    background: #f8f9fa;
}

.execution-times h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.time-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.time-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.time-card:hover {
    transform: translateY(-5px);
}

.time-card h4 {
    color: #0066cc;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.time-card p {
    margin-bottom: 20px;
    color: #666;
}

.time-highlight {
    background: #0066cc;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.time-highlight h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Why Quote */
.why-quote {
    padding: 80px 0;
}

.why-quote h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 20px;
}

.benefit-item h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* How We Work */
.how-we-work {
    padding: 80px 0;
    background: #f8f9fa;
}

.how-we-work h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.work-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* RENOLIT ALKORPLAN Collections */
.alkorplan-collections {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.alkorplan-collections h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 60px;
    color: #666;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.collection-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.collection-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.collection-card:hover .collection-image img {
    transform: scale(1.05);
}

.collection-content {
    padding: 25px;
}

.collection-content h3 {
    color: #0066cc;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.collection-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.collection-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alkorplan-benefits {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    padding: 60px 40px;
    border-radius: 20px;
    color: white;
    text-align: center;
}

.alkorplan-benefits h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.benefits-subtitle {
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.alkorplan-benefits .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.alkorplan-benefits .benefit-item {
    text-align: center;
    padding: 20px;
}

.alkorplan-benefits .benefit-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ff6600;
}

.alkorplan-benefits .benefit-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.alkorplan-benefits .benefit-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Accessories */
.accessories {
    padding: 80px 0;
}

.accessories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* Maintenance */
.maintenance {
    padding: 80px 0;
    background: #f8f9fa;
}

.maintenance h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.maintenance .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.maintenance-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.maintenance-item:hover {
    transform: translateY(-5px);
}

.maintenance-item i {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 20px;
}

.maintenance-item h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.maintenance-item p {
    color: #666;
    line-height: 1.6;
}

.maintenance-cta {
    text-align: center;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.accessory-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.accessory-item:hover {
    transform: translateY(-5px);
}

.accessory-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.accessory-item img:hover {
    transform: scale(1.05);
}

.accessory-item h4 {
    color: #0066cc;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Gallery */
.gallery {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.gallery > .container > p {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-item p {
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.gallery .btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: #0066cc;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

.testimonial p {
    margin-bottom: 20px;
    font-style: italic;
    color: #666;
    position: relative;
    z-index: 1;
}

.testimonial cite {
    color: #0066cc;
    font-weight: 600;
    font-style: normal;
}

/* Contact Form */
.contact-form {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-form h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-form > .container > p {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

.quote-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group label {
    font-size: 14px;
    color: #666;
}

.quote-form .btn {
    width: 100%;
    font-size: 16px;
    padding: 18px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #0066cc;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #0066cc;
}

.footer-section p {
    margin-bottom: 10px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

.footer-bottom a {
    color: #0066cc;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero {
        animation: gradientMove 6s ease infinite;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
        line-height: 1.4;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .services-grid .container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .time-cards,
    .benefits-grid,
    .work-steps,
    .accessories-grid,
    .maintenance-grid,
    .gallery-grid,
    .testimonials-grid,
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-card {
        margin: 0 10px;
    }
    
    .alkorplan-benefits {
        padding: 40px 20px;
        margin: 0 10px;
    }
    
    .alkorplan-benefits h3 {
        font-size: 1.8rem;
    }
    
    .alkorplan-benefits .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 12px;
    }
    
    .quote-form {
        padding: 20px;
    }
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(51, 51, 51, 0.98);
    color: #fff;
    z-index: 9999;
    padding: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    display: none;
    animation: fadeInUp 0.5s;
}

.cookie-banner__content {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cookie-banner__content span {
    font-size: 1rem;
    text-align: center;
    line-height: 1.5;
}

.cookie-banner__content a {
    color: #ff6600;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .cookie-banner__content {
        padding: 18px 8px 14px 8px;
    }
    .cookie-banner__content span {
        font-size: 0.95rem;
    }
    .cookie-banner__actions {
        flex-direction: column;
        width: 100%;
    }
    .cookie-banner__actions .btn {
        width: 100%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes waveMove {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(-30px) rotate(1deg);
    }
}

@keyframes borderMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Modal Triggers */
.touch-modal-trigger,
.vogue-modal-trigger,
.alive-modal-trigger,
.relief-modal-trigger,
.tile-modal-trigger,
.ceramics-modal-trigger,
.alkorplan2000-modal-trigger,
.alkorplan3000-modal-trigger,
.naturalpool-modal-trigger {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.touch-modal-trigger:hover,
.vogue-modal-trigger:hover,
.alive-modal-trigger:hover,
.relief-modal-trigger:hover,
.tile-modal-trigger:hover,
.ceramics-modal-trigger:hover,
.alkorplan2000-modal-trigger:hover,
.alkorplan3000-modal-trigger:hover,
.naturalpool-modal-trigger:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    margin: 0;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border-radius: 0;
    will-change: transform;
    backface-visibility: hidden;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(45deg, #0066cc, #004499);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.collection-gallery {
    display: flex;
    justify-content: center;
    height: 100%;
}

.gallery-columns {
    display: flex;
    width: 100%;
    height: 100%;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    width: 50%;
    flex: 1;
}

.gallery-single-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 100%;
}

.gallery-column::-webkit-scrollbar,
.gallery-single-column::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    height: 400px;
    min-height: 400px;
    flex-shrink: 0;
    --spinner-display: block;
}

.image-container:hover {
    transform: translateY(-5px);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.image-container img.loaded {
    opacity: 1;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    display: var(--spinner-display, block);
    transition: opacity 0.2s ease;
}

.image-container.loaded::before {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-container:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 0;
        height: calc(100vh - 80px);
    }
    
    .gallery-columns {
        flex-direction: column;
    }
    
    .gallery-column {
        width: 100%;
        height: 50%;
    }
    
    .gallery-single-column {
        max-width: 100%;
        padding: 15px;
    }
    
    .gallery-column {
        padding: 15px;
        gap: 10px;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .gallery-column::-webkit-scrollbar {
        display: none;
    }
    
    .image-container {
        height: 300px;
        min-height: 300px;
    }
    
    .image-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 10px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 0;
    }
    
    .image-container {
        height: 250px;
        min-height: 250px;
    }
} 