/* ==========================================================================
   Design System & Premium Aesthetics
   ========================================================================== */

:root {
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bg-color: #555555; /* Matched to edge color of the sequence images */
    --bg-dark: #111111;  /* Dark portfolio background */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.45);
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(16px);
    --border-radius-pill: 50px;
    --border-radius-card: 20px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--bg-color);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    color: var(--text-primary);
    background-color: var(--bg-color);
    min-height: 100vh;
}

/* Lenis Smooth Scroll Configuration */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Utilities */
.text-right {
    text-align: right;
}
.text-center {
    text-align: center;
}
.align-right {
    align-items: flex-end;
}
.block {
    display: block;
}
.mb-8 {
    margin-bottom: 8px;
}
.mb-4 {
    margin-bottom: 4px;
}

/* ==========================================================================
   Elegant Preloader
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111111;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.85, 0, 0.15, 1), visibility 0.8s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    max-width: 320px;
    width: 90%;
}

.loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.loader-logo .plus {
    font-size: 2.2rem;
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
}

.loader-logo .brand-name {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.progress-wrapper {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: #ffffff;
    transition: width 0.1s ease-out;
}

.progress-text {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: -1px;
}

.loader-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4vw;
    z-index: 1000;
    mix-blend-mode: difference; /* Insures contrast regardless of bg */
    opacity: 0;
    transform: translateY(-20px);
    animation: headerFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes headerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.header-plus {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px;
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.2px;
}

.logo-text .subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-capsule {
    display: flex;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 4px;
    border-radius: var(--border-radius-pill);
    pointer-events: auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: var(--border-radius-pill);
    transition: var(--transition-quick);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    background-color: #ffffff;
    color: #111111;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #111111;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 6px 6px 18px;
    border-radius: var(--border-radius-pill);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.subscribe-btn:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #111111;
    color: #ffffff;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.subscribe-btn:hover .btn-icon {
    background-color: #ffffff;
    color: #111111;
    transform: rotate(45deg);
}

.btn-icon svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Scroll sequence layout
   ========================================================================== */
.scroll-track {
    position: relative;
    height: 500vh; /* Pinned viewport height */
    width: 100%;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
}

.scroll-fade-out {
    position: absolute;
    inset: 0;
    background-color: var(--bg-dark);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

#sequence-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

/* ==========================================================================
   Content Overlay & Stacked Slides
   ========================================================================== */
.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none; /* Let scroll pass through to container */
}

.overlay-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 100px 4vw 40px; /* offset header height */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
}

/* Active slide fallback/states */
.overlay-slide.active {
    pointer-events: none;
}

.panel {
    display: flex;
    flex-direction: column;
    pointer-events: auto; /* Re-enable clicks for items inside panel */
    max-width: 480px;
}

.panel-left {
    justify-self: start;
}

.panel-right {
    justify-self: end;
    align-items: flex-end;
    height: 100%;
    justify-content: space-between;
    padding: 20px 0;
}

/* ==========================================================================
   Content Typographies & Badges
   ========================================================================== */
.badge {
    display: inline-block;
    align-self: flex-start;
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--border-radius-pill);
    margin-bottom: 25px;
}

