﻿html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

/* Legal & Narrative Text Styling */
.narrative-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-body);
    font-size: 1.1rem;
    line-height: 1.8;
}

.narrative-text h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.narrative-text p {
    margin-bottom: 1.5rem;
}

.narrative-text ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
    list-style-type: disc;
}

.narrative-text li {
    margin-bottom: 0.75rem;
    color: var(--text-body);
}

.narrative-text strong {
    color: var(--text-main);
}

.narrative-text a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.narrative-text a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

:root {
    /* Colors - Dark Mode (Default) */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #0f0f17;
    --bg-card-hover: #141420;
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Text - Dark Mode */
    --text-main: #ffffff;
    --text-dim: #a5b4fc;
    --text-dimmer: #6b7280;
    --text-body: #94a3b8;

    /* Accent Colors */
    --accent-primary: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-orange: #f97316;
    --accent-blue: #3b82f6;

    /* Gradients */
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
    --accent-gradient-subtle: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    --accent-gradient-horizontal: linear-gradient(90deg, #06b6d4, #8b5cf6, #ec4899, #f97316);

    /* Glass */
    --glass: rgba(255, 255, 255, 0.06);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Spacing */
    --root-padding: clamp(20px, 4vw, 40px);
    --section-gap: clamp(50px, 6vh, 80px);
    --element-gap: clamp(20px, 3vw, 30px);
    --card-padding: clamp(20px, 3vw, 30px);

    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Global Cursor Fix - Ensure pointer on all interactive elements */
a,
button,
.btn,
.hero-badge,
.nav-link,
.mobile-link,
.social-pill,
.faq-question,
.theme-toggle-btn,
.folder-header,
[role="button"],
[onclick],
input[type="submit"],
input[type="button"],
a *,
button *,
.btn *,
.hero-badge *,
.nav-link *,
.social-pill *,
.faq-question *,
.folder-header * {
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
}

/* Light Mode Variables */
body.light-mode {
    --bg-dark: #f8f9fa;
    /* Off-white background */
    --bg-darker: #ffffff;
    /* White card background */
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-glass: rgba(0, 0, 0, 0.03);

    --text-main: #1a1a1a;
    /* Dark Grey Text */
    --text-dim: #4b5563;
    --text-dimmer: #9ca3af;
    --text-body: #374151;

    --glass: rgba(0, 0, 0, 0.05);
    --glass-strong: rgba(0, 0, 0, 0.1);
    --glass-border: rgba(0, 0, 0, 0.1);
}

/* Light Mode Enhancements */
body.light-mode .bento-card,
body.light-mode .timeline-content,
body.light-mode .xp-container {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    color: var(--text-main);
}

body.light-mode .bento-card:hover,
body.light-mode .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .nav.scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .mobile-menu {
    background: #ffffff !important;
}

body.light-mode .gradient-text {
    /* Keep original gradient colors, just ensure clip works in Light Mode */
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

body.light-mode .hero-subtitle,
body.light-mode p {
    color: #4b5563 !important;
    /* Slate 600 */
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
    color: #111827 !important;
    /* Carbon Black */
}

/* Light Mode Inputs */
body.light-mode input,
body.light-mode textarea {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: #9ca3af !important;
}

/* Light Mode Timeline & Contact Fixes */
body.light-mode .timeline-dot {
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

body.light-mode .contact-link {
    color: var(--text-main) !important;
    text-decoration: none;
}

body.light-mode .cs-tag,
body.light-mode .tag-item {
    color: var(--text-dim) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .cs-company,
body.light-mode .spec-desc {
    color: var(--text-dim) !important;
}

/* Default Contact Link */
.contact-link {
    color: white;
    /* Default Dark Mode */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-cyan) !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.2rem;
    padding: 0;
    transition: transform 0.3s var(--transition-bounce), color 0.3s ease;
    display: flex;
    /* Ensure alignment */
    align-items: center;
    justify-content: center;
    margin-right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Desktop Alignment Fix */
@media (min-width: 769px) {
    .theme-toggle-btn {
        margin-left: 2rem;
    }
}

/* Mobile Alignment - Keep close to menu */
@media (max-width: 768px) {
    .theme-toggle-btn {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.1);
    color: var(--accent-primary);
}

/* Light Mode Mobile Menu Fix - SOLID BLACK TEXT */
body.light-mode .mobile-link {
    color: var(--text-main) !important;
    text-shadow: none !important;
    font-weight: 900;
}

body.light-mode .mobile-link:not(.main-link) {
    color: var(--text-dim) !important;
}

body.light-mode .mobile-link:hover,
body.light-mode .mobile-link.active {
    color: transparent !important;
    background: var(--accent-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.4)) !important;
}

/* Light Mode Arrows & Folder Headers - BLACK */
body.light-mode .folder-arrow {
    color: var(--text-main) !important;
}

body.light-mode .folder-header.open .folder-arrow {
    color: var(--text-main) !important;
}

body.light-mode .folder-header span:not(.folder-arrow) {
    color: var(--text-main) !important;
}

/* Light Mode Hero Tags */
body.light-mode .hero-tags {
    color: var(--text-dim) !important;
}

body.light-mode .tag-dot {
    color: var(--text-dim) !important;
}

/* Light Mode Sub-links (Creative/Professional dropdowns) - BLACK */
body.light-mode .sub-link,
body.light-mode .sub-link:link,
body.light-mode .sub-link:visited {
    color: var(--text-dim) !important;
}

body.light-mode .sub-link:hover {
    color: var(--accent-cyan) !important;
}

.theme-icon-sun {
    display: none;
}

body.light-mode .theme-icon-moon {
    display: none;
}

body.light-mode .theme-icon-sun {
    display: block;
    color: #f59e0b;
    /* Warm amber sun */
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
    font-size: 1.1rem;
}

/* ==========================================
   Light Mode Hover Fixes (Critical)
   ========================================== */

/* Fix Manifesto Tags Hover */
body.light-mode .manifesto-tag:hover {
    color: #fff !important;
    background: var(--accent-gradient) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.4) !important;
    text-shadow: none !important;
}

/* Fix Button Hover */
body.light-mode .btn:hover {
    color: #fff !important;
    text-shadow: none !important;
}

body.light-mode .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--accent-primary) !important;
}

/* Fix Nav Links Hover */
body.light-mode .nav-link:hover {
    color: var(--accent-primary) !important;
}

/* Fix Project Cards / Spec Cards Hover Text */
body.light-mode .project-card:hover p,
body.light-mode .spec-content:hover p {
    color: var(--text-dim) !important;
}

body.light-mode .project-card:hover h3,
body.light-mode .spec-content:hover h2 {
    color: var(--text-main) !important;
}

/* Fix Stat Icon Hover */
body.light-mode .stat-card:hover .stat-icon {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Fix Project Row Hover */
body.light-mode .project-row:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Fix Folder Arrow Hover */
body.light-mode .folder-header:hover .folder-arrow {
    color: var(--accent-cyan) !important;
}

/* Fix Footer Socials Hover */
body.light-mode .footer-socials .social-link {
    color: var(--text-dim) !important;
}

body.light-mode .footer-socials .social-link:hover {
    color: var(--accent-cyan) !important;
}

/* Fix Spec List Text in Light Mode */
body.light-mode .spec-list li {
    color: var(--text-main) !important;
}

/* Fix FAQ Questions in Light Mode */
body.light-mode .faq-question span:first-child {
    color: var(--accent-primary) !important;
}

body.light-mode .faq-icon {
    color: var(--text-dim) !important;
}

/* Fix FAQ Numbering in Light Mode */
body.light-mode .faq-item::before {
    color: rgba(0, 0, 0, 0.03) !important;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3) !important;
}

body.light-mode .faq-item:hover::before,
body.light-mode .faq-item.active::before {
    -webkit-text-stroke: 1px var(--accent-primary) !important;
    color: rgba(139, 92, 246, 0.08) !important;
}

/* Comprehensive Footer Light Mode Styling */
body.light-mode footer,
body.light-mode .site-footer {
    background: linear-gradient(to top, rgba(240, 240, 245, 0.95), transparent) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .footer-logo {
    color: var(--text-main) !important;
    font-weight: 700;
}

body.light-mode .footer-bio {
    color: var(--text-dim) !important;
    opacity: 0.9;
}

body.light-mode .footer-grid h3,
body.light-mode .footer-col h3 {
    color: var(--text-main) !important;
    font-weight: 700;
}

body.light-mode .footer-links li a,
body.light-mode .footer-links a {
    color: var(--text-dim) !important;
}

body.light-mode .footer-links li a:hover,
body.light-mode .footer-links a:hover {
    color: var(--accent-primary) !important;
    transform: translateX(5px);
}

body.light-mode .footer-copyright,
body.light-mode .footer-legal,
body.light-mode .footer-bottom p {
    color: var(--text-dimmer) !important;
}

body.light-mode .legal-link {
    color: var(--text-dim) !important;
}

body.light-mode .legal-link:hover {
    color: var(--accent-primary) !important;
}

/* Process Cards Light Mode Styling */
body.light-mode .process-step {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 250, 0.98) 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .process-step:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

body.light-mode .step-number {
    color: rgba(0, 0, 0, 0.3) !important;
}

body.light-mode .step-icon {
    color: var(--step-color, var(--accent-primary)) !important;
}

body.light-mode .step-title {
    color: var(--text-main) !important;
    font-weight: 700;
}

body.light-mode .step-desc {
    color: var(--text-dim) !important;
}

body.light-mode .step-meta {
    color: var(--text-dimmer) !important;
}

body.light-mode .process-step h3 {
    color: var(--text-main) !important;
    font-weight: 700;
}

body.light-mode .process-step p {
    color: var(--text-dim) !important;
}

/* ==========================================
   Light Mode Shadow Optimizations
   ========================================== */
body.light-mode .nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .portfolio-item {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .portfolio-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

body.light-mode .contact-box {
    background: #ffffff !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .hero-video-block {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

body.light-mode .hero-badge {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-main) !important;
}

body.light-mode .section-label {
    color: var(--accent-primary) !important;
}

body.light-mode .newsletter-form input {
    background: #f3f4f6 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Mobile Contact Page - Push Content Down */
@media (max-width: 768px) {

    body.contact-page .hero,
    body.contact-page .contact-hero {
        padding-top: 120px !important;
    }
}

/* ==========================================
   Desktop Section Navigation Sidebar
   ========================================== */
.section-nav {
    position: fixed;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-nav-item {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.section-nav-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
}

.section-nav-item.active {
    background: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Labels - Always Visible at 40% */
.section-nav-item::after {
    content: attr(data-label);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.section-nav-item:hover::after {
    color: rgba(255, 255, 255, 1);
}

.section-nav-item.active::after {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Light Mode */
body.light-mode .section-nav-item {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .section-nav-item:hover {
    background: rgba(0, 0, 0, 0.35);
}

body.light-mode .section-nav-item::after {
    color: #1a1a1a !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

body.light-mode .section-nav-item:hover::after {
    color: var(--accent-primary) !important;
}

body.light-mode .section-nav-item.active::after {
    color: var(--accent-primary) !important;
    font-weight: 700;
}

/* Hide on tablet and mobile */
@media (max-width: 1024px) {
    .section-nav {
        display: none !important;
    }
}

/* ==========================================
   Page Transition Overlay (Smooth Navigation)
   ========================================== */
/* ==========================================
   Page Transition Overlay (Curtain Sweep)
   ========================================== */
.page-transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-primary);
    z-index: 999999;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

/* Curtain Wipe Animation */
@keyframes curtainWipe {
    0% {
        transform: scaleY(0);
        transform-origin: bottom;
    }

    40% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    60% {
        transform: scaleY(1);
        transform-origin: top;
    }

    100% {
        transform: scaleY(0);
        transform-origin: top;
    }
}

.page-transition-curtain.active {
    animation: curtainWipe 0.35s ease-in-out forwards;
}

/* Content Fade with Curtain */
body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.page-loaded {
    opacity: 1;
}

body.fade-out,
body.transitioning {
    opacity: 0;
}

/* Page Transition Overlay (created by JS) */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    z-index: 999998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

@import url('interactions.css');

/* ==========================================
   Reset & Base
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Premium Font Rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    scroll-behavior: smooth;
    /* background-color: var(--bg-dark); Removed to fix z-index stacking */
    scroll-padding-top: 120px;
    overflow-x: hidden;
    /* CRITICAL: Prevent horizontal scroll */
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
}

body {
    /* Background moved to ::before to allow particles (z-index: -1) to be visible */
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    /* Base for rem scaling */
    line-height: 1.7;
    overflow-x: hidden;
    /* CRITICAL: Prevent horizontal scroll */
    width: 100%;
    position: relative;
    cursor: auto !important;
}

/* Fixed Background Layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Behind particles (-1) */
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

/* Ensure all elements show default cursor */
a,
button,
input,
textarea {
    cursor: pointer;
}

/* ==========================================
   Text Selection Colors (Per Page Theme)
   ========================================== */
/* Default - Cyan for most pages */
::selection {
    background: rgba(6, 182, 212, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(6, 182, 212, 0.3);
    color: #ffffff;
}

/* Professional Page - Blue */
body.professional-page ::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

body.professional-page ::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

/* Contact Page - Orange */
body.contact-page ::selection {
    background: rgba(249, 115, 22, 0.3);
    color: #ffffff;
}

body.contact-page ::-moz-selection {
    background: rgba(249, 115, 22, 0.3);
    color: #ffffff;
}

/* ==========================================
   Global Tactile Feedback ("Press" Feel)
   - Press down: 0.08s (instant)
   - Snap back: 0.15s (springy)
   ========================================== */
a,
button,
[class*="btn"],
.nav-link,
.project-card,
.service-card,
.process-step,
.social-pill,
.social-link,
.social-link-btn,
.hero-badge,
.portfolio-item,
.contact-method,
.viewer-button,
.award-item,
.mobile-link,
.sub-link,
.testimonial-card,
.stat-card,
.skill-tag,
.timeline-item,
.faq-item,
input[type="submit"],
select {
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

a:active,
button:active,
[class*="btn"]:active,
.nav-link:active,
.project-card:active,
.service-card:active,
.process-step:active,
.social-pill:active,
.social-link:active,
.social-link-btn:active,
.hero-badge:active,
.portfolio-item:active,
.contact-method:active,
.viewer-button:active,
.award-item:active,
.mobile-link:active,
.sub-link:active,
.testimonial-card:active,
.stat-card:active,
.skill-tag:active,
.timeline-item:active,
input[type="submit"]:active,
select:active {
    transform: scale(0.96) !important;
    transition: transform 0.08s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Noise Overlay - Fixed to be non-blocking */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    /* Subtle enough not to distract */
}

/* ==========================================
   Scroll Progress Bar (FIXED - Properly Working)
   ========================================== */
/* ==========================================
   High-Res Lightbox (Backend Specialist Grade)
   ========================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* Deep dark backdrop */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    /* Modern frosted feel */
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10001;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

/* Loading Spinner for 4K Assets */
.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    z-index: 2147483647;
    /* Max safe integer to ensure it's on top of EVERYTHING */
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.scroll-progress {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient-horizontal);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 40px rgba(236, 72, 153, 0.4);
    transition: width 0.1s linear;
    /* Slightly smoother transition */
    border-radius: 0 2px 2px 0;
}

/* Page-Specific Scroll Progress Colors */
body.creative-page .scroll-progress {
    background: linear-gradient(90deg, #ec4899, #f472b6);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.8), 0 0 40px rgba(244, 114, 182, 0.5);
}

body.professional-page .scroll-progress {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.8), 0 0 40px rgba(59, 130, 246, 0.5);
}

body.contact-page .scroll-progress {
    background: linear-gradient(90deg, #f97316, #fb923c);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.8), 0 0 40px rgba(251, 146, 60, 0.5);
}

body.about-page .scroll-progress {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 40px rgba(167, 139, 250, 0.5);
}

/* ==========================================
   Custom Browser Scrollbar (Per-Page Theme)
   ========================================== */
/* Default Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
    border-radius: 10px;
    border: 2px solid #0a0a0f;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a78bfa, #f472b6);
}

/* Creative Page - Pink */
.creative-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ec4899, #f472b6) !important;
}

/* Professional Page - Cyan */
.professional-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06b6d4, #3b82f6) !important;
}

/* About Page - Purple */
.about-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #a78bfa) !important;
}

/* Contact Page - Orange */
.contact-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f97316, #fb923c) !important;
}

/* Home Page - Purple/Pink */
.home-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #ec4899) !important;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #0a0a0f;
}

.creative-page {
    scrollbar-color: #ec4899 #0a0a0f !important;
}

.professional-page {
    scrollbar-color: #06b6d4 #0a0a0f !important;
}

.about-page {
    scrollbar-color: #8b5cf6 #0a0a0f !important;
}

.contact-page {
    scrollbar-color: #f97316 #0a0a0f !important;
}

.home-page {
    scrollbar-color: #8b5cf6 #0a0a0f !important;
}

/* ==========================================
   Container & Layout
   ========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--root-padding);
    width: 100%;
}

.section {
    padding: var(--section-gap) 0;
    overflow: hidden;
    /* Prevent content bleeding */
    position: relative;
    /* Ensure containment context */
    width: 100%;
}

/* ==========================================
   Section Header - Consistent Centering
   ========================================== */
.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--element-gap);
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    /* Refined specifically for 375px screens */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-wrap: balance;
    word-break: keep-all;
    /* Prevent awkward word splits */
    hyphens: manual;
}

.section-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.7;
}

/* ==========================================
   Gradient Text
   ========================================== */
.gradient-text {
    background: var(--accent-gradient);
    background-clip: text;
    background-clip: padding-box;
    /* Standard property for compatibility */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 6s ease infinite;
}

.text-cyan {
    color: var(--accent-cyan);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ==========================================
   Navigation
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10010;
    /* Higher than Badge (10001) */
    padding: 25px 0;
    background: transparent;
    /* Start invisible */
    transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
    /* Optimize properties */
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    /* Slightly darker for better contrast */
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    /* Reduce blur calculation for performance */
    -webkit-backdrop-filter: blur(20px);
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* STRICT VERTICAL ALIGNMENT */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    gap: 30px;
    /* CRITICAL: Space between logo and nav-links */
}

.nav-links {
    display: flex;
    gap: 25px;
    /* Tighter gap for more nav items */
    margin-left: auto;
    flex-shrink: 0;
    /* Prevent links from shrinking */
}

.nav-logo {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: var(--accent-gradient);
    background-clip: text;
    background-clip: padding-box;
    /* Standard property for compatibility */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-right: auto;
    position: relative;
    cursor: pointer !important;
    text-decoration: none !important;
    border-bottom: none !important;
    border: none !important;
    text-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
    white-space: nowrap;
    /* CRITICAL: Prevent logo from wrapping */
}

/* Force pointer cursor on all nav-logo children */
.nav-logo *,
.nav-logo span {
    cursor: pointer !important;
}

/* Premium Magnetic Pull + Glow Effect */
.nav-logo::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center,
            rgba(139, 92, 246, 0.2) 0%,
            transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.nav-logo:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 40px rgba(6, 182, 212, 0.4));
    text-decoration: none !important;
}

