/*
ZOLVI AGENCY - STYLESHEET (v12.5 - Font Update)
---
- Implements fluid design principles for spacing and grids.
- Optimized for all screen sizes from mobile to large desktops.
- Hero section features a full-screen video with a right-aligned, extended content overlay on desktop,
and a static image fallback on mobile for performance.
- FIX: Restructured About page for better video presentation and content layout.
- UPDATE: Main headings set to Poppins, subheadings to Artico Regular.
*/

/* === 1. ROOT, FONTS & GLOBAL STYLES === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'Artico Regular';
    src: url('../Font/Artico-Regular.woff2') format('woff2'),
         url('../Font/Artico-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root {
    --font-heading: 'Poppins', sans-serif;
    --font-subheading: 'Artico Regular', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --color-bg: #0A0A0A;
    --color-surface: rgba(20, 20, 20, 0.97);
    --color-primary: #ff6b00;
    --color-secondary: #E0E0E0;
    --color-text: #F5F5F5;
    --color-text-muted: #A0A0A0;
    --color-border: rgba(255, 255, 255, 0.1);

    --spacing-sm: clamp(0.8rem, 1.5vw, 1rem);
    --spacing-md: clamp(1.5rem, 3vw, 2rem);
    --spacing-lg: clamp(2rem, 6vw, 4rem);
    --spacing-xl: clamp(4rem, 10vw, 7rem);

    --container-width: 1280px;
    --transition-speed: 0.4s;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background-color: var(--color-bg); color: var(--color-text); font-family: var(--font-body); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
main { position: relative; z-index: 1; }
a, button { cursor: pointer; color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === 2. AMBIENT BACKGROUND & PRELOADER === */
.background-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; overflow: hidden; z-index: 0; }
.shape { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, rgba(255, 107, 0, 0) 80%); pointer-events: none; }
.shape-1 { width: 40vw; height: 40vw; top: 5vh; left: -10vw; animation: float 25s infinite alternate ease-in-out; }
.shape-2 { width: 50vw; height: 50vw; bottom: 10vh; right: -15vw; animation: float 35s infinite alternate ease-in-out; animation-delay: -5s; }
.shape-3 { width: 35vw; height: 35vw; bottom: -20vh; left: 20vw; animation: float 30s infinite alternate ease-in-out; animation-delay: -10s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -60px) scale(1.1); } 100% { transform: translate(0, 0) scale(1); } }

#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--color-bg); z-index: 10000; display: flex; justify-content: center; align-items: center; }
#preloader .preloader-content { position: relative; display: flex; justify-content: center; align-items: center; --logo-size: 70px; --spinner-size: calc(var(--logo-size) * 1.6); --border-width: calc(var(--logo-size) / 25); }
#preloader .preloader-logo { width: var(--logo-size); height: auto; animation: pulse-logo 2.5s infinite ease-in-out; }
#preloader .loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: var(--spinner-size); height: var(--spinner-size); }
.loader .arc { position: absolute; width: 100%; height: 100%; border-radius: 50%; border-top: var(--border-width) solid var(--color-primary); border-right: var(--border-width) solid transparent; border-bottom: var(--border-width) solid transparent; border-left: var(--border-width) solid transparent; }
.loader .arc:nth-child(1) { animation: spin-arc 1.2s linear infinite; }
.loader .arc:nth-child(2) { border-top-color: var(--color-secondary); animation: spin-arc 1.2s linear infinite; animation-direction: reverse; transform: rotate(120deg); }
@keyframes pulse-logo { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.95); opacity: 0.85; } }
@keyframes spin-arc { to { transform: rotate(360deg); } }

