/*
Theme Name: Yousprod Theme
Theme URI: https://yousprod.com
Author: Yousprod
Description: Custom WordPress theme for Yousprod – Expert Infographics & Digital Management Agency.
Version: 1.1
*/

/* ========================================
   1. VARIABLES & RESET
   ======================================== */

:root {
    --gold: #D4AF37;
    --gold-light: #F0D06E;
    --gold-dark: #B8860B;
    --gold-gradient: linear-gradient(135deg, #D4AF37, #F0D06E, #B8860B);
    --gold-gradient-h: linear-gradient(90deg, #D4AF37, #F0D06E);
    --black: #080808;
    --dark-1: #111111;
    --dark-2: #1a1a1a;
    --dark-3: #222222;
    --white: #ffffff;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-gold: 0 4px 30px rgba(212, 175, 55, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   2. HEADER & NAVIGATION
/* ========================================
   2. HEADER & NAVIGATION
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
}

.logo span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 38px;
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none; /* Safety for UL */
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none; /* Double safety */
}

.nav-links a {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white); /* White by default for better contrast */
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    opacity: 0.9;
    text-decoration: none;
    border: none;
}

.nav-links a:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:not(:last-child):hover {
    color: var(--gold);
    opacity: 1;
}

.nav-links a:not(:last-child):hover::after {
    width: 100%;
}

/* CTA "Contactez-Nous!" Button Style */
.nav-links a:last-child {
    padding: 8px 20px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-left: 10px;
}

.nav-links a:last-child:hover {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}
/* ========================================
   3. COMMON SECTION STYLES
   ======================================== */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-dark { background-color: var(--black); }
.section-alt { background-color: var(--dark-1); }
.section-black { background-color: #000; }

.center-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.watermark-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.03);
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-title .accent { color: var(--gold); }

.section-divider-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-divider-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.divider-line {
    width: 40px; height: 2px;
    background: var(--gold);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto;
}

.btn-gold-text {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 24px;
    background: #222;
    color: var(--gold);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--gold);
}

.btn-gold-text:hover {
    background: var(--gold);
    color: var(--black);
}

/* ========================================
   4. HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(ellipse at 30% 50%, var(--dark-2) 0%, var(--black) 80%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.03) 45%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(0,0,0,0.2) 0, rgba(0,0,0,0.2) 1px, transparent 1px, transparent 4px);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 100px; /* Space for banner */
}

.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;
    position: relative;
}

.hero-yd-logo {
    perspective: 1000px;
}

.yd-text {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: clamp(150px, 20vw, 350px);
    line-height: 0.8;
    background: linear-gradient(135deg, #F0D06E 0%, #B8860B 40%, #000 100%); /* Gold to black gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.hero-tagline {
    color: var(--gold); /* Or gray based on design */
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 30px;
}

.text-white { color: var(--white); }
.text-gold { color: var(--gold); }

.hero-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-social-link:hover { color: var(--gold); }

.hero-bottom-banner {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    height: 100px;
    display: flex;
    z-index: 5;
}

.banner-left {
    width: 50%;
    background: var(--dark-2);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 0;
}

.banner-right {
    width: 50%;
    background: linear-gradient(90deg, #F0D06E, #D4AF37);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 0;
}

.banner-text-white, .banner-text-black {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 100px);
    line-height: 1;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.banner-text-white { color: var(--white); }
.banner-text-black { color: var(--black); }


/* ========================================
   5. ABOUT SECTION
   ======================================== */
.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 100px;
}

.about-row.reverse-layout { margin-bottom: 0; }

.about-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.booster-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-frame {
    position: relative;
    width: 100%; height: 400px;
    overflow: hidden;
    /* Styles specifically for the frame look */
}

.about-frame img {
    width: 100%; height: 100%; object-fit: cover;
}

.image-overlay-logo, .image-overlay-logo-building {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.overlay-yd {
    font-weight: 900;
    font-size: 80px;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.overlay-brand {
    display: block;
    font-size: 20px;
    letter-spacing: 6px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}


/* ========================================
   6. SERVICES SECTION
   ======================================== */
.services-intro-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.services-intro-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 350px;
}

.services-intro-image img { width: 100%; height: 100%; object-fit: cover; }

.yd-logo-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.services-intro-text h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.4;
}

.ceo-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #1a1a1a;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #333;
    width: fit-content;
    margin: 24px 0;
}

.ceo-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
}

.ceo-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ceo-info strong { display: block; color: var(--gold); font-size: 14px; }
.ceo-info span { color: #888; font-size: 12px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #111;
    padding: 40px 30px;
    border: 1px solid #222;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.service-icon-gold {
    font-size: 32px;
    color: var(--gold);
    border: 2px solid var(--gold);
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: #888;
}


/* ========================================
   7. CLIENTS SECTION
   ======================================== */
.clients-marquee {
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 30px 0;
    margin-top: 40px;
    overflow: hidden;
}

.clients-track {
    display: flex;
    gap: 60px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo-item {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #555;
    font-size: 22px;
    white-space: nowrap;
    text-transform: uppercase;
    transition: color 0.3s;
}

.client-logo-item:hover { color: var(--gold); }


/* ========================================
   8. PROCESS SECTION
   ======================================== */
.process-steps-large {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 60px;
}

.process-step-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.step-number-large {
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px #333;
    opacity: 0.5;
    font-family: var(--font-body);
}

.step-number-large.text-gold {
     color: var(--gold);
     -webkit-text-stroke: 0;
     opacity: 1;
     /* Optional texture background could go here if image available */
}

.step-content-large h3 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 16px;
}