.nav-logo:hover::before {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ... existing nav styles ... */

.nav-link {
    color: var(--text-dim);
    font-size: 0.9rem;
    /* Slightly larger */
    font-weight: 600;
    /* Bolder for better readability */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    padding: 10px 0;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* ... existing nav styles ... */

/* ... existing nav styles ... */


/* Color-coded Navigation Links */
.nav-link[href="index.html"] {
    --link-color: #06b6d4;
    /* Cyan for Home (original gradient color) */
}

.nav-link[href="creative.html"] {
    --link-color: #ec4899;
    /* Pink for Creative */
}

.nav-link[href="professional.html"] {
    --link-color: #06b6d4;
    /* Cyan for Professional */
}

.nav-link[href="about.html"] {
    --link-color: #8b5cf6;
    /* Purple for About */
}

.nav-link[href="contact.html"] {
    --link-color: #f97316;
    /* Orange for Contact */
}

.nav-link[href="index.html"]:hover,
.nav-link[href="creative.html"]:hover,
.nav-link[href="professional.html"]:hover,
.nav-link[href="about.html"]:hover,
.nav-link[href="contact.html"]:hover {
    color: var(--link-color);
    text-shadow: 0 0 8px var(--link-color);
}

/* Underline animation - Theme Aware */
.nav-link:hover::after {
    background: var(--accent-gradient);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Active state - gradient underline for all */
/* Active state - gradient underline for all */
.nav-link.active {
    color: var(--text-main);
    background: var(--accent-gradient) bottom / 100% 2px no-repeat;
    padding-bottom: 8px;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Remove default underline to prevent double lines */
.nav-link {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Enhanced navbar aesthetics */
.nav-link {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 0;
}

.nav-links {
    gap: 40px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* Page Specific Logo Themes - REMOVED span styling for unified appearance */

/* Mobile Menu Button - Modernized */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2001;
    /* High Z-index */
    transition: all 0.3s ease;

    /* Reset positioning to ensure it aligns via Flexbox */
    position: relative;
    top: auto;
    right: auto;
    /* margin-left: auto; REMOVED to allow grouping with Theme Toggle */
    /* Push to right if needed, though Space-Between handles it */
}

@media (min-width: 769px) {
    .nav-menu-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-menu-btn {
        display: flex;
    }

    /* CRITICAL: Hide desktop links on mobile for proper alignment */
    .nav-links {
        display: none !important;
    }
}

.nav-menu-btn:hover span {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

/* ... */

/* Spec Grid - Split Layout System */
.spec-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    width: 100%;
}

.spec-content {
    width: 100%;
    order: 1;
    z-index: 2;
}

/* Image Block Styling */
.spec-image-block {
    width: 100%;
    /* aspect-ratio removed to allow natural image height */
    position: relative;
    order: 2;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-card);
}

.spec-image {
    width: 100%;
    height: auto;
    /* Natural height */
    display: block;
    /* Remove inline spacing */
    transition: transform 0.8s var(--transition-smooth);
}

/* Zoom effect removed */
.spec-grid:hover .spec-image {
    transform: none;
}

/* Desktop Split Layout (Strict Rules) */
@media (min-width: 900px) {
    .spec-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Equal split */
        gap: 60px;
        /* Slightly reduced gap for smaller screens */
        align-items: center;
        min-height: 50vh;
        /* Reduced strict height */
    }

    /* Column 1: Text | Column 2: Image */
    .spec-content {
        order: 1;
        text-align: left;
        padding-right: 20px;
        min-width: 0;
        /* Prevent Grid Blowout */
    }

    .spec-image-block {
        order: 2;
        /* height: 100% removed to prevent stretching */
        max-height: 800px;
        /* Increased cap just in case, or remove entirely if needed */
        min-width: 0;
        /* Prevent Grid Blowout */
    }

    /* Alternating Layout: Image Left | Text Right */
    .spec-grid.align-right .spec-content {
        order: 2;
        padding-right: 0;
        padding-left: 20px;
    }

    .spec-grid.align-right .spec-image-block {
        order: 1;
    }
}

/* Menu Button Bars - Animated */
.nav-menu-btn span {
    width: 35px;
    height: 3px;
    background: var(--text-main);
    transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    border-radius: 4px;
}

.nav-menu-btn span:nth-child(2) {
    width: 25px;
}

.nav-menu-btn:hover span:nth-child(2) {
    width: 35px;
}

/* Page-Specific Theme Variables for Mobile Menu */
body.home-page {
    /* Safe Mobile Defaults */
    overflow: hidden !important;
    /* CRITICAL: No scroll on home page */
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    position: relative;
    touch-action: pan-x;
    /* Prevent vertical swipe/scroll on mobile */
    --mobile-theme-glow: var(--accent-gradient);
    --mobile-theme-text: transparent;
    --mobile-theme-bg-clip: text;
    --mobile-theme-fill: transparent;
}

html:has(body.home-page) {
    overflow: hidden !important;
    height: 100vh;
    height: 100dvh;
}

body.home-page .scroll-progress-container {
    display: none !important;
}

/* Home Page Backgrounds (Rainbow) */
body.home-page::before {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

body.home-page .glow-bg.glow-top-right {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
}

body.home-page .glow-bg.glow-bottom-left {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

/* Home Page Hero Specifics */
body.home-page #hero {
    height: 100dvh;
    /* Strict viewport height */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Mobile hero centering handled by mobile-overrides.css */

body.home-page .nav {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
}

/* Pulse Gradient Animation */
body.home-page .hero-bg {
    background:
        radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    filter: blur(60px);
    opacity: 0.8;
    animation: pulseGradient 10s ease-in-out infinite alternate;
}

@keyframes pulseGradient {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

body.creative-page {
    --mobile-theme-glow: var(--accent-pink);
    --mobile-theme-text: var(--accent-pink);
    --mobile-theme-bg-clip: border-box;
    --mobile-theme-fill: var(--accent-pink);
}

body.professional-page {
    --mobile-theme-glow: var(--accent-cyan);
    --mobile-theme-text: var(--accent-cyan);
    --mobile-theme-bg-clip: border-box;
    --mobile-theme-fill: var(--accent-cyan);
}

body.about-page {
    --mobile-theme-glow: var(--accent-purple);
    --mobile-theme-text: var(--accent-purple);
    --mobile-theme-bg-clip: border-box;
    --mobile-theme-fill: var(--accent-purple);
}

body.contact-page {
    --mobile-theme-glow: var(--accent-orange);
    --mobile-theme-text: var(--accent-orange);
    --mobile-theme-bg-clip: border-box;
    --mobile-theme-fill: var(--accent-orange);
}

/* Modern & Crazy Hamburger Animation */
.nav-menu-btn span {
    width: 35px;
    height: 3px;
    background: var(--text-main);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border-radius: 4px;
    position: relative;
    transform-origin: center;
}

.nav-menu-btn span:nth-child(2) {
    width: 25px;
    transform-origin: right;
    transition-delay: 0.1s;
    /* Staggered effect */
}

/* Hover: Glitchy skew */
.nav-menu-btn:hover span:nth-child(1) {
    transform: skewX(-15deg) translateX(2px);
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-menu-btn:hover span:nth-child(2) {
    width: 30px;
    transform: skewX(15deg) translateX(-2px);
    background: var(--accent-pink);
    box-shadow: 0 0 8px var(--accent-pink);
}

/* Active State: The "X" Snap */
.nav-menu-btn.active span:nth-child(1) {
    transform: rotate(135deg) translate(5px, -5px);
    /* Big rotation */
    width: 35px;
    background: var(--accent-orange);
    box-shadow: 0 0 15px var(--accent-orange);
    transition-timing-function: cubic-bezier(0.6, -0.28, 0.735, 0.045);
    /* Snap back */
}

.nav-menu-btn.active span:nth-child(2) {
    width: 0;
    opacity: 0;
    transform: translateX(20px);
    /* Fly out */
    transition: all 0.2s ease-in;
}

.nav-menu-btn.active::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 3px;
    background: var(--text-main);
    border-radius: 4px;
    transform: rotate(-135deg) translate(5px, 5px);
    /* Counter rotation */
    background: var(--accent-orange);
    box-shadow: 0 0 15px var(--accent-orange);
    animation: slashIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slashIn {
    from {
        transform: rotate(0) scale(0);
        opacity: 0;
    }

    to {
        transform: rotate(-135deg) translate(5px, 5px) scale(1);
        opacity: 1;
    }
}

.nav-menu-btn:active {
    transform: scale(0.9);
}

/* Home Page Special: Gradient Hover for ALL links */
body.home-page .nav-link:hover {
    background: var(--accent-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    /* Remove shadow to not muddy gradient */
    opacity: 1 !important;
    color: transparent !important;
    /* Fallback/Safety */
}

body.home-page .nav-link:hover::after {
    background: linear-gradient(90deg, #06b6d4, #8b5cf6, #ec4899) !important;
}

/* Home Page Active Override */
body.home-page .nav-link.active {
    background: linear-gradient(90deg, #06b6d4, #8b5cf6, #ec4899) bottom / 100% 2px no-repeat;
}

/* Mobile Menu Overlay - "Crazy" Modern Style */
/* Mobile Menu Overlay - "Side Slide" Style */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    /* Full viewport height */
    background: rgba(5, 5, 8, 0.98);
    /* High opacity */
    backdrop-filter: blur(20px);
    z-index: 20000;
    /* GOD TIER - Must be higher than .hero-badge (10001) */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Slide In Effect */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
    /* Always visible to layout, just off-screen */
    clip-path: none;
    /* Removed clip-path to fix rendering issues */
}

.mobile-menu.active {
    transform: translateX(0);
    /* Slide in */
}

/* Optimized Mobile Menu Content */
/* Optimized Mobile Menu Content */
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    align-items: center;
    /* Center alignment */
    justify-content: center;
    /* Center vertically */
    gap: 2rem;
    /* Consistent spacing between ALL items */
    height: 80vh;
    /* Use most of screen height */
    text-align: center;
    margin-top: 0;
}

/* Links Styling Optimized */
/* Links Styling Optimized - BIGGER & GRADIENT */
.mobile-link {
    font-size: clamp(3.5rem, 12vw, 5rem);
    /* Massive text */
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -2px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
    display: block;
    width: auto;

    /* Gradient Text Default - REFINED TO SOLID WHITE FOR CLARITY */
    color: #ffffff;
    /* text-stroke removed for better visibility */
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    /* Lift off background */
}

.mobile-link:hover,
.mobile-link:focus,
.mobile-link.active {
    /* Dynamic Theme Fill on Hover/Active */
    color: transparent;
    /* Switch to gradient fill only on active */
    background: var(--mobile-theme-glow, var(--accent-gradient));
    background-clip: padding-box;
    /* Standard property for compatibility */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px var(--mobile-theme-glow, rgba(139, 92, 246, 0.6)));
    letter-spacing: 0px;
}

/* Remove all weird old effects */
.mobile-link::before,
.mobile-link::after {
    display: none;
}

/* Remove old adjustments */
.mobile-link::after {
    display: none;
}

/* Active State for Mobile Links (Reset Transform/Opacity) */
.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger Animations */
.mobile-menu.active .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-link:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-link:nth-child(6) {
    transition-delay: 0.35s;
}

/* Sublinks (Awards, etc) slightly smaller but still punchy */
.mobile-link:not(.main-link) {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    -webkit-text-stroke: 0;
    color: var(--text-dim);
    margin-left: 0;
    padding-left: 0;
    /* Center aligned now */
}

.mobile-link:not(.main-link):hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px var(--accent-cyan);
    transform: scale(1.05) !important;
}

/* Ensure vertical line aligns with main spine */
.mobile-link:not(.main-link)::after {
    left: 0;
}

/* Fix vertical line for indented items to align with main spine */
.mobile-link:not(.main-link)::after {
    left: -20px;
    /* Pull line back to grid */
}

.mobile-link:not(.main-link):hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px var(--accent-cyan);
    transform: translateX(10px) !important;
    letter-spacing: 2px;
}

.mobile-link.main-link {
    grid-column: span 1;
    /* Reset grid */
    font-size: clamp(3rem, 8vw, 5rem);
    margin-top: 0;
}

.legal-link {
    color: var(--text-dim);
    /* Match footer bio color */
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.legal-link:hover {
    color: var(--accent-primary);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    /* Dynamic constrained height */
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    /* CRITICAL: Crop everything else */
    padding-top: 0;
    background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.1) 30%, rgba(10, 10, 15, 0) 70%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    z-index: 2;
    pointer-events: none;
}

/* Remove dark patch at bottom of creative hero */
body.creative-page .hero::after {
    display: none;
}

/* Page Transition Curtain */
.page-transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 99999 !important;
    /* Ensure it's on top of everything */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

.page-transition-curtain.active {
    opacity: 1;
    pointer-events: all;
}

/* ==========================================
   Mobile Menu Accordion — Clean Slide Down
   ========================================== */
.folder-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease-out, opacity 0.2s ease-out;
    will-change: max-height, opacity;
}

.folder-content.open {
    max-height: 400px;
    opacity: 1;
    margin-top: 8px;
}

.folder-content .sub-link {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.folder-content.open .sub-link {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger each sub-link with minimal delays for snappy feel */
.folder-content.open .sub-link:nth-child(1) {
    transition-delay: 0.03s;
}

.folder-content.open .sub-link:nth-child(2) {
    transition-delay: 0.06s;
}

.folder-content.open .sub-link:nth-child(3) {
    transition-delay: 0.09s;
}

.folder-content.open .sub-link:nth-child(4) {
    transition-delay: 0.12s;
}

.folder-content.open .sub-link:nth-child(5) {
    transition-delay: 0.15s;
}

.folder-content.open .sub-link:nth-child(6) {
    transition-delay: 0.18s;
}

.folder-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.folder-header.open .folder-arrow {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

/* ==========================================
   Global Image Optimization for Mobile
   ========================================== */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    z-index: 10001;
    /* Fix overlap - higher than Nav/Menu components */
    position: relative;
    font-size: 0.9rem;
    font-weight: 700;
    /* Bolder text */
    letter-spacing: 2.5px;
    /* More spacious */
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    /* Stronger shadow for depth */
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
    /* Glow interaction */
    transform: translateY(-2px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 15px #10b981;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 30px;
    letter-spacing: -3px;
    position: relative;
    /* Needed for pseudo-elements */
    display: inline-block;
    transition: transform 0.2s ease;
    text-wrap: balance;
    word-break: keep-all;
}

/* CRAZY GLITCH EFFECT ON HOVER */
.hero-title:hover {
    animation: jitter 0.3s infinite;
    text-shadow: 2px 2px 0px #ff00ff, -2px -2px 0px #00ffff;
}

.hero-title:hover::before,
.hero-title:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    /* Match bg to hide real text */
    opacity: 0.8;
}

.hero-title:hover::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.hero-title:hover::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes jitter {
    0% {
        transform: translate(0, 0) skew(0deg);
    }

    20% {
        transform: translate(-2px, 2px) skew(-2deg);
    }

    40% {
        transform: translate(2px, -2px) skew(2deg);
    }

    60% {
        transform: translate(-1px, 1px) skew(0deg);
    }

    80% {
        transform: translate(1px, -1px) skew(-1deg);
    }

    100% {
        transform: translate(0, 0) skew(0deg);
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(85px, 9999px, 120px, 0);
    }

    60% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    80% {
        clip: rect(45px, 9999px, 30px, 0);
    }

    100% {
        clip: rect(90px, 9999px, 140px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(85px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 60px, 0);
    }

    40% {
        clip: rect(40px, 9999px, 90px, 0);
    }

    60% {
        clip: rect(110px, 9999px, 30px, 0);
    }

    80% {
        clip: rect(20px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(50px, 9999px, 70px, 0);
    }
}


/* Plyr Customization */
:root {
    --plyr-color-main: var(--accent-primary);
    --plyr-video-control-background-hover: var(--accent-primary);
    --plyr-video-control-color-hover: #fff;
}

/* Split Hero for Showreel */
.hero-split {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    text-align: left;
    gap: 40px;
    margin: 0 auto;
}

.hero-text-block {
    flex: 1;
    max-width: 500px;
}

.hero-video-block {
    flex: 1.5;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9;
    background: #0a0a0f;
}

@media (max-width: 968px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding-top: 10px;
    }

    .hero-text-block {
        max-width: 100%;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content,
    .contact-hero,
    .project-hero {
        padding-top: 90px !important;
        /* Reduced from 110px to fix "too down" spacing */
        padding-bottom: 40px;
        min-height: auto !important;
        /* Allow flex to work naturally */
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
        margin-bottom: 15px !important;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5;
        margin-bottom: 20px !important;
        color: var(--text-dim);
        max-width: 90%;
    }

    /* Video Player Depth */
    .hero-video-block {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.2);
        transform: translateY(0);
        max-width: 90%;
        margin: 0 auto;
        border-radius: 16px;
    }
}

.hero-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag-item {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
}

.tag-dot {
    color: var(--accent-primary);
    font-size: 0.6rem;
}

/* Modern Hover Effect for Tags */
.tag-item {
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    border: 1px solid transparent;
}

.tag-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* Portfolio Item Sizing & Video Fix */
.portfolio-item {
    aspect-ratio: 16/9;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.portfolio-item .plyr,
.portfolio-item video {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.portfolio-item .plyr__poster {
    background-size: cover !important;
    background-position: center !important;
}

/* Spotlight Glow Effect */
.spec-image,
.portfolio-item,
.contact-box {
    position: relative;
    overflow: hidden;
}

.spec-image::before,
.portfolio-item::before,
.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.spec-image:hover::before,
.portfolio-item:hover::before,
.contact-box:hover::before {
    opacity: 1;
}

.hero-subtitle {
    color: var(--text-dim);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    /* Force remove underline */
    letter-spacing: 0.5px;
    transition: all 0.3s var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.5);
    /* Stronger glow */
}

/* Button Shine Effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    /* Purple to Pink */
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    /* Darker/Richer on hover */
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4), 0 0 20px rgba(236, 72, 153, 0.4);
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ==========================================
   Stats Section
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-clip: text;
    background-clip: padding-box;
    /* Standard property for compatibility */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ==========================================
   Trust Marquee
   ========================================== */
.trust-marquee {
    padding: 20px 0;
    background: var(--glass);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: marqueeScroll 15s linear infinite;
    white-space: nowrap;
}

.marquee-content.marquee-reverse {
    animation: marqueeScrollReverse 25s linear infinite;
}

.brand-item {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-item i {
    font-size: 0.75rem;
    opacity: 0.8;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

    100% {
        transform: translateX(0);
    }
}

/* Mobile Hero Adjustments for Overflow Prevention */
@media (max-width: 768px) {
    .container.hero-content {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        overflow-x: hidden;
    }

    /* Tool Grid Alignment */
    .tool-grid {
        display: grid;
        grid-template-columns: 1fr;
        /* Force stacked layout (one per row) */
        gap: 20px;
        margin-left: 40px;
        /* Aligns with text start */
        width: auto;
        /* Ensure it doesn't stretch weirdly */
        max-width: 100%;
        /* Prevent overflow */
    }

    @media (max-width: 768px) {
        .tool-grid {
            margin-left: 0;
            grid-template-columns: 1fr;
            gap: 10px;
            /* Stack on mobile */
        }

        .tools-category h3 {
            gap: 10px;
            /* Tighter gap on mobile */
            font-size: 1.1rem;
        }
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        /* Ensure title fits */
        width: 100%;
        word-wrap: break-word;
    }

    .hero-subtitle,
    .hero-description,
    .scan-line {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        box-sizing: border-box;
    }
}

/* ==========================================
   Philosophy / Narrative Section
   ========================================== */
.creative-narrative {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px 50px;
    /* Reduced vertical padding */
}

.narrative-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 30px;
}

.narrative-text {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.manifesto-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.manifesto-tag {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 10px 25px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
}

/* ==========================================
   Spec Sections (Services)
   ========================================== */
.spec-section {
    padding: var(--section-gap) 0;
}

.spec-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Remove gap */
    align-items: flex-start;
    /* Default align left */
    max-width: 1000px;
    /* Constrain width for readability */
    margin: 0 auto;
}

/* Alternating Alignment for Zig-Zag Text */
.spec-grid.align-right {
    align-items: flex-end;
    /* Align right */
    text-align: right;
}

.spec-grid.align-right .spec-content {
    align-items: flex-end;
}

.spec-grid.align-right .features-list {
    align-items: flex-end;
}

.spec-section.reverse .spec-grid {
    direction: rtl;
}

.spec-section.reverse .spec-grid>* {
    direction: ltr;
}

.spec-content {
    max-width: 550px;
}

.spec-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.spec-list {
    margin-bottom: 30px;
}

.spec-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 500;
}

.spec-list li::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent-gradient);
    flex-shrink: 0;
}

.spec-image {
    width: 100%;
    aspect-ratio: 16/9;
    /* Force Cinematic Ratio */
    background-size: contain;
    /* Ensure full image is visible */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Lift it off the bg */
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dimmer);
    letter-spacing: 2px;
}

/* ==========================================
   Testimonials
   ========================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 40px 35px;
    transition: all 0.4s var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

/* Footer */
footer {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 60px 0 30px;
    /* Thicker padding */
    position: relative;
    z-index: 10;
    margin-top: auto;
}

.testimonial-text {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-dimmer);
    font-size: 0.85rem;
}

/* ==========================================
   Awards
   ========================================== */
.awards-grid {
    max-width: 800px;
    margin: 0 auto;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--glass-border);
}

.award-item:last-child {
    border-bottom: none;
}

.award-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    min-width: 80px;
}