/* === 3. CORE LAYOUT & HELPERS === */
.container { width: 100%; max-width: var(--container-width); margin-left: auto; margin-right: auto; padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.section { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.page-header { padding-top: 10rem; padding-bottom: 6rem; text-align: center; }
.text-center { text-align: center; }
.text-wrapper-lg { max-width: 950px; margin-left: auto; margin-right: auto; }
.text-wrapper-md { max-width: 700px; margin-left: auto; margin-right: auto; }
.text-primary { color: var(--color-primary); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1, h2 { font-family: var(--font-heading); }
h3, h4 { font-family: var(--font-subheading); }

h1 { font-size: clamp(2.5rem, 7vw, 5.2rem); margin-bottom: var(--spacing-sm); }
h2 { font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: var(--spacing-md); }
h3 { font-size: clamp(1.5rem, 4vw, 1.8rem); margin-bottom: var(--spacing-sm); }
p { color: var(--color-secondary); margin-bottom: var(--spacing-sm); font-weight: 400; }
p:last-child { margin-bottom: 0; }

/* === 4. HEADER & NAVIGATION === */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: var(--spacing-sm) 0; transition: all var(--transition-speed) ease; background-color: transparent; backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); border-bottom: 1px solid transparent; }
.header.scrolled { padding: 0.75rem 0; background-color: rgba(10, 10, 10, 0.5); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-logo { display: flex; align-items: center; height: 40px; }

/* FIXED: Changed logo width to auto to maintain aspect ratio */
.nav-logo img {
    height: 100%;
    width: auto;
    display: block;
}

.desktop-nav { display: none; }
.hamburger-btn { display: flex; flex-direction: column; justify-content: space-around; width: 2rem; height: 1.8rem; background: transparent; border: none; z-index: 1001; }
.hamburger-btn span { width: 100%; height: 2px; background: var(--color-text); border-radius: 10px; transition: all 0.3s ease; transform-origin: center; }
.hamburger-btn.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.hamburger-btn.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.mobile-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-bg); z-index: 999; display: flex; justify-content: center; align-items: center; transform: translateX(100%); transition: transform 0.6s var(--ease-out-expo); }
.mobile-nav.is-active { transform: translateX(0); }
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; }
.mobile-nav .nav-link { font-family: var(--font-heading); font-size: clamp(2.2rem, 10vw, 3rem); margin: 0.5rem 0; }
.mobile-nav .nav-link:hover { color: var(--color-primary); }

/* === 5. HERO & UNIQUE SECTIONS === */
.heading-wrapper { position: relative; z-index: 1; }
.hero-content .text-wrapper-md, .partner-section .anim-reveal, .partner-section .partner-line-svg { position: relative; z-index: 2; }
.anim-lines .line, .anim-chars .char { transform: translateY(110%); display: inline-block; }

.hero-section { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.video-container, .hero-background-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; overflow: hidden; }
.video-container video { width: 100%; height: 100%; object-fit: cover; }
.hero-background-image { background-size: cover; background-position: center; }
.video-container::after, .hero-background-image::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 10, 10, 0.4); z-index: -1; }
.hero-content { position: relative; z-index: 2; }
.hero-content p { font-size: 1.15rem; font-weight: 400; }

.about-split-layout { display: grid; grid-template-columns: 1fr; gap: var(--spacing-xl); align-items: center; }
.text-column { display: flex; flex-direction: column; gap: var(--spacing-lg); }
.about-video-wrapper { width: 100%; border-radius: 8px; overflow: hidden; line-height: 0; aspect-ratio: 9 / 16; border: 1px solid var(--color-border); }
.about-video-wrapper video { width: 100%; height: 100%; object-fit: cover; }
.about-content-grid { display: grid; grid-template-columns: 1fr; gap: var(--spacing-lg); }

.video-wrapper video { width: 100%; height: 100%; object-fit: cover; }

/* === 6. COMPONENTS === */
.btn { display: inline-block; padding: 1rem 2rem; background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; position: relative; overflow: hidden; transition: color var(--transition-speed) var(--ease-out-expo); z-index: 1;}
.btn span { position: relative; z-index: 2; }
.btn::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0; background-color: var(--color-primary); transition: height var(--transition-speed) var(--ease-out-expo); z-index: -1; }
.btn:hover { color: var(--color-bg); } .btn:hover::before { height: 100%; }
.btn.btn-light { background: var(--color-secondary); color: var(--color-bg); border-color: var(--color-secondary); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--spacing-md); }
.service-card { background-color: var(--color-surface); padding: var(--spacing-md); border: 1px solid var(--color-border); border-radius: 8px; transition: transform 0.4s ease, border-color 0.4s ease; position: relative; overflow: hidden; will-change: transform; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(255, 107, 0, 0.5); }
.service-card::before { content: ""; position: absolute; top: var(--mouse-y); left: var(--mouse-x); width: 0; height: 0; background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, transparent 80%); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease; opacity: 0; will-change: width, height; pointer-events: none; }
.service-card:hover::before { opacity: 1; width: 400px; height: 400px; }
.service-icon { margin-bottom: var(--spacing-sm); } .service-icon i { width: 40px; height: 40px; color: var(--color-primary); }

