:root {
    /* Base Colors - Light Theme */
    --bg-main: #FFFFFF;
    --bg-surface: #FAFAFA;
    --bg-inverted: #0A0A0A;
    --text-main: #0A0A0A;
    --text-muted: #888888;
    --text-inverted: #FFFFFF;
    --border-main: #EEEEEE;
    --btn-text: #FFFFFF;
    
    /* Legacy variables mapping */
    --bg-white: var(--bg-main);
    --bg-dark: var(--bg-inverted);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --border-color: var(--border-main);
    --accent: #5544FF;
    --accent-hover: #3E2FDE;
    --accent-light: rgba(85, 68, 255, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.85); /* Light mode navbar background */
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    --bg-main: #0A0A0A;
    --bg-surface: #111111;
    --bg-inverted: #050505;
    --text-main: #FFFFFF;
    --text-muted: #AAAAAA;
    --text-inverted: #FFFFFF;
    --border-main: #222222;
    --btn-text: #FFFFFF;
    --accent-light: rgba(85, 68, 255, 0.2);
    --nav-bg: rgba(10, 10, 10, 0.85); /* Dark mode navbar background */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Classes */
.hero-headline {
    font-size: 80px;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.hero-headline .line-2 {
    font-style: italic;
    background: linear-gradient(135deg, var(--text-primary) 20%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.body-text, p {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
}

.btn {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--btn-text);
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(85, 68, 255, 0.3);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 68, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    padding: 0;
    margin-left: 1.5rem;
    position: relative;
    border-radius: 0;
    border-bottom: 1px solid transparent;
}

.btn-secondary:hover {
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
}


.footer-text {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Dark mode specific modifications for box shadow */
[data-theme="dark"] .navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Dynamic Logo Swapping for Dark Mode */
[data-theme="dark"] .nav-logo,
[data-theme="dark"] .footer-logo {
    content: url("zenyth_whitetext.png");
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 92px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo {
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover, .nav-link:active {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-links .dot {
    color: var(--text-secondary);
    font-size: 20px;
    opacity: 0.5;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-primary);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    
    /* Animation initial state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s var(--ease-premium), transform 0.5s var(--ease-premium), visibility 0.5s;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 56px; /* Massive immersive typography */
    font-weight: 300;
    letter-spacing: -0.02em;
    position: relative;
    display: flex;
    align-items: baseline;
    border: none;
    
    /* Staggered animation setup */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s var(--ease-premium), transform 0.6s var(--ease-premium);
}

.mobile-nav-link::before {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-right: 1.5rem;
    transform: translateY(-15px); /* Align number to top top */
}

/* Add custom numbers for that premium catalog feel */
.mobile-nav-link:nth-child(1)::before { content: '01'; }
.mobile-nav-link:nth-child(2)::before { content: '02'; }
.mobile-nav-link:nth-child(3)::before { content: '03'; }

.mobile-nav.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entry delays */
.mobile-nav.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.open .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px; /* Push content down to add breathing room from header */
    overflow: hidden; /* Prevent massive watermark from adding scrollbars */
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: radial-gradient(var(--text-primary) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.03;
}

.hero-container {
    padding-top: 5rem;
    position: relative;
    z-index: 10;
}

/* Extraneous background logos removed */

.hero-subcontent-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5rem;
    margin-top: 2.5rem;
    margin-bottom: 3.5rem;
    max-width: 1000px;
}

.hero-subline {
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    align-items: center;
}

/* Hero Definition Block */
.hero-definition {
    max-width: 350px;
    padding-left: 1.5rem;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

.hero-definition::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    background-color: var(--border-color);
    animation: drawDictBorder 0.8s cubic-bezier(0.85, 0, 0.15, 1) 0.6s forwards;
    height: 0; 
}

@keyframes drawDictBorder {
    0% { height: 0; }
    100% { height: 100%; }
}

.def-pre-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.def-header {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.def-pre-title, .def-header, .def-body {
    opacity: 0;
    transform: translateX(10px);
    filter: blur(4px);
    animation: revealDictLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.def-pre-title { animation-delay: 0.8s; }
.def-header { animation-delay: 1.0s; }
.def-body { animation-delay: 1.2s; }

@keyframes revealDictLine {
    0% { opacity: 0; transform: translateX(15px); filter: blur(6px); }
    100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.def-word {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.def-pronun {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 12px;
}

.def-pos {
    color: var(--accent);
    font-style: italic;
    font-size: 12px;
}

.def-body {
    color: var(--text-secondary);
}

.def-num {
    font-weight: 500;
    color: var(--text-primary);
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
}

/* Marquee */
.marquee-strip {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    padding: 0.8rem 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
}

.marquee-content {
    display: flex;
}

.marquee-content span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    padding: 0 1rem;
    white-space: nowrap;
}

.marquee-accent {
    color: var(--accent) !important;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Services */
.services {
    padding: 8rem 0;
}

.services-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 2rem;
}

.service-card {
    flex: 1;
    transition: all 0.4s var(--ease-out);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background-color: var(--bg-surface);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--accent-light);
    background: var(--bg-surface);
}

.service-divider {
    width: 1px;
    background-color: var(--border-color);
    flex-shrink: 0;
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--accent);
    background-color: var(--accent-light);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.service-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-body {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Works */
.works {
    padding: 8rem 0;
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

.works .section-label {
    color: var(--text-secondary);
}

.works-grid {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.work-card {
    flex: 1;
    min-width: 300px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    cursor: pointer;
    transition: transform 0.4s var(--ease-premium), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--accent-light);
}

.work-card:hover .arrow {
    transform: translateX(4px);
}

.work-tag {
    display: inline-block;
    background: rgba(85, 68, 255, 0.1); /* subtle accent */
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    border: 1px solid rgba(85, 68, 255, 0.2);
    margin-bottom: 2rem;
    width: fit-content;
}

.work-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.work-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.work-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.work-link .arrow {
    transition: transform 0.3s var(--ease-premium);
}

/* Card Inline Buttons */
.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-enquire-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.card-enquire-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-light);
    transform: translateY(-2px);
    background: var(--accent-light);
}

.card-download-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #FFFFFF;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(85, 68, 255, 0.2);
}

.card-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(85, 68, 255, 0.4);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
}

/* Philosophy */
.philosophy {
    background-color: var(--bg-main);
    color: var(--text-primary);
    padding: 8rem 0;
    text-align: center;
}

.philosophy-quote {
    font-size: 40px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.philosophy-attribution {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Process */
.process {
    padding: 8rem 0;
    background-color: var(--bg-surface);
}

.process-timeline {
    display: flex;
    position: relative;
    justify-content: space-between;
    margin-top: 4rem;
}

.process-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    background: var(--bg-surface); /* to cover the line behind text */
    padding: 0 1.5rem;
    flex: 1;
    text-align: left;
}

.step-watermark {
    font-size: 80px;
    font-weight: 800;
    color: var(--accent-light);
    position: absolute;
    top: -45px;
    left: 0;
    z-index: -1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
}

.step-content {
    display: flex;
    flex-direction: column;
}

.step-name {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.step-name::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* CTA */
.cta {
    padding: 8rem 0;
    text-align: center;
}

.cta-headline {
    font-size: 40px;
    font-weight: 300;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.cta-subline {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-surface);
    transition: border-color 0.2s ease, outline 0.2s ease;
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-main);
}

.cta-btn {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem; /* fallback if not using form margin */
    width: 100%;
}

.cta-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

.footer-center {
    color: var(--text-secondary);
}

.footer-right {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: var(--accent);
}

/* Advanced Entrance Animations */
@keyframes premiumFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.animate-up {
    opacity: 0; /* starts hidden */
    animation: premiumFadeUp 1.2s var(--ease-premium) forwards;
}

/* Observer Animations Overrides for more premium feel */
.observer-section {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1000ms var(--ease-premium), transform 1000ms var(--ease-premium);
}

.observer-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-0 { transition-delay: 0ms; }
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }

/* Focus States */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Responsive */

/* Theme Toggle Styles */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.theme-toggle-btn:hover {
    background-color: var(--border-color);
    color: var(--accent);
}

@media (max-width: 992px) {
    .hero-headline {
        font-size: 64px;
    }
    
    .hero-subcontent-row {
        flex-direction: column;
        gap: 2.5rem;
        margin-top: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .services-grid {
        flex-direction: column;
    }
    
    .service-divider {
        width: 100%;
        height: 1px;
        margin: 1rem 0;
    }

    .process-timeline {
        flex-direction: column;
        gap: 4rem;
    }
    
    .process-line {
        width: 1px;
        height: 100%;
        top: 0;
        left: 20px; 
    }
    
    .process-step {
        padding-left: 3rem;
    }
    
    .step-watermark {
        left: -15px;
        top: -15px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 5%;
        justify-content: center;
        position: relative;
    }
    
    .nav-logo {
        height: 75px; /* Increased for better visibility on mobile */
    }
    
    .navbar.scrolled .nav-logo {
        height: 52px;
    }

    .desktop-menu {
        display: none;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 110;
    }

    .mobile-menu-btn {
        display: block;
        padding: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        outline: none;
    }
    
    .burger-lines {
        position: relative;
        width: 24px;
        height: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end; /* Right aligns the uneven lines */
    }
    
    .burger-lines .line {
        display: block;
        height: 1.5px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: transform 0.4s var(--ease-premium), width 0.4s var(--ease-premium), opacity 0.4s;
    }
    
    .burger-lines .line-top {
        width: 100%;
        transform-origin: center;
    }
    
    .burger-lines .line-bottom {
        width: 60%; /* Aesthetic uneven bottom line */
        transform-origin: center;
    }
    
    /* Animation into X */
    .mobile-menu-btn.active .line-top {
        transform: translateY(4.25px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .line-bottom {
        width: 100%;
        transform: translateY(-4.25px) rotate(-45deg);
    }

    
    .hero {
        padding-top: 80px; /* Less top padding */
        min-height: 100vh;
        height: auto;
    }
    
    .hero-container {
        padding-top: 2rem; /* Reduced from 5rem */
    }
    
    .hero-headline {
        font-size: 48px; /* Slightly smaller to fit "Creativity" */
        line-height: 1.1;
    }
    
    .hero-headline .line-2 {
        display: block;
        margin-left: 0; /* Removing the 1em indent so it fits on screen */
        margin-top: 0.2rem;
    }
    
    .hero-subline {
        font-size: 14px;
    }
    
    .hero-subcontent-row {
        gap: 1.5rem; /* Tighter gap between description and dictionary box */
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem; /* Tighter gap between buttons */
        width: 100%;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .services, .works, .philosophy, .process, .cta {
        padding: 5rem 0; /* Less vertical padding on mobile sections */
    }

    .philosophy-quote {
        font-size: 28px;
    }
    
    .cta-headline {
        font-size: 32px;
    }
    
    .work-card {
        padding: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--btn-text);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(85, 68, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-out);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(85, 68, 255, 0.4);
}