.award-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.award-info p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ==========================================
   Process Section
   ========================================== */
/* ==========================================
   Process Section - Redesigned for Depth
   ========================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.process-step {
    background: linear-gradient(135deg, rgba(20, 20, 32, 0.7) 0%, rgba(10, 10, 15, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.5s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Deep Inner Glow on Hover */
.process-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--step-glow, var(--accent-primary)) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.process-step:hover::before {
    opacity: 0.1;
}

.process-step:hover {
    transform: translateY(-12px) rotateX(2deg);
    border-color: var(--step-color, var(--accent-primary));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--step-rgb), 0.2);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--text-dimmer);
    opacity: 0.5;
    letter-spacing: 2px;
}

.step-icon {
    font-size: 2.8rem;
    margin-bottom: 25px;
    margin-top: 10px;
    color: var(--step-color, #fff);
    filter: drop-shadow(0 0 15px var(--step-glow, rgba(255, 255, 255, 0.2)));
    transition: transform 0.4s ease;
    z-index: 1;
}

.process-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.process-step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    z-index: 1;
}

.process-step p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    z-index: 1;
    opacity: 0.9;
}

.step-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-dimmer);
    width: 100%;
    z-index: 1;
}

.step-meta span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.process-step:hover .step-meta span {
    color: var(--text-dim);
}