.careers-list-wrapper h2 { border-bottom: 1px solid var(--color-border); padding-bottom: var(--spacing-md); margin-bottom: var(--spacing-md); }
.job-listing { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: var(--spacing-md) 0; border-bottom: 1px solid var(--color-border); transition: background-color 0.3s ease; }
.job-listing:hover { background-color: rgba(255, 255, 255, 0.03); }
.job-listing p { color: var(--color-text-muted); margin-top: 0.5rem; }
.job-listing .btn { margin-top: var(--spacing-sm); }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--spacing-lg); align-items: flex-start; }
.form-group { position: relative; margin-bottom: 2.5rem; }
.form-control { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--color-border); color: var(--color-text); font-family: var(--font-body); font-size: 1rem; padding: 0.75rem 0; position: relative; z-index: 1; transition: border-color 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--color-primary); }
.form-group label { position: absolute; top: 0.75rem; left: 0; color: var(--color-text-muted); pointer-events: none; transition: all 0.3s ease; }
.form-control:focus + label, .form-control:not(:placeholder-shown) + label { top: -1.2rem; font-size: 0.85rem; color: var(--color-primary); }
textarea.form-control { resize: vertical; min-height: 120px; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, textarea:-webkit-autofill:hover, textarea:-webkit-autofill:focus { border: none; border-bottom: 1px solid var(--color-border); -webkit-text-fill-color: var(--color-text); -webkit-box-shadow: 0 0 0px 1000px var(--color-surface) inset; transition: background-color 5000s ease-in-out 0s; }
.contact-info .contact-details { margin-top: 2rem; }
.contact-info .contact-details p { margin-bottom: 1.5rem; }
.contact-info a { transition: color 0.3s ease; }
.contact-info a:hover { color: var(--color-primary); }

/* === 7. FOOTER STYLES === */
.footer { background-color: var(--color-surface); color: var(--color-text-muted); font-size: 0.9rem; }
.footer-cta { background-color: var(--color-bg); padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); border-top: 1px solid var(--color-border); }
.cta-heading { color: var(--color-text); margin-bottom: var(--spacing-md); }
.footer-main { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    text-align: left;
}

.footer-logo { margin-bottom: var(--spacing-sm); }
.footer-heading { font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text); margin-bottom: var(--spacing-sm); }
.footer-links { list-style: none; }
.footer-links li:not(:last-child) { margin-bottom: calc(var(--spacing-sm) * 0.75); }
.footer-links a, .footer-contact-link { position: relative; }
.footer-links a::after, .footer-contact-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background-color: var(--color-primary); transition: width 0.4s var(--ease-out-expo); }
.footer-links a:hover::after, .footer-contact-link:hover::after { width: 100%; }
.footer-links a:hover, .footer-contact-link:hover { color: var(--color-text); }

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: var(--spacing-sm);
}

.footer-bottom { padding: var(--spacing-sm) 0; border-top: 1px solid var(--color-border); font-size: 0.85rem; }
.footer-bottom .container { display: flex; flex-direction: column; align-items: center; gap: calc(var(--spacing-sm) * 0.75); }
.policy-links { display: flex; gap: var(--spacing-md); }
.footer-copyright { text-align: center; width: 100%; }

