/* ========================================
   DOUROS WEBSITE V2 - DYNAMIC STYLES
   Modern, Interactive Design
======================================== */

:root {
    --primary-navy: #003366;
    --gold-accent: #C9A868;
    --off-white: #F8F9FA;
    --dark-gray: #333333;
    --light-gray: #6c757d;
    --border-color: #dee2e6;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

/* ========================================
   HERO SECTION WITH PARALLAX
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #003366 0%, #004d99 100%);
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/warehouse-modern.jpeg') center/cover no-repeat;
    z-index: 0;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,51,102,0.9) 0%, rgba(0,77,153,0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-smooth);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(201,168,104,0.3);
}

.btn-primary:hover {
    background: #b8976b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,104,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-navy);
    transform: translateY(-2px);
}

/* ========================================
   STATS COUNTER SECTION
======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #004d99 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    color: white;
    padding: 2rem 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.stat-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ========================================
   SECTION HEADERS
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--gold-accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-navy);
    font-weight: 700;
    margin: 0;
}

/* ========================================
   CLIENTS SECTION
======================================== */
/* ========================================
   CLIENTS SECTION - Redesigned
======================================== */
.clients-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-subtitle {
    text-align: center;
    color: var(--light-gray);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.clients-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 4rem auto 0;
    align-items: start;
}

.client-featured {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #004080 100%);
    padding: 4rem 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.client-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 168, 104, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.client-featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 51, 102, 0.3);
}

.client-logo-large {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.client-logo-large h3 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--gold-accent);
    font-weight: 800;
    letter-spacing: 4px;
    margin: 0;
}

.client-description {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.client-location {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(201, 168, 104, 0.2);
    color: var(--gold-accent);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.clients-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.client-compact {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.client-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--gold-accent);
}

.client-logo-small {
    margin-bottom: 1rem;
}

.client-logo-small h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-navy);
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.client-country {
    display: block;
    color: var(--light-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .clients-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .client-featured {
        padding: 3rem 2rem;
    }
    
    .client-logo-large h3 {
        font-size: 2.2rem;
    }
    
    .clients-grid-compact {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .clients-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .client-logo-large h3 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
}

/* ========================================
   SERVICES TABS NAVIGATION
======================================== */
.services-section {
    padding: 6rem 0;
    background: var(--off-white);
}

.services-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    border-color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-btn.active {
    background: var(--gold-accent);
    color: white;
    border-color: var(--gold-accent);
    box-shadow: 0 4px 16px rgba(201,168,104,0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

/* ========================================
   FLIP CARDS (3D HOVER EFFECT)
======================================== */
.flip-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.flip-card {
    perspective: 1000px;
    height: 400px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fallback: force visibility in active tabs */
.tab-content.active .flip-card {
    opacity: 1;
    transform: translateY(0);
}

.flip-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.flip-card-front {
    background: white;
    display: flex;
    flex-direction: column;
}

.flip-card-front img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

/* Ensure images load even in hidden tabs */
.tab-content img {
    content-visibility: auto;
}

.tab-content {
    min-height: 400px;
}

.flip-card-front h3 {
    padding: 2rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-navy);
    text-align: center;
    margin: 0;
}

.flip-card-back {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #004d99 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card-back h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold-accent);
    text-align: center;
}

.flip-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flip-card-back li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
}

.flip-card-back li:last-child {
    border-bottom: none;
}

.flip-card-back li::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--gold-accent);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* ========================================
   PROCESS CAROUSELS
======================================== */
.process-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-gray);
    line-height: 1.8;
}

.multi-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.process-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* Fallback: force visibility in active tabs */
.tab-content.active .process-card {
    opacity: 1;
    transform: translateY(0);
}

.process-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.process-card-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #004d99 100%);
    padding: 1.5rem;
    text-align: center;
}

.process-card-header h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.process-card-body {
    padding: 0;
}

.swiper {
    width: 100%;
    height: 400px;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    overflow: hidden;
}

.swiper-slide {
    display: flex !important;
    flex-direction: column;
    background: white;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block !important;
    background: #f0f0f0;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force eager loading */
img {
    content-visibility: auto;
}

.swiper-wrapper {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition-timing-function: ease-out;
}

.process-step {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
}

.process-description {
    padding: 1.5rem;
    text-align: center;
    font-size: 1rem;
    color: var(--dark-gray);
    margin: 0;
    font-weight: 500;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--gold-accent);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 100 !important;
    cursor: pointer;
    pointer-events: auto !important;
    position: absolute !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.swiper-button-next {
    right: 10px !important;
}

.swiper-button-prev {
    left: 10px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--gold-accent);
    color: white;
}

/* Swiper Pagination */
.swiper-pagination {
    z-index: 50 !important;
    pointer-events: auto !important;
}

.swiper-pagination-bullet {
    background: var(--dark-gray);
    opacity: 0.3;
    width: 10px;
    height: 10px;
    cursor: pointer;
    pointer-events: auto !important;
}

.swiper-pagination-bullet-active {
    background: var(--gold-accent);
    opacity: 1;
}

/* CRITICAL: Ensure all interactive elements are clickable */
button,
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination-bullet,
.lang-toggle,
.lang-option,
.tab-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
    padding: 6rem 0;
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.about-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.about-badge {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth);
}

.about-badge:hover {
    transform: translateY(-5px);
}

.about-badge img {
    height: 80px;
    width: auto;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
    padding: 6rem 0;
    background: var(--off-white);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    background: var(--primary-navy);
    color: var(--gold-accent);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
}

.contact-text h3 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.contact-text p {
    color: var(--light-gray);
    margin: 0;
}

.contact-text a {
    color: var(--gold-accent);
    text-decoration: none;
    transition: color var(--transition-smooth);
}

.contact-text a:hover {
    color: var(--primary-navy);
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-smooth);
    background: var(--off-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    background: white;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--light-gray);
    font-size: 1rem;
    transition: all var(--transition-smooth);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.85rem;
    color: var(--gold-accent);
    background: white;
    padding: 0 0.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--primary-navy);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.footer-col p {
    opacity: 0.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all var(--transition-smooth);
}

.footer-col a:hover {
    opacity: 1;
    color: var(--gold-accent);
    padding-left: 5px;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-badges img {
    height: 50px;
    width: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* ========================================
   WHATSAPP FLOAT BUTTON
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all var(--transition-smooth);
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .services-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .flip-card-grid {
        grid-template-columns: 1fr;
    }
    
    .flip-card {
        height: 350px;
    }
    
    .multi-process-grid {
        grid-template-columns: 1fr;
    }
    
    .swiper {
        height: 350px;
    }
    
    .swiper-slide img {
        height: 220px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .flip-card {
        height: 320px;
    }
    
    .flip-card-front img {
        height: 180px;
    }
    
    .process-card-header h4 {
        font-size: 1.1rem;
    }
}