/* Individual Step Theming */
.process-step:nth-child(1) {
    --step-color: var(--accent-cyan);
    --step-glow: rgba(6, 182, 212, 0.4);
    --step-rgb: 6, 182, 212;
}

.process-step:nth-child(2) {
    --step-color: var(--accent-primary);
    --step-glow: rgba(139, 92, 246, 0.4);
    --step-rgb: 139, 92, 246;
}

.process-step:nth-child(3) {
    --step-color: var(--accent-pink);
    --step-glow: rgba(236, 72, 153, 0.4);
    --step-rgb: 236, 72, 153;
}

.process-step:nth-child(4) {
    --step-color: var(--accent-orange);
    --step-glow: rgba(249, 115, 22, 0.4);
    --step-rgb: 249, 115, 22;
}

/* ==========================================
   FAQ Section
   ========================================== */

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    counter-reset: faq-counter;
    /* Initialize counter */
}


/* Numbering Styling - Updated for Visibility */
.faq-item::before {
    counter-increment: faq-counter;
    content: "0" counter(faq-counter);
    position: absolute;
    left: 10px;
    top: 22px;
    /* Adjusted alignment */
    font-size: 2rem;
    /* Larger size */
    font-weight: 800;
    font-style: italic;
    /* Dynamic feel */
    color: rgba(255, 255, 255, 0.05);
    /* Very subtle fill */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    /* Much clearer stroke by default */
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Outfit', sans-serif;
    z-index: 0;
}

.faq-item:hover::before,
.faq-item.active::before {
    -webkit-text-stroke: 1px var(--accent-primary);
    color: rgba(139, 92, 246, 0.1);
    opacity: 1;
    transform: scale(1.15) translateX(5px);
    /* More movement */
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    padding-left: 70px;
    /* More space for larger number */
    transition: all 0.3s ease;
    overflow: hidden;
    /* Contain the gradient */
}

/* Hover Gradient Effect */
.faq-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(139, 92, 246, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.faq-item:hover::after,
.faq-item.active::after {
    opacity: 1;
}


.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 28px 30px 28px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.faq-question span:first-child {
    font-size: 1.3rem;
    /* Slightly larger */
    font-weight: 700;
    font-family: 'Outfit', 'Poppins', sans-serif;
    color: var(--accent-primary) !important;
    /* Solid Purple Default */
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: initial !important;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, letter-spacing 0.3s ease, transform 0.3s ease;
}

.faq-item.active .faq-question span:first-child,
.faq-question:hover span:first-child {
    transform: translateX(10px);
    letter-spacing: 0.5px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dim);
    transition: all 0.3s ease;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid transparent;
}

.faq-question:hover .faq-icon,
.faq-item.active .faq-icon {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--accent-primary);
    color: white;
}


.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 25px;
}

.faq-answer p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================
   Portfolio Grid
   ========================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* aspect-ratio: 16/10; Removed to fix gap */
    cursor: pointer;
    transition: transform 0.4s var(--transition-smooth);
    background: #000;
    /* Ensure black background behind images */
    display: block;
    /* Fix inline-block gap */
}

/* Watermark: Click to Expand */
.portfolio-item::after {
    content: 'Click to Expand';
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 10;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover::after {
    opacity: 0.8;
}

.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dimmer);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 5px;
    display: block;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.portfolio-cta {
    text-align: center;
    margin-top: 50px;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 35px;
    padding: 60px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-content .section-label {
    text-align: left;
}

.contact-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 25px;
}

.contact-desc {
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.contact-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-pill {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-pill:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.08);
    /* Slightly more opaque for better contrast */
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 16px 20px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dimmer);
}

/* Date Picker styling for dark mode */
.form-group input[type="date"] {
    position: relative;
    color-scheme: dark;
    /* Forces browser date picker uses dark theme */
}

/* For wider browser support on date icon */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    /* Brighter arrow color (white) for better visibility */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* Ensure dropdown options have dark background in all browsers */
.form-group select option,
.form-group select optgroup {
    background-color: var(--bg-dark);
    /* Force dark background */
    color: var(--text-main);
    /* Force white text */
    padding: 10px;
}

/* Fix for some browsers that inherit white background for optgroup */
.form-group select optgroup {
    font-weight: 700;
    font-style: normal;
    text-shadow: none;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    padding: 50px 0 0;
    /* Removed bottom padding to eliminate gap */
    margin-bottom: 0;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    text-align: center;
    margin-bottom: 40px;
    /* Reduced from 60px */
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-main);
    display: inline-block;
    margin-bottom: 20px;
}

.footer-bio {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Strict 3 columns for desktop */
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 40px;
}



/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-col:last-child {
        grid-column: span 2;
        /* Newsletter spans full width on tablet */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .newsletter-form {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        text-align: center;
        gap: 50px;
    }

    .footer-links {
        align-items: center;
        /* Center links */
    }

    .newsletter-form {
        margin: 0 auto;
        /* Center form */
    }
}



.footer-col h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.footer-links li {
    list-style: none !important;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.newsletter-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 300px;
    margin: 0;
    /* Left align to match text */
}

.newsletter-form input {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 12px 20px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
}