/* === 8. CUSTOM CURSOR & SCROLLBAR === */
.custom-cursor { display: none; position: fixed; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; background-color: var(--color-primary); mix-blend-mode: difference; pointer-events: none; z-index: 10001; transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), background-color 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo); }
.custom-cursor.hover { width: 60px; height: 60px; background-color: #fff; }
.custom-cursor.pointer { width: 15px; height: 15px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-surface); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* === 9. SECTION SPECIFIC STYLES === */
.hero-line-svg {
    display: block;
    margin-top: 0.5rem;
    max-width: 100%;
    height: auto;
    margin-left: auto; /* Center the element */
    margin-right: auto; /* Center the element */
}
.partner-line-svg { display: block; margin: 1.5rem auto 0; max-width: 100%; height: auto; }
.careers-line-svg { display: block; margin: 1.5rem auto; max-width: 100%; height: auto; }
.approach-section .section-header { margin-bottom: var(--spacing-lg); }
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--spacing-md); }
.approach-card { background-color: var(--color-surface); border: 1px solid var(--color-border); padding: var(--spacing-md); border-radius: 8px; position: relative; overflow: hidden; text-align: left; transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo); }
.approach-card:hover { transform: translateY(-10px); border-color: var(--color-primary); box-shadow: 0 0 30px rgba(255, 107, 0, 0.2); }
.approach-card .card-number { font-family: var(--font-heading); font-size: 4rem; font-weight: 700; color: rgba(255, 255, 255, 0.05); position: absolute; top: 0.5rem; right: 1.5rem; z-index: 0; transition: color 0.4s ease; }
.approach-card:hover .card-number { color: var(--color-primary); opacity: 0.2; }
.approach-card h3, .approach-card p { position: relative; z-index: 1; }
.creative-showcase { background-color: var(--color-surface); }
.showcase-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; gap: var(--spacing-md); align-items: center; position: relative; }
.showcase-text { text-align: center; margin-bottom: var(--spacing-md); }
.showcase-text p { margin-top: var(--spacing-sm); }
.showcase-image-wrapper { border-radius: 8px; overflow: hidden; will-change: transform; }
.showcase-image-wrapper.image-1 img, .showcase-image-wrapper.image-2 img { width: 100%; height: 100%; object-fit: cover; }
.showcase-image-wrapper.image-3 { display: none; }
.brand-mark-section { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.brand-mark-svg .svg-draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.brand-mark-svg .zolvi-text { opacity: 0; }
.video-showcase-section { padding-top: 0; }
.video-subheading { color: var(--color-text-muted); font-family: var(--font-body); font-weight: 500; margin-bottom: var(--spacing-md); }
.video-wrapper { max-width: 450px; margin-left: auto; margin-right: auto; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; border: 1px solid var(--color-border); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; }

/* === 10. RESPONSIVE & SPLIT LAYOUT STYLES === */
@media (max-width: 1023px) {
    .video-container { display: none; }
    .hero-background-image { display: block; }
}

@media (min-width: 768px) {
    .job-listing { flex-direction: row; align-items: center; }
    .job-listing .btn { margin-top: 0; }
    .footer-grid, .contact-grid { text-align: left; }
    .social-links { justify-content: flex-start; }
    .footer-bottom .container { flex-direction: row; justify-content: space-between; }
    .contact-grid { grid-template-columns: 1.5fr 1fr; }
    .about-split-layout { grid-template-columns: 1fr 1fr; }
    .about-content-grid { grid-template-columns: repeat(3, 1fr); }
    .creative-showcase { min-height: 80vh; }
    .showcase-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
    .showcase-text { grid-column: 1 / 2; grid-row: 1 / 2; max-width: 400px; z-index: 3; text-align: left;}
    .showcase-image-wrapper.image-1 { grid-column: 2 / 3; grid-row: 1 / 3; aspect-ratio: 1080 / 1468; z-index: 2; }
    .showcase-image-wrapper.image-2 { grid-column: 1 / 2; grid-row: 2 / 3; width: 100%; justify-self: end; aspect-ratio: 7057 / 5000; z-index: 1; }
    .showcase-image-wrapper.image-3 { display: block; grid-column: 1 / 3; grid-row: 1 / 3; width: 30%; aspect-ratio: 2/3; margin-left: 25%; margin-top: -30%; z-index: 4; }
    .hero-section { justify-content: center; }
    .hero-content .text-wrapper-md { margin-left: auto; margin-right: auto; max-width: 80%; }
}

@media (min-width: 1024px) {
    body.is-desktop { cursor: none; }
    .custom-cursor { display: block; }
    .video-container { display: block; }
    .hero-background-image { display: none; }
    .hero-section { justify-content: flex-end; text-align: left; }
    .hero-section .container { padding-right: var(--spacing-sm); }
    .hero-content .text-wrapper-md { margin-left: 0; margin-right: 0; max-width: 100%; }
    .desktop-nav { display: block; }
    .hamburger-btn { display: none; }
    .nav-links { list-style: none; display: flex; align-items: center; gap: clamp(1.5rem, 2.5vw, 2.5rem); }
    .nav-links a:not(.btn) { position: relative; }
    .nav-links a:not(.btn)::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background-color: var(--color-primary); transition: width 0.4s var(--ease-out-expo); }
    .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

    .hero-line-svg {
        margin-left: 0; /* Reset for left-aligned text */
        margin-right: 0;
    }
}

.page-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}
.split-column-right .page-header { padding-top: 0; text-align: left; }

@media (min-width: 1024px) {
    .page-split-layout { grid-template-columns: 2fr 3fr; align-items: flex-start; }
    .split-column-left { position: sticky; top: 120px; }
    .split-column-left .video-wrapper { aspect-ratio: 9 / 16; }
}

/* === 11. MOBILE-SPECIFIC REFINEMENTS === */
@media (max-width: 767px) {
    .hero-section {
        min-height: 90vh; /* Prevents content from being cut off by browser UI */
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    .page-header {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    /* Reduce gaps in grid layouts on mobile */
    .about-split-layout,
    .page-split-layout,
    .creative-showcase .showcase-grid {
        gap: var(--spacing-lg);
    }
}