.step-content-large p { font-size: 15px; color: #888; }

.text-right { text-align: right; }


/* ========================================
   9. PORTFOLIO SECTION
   ======================================== */
.portfolio-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border: 1px solid #222;
}

.portfolio-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-card:hover img { transform: scale(1.1); }

.portfolio-bar {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(90deg, #B8860B, #F0D06E, #B8860B);
    padding: 12px;
    text-align: center;
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}


/* ========================================
   10. STATS SECTION
   ======================================== */
.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 80px 0;
}

.stat-item-outline {
    text-align: center;
}

.stat-number-outline {
    display: block;
    font-size: 100px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
    line-height: 1;
    font-family: var(--font-body);
}

.stat-label {
    display: block;
    color: var(--white);
    font-size: 18px;
    margin-top: 10px;
    text-transform: uppercase;
}

.stat-separator {
    width: 60px;
    height: 2px;
    background: var(--gold);
}


/* ========================================
   11. FOOTER SECTION
   ======================================== */
.main-footer {
    background: #000;
    padding: 80px 0 20px;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links-list li { margin-bottom: 12px; }
.footer-links-list a { color: #fff; font-size: 14px; transition: color 0.3s; }
.footer-links-list a:hover { color: var(--gold); }

.footer-contact-col p {
    color: #fff;
    margin-bottom: 12px;
    font-size: 14px;
}
.footer-contact-col i { color: var(--gold); margin-right: 8px; }

.footer-newsletter-col input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    padding: 10px 0;
    color: #fff;
    margin-bottom: 20px;
    outline: none;
}
.footer-newsletter-col input:focus { border-color: var(--gold); }

.btn-gold-block {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #B8860B, #F0D06E);
    border: none;
    padding: 12px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.footer-logo { font-size: 24px; font-weight: 900; color: var(--gold); }
.logo-text { font-family: var(--font-body); font-weight: 300; letter-spacing: 4px; color: #fff; font-size: 16px; margin-left: 10px; }

.footer-copyright { font-size: 12px; color: #666; }

.btn-circle-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 8px;
}


/* ========================================
   12. RESPONSIVE
   ======================================== */
/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* Active State for Hamburger (X shape) */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--gold);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--gold);
}

@media (max-width: 992px) {
    /* Mobile Menu Styles */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 20px; /* Align with container padding */
        width: 220px;
        height: auto;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid var(--gold);
        border-radius: var(--radius-md);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        
        /* Hidden State */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .section-title { font-size: 32px; }
    
    .hero-container {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
    }
    .hero-right { padding-left: 0; padding-top: 40px; }
    
    .about-row { grid-template-columns: 1fr; gap: 40px; }
    .about-row.reverse-layout { display: flex; flex-direction: column-reverse; }
    
    .services-intro-block, 
    .process-steps-large, 
    .process-step-large, 
    .stats-row, 
    .footer-grid, 
    .footer-bottom-bar {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .process-step-large { display: flex; flex-direction: column-reverse; }
    .process-step-large.right-align { flex-direction: column; }
    .text-right { text-align: center; }
    
    .step-number-large { font-size: 100px; }
    .stat-separator { display: none; }
    .portfolio-grid-cards { grid-template-columns: 1fr; }
    .footer-bottom-bar { gap: 20px; }
    
    .ceo-badge { margin: 24px auto; }
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 576px) {
    .banner-text-white, .banner-text-black { font-size: 8vw; }
    .hero-bottom-banner { height: 60px; }
    .hero-yd-logo .yd-text { font-size: 80px; }
    .step-number-large { font-size: 60px; }
    
    /* Responsive Typography (Automatic Resizing) */
    h1, .hero-title { font-size: clamp(28px, 8vw, 60px) !important; }
    h2, .section-title { font-size: clamp(24px, 6vw, 36px) !important; }
    h3 { font-size: clamp(20px, 5vw, 28px) !important; }
    p, .about-desc, .hero-tagline { font-size: clamp(14px, 4vw, 16px) !important; }
    
    /* Ensure Up Button Visibility */
    .footer-top-btn {
        display: flex !important;
        margin-top: 20px;
        width: 100%;
        justify-content: flex-end;
    }
    .btn-circle-top {
        display: flex !important;
        width: 50px; height: 50px; /* Slightly larger for touch */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Services Vertical Stack (Reverted from Horizontal) */
    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        overflow-x: visible;
        gap: 30px;
        padding-bottom: 0;
    }
    
    .service-card {
        min-width: 0;
        width: 100%;
        scroll-snap-align: none;
    }
}

/* ========================================
   13. CLIENTS SECTION (SLIDER)
   ======================================== */
.clients-section {
    padding-bottom: 60px;
    overflow: hidden;
}

.clients-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

.clients-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.client-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 280px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.client-slide:hover { opacity: 1; }

.client-name {
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.client-logo-box {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 30px;
}

.client-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
}

.client-slide:hover .client-logo-box img { filter: grayscale(0%); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