.newsletter-btn {
    background: var(--accent-gradient);
    border: none;
    border-radius: 100px;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-btn:hover {
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    /* border-top removed to avoid double line */
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.legal-link {
    color: #9ca3af !important;
    /* User requested Grey */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.legal-link:hover {
    color: #ffffff !important;
    /* Bright white on hover */
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
    /* INTENSE Glow */
}

.legal-sep {
    color: #9ca3af !important;
    /* User requested Grey */
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    /* Sharper contrast but subtle */
    font-size: 0.85rem;
    font-weight: 300;
    /* Thinner */
    letter-spacing: 1px;
    /* Sharper spacing */
    font-family: 'Outfit', sans-serif;
    /* Ensure clean font */
}

/* ==========================================
   Premium Effects (Noise, Glows, Cursor)
   ========================================== */

/* 1. Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9000;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Custom Cursor - DISABLED (Restoring Native "Triangle" Cursor) */
body {
    cursor: default !important;
    /* Force standard arrow cursor */
}

.cursor-dot,
.cursor-outline {
    display: none !important;
    /* completely hide custom cursor */
}

/* Ensure links show the standard pointer (hand) or default arrow */
a,
button,
.btn {
    cursor: pointer !important;
}

/* If user specifically wanted 'triangle' on links (uncommon but possible),
   we stick to 'pointer' (Hand) as standard web behavior first.
   If they insist on non-pointer, we can change this. */

/* 3. Ambient Glows */
.glow-bg {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
    animation: floatGlow 20s ease-in-out infinite alternate;
}

.glow-top-right {
    top: -20%;
    right: -20%;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}

.glow-bottom-left {
    bottom: -20%;
    left: -20%;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    animation-delay: -10s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* 4. Glitch Text Effect */
.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.glitch-wrapper::before,
.glitch-wrapper::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-wrapper::before {
    color: var(--accent-cyan);
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
    opacity: 0;
}

.glitch-wrapper::after {
    color: var(--accent-pink);
    z-index: -2;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    opacity: 0;
}

.glitch-wrapper:hover::before {
    opacity: 1;
    animation: glitch-anim-1 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch-wrapper:hover::after {
    opacity: 1;
    animation: glitch-anim-2 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes glitch-anim-1 {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(2px, -2px);
    }

    40% {
        transform: translate(2px, 2px);
    }

    60% {
        transform: translate(-2px, 2px);
    }

    80% {
        transform: translate(-2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* Hide cursor on mobile devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .spec-section.reverse .spec-grid {
        direction: ltr;
    }

    .spec-content {
        max-width: 100%;
    }

    .spec-list li {
        justify-content: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        text-align: center;
    }

    .contact-content .section-label {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Fixed Social Pill Gradient style for Tablet */
    .social-pill {
        background: var(--accent-gradient) !important;
        color: white !important;
        border: none !important;
    }
}

/* Mobile - Optimized for Zero Wasted Space */
@media (max-width: 768px) {
    :root {
        --section-gap: 40px;
        --element-gap: 20px;
        --root-padding: 15px;
    }


    /* Hero Section Mobile Adjustments - Centering handled by mobile-overrides.css for home page */
    .hero {
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /* Reduce title size slightly to save vertical space */
    .hero-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1.05;
        margin-bottom: 5px;
    }

    .hero-content p.hero-subtitle {
        font-size: 0.8rem !important;
        max-width: 100%;
        /* Allow full width */
        margin: 0 auto;
        white-space: normal;
        /* Allow wrap if absolutely necessary, but preferably keep single line by width */
        width: auto;
        opacity: 0.9;

        /* Blink Cursor Animation */
        border-right: 2px solid var(--accent-cyan);
        padding-right: 4px;
        /* Space for cursor */
        animation: blinkCursor 0.8s step-end infinite;
    }

    @keyframes blinkCursor {

        from,
        to {
            border-color: transparent;
        }

        50% {
            border-color: var(--accent-cyan);
        }
    }

    .hero-badge {
        padding: 6px 14px;
        font-size: 0.7rem;
        margin-bottom: 10px;
        letter-spacing: 2px;
    }

    .hero-tags {
        margin-bottom: 15px;
        gap: 6px 12px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-tags .tag-item {
        font-size: 0.85rem;
    }

    .hero-tags .tag-dot {
        font-size: 0.6rem;
    }

    .hero-cta {
        gap: 20px;
        /* More space between buttons */
        justify-content: center;
        width: 100%;
        margin-top: 15px;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        /* Slightly wider for presence */
        justify-content: center;
        padding: 16px 30px;
        /* Taller buttons */
    }


    .section-label {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .creative-narrative {
        padding: 30px 20px;
    }

    .narrative-title {
        font-size: 1.3rem;
    }

    .narrative-text {
        font-size: 0.95rem;
    }

    .spec-grid {
        gap: 25px;
    }

    .spec-content {
        padding: 0;
        /* Reset to standard alignment flow for zig-zag */
        display: flex;
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

    /* Restore Zig-Zag Logic on Mobile */
    .spec-grid.align-right .spec-content {
        text-align: right;
        align-items: flex-end;
    }

    .spec-desc {
        font-size: 0.95rem;
    }

    .spec-list {
        gap: 8px;
    }

    .spec-list li {
        font-size: 0.9rem;
        justify-content: center;
    }

    .spec-image {
        min-height: 200px;
    }

    /* Mobile Optimization: View in One Go */
    .section {
        padding: 50px 0 !important;
        /* Reduced from 100px */
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .process-step {
        padding: 15px 10px;
        /* Tighter padding */
        min-height: auto;
    }

    .process-step i {
        font-size: 1.5rem !important;
        /* Smaller icons */
        margin-bottom: 10px !important;
    }

    .step-title {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }

    .step-desc {
        font-size: 0.8rem !important;
        line-height: 1.3;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .portfolio-item {
        min-height: 220px;
    }

    .testimonials-grid {
        gap: 15px;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .contact-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-box {
        padding: 30px 20px;
    }

    .contact-details {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
        margin-bottom: 20px;
    }

    .contact-item {
        flex-direction: row;
        /* Keep icon and text side-by-side for compactness */
        text-align: left;
        align-items: center;
        background: rgba(255, 255, 255, 0.03);
        padding: 10px 12px;
        border-radius: 12px;
        flex: 1 1 100%;
        /* Force full width on smaller screens if needed, or keep auto */
        width: 100%;
        /* Ensure it doesn't overflow container */
        box-sizing: border-box;
        justify-content: flex-start;
        /* Align start */
    }

    .contact-item h4 {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .contact-item p {
        font-size: 0.8rem;
        word-break: break-all;
        line-height: 1.3;
    }

    .contact-icon {
        font-size: 1.2rem;
    }

    /* Stack text inside item if needed, but row looks better for "side by side emojis" request implies horizontal flow */
    .contact-item>div {
        display: flex;
        flex-direction: column;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }

    .social-pill {
        padding: 10px 20px;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
        min-width: 80px;
    }

    .contact-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    input,
    textarea,
    select {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        align-items: center;
    }

    .newsletter-form {
        margin: 0 auto;
    }

    .footer-top {
        margin-bottom: 25px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bio {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 20px;
        flex-direction: column;
        gap: 15px;
    }

    /* Navigation Mobile */
    .nav-container {
        padding: 15px 25px !important;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    /* Hide section dividers on mobile */
    .section::after {
        display: none;
    }

    /* Disable complex animations on mobile for performance */
    .reveal-element {
        opacity: 1;
        transform: none;
    }

    .hero-badge {
        animation: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 14px 25px;
    }
}

/* ==========================================
   ADVANCED ANIMATION & EFFECTS SYSTEM
   ========================================== */

/* Page Load Animation */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.page-loaded {
    opacity: 1;
}

/* Reveal Animation Base */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Lazy Loading Styles */
.portfolio-item,
.lazy-bg {
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Ensure smooth transitions */
}

.portfolio-item.loaded {
    animation: fadeInImage 0.5s ease-out forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0.5;
        filter: blur(5px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Image Loading States */
.image-loading {
    filter: blur(10px);
    transform: scale(1.02);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.image-loaded {
    filter: blur(0);
    transform: scale(1);
}

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Premium Text Hover Effects */
h1,
h2,
h3,
h4,
.hero-title,
.section-title,
.portfolio-title {
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

h1:hover,
h2:hover,
h3:hover,
.hero-title:hover,
.section-title:hover {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
}

/* Glow on Hover for Links */
a:not(.btn):not(.nav-logo) {
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:not(.btn):not(.nav-logo):hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Card 3D Hover Effect */
.portfolio-item,
.testimonial-card,
.stat-card,
.process-step {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    transform-style: preserve-3d;
}

.portfolio-item:hover,
.testimonial-card:hover,
.stat-card:hover,
.process-step:hover {
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.25),
        0 0 0 1px rgba(139, 92, 246, 0.3);
    border-color: var(--accent-primary);
}

/* Gradient Border Animation Removed as per request */
.portfolio-item::before {
    display: none;
}

/* Button Glow Pulse */
.btn-primary {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(139, 92, 246, 0.2);
    }
}

.btn-primary:hover {
    animation: none;
    box-shadow: 0 0 30px 10px rgba(139, 92, 246, 0.4);
}

/* Nav Link Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    /* Updated from -5px to sit just below text */
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

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

/* Form Input Focus Glow */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 0 20px rgba(139, 92, 246, 0.1);
}

/* Floating Label Effect */
.form-group.focused label {
    transform: translateY(-25px) scale(0.85);
    color: var(--accent-primary);
}

/* Spec Image Parallax Ready */
.spec-image {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Hero Badge Bounce */
.hero-badge {
    animation: badgeBounce 3s ease-in-out infinite;
}

@keyframes badgeBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Gradient Text Shimmer */
.gradient-text {
    background: var(--accent-gradient);
    background-clip: padding-box;
    /* Standard property for compatibility */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShimmer 3s linear infinite;
}

@keyframes gradientShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Custom Cursor Enhanced */
body.hovering-link .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
    background: var(--accent-primary);
}

body.hovering-link .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

/* Section Divider Glow */
.section::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--accent-gradient);
    margin: 60px auto 0;
    opacity: 0.5;
    border-radius: 2px;
}

/* Smooth Scroll Snap Hint */
.section {
    scroll-margin-top: 80px;
}

/* Loading Skeleton Animation */
@keyframes skeletonPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* ==========================================
   3D Section Grid Fix (Strict 16:9)
   ========================================== */
#grid-3d .portfolio-item {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
    /* Override any previous min-height */
}

#grid-3d .portfolio-item img,
#grid-3d .portfolio-item video,
#grid-3d .portfolio-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   Scroll To Top Button
   ========================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    outline: none;
}

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

.scroll-to-top-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.5);
}

.scroll-to-top-btn i {
    animation: arrowFloat 2s ease-in-out infinite;
}

@keyframes arrowFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Mobile Optimization for Scroll Button */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Stagger Animation Delays */
.portfolio-item:nth-child(1) {
    transition-delay: 0.1s;
}

.portfolio-item:nth-child(2) {
    transition-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
    transition-delay: 0.3s;
}

.portfolio-item:nth-child(4) {
    transition-delay: 0.4s;
}

.portfolio-item:nth-child(5) {
    transition-delay: 0.5s;
}

.portfolio-item:nth-child(6) {
    transition-delay: 0.6s;
}

/* ==========================================
   JAW-DROPPING CINEMATIC EFFECTS
   ========================================== */

/* Click Glow Effect - White Outline Burst */
.hero-badge,
.btn,
.portfolio-item,
.nav-link,
.testimonial-card,
.stat-card,
.process-step {
    position: relative;
    cursor: pointer;
}

.hero-badge:active,
.btn:active,
.portfolio-item:active {
    transform: scale(0.98);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(139, 92, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease;
}

/* Hero Badge Premium Glow */
.hero-badge {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.3),
        0 10px 40px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(6, 182, 212, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.hero-badge:active {
    transform: scale(1.1);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(139, 92, 246, 0.6);
}

/* Electric Pulse on Hover */
.btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
    animation: electricPulse 0.5s ease;
}

@keyframes electricPulse {
    0% {
        transform: scale(1);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* Neon Text Glow on Hover */
.gradient-text {
    transition: filter 0.3s ease, text-shadow 0.3s ease;
}

.gradient-text:hover {
    filter: brightness(1.3);
    text-shadow:
        0 0 10px rgba(139, 92, 246, 0.8),
        0 0 20px rgba(236, 72, 153, 0.6),
        0 0 30px rgba(6, 182, 212, 0.4);
}

/* Floating Animation for Cards */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stat-card:hover,
.testimonial-card:hover {
    animation: float 2s ease-in-out infinite;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Glitch Effect on Click */
@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.hero-title:active {
    animation: glitch 0.3s ease;
}

/* White Outline Flash on Focus */
*:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.8),
        0 0 15px rgba(255, 255, 255, 0.4);
}

/* Sparkling Border Effect */
@keyframes sparkle {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Premium Glass Morphism on Hover */
.nav.scrolled {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 10, 15, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Scoped Text & Interaction Effects
   ========================================== */

/* Navigation Links - Safe Glow */
.nav-link {
    transition: color 0.4s ease, text-shadow 0.4s ease;
    /* Updated to 0.4s */
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    /* Ensure corner accents stay inside or clip nicely */
}

/* Innovative Corner Accents for Process Steps */
.process-step::before,
.process-step::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid var(--accent-cyan);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.process-step::before {
    top: 5px;
    left: 5px;
    border-right: none;
    border-bottom: none;
}

.process-step::after {
    bottom: 5px;
    right: 5px;
    border-left: none;
    border-top: none;
}

.process-step:hover::before,
.process-step:hover::after {
    width: 15px;
    height: 15px;
    opacity: 1;
    border-color: var(--accent-primary);
}



/* Nav Link Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.4s ease;
    /* Updated to 0.4s */
}

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

/* Headings - Safe Title Glow */
.hero-title:hover,
.section-title:hover,
h1:hover,
h2:hover,
h3:hover,
h4:hover,
h5:hover,
h6:hover {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    cursor: default;
}

/* Content Text - Subtle Highlight without breaking flow */
.narrative-text:hover,
.spec-desc:hover,
.process-card p:hover,
.faq-item p:hover,
.faq-question span,
/* Added FAQ text color */
p:hover,
li:hover {
    color: var(--text-main);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    cursor: default;
}

/* Specific FAQ Question Gradient Override */
.faq-question span:first-child {
    background: var(--accent-gradient);
    background-clip: text;
    background-clip: padding-box;
    /* Standard property for compatibility */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    background-size: 200% auto;
    /* Added for animation */
    animation: gradientShimmer 3s linear infinite;
    /* Added shimmmmer */
}

/* Card Interactons - Scale the Container, not the Text */
.process-card,
.faq-item,
.stat-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.process-card:hover,
.faq-item:hover,
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

/* Fallback for missing images */
.spec-image,
.portfolio-item {
    background-color: #000000 !important;
    /* Strict black box as requested */
    border: 1px solid var(--glass-border);
}

/* About Section Image - No Border */
.about-section .spec-image {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* ==========================================
   Social Pills (Gradient Box) - FIXED
   ========================================== */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social-pill {
    padding: 12px 30px;
    border-radius: 100px;
    background: var(--accent-gradient);
    /* The "mix" color */
    color: white;
    /* White text for contrast */
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
    display: inline-block;
    border: none;
}

.social-pill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    color: white;
}

/* ==========================================
   Hero Buttons - Unique Gradients
   ========================================== */
/* Explore Work - Vibrant Violet/Cyan */
.btn-explore {
    background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(127, 0, 255, 0.3);
}

.btn-explore:hover {
    background: linear-gradient(135deg, #E100FF 0%, #7F00FF 100%) !important;
    box-shadow: 0 15px 40px rgba(127, 0, 255, 0.5);
    transform: translateY(-3px);
}

/* Get in Touch - Fiery Orange/Red (Different from the others) */
.btn-contact {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(255, 65, 108, 0.3);
}

.btn-contact:hover {
    background: linear-gradient(135deg, #FF4B2B 0%, #FF416C 100%) !important;
    box-shadow: 0 15px 40px rgba(255, 65, 108, 0.5);
    transform: translateY(-3px);
}

/* ==========================================
   Trust Marquee (Restored & Optimized)
   ========================================== */
.trust-marquee {
    width: 100%;
    overflow: hidden;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    position: relative;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: marqueeScroll 15s linear infinite;
    white-space: nowrap;
}

.brand-item {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.brand-item:hover {
    opacity: 1;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Mobile Optimization: Faster & Smaller */
@media (max-width: 768px) {
    .marquee-content {
        animation-duration: 5s !important;
        gap: 20px !important;
    }

    .brand-item {
        font-size: 0.65rem !important;
        letter-spacing: 1px;
        margin: 0 8px;
    }

    .brand-item i {
        font-size: 0.55rem !important;
    }

    .trust-marquee {
        padding: 10px 0 !important;
    }
}

/* Flat sub-links in mobile menu */
/* Flat sub-links in mobile menu */
.sub-link-flat {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.85rem !important;
    padding-left: 20px !important;
    opacity: 0.7;
    letter-spacing: 0.05em !important;
    margin-bottom: 6px !important;
}

.mobile-menu .main-link {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: 0.05em !important;
}

/* --- Mobile Menu Densification (Perfection: No Scroll if possible, safe otherwise) --- */
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    /* Force Top Alignment so Home is always seen */
    align-items: flex-start !important;
    height: 100%;
    padding: 85px 40px 40px !important;
    /* Balanced padding */
    overflow-y: auto !important;
    scrollbar-width: none;
    /* Firefox: Hide scrollbar */
    -ms-overflow-style: none;
    /* IE/Edge: Hide scrollbar */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.mobile-menu-content::-webkit-scrollbar {
    display: none;
}

/* Staggered Animation for Menu Items */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.mobile-menu-group,
.mobile-link.main-link {
    opacity: 0;
    /* Hidden initially */
    animation: slideInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Stagger Delays when Menu is Open */
body.menu-open .mobile-menu-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

body.menu-open .mobile-menu-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

body.menu-open .mobile-menu-content>*:nth-child(3) {
    animation-delay: 0.3s;
}

body.menu-open .mobile-menu-content>*:nth-child(4) {
    animation-delay: 0.4s;
}

body.menu-open .mobile-menu-content>*:nth-child(5) {
    animation-delay: 0.5s;
}

/* Groups */
.mobile-menu-group {
    width: 100%;
    margin-bottom: 15px;
    /* EQUALIZED SPACING - Tightened */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-link {
    font-family: 'Outfit', sans-serif !important;
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s ease;
    /* ONLY COLOR */
    width: 100%;
    text-align: left;
    display: block;
    transform: translateZ(0);
    /* Hardware accelerate to prevent jitter */
    -webkit-tap-highlight-color: transparent;
    /* Remove mobile tap gray box */
}

/* Main Top-Level Links */
.mobile-link.main-link {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    /* Gap to sub-links - Tightened */
    opacity: 1;
}



/* Sub-link Grid Container */
.sub-link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 10px;
    width: 100%;
    padding-left: 0;
}

/* Sub-links (Flat) */
.mobile-link.sub-link-flat {
    font-size: 0.85rem;
    /* Small & elegant */
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    padding: 1px 0;
    /* Minimal padding */
    margin: 0;
    opacity: 0.7;
}

.mobile-contact-info {
    display: none !important;
    /* HIDDEN AS REQUESTED */
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--accent-cyan);
    opacity: 1;
    transform: none !important;
    /* Stop Hover Shift */
}

/* Accents */
.creative-page .mobile-link:hover,
.creative-page .mobile-link.active {
    color: var(--accent-pink);
    transform: none !important;
}

.professional-page .mobile-link:hover,
.professional-page .mobile-link.active {
    color: var(--accent-cyan);
    transform: none !important;
}

/* Unified Email Styling */
.contact-email {
    font-family: 'Outfit', sans-serif;
    font-size: 1.0rem !important;
    font-weight: 500;
    color: var(--text-main) !important;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--accent-cyan) !important;
}



/* Hide Logo and Theme Toggle when Menu is Open */
/* Hide Logo and Theme Toggle (Preserve Layout Space) */
body.menu-open .nav-logo,
body.menu-open .theme-toggle-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    /* Hides but keeps layout space if needed, or use opacity only if layout breaks */
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}

/* Hide Floating Extras (Remove from Flow) */
body.menu-open .scroll-to-top-btn {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Fix Z-Index Conflict: Ensure Close Button is Clickable */
body.menu-open .nav {
    z-index: 20005 !important;
    /* Above mobile menu (20000) */
    background: transparent !important;
    /* Remove nav background */
    backdrop-filter: none !important;
    border-bottom: none !important;
}

/* Ensure Mobile Menu is Scrollable & Full Height */
.mobile-menu {
    overflow-y: auto !important;
    /* Allow scrolling if content overflows */
    align-items: flex-start !important;
    /* Start from top, not center */
    padding-bottom: 20px;
    /* Space at button */
}

/* FORCE LAYOUT FIX */
body .spec-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    width: 100%;
}

body .spec-content {
    width: 100%;
    order: 1;
    z-index: 2;
    min-width: 0;
}

body .spec-image-block {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    order: 2;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-card);
    min-width: 0;
}

body .spec-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--transition-smooth);
}

/* Zoom effect removed */
body .spec-grid:hover body .spec-image {
    transform: none;
}

@media (min-width: 900px) {
    body .spec-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
        min-height: 50vh;
    }

    body .spec-content {
        order: 1;
        text-align: left;
        padding-right: 20px;
    }

    body .spec-image-block {
        order: 2;
        height: 100%;
        max-height: 600px;
    }

    body .spec-grid.align-right .spec-content {
        order: 2;
        padding-right: 0;
        padding-left: 20px;
    }

    body .spec-grid.align-right .spec-image-block {
        order: 1;
    }
}


/* FORCE LAYOUT FIX V2 - BETTER SPACING */
@media (min-width: 900px) {
    body .spec-grid {
        display: grid;
        grid-template-columns: 0.9fr 1.1fr;
        /* Give image slightly more width */
        gap: 80px;
        /* Increase gap */
        align-items: center;
        min-height: auto;
        /* Remove strict min-height to avoid gaps */
    }

    /* Swap logic for alternate sections */
    body .spec-grid.align-right {
        grid-template-columns: 1.1fr 0.9fr;
        /* Image gets more space on left too */
    }

    body .spec-image-block {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        max-height: 80vh;
        /* Prevent it from being too tall */
    }

    /* Ensure content text doesn't stretch too wide */
    body .spec-content {
        max-width: 600px;
    }
}

/* FORCE GAP INCREASE */
@media (min-width: 900px) {
    body .spec-grid {
        gap: 120px !important;
        /* Push text and image apart significantly */
    }
}

/* ==========================================
   FINAL POLISH FIXES (Navigation & Footer)
   ========================================== */
/* 1. Navigation Spacing & Indentation Fix */
.mobile-link {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.mobile-link:not(.main-link) {
    margin-left: 0 !important;
    padding-left: 60px !important;
    /* 40px base + 20px indent */
}

.mobile-link:not(.main-link)::after {
    left: 0 !important;
    /* Ensure vertical line is aligned */
}

/* 2. Footer Fixes */
.footer-logo {
    text-decoration: none !important;
    border: none !important;
    cursor: pointer;
    /* Show hand cursor on hover */
}

.footer-logo:hover {
    text-decoration: none !important;
}

.legal-link {
    color: var(--text-dim) !important;
}

/* 3. Refined Design & Interaction Overrides */

/* Mobile Menu Sizing (Reduced) */
.mobile-link {
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
    /* Reduced Size */
    padding-top: 2px !important;
    /* Minimal Padding */
    padding-bottom: 2px !important;
    /* Minimal Padding */
}

.mobile-link:not(.main-link) {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem) !important;
    padding-left: 50px !important;
    /* Adjusted for smaller size */
}

/* Menu Positioning Fix */
.mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    /* Ensure it covers everything */
    padding-top: 60px;
    /* Ensure content starts below header area if needed, but centering handles it mostly */
}

/* NO SHIFT OR ANIMATION ON CLICK (AGGRESSIVE FIX) */
.mobile-link:active,
.mobile-link:focus {
    transform: none !important;
    margin-left: 0 !important;
    animation: none !important;
    /* Stop any animation */
    transition: color 0.1s ease !important;
    /* Only animate color, fast */
}

.mobile-link:not(.main-link):hover,
.mobile-link:not(.main-link):active,
.mobile-link:not(.main-link):focus {
    padding-left: 50px !important;
    /* STRICTLY ENFORCE PADDING */
    transform: none !important;
    /* NO MOVEMENT */
    animation: none !important;
    margin-left: 0 !important;
    letter-spacing: 0.02em !important;
    font-weight: 400 !important;
    border: none !important;
}

/* SPECIFIC FIX FOR FLAT GRID LINKS (Philosophy, Aerials, etc.) */
.mobile-link.sub-link-flat,
.mobile-link.sub-link-flat:hover,
.mobile-link.sub-link-flat:active,
.mobile-link.sub-link-flat:focus {
    padding-left: 0 !important;
    /* FORCE 0 PADDING - NO SHIFT */
    padding-right: 0 !important;
    margin: 0 !important;
    transform: none !important;
    animation: none !important;
    text-align: left;
    width: 100%;
}

.nav-menu-btn {
    position: relative;
    /* Keep it relative to nav container, nav is fixed */
    z-index: 10001 !important;
    /* Above the menu overlay */
}

/* Date Input Styling */
.date-input {
    color: #fff;
    cursor: pointer;
    /* Show pointer to indicate clickability */
    min-height: 50px;
    /* Enforce height stability */
    color-scheme: dark;
    /* Force native browser UI (picker, icon) to dark mode */
}

/* Fix Label Stability */
.form-label {
    font-size: 0.9rem;
    /* Slightly larger for readability */
    color: var(--text-dim);
    margin-bottom: 8px;
    margin-left: 2px;
    /* Align with input padding */
    display: block;
    transform: none !important;
    /* PREVENT ANY MOVEMENT */
    transition: color 0.3s ease;
    /* Only color changes */
    font-weight: 500;
}

.form-group {
    position: relative;
    /* Context for stability */
}

.form-group:focus-within .form-label {
    color: var(--accent-primary);
    transform: none !important;
    /* FORCE NO MOVEMENT */
}

/* Fix for calendar icon color in WebKit browsers */
.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(100%) !important;
    /* Force white */
    cursor: pointer;
    opacity: 1 !important;
    /* Ensure it's not transparent */
    background-color: transparent !important;
}

/* ==========================================
   Modern Toast Notification
   ========================================== */
/* ==========================================
   Modern Premium Toast Notification
   ========================================== */
.toast-notification {
    position: fixed;
    bottom: 40px;
    right: 40px;
    padding: 18px 28px;
    background: rgba(10, 10, 15, 0.85);
    /* Deep dark background */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(120px) scale(0.95);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10000;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    overflow: hidden;
}

/* Status Variants */
.toast-notification.success {
    border-left: 4px solid #10b981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, rgba(10, 10, 15, 0.9) 100%);
}

.toast-notification.error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, rgba(10, 10, 15, 0.9) 100%);
}

.toast-notification.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor);
    width: 0%;
    transition: width linear;
}

.success .toast-icon {
    color: #10b981;
}

.error .toast-icon {
    color: #ef4444;
}

/* Input Focus Glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Interactive Keywords */
.interactive-keyword {
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    font-weight: 600;
}

.interactive-keyword:hover {
    color: var(--accent-cyan);
    transform: scale(1.1) translateY(-2px);
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

/* Manifesto Tags (Philosophy Section) - Premium Buttons */
.manifesto-tag {
    cursor: pointer;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    font-weight: 600;
    padding: 10px 24px;
    margin: 0 4px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.manifesto-tag:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3),
        0 0 15px var(--accent-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Social Icons Styling */
.social-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
}


.social-pill i {
    font-size: 1.1em;
}

/* Mobile: show only icons in social pills */
@media (max-width: 768px) {
    .social-pill {
        padding: 10px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        justify-content: center;
        font-size: 0;
    }

    .social-pill i {
        font-size: 1.2rem;
    }
}

/* ==========================================
   Stat Icons Styling (Sleek Update)
   ========================================== */
.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 80px;
    margin: 0 auto 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-icon i {
    background: var(--accent-gradient);
    background-clip: text;
    background-clip: padding-box;
    /* Standard property for compatibility */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    transition: filter 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.05);
    /* Slightly brighter bg */
}

.stat-card:hover .stat-icon i {
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.5));
}

/* ==========================================
   Professional Portfolio Styles (NEW)
   ========================================== */
.section-split-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-study-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--card-padding);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.case-study-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cs-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    display: block;
}

.cs-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
}

.cs-company {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Added .btn-secondary for Showreel Hero — scoped to showreel only */
.hero-split .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-split .btn-secondary:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.cs-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--text-dimmer);
}

.cs-content {
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 20px;
}

.project-list-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.project-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    transform: translateX(10px);
}

.project-icon {
    min-width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.project-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.project-details p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
}

/* Clean Menu State */
body.menu-open .hero-content,
body.menu-open .scroll-progress-container {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, visibility 0.2s;
}

/* Accordion Menu Styles (Crazy Cool) */
.mobile-folder {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.folder-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: color 0.3s ease;
}

/* Target only the TEXT span, not the arrow */
.folder-header:hover span:not(.folder-arrow) {
    color: var(--accent-cyan) !important;
}

/* Ensure arrow stays white and visible */
.folder-header:hover .folder-arrow {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

.folder-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.7) !important;
}