.hero-title {
    font-size: clamp(2rem, 3.2vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-title em {
    font-style: italic;
    font-family: inherit;
    font-weight: 300;
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Right Top Meta Elements */
.right-top-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.meta-desc {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Slide 2 Specific: Road List */
.road-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.road-list li {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Right Middle Contents */
.right-middle-content {
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 320px;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.about-brief {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 300;
}

.accent-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-top: 5px;
}

/* Slide 2 Specific: Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.social-link-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-quick);
}

.social-link-item:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

/* Slide 3 Specific: Contact details */
.accent-email {
    font-size: clamp(1.2rem, 1.8vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
    transition: var(--transition-quick);
}

.accent-email:hover {
    border-bottom-color: #ffffff;
}

.office-address {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Scroll Indicators */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.scroll-indicator.upward {
    cursor: pointer;
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--glass-border);
    background-color: var(--glass-bg);
    border-radius: 50%;
    animation: bounce 2s infinite;
}

.scroll-indicator.upward .scroll-arrow {
    animation: bounceUpward 2s infinite;
}

.scroll-arrow svg {
    width: 16px;
    height: 16px;
}

.scroll-arrow.inline {
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.scroll-arrow.inline svg {
    width: 12px;
    height: 12px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes bounceUpward {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(6px);
    }
    60% {
        transform: translateY(3px);
    }
}

/* ==========================================================================
   Shared styles for additional sections
   ========================================================================== */
.section-projects, .section-services, .section-products, .main-footer {
    position: relative;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding: 140px 0;
    z-index: 10;
}

.section-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: var(--border-radius-pill);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(1.8rem, 2.8vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    max-width: 700px;
    line-height: 1.2;
}

/* ==========================================================================
   Selected Work Section (Sticky Stacking Layout)
   ========================================================================== */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 8vh; /* Separation between sticky frames */
    position: relative;
    padding-bottom: 40px;
}

.project-card {
    position: sticky;
    top: 130px; /* Sticks clearing the header */
    height: 70vh; /* Controlled viewport heights */
    min-height: 480px;
    max-height: 600px;
    width: 100%;
}

/* Define card stacking indexes */
.project-card[data-index="0"] { z-index: 1; }
.project-card[data-index="1"] { z-index: 2; }
.project-card[data-index="2"] { z-index: 3; }
.project-card[data-index="3"] { z-index: 4; }

.project-card-inner {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    width: 100%;
    height: 100%;
    background-color: #171719; /* premium lighter grey contrast */
    border-radius: var(--border-radius-card);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
    transform-origin: top center;
    /* transition for subtle inertia when scale changes */
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.project-card:hover .project-card-inner {
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
}

.project-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Graphic Parallax layer */
.project-img-parallax {
    position: absolute;
    top: -10%; /* Offset range for vertical parallax translating */
    left: 0;
    width: 100%;
    height: 120%; /* 20% extra padding for scrolling shifts */
    background-size: cover;
    background-position: center;
    transition: transform 0.1s ease-out; /* Match Lenis ticks */
}

/* Abstract Premium Background Images & Fallback Gradients */
.gradient-art-1 {
    background-image: url('images/image%201.jpg');
    background-color: #1d2230;
}
.gradient-art-2 {
    background-image: url('images/image%202.jpg');
    background-color: #371d21;
}
.gradient-art-3 {
    background-image: url('images/image%203.jpg');
    background-color: #182b22;
}
.gradient-art-4 {
    background-image: url('images/image%204.jpg');
    background-color: #2e2218;
}

.project-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(17, 17, 17, 0.3) 100%);
    transition: var(--transition-smooth);
    z-index: 1;
}

.hover-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.hover-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid #ffffff;
    padding: 10px 24px;
    border-radius: var(--border-radius-pill);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.project-card:hover .hover-overlay {
    opacity: 1;
}

.project-card:hover .hover-overlay span {
    transform: scale(1);
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    background-color: #171719;
}

.project-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.project-name {
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

/* ==========================================================================
   Capabilities Section (Accordion List)
   ========================================================================== */
.services-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-item {
    display: flex;
    align-items: flex-start;
    padding: 45px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.service-item:hover {
    background-color: rgba(255, 255, 255, 0.015);
    padding-left: 35px;
    padding-right: 5px;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.service-num {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    min-width: 80px;
    margin-top: 4px;
}

.service-content {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.service-name {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.service-desc {
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 550px;
}

.service-plus {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    margin-left: 20px;
}

.service-item:hover .service-plus {
    transform: rotate(45deg);
    color: #ffffff;
}

/* ==========================================================================
   Fullscreen Sticky Products Section
   ========================================================================== */
.products-scroll-track {
    position: relative;
    height: 400vh;
    background-color: var(--bg-dark);
}

.products-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.product-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.4s ease-out; /* smooth transition */
    z-index: 1;
}

.product-bg-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Dark Overlay for Text Contrast */
.products-dark-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(17, 17, 17, 0.1) 0%, rgba(17, 17, 17, 0.75) 100%);
    z-index: 3;
    pointer-events: none;
}

/* HUD Overlay containing tabs and captions */
.products-hud-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 100px 20px 80px;
    pointer-events: none;
}

.product-tabs-capsule {
    pointer-events: auto;
}

.product-tabs {
    display: inline-flex;
    background-color: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--glass-blur);
    padding: 6px;
    border-radius: var(--border-radius-pill);
    gap: 4px;
}

.product-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: var(--transition-quick);
}

.product-tab-btn:hover {
    color: #ffffff;
}

.product-tab-btn.active {
    background-color: #ffffff;
    color: #111111;
    font-weight: 600;
}

.product-captions-panel {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    justify-items: center;
    align-items: center;
    text-align: center;
    max-width: 600px;
    width: 100%;
    pointer-events: auto;
    margin-bottom: 20px;
}

.caption-item {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.caption-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.product-caption-title {
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.product-caption-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

.explore-sections-btn {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: var(--border-radius-pill);
    transition: var(--transition-quick);
    margin-top: 10px;
}

.explore-sections-btn:hover {
    background-color: #ffffff;
    color: #111111;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Capabilities Section (Accordion List)
   ========================================================================== */
.services-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-item {
    display: flex;
    align-items: flex-start;
    padding: 45px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.service-item:hover {
    background-color: rgba(255, 255, 255, 0.015);
    padding-left: 35px;
    padding-right: 5px;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.service-num {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    min-width: 80px;
    margin-top: 4px;
}

.service-content {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.service-name {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.service-desc {
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 550px;
}

.service-plus {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    margin-left: 20px;
}

.service-item:hover .service-plus {
    transform: rotate(45deg);
    color: #ffffff;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
    padding: 120px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 100px;
}

.footer-left {
    max-width: 550px;
}

.footer-cta-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 30px;
}

.footer-email {
    font-size: clamp(1.4rem, 2.5vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 6px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-email:hover {
    border-bottom-color: #ffffff;
    transform: translateY(-2px);
}

.footer-right {
    display: flex;
    gap: 80px;
    margin-top: 20px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.footer-links-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-quick);
}

.footer-links-col a:hover {
    color: #ffffff;
}

.footer-links-col .office-address {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 300;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.back-to-top {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-quick);
}

.back-to-top:hover {
    color: #ffffff;
}

.back-to-top:hover .scroll-arrow {
    transform: translateY(-4px);
}

/* ==========================================================================
   Footer Badge
   ========================================================================== */
.footer-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-pill);
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-quick);
}

.footer-badge:hover {
    background-color: rgba(17, 17, 17, 1);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-icon {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .overlay-slide {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding-top: 120px;
        gap: 30px;
    }
    
    .panel-left {
        justify-self: center;
        text-align: center;
        align-items: center;
    }
    
    .panel-left .badge {
        align-self: center;
    }
    
    .panel-right {
        justify-self: center;
        text-align: center;
        align-items: center;
        height: auto;
        gap: 25px;
        margin-top: 15px;
        padding: 0;
    }
    
    .right-top-meta.text-right,
    .right-middle-content.text-right {
        text-align: center;
        align-items: center;
    }
    
    .road-list {
        align-items: center;
    }
    
    .social-links {
        align-items: center;
    }
    
    .scroll-indicator {
        align-items: center;
        margin-top: 15px;
    }
    
    .nav-capsule {
        display: none; /* Hide middle nav on small screens */
    }
    
    .project-card {
        height: auto;
        max-height: none;
        min-height: auto;
        position: relative;
        top: 0 !important;
    }
    
    .project-card-inner {
        grid-template-columns: 1fr;
        transform: none !important;
    }
    
    .project-img-wrapper {
        aspect-ratio: 1.5 / 1;
        height: auto;
    }
    
    .project-img-parallax {
        height: 100%;
        top: 0;
        transform: none !important;
    }
    
    .project-info {
        padding: 30px 20px;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-mock {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .mock-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .mock-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-slide {
        width: 90vw;
        padding: 0 10px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .section-projects, .section-services, .section-products, .main-footer {
        padding: 90px 0;
    }
    
    .footer-right {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0 5vw;
    }
    
    .subscribe-btn span:first-child {
        display: none; /* icon only on tiny devices */
    }
    
    .subscribe-btn {
        padding: 6px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 40px;
    }
}

/* ==========================================================================
   Custom Cursor Styling
   ========================================================================== */
@media (pointer: fine) {
    body, a, button, select, input, textarea, [role="button"], .service-item, .project-card, .nav-link, .subscribe-btn, .explore-sections-btn, .product-tab-btn, .back-to-top {
        cursor: none !important;
    }

    .custom-cursor-dot {
        width: 8px;
        height: 8px;
        background-color: #ffffff;
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        opacity: 0;
        transition: opacity 0.3s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    }

    .custom-cursor-ring {
        width: 36px;
        height: 36px;
        border: 1.5px solid rgba(255, 255, 255, 0.45);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9998;
        mix-blend-mode: difference;
        opacity: 0;
        transition: opacity 0.3s ease, width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease;
    }

    /* Hover States */
    body.cursor-hover .custom-cursor-dot {
        width: 4px;
        height: 4px;
        background-color: #ffffff;
    }

    body.cursor-hover .custom-cursor-ring {
        width: 52px;
        height: 52px;
        border-color: #ffffff;
        background-color: rgba(255, 255, 255, 0.1);
    }
}