.folder-header.open .folder-arrow {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.9) !important;
    /* Keep white when open */
}

.folder-header.open span:not(.folder-arrow) {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* Folder content base layout (extends the slide-down rules above) */
.folder-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.folder-content.open {
    padding: 10px 0;
}

/* Home Page Specifics: Remove Scroll Bar */
body.home-page .scroll-progress-container {
    display: none !important;
}

/* Contact Grid - Base Desktop Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2-column on desktop */
    gap: 40px;
}

/* Contact Page Mobile Optimization */
@media (max-width: 768px) {
    .contact-hero {
        padding-top: 90px !important;
        /* More space from navbar */
        align-items: flex-start;
        min-height: auto;
        padding-bottom: 30px;
        /* Reduced */
    }

    .contact-info h1 {
        font-size: 2.2rem !important;
        /* Slightly smaller for compact look */
        margin-bottom: 10px;
        /* Reduced */
    }

    .contact-intro {
        font-size: 0.95rem;
        margin-bottom: 15px;
        /* Reduced from 25px */
        line-height: 1.5;
    }

    /* Interactive Feedback for Touch */
    .contact-method:active,
    .btn:active,
    .social-link-btn:active {
        transform: scale(0.96);
        background: rgba(255, 255, 255, 0.1);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        /* Reduced from 30px for tighter layout */
        text-align: center;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-visual {
        justify-content: center;
        margin-bottom: 10px;
        /* Reduced from 20px */
        display: none;
        /* Hide decorative element on mobile */
    }

    .contact-methods {
        width: 100%;
        gap: 10px;
        /* Reduced from 15px for compact layout */
    }

    /* Contact Method Cards - Left Aligned, Consistent Sizing */
    .contact-method {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }

    .contact-method h3 {
        font-size: 1rem !important;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .contact-method p,
    .contact-method a {
        font-size: 0.9rem !important;
        opacity: 0.85;
    }

    /* About Page Mobile Update */
    .about-image {
        max-width: 212px !important;
        width: 212px;
        aspect-ratio: 1/1;
        margin: 0 auto 20px auto;
    }

    .hero-content {
        /* General Hero Fix */
        padding-top: 60px;
        /* Reduced top space for all heroes */
    }
}

/* FIX: Aggressively override default blue/purple link colors globally */
.sub-link,
.sub-link:link,
.sub-link:visited,
.sub-link:active {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    /* Ensure no underline */
}

.sub-link:hover {
    color: var(--accent-cyan) !important;
}

/* Hero Section Divider - Smooth Gradient Blend */
.hero-section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 15, 0.6));
    z-index: 2;
    pointer-events: none;
}

/* Remove dark patch on creative page */
body.creative-page .hero-section-divider {
    display: none !important;
}

/* Enforce Center Alignment for Creative Hero */
body.creative-page .hero-content {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 120px;
    /* Ensure spacing */
}

/* Mobile: Push creative hero down to avoid header overlap */
@media (max-width: 768px) {
    body.creative-page .hero-content {
        padding-top: 150px !important;
    }
}

body.creative-page .hero-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.creative-page .hero-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Scroll Indicator Styles (Global) */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent-cyan);
    text-decoration: none;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* Page Specific Scroll Indicator Colors */
body.creative-page .scroll-indicator {
    color: var(--accent-pink);
}

/* Mobile: Reposition scroll indicator to flow below buttons, not overlap */
@media (max-width: 768px) {
    .scroll-indicator {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 30px !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        animation: bounceMobile 2s infinite !important;
    }
}

@keyframes bounceMobile {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Mobile Hero Padding Optimization */
@media (max-width: 768px) {

    /* Reducing top space for hero sections on mobile */
    .hero {
        padding-top: 100px !important;
        /* Reduced from default/larger values */
        min-height: auto !important;
        /* Allow height to fit content naturally */
        padding-bottom: 60px !important;
    }

    body.home-page #hero {
        padding-top: 0 !important;
        /* Home hero needs full center */
    }
}

/* Footer Social Icons */
.footer-socials .social-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}


body.transitioning {
    overflow: hidden;
}

/* ==========================================
   CREATIVE PORTFOLIO LAYOUT FIX (STRICT)
   ========================================== */

/* LARGE SCREENS (Desktop) - Enforce Side-by-Side */
@media (min-width: 968px) {
    .spec-section {
        padding: 80px 0 !important;
    }

    .spec-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* STRICT 50/50 Split */
        gap: 60px !important;
        align-items: center !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }

    /* Default Layout: Text Left | Image Right */
    .spec-content {
        order: 1 !important;
        text-align: left !important;
        align-items: flex-start !important;
        padding-right: 20px;
    }

    .spec-image-block {
        order: 2 !important;
    }

    /* Reversed Layout: Image Left | Text Right */
    .spec-grid.align-right .spec-content {
        order: 2 !important;
        text-align: right !important;
        align-items: flex-end !important;
        padding-right: 0;
        padding-left: 20px;
    }

    .spec-grid.align-right .spec-image-block {
        order: 1 !important;
        /* Move image to left */
    }

    /* Fix Text Alignment for Lists in Reversed Mode */
    .spec-grid.align-right .spec-list li {
        justify-content: flex-end !important;
        text-align: right !important;
        flex-direction: row-reverse !important;
        /* Flip icon/text order */
    }

    .spec-grid.align-right .spec-list li::before {
        margin-right: 0 !important;
        margin-left: 15px !important;
        /* Move line to other side */
    }

    /* IMAGE CONSISTENCY RULES */
    .spec-image-block {
        width: 100% !important;
        position: relative;
        display: block !important;
        height: 400px !important;
        /* Fixed height container to ensure consistency */
        background: transparent !important;
    }

    .spec-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        /* STRICT REQUIREMENT: NO CROPPING */
        object-position: center !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
        display: block !important;
        background: transparent !important;
    }
}

/* TABLET/MOBILE (Stack Vertical) */
@media (max-width: 967px) {
    .spec-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    .spec-content,
    .spec-grid.align-right .spec-content {
        order: 2 !important;
        text-align: left !important;
        align-items: flex-start !important;
        padding: 0 !important;
    }

    .spec-image-block,
    .spec-grid.align-right .spec-image-block {
        order: 1 !important;
    }

    /* Reset Alignment */
    .spec-grid.align-right .spec-list li {
        justify-content: flex-start !important;
        flex-direction: row !important;
    }

    .spec-grid.align-right .spec-list li::before {
        margin-left: 0 !important;
        margin-right: 15px !important;
    }

    .spec-image-block {
        height: auto !important;
        width: 100% !important;
    }

    .spec-image {
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important;
        /* Ensure no cropping on mobile too */
        max-height: 300px !important;
    }
}

/* ==========================================
   LAPTOP OPTIMIZATION (Showreel)
   ========================================== */
@media (min-width: 968px) and (max-width: 1440px) {
    .hero-split {
        gap: 30px !important;
        /* Tighter gap */
        align-items: center !important;
    }

    .hero-text-block {
        flex: 1 !important;
        max-width: 45% !important;
        /* Ensure it doesn't shrink too much */
    }

    .hero-video-block {
        flex: 1.6 !important;
        /* Make video slightly bigger proportionately */
    }

    .hero-title {
        font-size: 3.5rem !important;
        /* Force bigger text */
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }
}

/* ==========================================
/* ==========================================
   Typing Effect Fix for Mobile (Inline Span Method)
   ========================================== */
#typingText,
#typingTextProf {
    /* Reset to default block behavior, text-align center handles alignment */
    display: block !important;
    min-height: 1.5em;
    /* Prevent layout shift */
}

/* The inline span that will hold the text */
.typing-content {
    display: inline;
    /* This is key - cursor follows text flow */
    position: relative;
    white-space: pre-wrap;
}

/* The Cursor */
/* The Cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--accent-cyan);
    margin-left: 2px;
    vertical-align: bottom;
    /* Animation removed */
}

/* ==========================================
   Back to Top Button (Cyber-Glass)
   ========================================== */
.back-to-top {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

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

.back-to-top:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    color: white;
}

/* Light Mode Back-to-Top */
body.light-mode .back-to-top {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .back-to-top:hover {
    color: white;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* ==========================================
   Interactive Skill Pills (Magnetic Pop)
   ========================================== */
.skill-pill,
.social-pill,
.tag-item,
.cs-tag {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy transition */
    position: relative;
    overflow: hidden;
}

.skill-pill:hover,
.social-pill:hover,
.tag-item:hover,
.cs-tag:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
    z-index: 10;
}

/* Add shimmer effect on hover */
.skill-pill::after,
.social-pill::after,
.tag-item::after,
.cs-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.skill-pill:hover::after,
.social-pill:hover::after,
.tag-item:hover::after,
.cs-tag:hover::after {
    left: 100%;
}

/* Fix for Select Dropdown in Light Mode */
body.light-mode select option,
body.light-mode .form-select option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

body.light-mode select,
body.light-mode .form-select {
    color: var(--text-main) !important;
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================
   SCROLL OVERFLOW FIX (Robust)
   ========================================== */
html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Ensure no element pushes past footer, enforce flex col */
body.creative-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-footer {
    margin-top: auto !important;
    /* Push to bottom if content is short */
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    /* Removed extra padding to eliminate gap */
}

/* ==========================================
   DIRECT FIXES (Showreel Footer)
   ========================================== */
.footer-bio {
    max-width: 100% !important;
    width: auto !important;
    white-space: nowrap !important;
}

@media (max-width: 900px) {
    .footer-bio {
        white-space: normal !important;
        text-align: center !important;
    }
}

/* Hide any potential overflow from absolute elements */
body>*:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================
   Video Item Interaction Improvements
   ========================================== */

/* Move info to top for video items to avoid control collision */
.portfolio-item.has-video .portfolio-info {
    top: 0 !important;
    bottom: auto !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%) !important;
    padding-top: 25px !important;
    justify-content: flex-start !important;
}

/* Hide info when video is playing */
.portfolio-item.video-playing .portfolio-info {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

/* Ensure controls are clickable */
.portfolio-item video {
    z-index: 5;
    /* Above info when playing, though info is hidden */
    position: relative;
    width: 100%;
    height: 100%;
}

/* Vertical Video Fit Fix */
.video-contain {
    object-fit: contain !important;
    background: #000;
}

/* ==========================================
   Viewer.js Lightbox Mobile Optimization
   ========================================== */
@media (max-width: 768px) {
    .viewer-toolbar {
        width: 280px !important;
        /* Smaller width */
        margin: 0 auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 20px !important;
        /* Move to bottom for easier reach */
        border-radius: 30px !important;
        background-color: rgba(0, 0, 0, 0.5) !important;
        padding: 5px !important;
    }

    .viewer-toolbar>ul {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .viewer-toolbar>ul>li {
        width: 32px !important;
        /* Moderate size buttons */
        height: 32px !important;
        float: none !important;
        /* Remove float if present */
    }

    .viewer-button {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50%;
        background-color: transparent !important;
        transition: transform 0.2s ease !important;
    }

    .viewer-button:active {
        transform: scale(0.9) !important;
    }

    .viewer-button::before {
        background-size: 18px 18px !important;
        /* Appropriately sized icons */
    }

    /* Hide unnecessary buttons on mobile to declutter */
    .viewer-toolbar li[class*="rotate"],
    .viewer-toolbar li[class*="flip"],
    .viewer-toolbar li[class*="reset"],
    .viewer-toolbar li[class*="play"],
    .viewer-toolbar li[class*="one-to-one"],
    .viewer-zoom-level {
        display: none !important;
    }

    /* Make the toolbar container very compact */
    .viewer-toolbar {
        width: auto !important;
        max-width: 80% !important;
        margin: 0 auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 30px !important;
        border-radius: 50px !important;
        background-color: rgba(0, 0, 0, 0.6) !important;
        padding: 5px 15px !important;
    }

    .viewer-toolbar>ul {
        gap: 10px !important;
    }

    .viewer-button {
        width: 30px !important;
        height: 30px !important;
    }
}

/* ==========================================
   Software Proficiency Grid Optimization (Desktop)
   ========================================== */
@media (min-width: 769px) {
    .tool-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .tool-grid .stat-card {
        padding: 20px 25px !important;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        /* Keep left alignment */
    }

    /* Target direct children elements to force smaller sizes */
    .tool-grid .stat-card strong {
        font-size: 1.1rem !important;
        /* Slightly smaller title */
        margin-bottom: 5px;
        display: block;
    }

    .tool-grid .stat-card p {
        font-size: 0.9rem !important;
        /* Smaller description */
        margin-top: 5px !important;
        line-height: 1.4;
        color: var(--text-dim);
    }


    .tool-grid .stat-card .stat-icon {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }

}


/* ==========================================
   Footer Vertical Alignment Fix
   ========================================== */
.site-footer {
    padding-top: 30px !important;
    /* Adjusted for balance */
    padding-bottom: 30px !important;
    /* Equal padding for vertical centering */
}

.footer-bottom {
    display: flex !important;
    flex-direction: column-reverse !important;
    /* Copyright bottom */
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
    gap: 15px !important;
    /* Space between lines */
    padding-top: 30px !important;
    /* Space from line to text */
    margin-top: 0 !important;
}

.footer-legal {
    justify-content: center !important;
    gap: 15px !important;
    margin-bottom: 0 !important;
}

.footer-copyright {
    margin: 0 !important;
    line-height: 1.5 !important;
    order: -1 !important;
    /* Put copyright below if reverse is on? No wait. User said "privacy policy up, below that Prathamesh" */
}

/* 
User said: "Privacy Policy and Terms of Condition in the up and below that was Prathamesh Prabhu" 
So Order:
1. Legal (Up)
2. Copyright (Below)
*/

.footer-bottom {
    flex-direction: column !important;
    /* Legal first, Copyright second */
}

.footer-copyright {
    order: 2 !important;
}

.footer-legal {
    order: 1 !important;
}

/* ==========================================
   YouTube Thumbnail & Modal System
   ========================================== */
.portfolio-item.youtube-trigger,
.hero-video-block.youtube-trigger {
    cursor: pointer;
    position: relative;
    display: block;
}

.portfolio-item.youtube-trigger img,
.hero-video-block.youtube-trigger img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item.youtube-trigger:hover img,
.hero-video-block.youtube-trigger:hover img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    /* Reduced from 60px */
    height: 45px;
    background: rgba(0, 0, 0, 0.4);
    /* More transparent (was 0.6) */
    border: 2px solid rgba(255, 255, 255, 0.6);
    /* Slightly more transparent border */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
    pointer-events: none;
    /* Let clicks pass through to parent */
    backdrop-filter: blur(4px);
}

.play-button-overlay i {
    color: white;
    font-size: 16px;
    /* Reduced from 24px */
    margin-left: 3px;
    /* Optical adjustment for play icon */
    transition: transform 0.3s ease;
}

.portfolio-item.youtube-trigger:hover .play-button-overlay,
.hero-video-block.youtube-trigger:hover .play-button-overlay {
    width: 55px;
    /* Reduced from 70px */
    height: 55px;
    background: var(--accent-primary);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.portfolio-item.youtube-trigger:hover .play-button-overlay i,
.hero-video-block.youtube-trigger:hover .play-button-overlay i {
    transform: scale(1.2);
}

/* Light Mode Adjustments */
body.light-mode .play-button-overlay {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .play-button-overlay i {
    color: #1a1a1a;
}

body.light-mode .portfolio-item.youtube-trigger:hover .play-button-overlay,
.hero-video-block.youtube-trigger:hover .play-button-overlay {
    background: var(--accent-primary);
}

body.light-mode .portfolio-item.youtube-trigger:hover .play-button-overlay i,
.hero-video-block.youtube-trigger:hover .play-button-overlay i {
    color: white;
}

/* Video Viewer Modal */
#video-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#video-viewer.active {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    animation: fadeIn 0.3s ease-out forwards;
}

.video-viewer-container {
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    /* Ensure it fits vertically */
    aspect-ratio: 16 / 9;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    background: black;
    margin: auto;
    /* Fallback centering */
}

.video-viewer-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.video-viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-viewer-close:hover {
    transform: rotate(90deg);
    color: var(--accent-pink);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .video-viewer-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
        /* Smaller close button on mobile */
        z-index: 100001;
        /* Ensure on top */
    }

    .video-viewer-container {
        width: 100% !important;
        border-radius: 0;
        max-height: 60vh;
        /* Limit height even more on mobile to avoid covering everything */
    }
}

/* ==========================================
   Text Readability Improvements
   ========================================== */
.portfolio-info {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%) !important;
    padding: 20px !important;
    padding-top: 50px !important;
    /* Give space for gradient */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.portfolio-title,
.portfolio-category {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

/* Ensure youtube triggers also get this treatment */
.portfolio-item.youtube-trigger .portfolio-info {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%) !important;
}

/* ==========================================
   Awards Section Styles (Interaction Only)
   ========================================== */
.awards-grid {
    /* Reverting grid structure to default stacking */
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}

.award-item {
    /* Minimal structural styling to maintain spacing */
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Transparent by default to match original look */
    background: transparent;
    border: 1px solid transparent;
}

/* Hover & Active Effects (The Glow) */
.award-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    transform: translateX(10px);
    /* Subtle shift instead of lift */
}

.award-item:active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px) scale(0.99);
}

.award-year {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 5px;
    display: inline-block;
}

.award-info h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin: 5px 0;
    font-weight: 600;
}

.award-info p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ==========================================
   MOBILE OPTIMIZATIONS - ALL PAGES
   ========================================== */

/* Tablet and Below (≤768px) */
@media (max-width: 768px) {

    /* Navigation Padding */
    .navbar {
        padding: 15px 20px;
    }

    /* Hero Content Spacing */
    .hero-content {
        padding: 60px 20px 40px;
        gap: 20px;
    }

    .hero-title {
        margin-bottom: 15px;
        font-size: 2.5rem;
        line-height: 1.1;
    }

    /* Hero Tags - Better Wrapping */
    .hero-tags {
        gap: 8px 12px;
        justify-content: center;
        padding: 0 20px;
        flex-wrap: wrap;
    }

    .tag-item {
        font-size: 0.85rem;
        white-space: nowrap;
        padding: 6px 14px;
    }

    .tag-dot {
        font-size: 0.7rem;
    }

    /* Hero Badge Spacing */
    .hero-badge {
        padding: 10px 20px;
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    /* CTA Button Optimization */
    .hero-cta {
        margin-top: 25px;
        gap: 12px;
        padding: 0 20px;
        width: 100%;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 400px;
    }

    /* Section Padding */
    .section {
        padding: 50px 20px;
    }

    .container {
        padding: 0 20px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 30px;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .section-desc {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    /* Timeline Optimizations (Professional Page) */
    .timeline-container {
        padding: 20px 10px;
    }

    .timeline-content {
        padding: 20px;
        min-height: auto;
    }

    /* Process Grid (Creative Page) */
    .process-grid {
        gap: 25px;
        grid-template-columns: 1fr;
    }

    .process-step {
        padding: 25px;
    }

    /* Social Icons */
    .social-links {
        gap: 15px;
        padding: 0 20px;
    }

    /* Bordered Sections (Projects/Leadership) */
    #projects,
    #leadership {
        padding: 20px !important;
        margin: 0 10px;
    }

    .project-list-grid {
        gap: 20px;
    }

    .project-row {
        padding: 15px;
    }

    /* Awards Grid */
    .awards-grid {
        gap: 8px;
        grid-template-columns: 1fr;
        padding: 0 10px;
        margin-top: 20px;
    }

    .award-item {
        padding: 12px 10px;
    }

    .award-item h3 {
        font-size: 1rem;
    }

    .award-item p {
        font-size: 0.85rem;
    }
}

/* Large Mobile (≤600px) */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tags {
        gap: 6px 10px;
    }

    .tag-item {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Tighter Vertical Spacing */
    .hero-content {
        padding: 50px 15px 30px;
        gap: 15px;
    }

    .hero-cta {
        margin-top: 12px;
        gap: 8px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Section Padding */
    .section {
        padding: 40px 15px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Standard Mobile (≤428px - iPhone 14 Pro Max) */
@media (max-width: 428px) {
    .navbar {
        padding: 12px 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .hero-tags {
        gap: 6px 8px;
        padding: 0 15px;
    }

    .tag-item {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .process-step h3,
    .timeline-content h3 {
        font-size: 1.2rem;
    }
}

/* iPhone SE / Small Mobile (≤375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }

    .hero-tags {
        gap: 5px 6px;
    }

    .tag-item {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.85rem;
    }

    .section {
        padding: 35px 12px;
    }

    #projects,
    #leadership {
        padding: 15px !important;
        margin: 0 5px;
    }
}

/* Extra Small Mobile (≤320px) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .tag-item {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

/* ==========================================
   Back to Home Gradient Link (Text + Arrow)
   ========================================== */
.back-home-container {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;

    /* Gradient Text Effect */
    background: var(--accent-gradient);
    background-clip: padding-box;
    /* Standard property for compatibility */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;

    /* Visual Tweaks */
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.back-home-link:hover {
    transform: translateX(-5px);
    border-color: rgba(var(--accent-primary-rgb), 0.5);
    background-position: right center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-home-link i {
    font-size: 1rem;
    background: var(--accent-gradient);
    background-clip: padding-box;
    /* Standard property for compatibility */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .back-home-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .section-title {
        font-size: 2rem !important;
    }
}

/* ==========================================
   Explorer Icon (Footer-Bound)
   ========================================== */
.explorer-icon {
    position: absolute;
    bottom: 30px;
    left: 40px;
    width: 90px;
    /* Big on laptop/desktop */
    height: auto;
    opacity: 1 !important;
    z-index: 10;
    pointer-events: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Bright/Whitish glow */
    filter: brightness(1.7) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

@media (max-width: 768px) {
    .explorer-icon {
        width: 40px;
        /* Small on mobile */
        bottom: 20px;
        left: 20px;
        filter: brightness(1.4) drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
    }
}