/* ==========================================
   DESIGN SYSTEM & VARIABLES - Published
   ========================================== */
:root {
    --bg-primary: #050508;
    --bg-secondary: #0a0a12;
    --bg-card: rgba(13, 13, 22, 0.55);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.16);
    
    /* Indigo/Purple neon gradient matching resith-s.vercel.app */
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #d946ef 100%);
    --grad-text: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8; /* Slate-400 for clean secondary text */
    --text-muted: #64748b; /* Slate-500 */
    
    --accent-blue: #6366f1; /* Indigo */
    --accent-purple: #7c3aed; /* Purple */
    
    /* Deep Apple-style soft blurred shadows */
    --shadow-glass: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --shadow-blue-glow: 0 0 40px rgba(99, 102, 241, 0.18);
    --shadow-purple-glow: 0 0 40px rgba(124, 58, 237, 0.18);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Caveat', cursive;
    
    /* Apple spring physics translation curves */
    --transition-spring: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-in-out;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
    border-radius: 4px;
}

/* Containers */
.container {
    width: 100%;
    max-width: 1760px; /* Widened to 1760px for immersive screens */
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* ==========================================
   ENGAGING ELEMENTS: PROGRESS & CANVAS
   ========================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad-primary);
    z-index: 1002;
    transition: width 0.1s ease-out;
}




/* ==========================================
   TYPOGRAPHY & UTILITIES
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-title {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

/* Center section title default */

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 0;
}

.title-bar {
    display: none !important; /* Hide outlines completely */
}

/* Apple-style Liquid Glassmorphic Cards */
.card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Tactical Scale-Down feedback when clicked */
.card-glass:active, .btn:active, .portfolio-item:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease-out;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--accent-blue);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-availability {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-availability::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 0 10px #25d366;
}

.badge-geo {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
    margin-left: 8px;
}

/* Apple Liquid Glossy Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-spring);
    border: none;
    outline: none;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-purple {
    background: var(--grad-primary) !important;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

.btn-purple:hover {
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.5) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background: var(--grad-primary);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(0, 210, 255, 0.3);
    color: var(--accent-blue);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.btn-outline:hover {
    background: rgba(0, 210, 255, 0.08);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1712px; /* Perfect alignment with container boundaries */
    z-index: 1000;
    background: rgba(4, 4, 7, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: none !important; /* No stroke */
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, width 0.4s ease, max-width 0.4s ease;
}

header.scrolled {
    top: 12px;
    background: rgba(4, 4, 7, 0.75);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    padding: 6px 24px; /* Thinner padding */
    transition: var(--transition-smooth);
}

.logo {
    font-size: 1.22rem; /* Shrunk logo text size from 1.35rem */
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.logo-text {
    color: var(--text-primary);
}

.logo-dot {
    color: var(--accent-purple);
    font-size: 1.8rem;
    line-height: 0.5;
}

.logo-sub {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link::after {
    display: none !important;
}

.nav-link:hover, .nav-link.active {
    color: #c084fc !important; /* Soft purple highlight */
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6), 0 0 20px rgba(168, 85, 247, 0.3); /* Premium glow */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ==========================================
   HERO SECTION (Large Background Portrait)
   ========================================== */
.hero-section {
    padding: 160px 0 60px; /* Tightened Hero padding to remove giant scroll indicators gaps */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-scroll-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for modern Safari/Chrome mobile */
    z-index: -1;
    pointer-events: none;
    opacity: 0.95; /* High premium visibility */
    transition: opacity 0.4s ease, visibility 0.4s ease;
    
    /* Composite mask: radial feather on edges + linear bottom fade for smooth dissolve */
    mask-image: 
        linear-gradient(to bottom, black 55%, transparent 92%),
        radial-gradient(circle at 65% 50%, rgba(0,0,0,1) 25%, rgba(0,0,0,0.8) 45%, rgba(0,0,0,0) 78%);
    mask-composite: intersect;
    -webkit-mask-image: 
        linear-gradient(to bottom, black 55%, transparent 92%),
        radial-gradient(circle at 65% 50%, rgba(0,0,0,1) 25%, rgba(0,0,0,0.8) 45%, rgba(0,0,0,0) 78%);
    -webkit-mask-composite: destination-in;
}



.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    z-index: 3; /* Above the canvas and readability overlay */
    width: 100%;
}

.hero-content {
    max-width: 960px; /* Widened Hero section content boundary */
    text-align: left;
}

.hero-heading-stack {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
    margin-bottom: 24px;
}

.hero-sub-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.8rem;
    font-weight: 300; /* Thin font weight matching the screenshot */
    color: #b8a9ff; /* Light purple color matching the screenshot */
    text-transform: none;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.hero-title-main {
    font-family: 'Poppins', sans-serif !important;
    font-size: 5.6rem; /* Giant desktop heading */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    background: linear-gradient(to bottom, #a855f7 20%, rgba(168, 85, 247, 0.05) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 0.9;
    margin-bottom: -4px; /* Tight overlap spacing */
}

.hero-title-sub {
    font-family: 'Poppins', sans-serif !important;
    font-size: 5.0rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: #f8fafc;
    line-height: 0.9;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.about-script-note {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--accent-blue);
    transform: rotate(-3deg);
    margin-bottom: 12px;
    display: inline-block;
    letter-spacing: 0.05em;
    opacity: 0.9;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.hero-lead {
    font-size: 1.1rem; /* Shrunk from 1.25rem */
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 780px; /* Widened Hero lead text boundary */
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-actions .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 9999px;
    font-weight: 500;
}

.hero-actions .btn-primary {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    box-shadow: none !important;
}

.hero-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-2px);
    box-shadow: none !important;
}

.hero-actions .btn-outline {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.hero-quick-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-glass);
    padding-top: 36px;
    max-width: 640px; /* Widened quick-stats block */
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 5;
}

.mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-blue);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite ease-in-out;
}

@keyframes scrollMouse {
    0% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0; }
    100% { top: 6px; opacity: 1; }
}

/* Mobile-inline scroll hint — shown only on small screens inside the stats row */
.scroll-hint-mobile {
    display: none; /* hidden on desktop */
    align-items: center;
    justify-content: center;
    margin-left: auto;   /* pushes to right edge of the stats row */
    opacity: 0.6;
    text-decoration: none;
}

.scroll-hint-mouse {
    width: 18px;
    height: 30px;
    border: 2px solid var(--text-muted);
    border-radius: 9px;
    position: relative;
}

.scroll-hint-wheel {
    width: 3px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite ease-in-out;
}

/* ==========================================
   ABOUT & DETAILS SECTION
   ========================================== */
.about-section {
    padding: 40px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.about-info h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.about-info p {
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.strengths-list {
    margin-top: 32px;
}

.strengths-list h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.strengths-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strengths-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.strengths-list li i {
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.about-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-heading-icon {
    font-size: 1.35rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.card-heading-icon i {
    color: var(--accent-blue);
}

.edu-card .meta-item {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.edu-card .meta-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.meta-duration {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.edu-card h5 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

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

/* Languages Dots styling */
.lang-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lang-info {
    display: flex;
    flex-direction: column;
}

.lang-info span {
    font-size: 0.95rem;
    font-weight: 600;
}

.lang-level {
    font-size: 0.75rem;
    color: var(--text-muted) !important;
}

.lang-dots {
    display: flex;
    gap: 6px;
}

.lang-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    opacity: 0.3;
}

.lang-dots .dot.filled {
    background: var(--grad-primary);
    opacity: 1;
}

/* ==========================================
   EXPERIENCE SECTION (TIMELINE)
   ========================================== */
.experience-section {
    padding: 40px 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px; /* Moderate timeline container to avoid extra empty space */
    margin: 0; /* Left align timeline container */
    padding-left: 56px; /* Increased to accommodate logos on the timeline track */
}

/* Static ::after line removed — replaced by JS-driven animated line */
.timeline::after { display: none; }

/* ── Animated Timeline Line Track ── */
.timeline-track {
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    z-index: 1;
    overflow: visible;
}

/* The reveal fill — animated via JS */
.timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;        /* starts hidden, JS drives this to 100% */
    border-radius: 2px;
    background: linear-gradient(
        to bottom,
        #00d2ff 0%,
        #3b82f6 45%,
        #a855f7 100%
    );
    transition: height 0.05s linear;
    will-change: height;
}

/* Glowing tip that sits at the bottom edge of the fill */
.timeline-glow-tip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 4px  2px  rgba(0, 210, 255, 0.95),
        0 0 12px 4px  rgba(59, 130, 246, 0.75),
        0 0 25px 8px  rgba(168, 85, 247, 0.55);
    animation: glowPulse 1.6s ease-in-out infinite;
    will-change: transform, box-shadow;
    /* top is set dynamically by JS */
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow:
            0 0 4px  2px  rgba(0, 210, 255, 0.95),
            0 0 12px 4px  rgba(59, 130, 246, 0.75),
            0 0 25px 8px  rgba(168, 85, 247, 0.55);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow:
            0 0 8px  4px  rgba(0, 210, 255, 1),
            0 0 20px 8px  rgba(59, 130, 246, 0.85),
            0 0 40px 12px rgba(168, 85, 247, 0.65);
        transform: translateX(-50%) scale(1.3);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    z-index: 5 !important; /* Rendered above connector line */
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
    will-change: opacity, transform;
}

/* Override global scroll-reveal.reveal-active to keep timeline items at 0 opacity until the line tip reaches them */
.timeline .timeline-item.scroll-reveal.reveal-active {
    opacity: 0;
    transform: translateY(6px);
}

.timeline .timeline-item.scroll-reveal.reveal-active.active-item {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker-logo {
    position: absolute;
    left: -54px; /* Centered on the vertical line with smaller width */
    top: 12px; /* Aligned vertically with first line of title text */
    width: 36px;
    height: 36px;
    z-index: 12 !important; /* Forces it to sit strictly above vertical line */
    background: #ffffff !important; /* Solid white background covering the line track */
    border: 2px solid var(--border-glass) !important;
    border-radius: 8px !important; /* Premium rounded rectangle shape */
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
    will-change: transform, box-shadow;
}

.timeline-item.active-item .timeline-marker-logo {
    transform: scale(1.18);
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.55), 0 0 10px rgba(0, 210, 255, 0.3);
}

.company-logo-wrap {
    width: 26px;
    height: 26px;
    border-radius: 4px; /* Matching rounded corners inside */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.company-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-item:hover .company-logo-wrap {
    transform: scale(1.1);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

/* Style all timeline markers with solid white backgrounds */
.company-logo-wrap {
    background: #ffffff !important;
    border: none !important;
}

.timeline-item:nth-child(1) .company-logo-wrap img {
    transform: scale(1.05); /* Zoom adjusted to fit logo properly */
    object-fit: contain;
}

.timeline-item:nth-child(2) .company-logo-wrap img {
    transform: scale(1.0);
    object-fit: contain;
}

.timeline-item:nth-child(3) .company-logo-wrap img {
    filter: invert(1); /* Invert white logo to black for white background visibility */
    transform: scale(0.85);
    object-fit: contain;
}

.timeline-item:nth-child(4) .company-logo-wrap img {
    transform: scale(0.85);
    object-fit: contain;
}

.company-logo-wrap.dark-bg {
    background: #11111d;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-content {
    padding: 16px 0px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.timeline-meta {
    flex-grow: 1;
}

.timeline-location-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0;
}

.timeline-content h3 {
    font-size: 1.45rem;
    margin-bottom: 6px;
}

.company-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.company-name i {
    color: var(--text-muted);
}

.timeline-summary {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-details li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 16px;
}

.timeline-details li::before {
    content: '•';
    color: var(--accent-purple);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 0.8;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-section {
    padding: 40px 0;
}

/* Skills & Portfolio Sliding Indicator Tabs styling */
.skills-tab-nav, .portfolio-tabs {
    position: relative;
    display: flex !important; /* Centered block layout container */
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 4px;
    gap: 0;
    width: max-content;
    margin: 0 auto 36px !important; /* Centered block margin */
    backdrop-filter: blur(10px);
}

.tab-slider-indicator, .portfolio-slider-indicator {
    position: absolute;
    top: 4px;
    left: 0;
    bottom: 4px;
    background: var(--text-primary); /* Premium white indicator */
    border-radius: 30px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.18);
}

.tab-btn, .portfolio-tab-btn {
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 30px !important;
    color: var(--text-secondary);
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2; /* Sits above indicator */
}

.tab-btn:hover, .portfolio-tab-btn:hover {
    color: var(--text-primary);
    transform: translateY(0) !important; /* Lock translation shift on hover for slide tabs */
}

.tab-btn.active, .portfolio-tab-btn.active {
    color: #040407 !important; /* Dark color inside white indicator sliding pill */
}

/* Tab Content Transitions */
.skills-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skills-tab-content.active {
    display: block;
    opacity: 1;
}

.skill-compact-card.hidden-row {
    display: none !important;
}

.skills-see-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    width: 100%;
}

/* Compact Grid & Cards */
.skills-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.skill-compact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 16px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: transform 0.3s ease;
}

.skill-compact-card:hover {
    transform: translateY(-3px);
}

/* Small Skill Icons styling */
.skill-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.skill-icon svg,
.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.skill-details {
    display: flex;
    flex-direction: column;
}

.skill-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.skill-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
.portfolio-section {
    padding: 40px 0;
}

/* External Promotion Cards */
.portfolio-external-promo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.promo-card {
    display: flex;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--border-glass);
}

.card-blue-glow:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--shadow-glass), var(--shadow-blue-glow);
}

.card-purple-glow:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: var(--shadow-glass), var(--shadow-purple-glow);
}

.promo-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-text h3 {
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.promo-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.promo-text .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* Sticky Horizontal Scroll Layout for Video Projects */
.portfolio-horizontal-scroll-wrap {
    position: relative;
    width: 100%;
    height: 180vh; /* Reduced height to minimize empty space and speed up translation */
    transition: height 0.3s ease;
}

.portfolio-horizontal-scroll-wrap.disable-horizontal-scroll {
    height: auto !important;
}

.portfolio-sticky-container {
    position: sticky;
    top: 100px; /* Elegant placement relative to navbar */
    height: 600px; /* Fixed height to avoid massive viewport height empty voids */
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.portfolio-horizontal-scroll-wrap.disable-horizontal-scroll .portfolio-sticky-container {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
}

/* Horizontal display for video grid on desktop */
@media (min-width: 769px) {
    .portfolio-horizontal-scroll-wrap:not(.disable-horizontal-scroll) .portfolio-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: max-content;
        gap: 40px;
        padding: 0 40px;
        will-change: transform;
    }

    .portfolio-horizontal-scroll-wrap:not(.disable-horizontal-scroll) .portfolio-item[data-category="video"] {
        width: 960px !important; /* Made video sizing larger & more cinematic */
        flex-shrink: 0 !important;
    }
}

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

.portfolio-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-glass);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.portfolio-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background-color: #0b0b14;
    overflow: hidden;
}

.portfolio-iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    z-index: 1;
    pointer-events: none;
    transform: scale(1.04); /* Crop out third-party player black borders */
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-iframe {
    transform: scale(1.08); /* Hover zoom */
    filter: brightness(1.1);
}

.gradient-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: var(--transition-smooth);
}

.grad-1 { background: linear-gradient(45deg, #1e1b4b, #311042); }
.grad-2 { background: linear-gradient(45deg, #022c22, #0b132b); }
.grad-3 { background: linear-gradient(45deg, #1c1917, #3b0764); }
.grad-4 { background: linear-gradient(45deg, #2e0854, #082f49); }
.grad-5 { background: linear-gradient(45deg, #09090b, #3b0764); }
.grad-6 { background: linear-gradient(45deg, #172554, #1e1b4b); }

.portfolio-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.portfolio-item:hover .portfolio-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-item:hover .gradient-overlay {
    transform: scale(1.08);
    filter: brightness(1.2);
}

.portfolio-info {
    padding: 24px;
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 2;
    background-color: var(--bg-card);
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: inline-block;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.contact-lead {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.details-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0px; /* Transparent layout with zero horizontal padding */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.item-icon {
    width: 38px; /* Compact icon width */
    height: 38px; /* Compact icon height */
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem; /* Shrunk from 1.2rem */
}

.details-item:hover .item-icon {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
}

.item-content span {
    display: block;
    font-size: 0.72rem; /* Shrunk from 0.8rem */
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-content a, .item-content p {
    font-size: 0.92rem; /* Shrunk from 1rem */
    font-weight: 600;
    color: var(--text-primary);
}

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

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.social-links a:hover {
    color: #fff;
    background: var(--grad-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

/* Contact Form elements */
.contact-form-wrap {
    padding: 40px 0px; /* Transparent padding layout */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.contact-form-wrap h3 {
    margin-bottom: 24px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background-color: rgba(5, 5, 8, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.form-feedback {
    margin-top: 16px;
    font-size: 0.9rem;
    display: none;
}

.form-feedback.success {
    color: #10b981;
    display: block;
}

.form-feedback.error {
    color: #ef4444;
    display: block;
}

/* Centered Actions container */
.portfolio-more-actions {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* Glowing liquid-glass Behance redirect button */
.btn-behance-glowing {
    background: linear-gradient(135deg, #0057ff 0%, #002299 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 25px rgba(0, 87, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-spring);
}

.btn-behance-glowing:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 87, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.25);
    color: #ffffff;
}

.btn-behance-glowing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 2;
}

.btn-behance-glowing:hover::before {
    left: 150%;
    transition: left 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   THANK YOU SECTION
   ========================================= */
.thank-you-section {
    padding: 40px 0 0; /* Tightened thank you section */
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--border-glass);
}

.thank-you-container {
    width: 100%;
    max-width: 1760px; /* Widened thank-you container to match layout */
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.thank-you-title {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 850;
    color: #ffffff;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1;
    user-select: none;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.thank-you-sub {
    font-weight: 300;
    text-transform: lowercase;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .thank-you-title {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .thank-you-title {
        font-size: 3.5rem;
    }
}

/* ==========================================
   FOOTER
   ========================================= */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 24px 0; /* Reduced from 40px */
    background-color: #030305;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS (Intersection Observer)
   ========================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(32px); /* Larger offset for that slow premium rise reveal */
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1); /* Slower fluid rise curves */
    will-change: transform, opacity;
}

.scroll-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Entrance Delays (Hadef Partners style) */
.scroll-reveal.stagger-1 { transition-delay: 0.12s; }
.scroll-reveal.stagger-2 { transition-delay: 0.24s; }
.scroll-reveal.stagger-3 { transition-delay: 0.36s; }
.scroll-reveal.stagger-4 { transition-delay: 0.48s; }
.scroll-reveal.stagger-5 { transition-delay: 0.6s; }

/* Small CV Action Button */
.btn-small-cv {
    width: auto !important;
    max-width: max-content !important;
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}



/* Ripple expanding animation */
.loader-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

#intro-loader.fade-out .loader-ripple {
    animation: rippleExpand 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 0.8;
        border-color: var(--accent-blue);
    }
    50% {
        opacity: 0.5;
        border-color: var(--accent-purple);
    }
    100% {
        transform: scale(16);
        opacity: 0;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInAnimation 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content h1.fade-in { animation-delay: 0.2s; }
.hero-lead.fade-in { animation-delay: 0.4s; }
.hero-actions.fade-in { animation-delay: 0.6s; }
.hero-quick-stats.fade-in { animation-delay: 0.8s; }

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Collapsible Content & Read More Toggles (Universal) */
.collapsible-mobile {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

@media (min-width: 769px) {
    /* Always expand Creative Visionary and Languages on desktop */
    .about-info .collapsible-mobile,
    .lang-grid .collapsible-mobile {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
    }
    
    /* Hide expand/collapse toggles for these sections on desktop */
    .about-info .read-more-toggle,
    .lang-grid .read-more-toggle {
        display: none !important;
    }
}

.collapsible-mobile.expanded {
    max-height: 1000px;
    opacity: 1;
}

.read-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition-fast);
}

.read-more-toggle:hover {
    color: #fff;
}

.lang-grid .collapsible-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* ==========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================== */

@media (max-width: 992px) {
    #hero-scroll-canvas {
        opacity: 0.65; /* Enhanced visibility on mobile to see scroll animation clearly */
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 70%) !important;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 70%) !important;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: left; /* Left align hero layout on mobile */
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Left align elements */
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* Fallback */
    }

    .hero-heading-stack {
        line-height: 0.95;
    }

    .hero-sub-title {
        font-size: 1.25rem;
    }

    .hero-title-main {
        font-size: 3.2rem;
        line-height: 0.9;
    }

    .hero-title-sub {
        font-size: 2.8rem;
        line-height: 0.9;
    }

    .hero-handwritten-note {
        display: none;
    }

    .about-script-note {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .hero-lead {
        font-size: 1.05rem; /* Shrunk from 1.25rem */
        max-width: 100%;
        margin-left: 0;
        margin-right: auto;
        margin-bottom: 24px;
        text-align: left;
    }
    
    .hero-quick-stats {
        justify-content: flex-start; /* Left align stats */
        gap: 24px;
        padding-top: 24px;
        text-align: left;
        align-items: center; /* vertically center the inline mouse widget */
    }

    /* Hide the absolute-positioned scroll indicator — it overlaps stats on mobile */
    .scroll-indicator {
        display: none;
    }

    /* Show the compact inline version inside the stats row instead */
    .scroll-hint-mobile {
        display: flex;
    }

    .stat-num {
        font-size: 1.4rem; /* Shrunk from 2rem */
    }

    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.02em;
    }

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

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

@media (max-width: 768px) {
    body {
        font-size: 0.88rem; /* Slightly smaller base text */
    }

    header {
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        background: rgba(4, 4, 7, 0.85) !important;
        padding: 4px 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    }

    .header-container {
        padding: 8px 16px !important; /* Extremely tight compact container height on mobile */
    }

    .logo {
        font-size: 1.05rem !important; /* Smaller logo name on phone viewports */
    }

    .logo-dot {
        font-size: 1.3rem !important;
    }

    .menu-toggle {
        display: flex;
        width: 20px !important; /* Compact width */
        height: 13px !important; /* Compact height */
    }

    .menu-toggle .bar {
        height: 1.5px !important; /* Thinner line elements */
        border-radius: 1px !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 18, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        border-left: 1px solid var(--border-glass);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 28px;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg) !important;
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0 !important;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg) !important;
    }

    .section-title h2 {
        font-size: 1.75rem; /* Shrunk from 2.5rem */
    }

    .section-title {
        margin-bottom: 40px;
    }

    /* Smaller, tighter layouts for cards */
    .card-glass {
        padding: 20px !important;
    }
    /* Collapsible content universal layout is active */
    .read-more-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--accent-blue);
        font-weight: 600;
        font-size: 0.82rem;
        cursor: pointer;
        margin-top: 14px;
        transition: color 0.3s ease, text-shadow 0.3s ease;
        user-select: none;
    }

    .read-more-toggle:hover {
        color: #fff;
        text-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
    }

    .read-more-toggle i {
        font-size: 0.75rem;
        transition: transform 0.3s ease;
    }

    /* About Section reductions */
    .about-info h3 {
        font-size: 1.35rem; /* Shrunk from 1.8rem */
        margin-bottom: 12px;
    }

    .about-info p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .strengths-list {
        margin-top: 16px;
    }

    .strengths-list ul {
        gap: 8px;
    }

    .strengths-list li {
        font-size: 0.88rem;
    }

    /* Education card reductions */
    .edu-card .meta-item {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .edu-card h5 {
        font-size: 0.95rem;
    }

    /* Languages card spacing is now universal */

    /* Experience section (Shorter Version overrides) */
    .timeline-summary {
        margin-bottom: 0px;
    }

    .timeline-content h3 {
        font-size: 1.15rem;
    }

    .company-name {
        margin-bottom: 8px;
        font-size: 0.88rem;
    }

    /* Skills: Icons only (No name/tag text) */
    .skills-compact-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 icons per row */
        justify-items: center;
        gap: 16px 8px;
    }

    .skill-compact-card {
        padding: 8px 4px;
        background: transparent;
        border: none;
        box-shadow: none;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .skill-compact-card:hover {
        transform: translateY(-2px);
        box-shadow: none;
    }

    .skill-icon {
        width: 44px; /* Increased touch targets */
        height: 44px;
        border-radius: 10px;
    }

    .skill-details {
        display: flex !important; /* Reveal title */
        flex-direction: column;
        align-items: center;
    }

    .skill-details h4 {
        font-size: 0.54rem !important; /* Shrunk text below icon to be tiny */
        color: var(--text-secondary);
        margin: 0;
        font-weight: 500;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 62px;
    }

    .skill-tag {
        display: none !important; /* Hide tags to save space */
    }

    /* Portfolio Stacked */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .promo-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 16px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .skills-tab-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .tab-btn {
        justify-content: center;
    }

    .skills-compact-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 icons per row for small mobile */
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem; /* Shrunk from 2.2rem */
    }
    
    .hero-quick-stats {
        gap: 16px !important;
        padding-top: 16px !important;
    }
    .stat-num {
        font-size: 1.15rem !important;
    }
    .stat-label {
        font-size: 0.58rem !important;
        letter-spacing: 0 !important;
    }

    .hero-actions {
        flex-direction: row !important; /* 2x2 horizontal side-by-side buttons */
        width: 100% !important;
        gap: 10px !important;
    }
    
    .hero-actions .btn {
        flex: 1 !important;
        padding: 10px 8px !important;
        font-size: 0.74rem !important;
        white-space: nowrap !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-content {
        padding: 20px;
    }
}

/* Custom spacing reductions for Apple mobile and tablet viewports */
@media (max-width: 992px) {
    .about-section,
    .experience-section,
    .skills-section,
    .portfolio-section,
    .contact-section,
    .thank-you-section {
        padding: 40px 0 !important;
    }
    .hero-section {
        padding: 130px 0 40px !important;
    }
}

@media (max-width: 768px) {
    .about-section,
    .experience-section,
    .skills-section,
    .portfolio-section,
    .contact-section,
    .thank-you-section {
        padding: 30px 0 !important;
    }
    .hero-section {
        padding: 90px 0 30px !important;
    }
    .hero-content {
        margin-top: 240px !important; /* Shift hero text down on mobile so the scroll canvas is visible above it */
    }

    /* Decent-sized buttons & horizontal non-wrap tabs on mobile */
    .btn {
        padding: 9px 20px !important;
        font-size: 0.82rem !important;
        border-radius: 9999px !important;
    }

    .skills-tab-nav, .portfolio-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        max-width: 100% !important;
        border-radius: 30px !important;
        padding: 4px !important;
        gap: 0 !important;
        width: max-content !important;
        margin: 0 auto 24px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    .skills-tab-nav::-webkit-scrollbar, .portfolio-tabs::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar Chrome/Safari */
    }

    .tab-btn, .portfolio-tab-btn {
        flex-shrink: 0 !important; /* Prevent tab buttons from wrapping or shrinking */
        padding: 6px 12px !important; /* Reduced padding for mobile fits */
        font-size: 0.74rem !important; /* Shrunk tab text size */
    }

    /* Compact columns & layouts on mobile */
    .timeline {
        padding-left: 44px !important; /* Safety gap from mobile screen edge */
    }
    
    .timeline::after {
        left: 22px !important; /* Center vertical track line relative to scaled items */
        z-index: 1 !important; /* Sits behind markers logo */
    }
    
    .timeline-marker-logo {
        left: -36px !important; /* Centers exactly on the vertical line track with smaller width */
        top: 12px !important; /* Aligned vertically with first line of title text */
        width: 28px !important;
        height: 28px !important;
        z-index: 5 !important; /* Overlaps vertical connector line */
        border-radius: 6px !important; /* Premium rounded rectangle shape */
    }

    .company-logo-wrap {
        width: 20px !important;
        height: 20px !important;
        border-radius: 4px !important; /* Premium rounded rectangle shape */
        background: #fff !important; /* Clear overlap background block */
    }

    /* Collapse experience summaries by default on mobile */
    .timeline-content .timeline-summary {
        display: none !important;
    }

    .timeline-content.details-expanded .timeline-summary {
        display: block !important;
        animation: fadeIn 0.3s ease forwards;
    }

    /* 2x2 Google Drive and Behance Promo Grid on Mobile */
    .portfolio-external-promo {
        grid-template-columns: 1fr 1fr !important; /* Force side-by-side grid */
        gap: 12px !important;
        margin-bottom: 24px !important;
    }

    .promo-card {
        flex-direction: column !important; /* Stack card children vertically */
        align-items: center !important;
        text-align: center !important;
        padding: 16px 10px !important;
        gap: 8px !important;
    }

    .promo-icon {
        font-size: 1.8rem !important; /* Scale down folder/behance icons */
    }

    .promo-text h3 {
        font-size: 0.82rem !important; /* Small clean titles */
        margin-bottom: 0 !important;
    }

    .promo-text p {
        display: none !important; /* Avoid descriptions completely as requested */
    }

    .promo-card .btn {
        padding: 6px 8px !important;
        font-size: 0.7rem !important;
        border-radius: 6px !important;
        margin-top: 4px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .portfolio-horizontal-scroll-wrap:not(.disable-horizontal-scroll) .portfolio-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        gap: 16px !important;
        padding: 0 16px !important;
        will-change: transform;
    }

    .portfolio-horizontal-scroll-wrap:not(.disable-horizontal-scroll) .portfolio-item[data-category="video"] {
        width: 340px !important;
        flex-shrink: 0 !important;
    }

    .portfolio-sticky-container {
        position: sticky !important;
        top: 90px !important;
        height: 280px !important; /* Match 16:9 mobile video heights to remove empty voids */
        display: flex !important;
        align-items: center !important;
    }

    .portfolio-horizontal-scroll-wrap:not(.disable-horizontal-scroll) {
        height: 125vh !important; /* Tight scroll distance */
    }

    /* Smaller compact font sizes for all mobile text elements */
    body {
        font-size: 0.85rem !important;
    }

    .section-title h2 {
        font-size: 1.45rem !important;
        letter-spacing: 0.02em;
    }

    .section-title .sub-title {
        font-size: 0.75rem !important;
        letter-spacing: 0.08em;
    }

    .hero-content h1 {
        font-size: 1.55rem !important;
        line-height: 1.2;
    }

    .hero-availability {
        font-size: 0.6rem !important; /* Compact minimal size for phone views */
        letter-spacing: 0.12em !important;
        margin-bottom: 16px !important;
    }
    
    .hero-lead {
        font-size: 0.84rem !important;
        line-height: 1.5;
    }

    .about-info h3 {
        font-size: 1.2rem !important;
    }

    .about-info p {
        font-size: 0.85rem !important;
        line-height: 1.5;
    }

    .card-glass h3.card-heading-icon {
        font-size: 1.12rem !important;
        margin-bottom: 16px !important;
    }

    .timeline-content h3 {
        font-size: 1.12rem !important;
    }

    .company-name {
        font-size: 0.85rem !important;
    }

    .timeline-details li {
        font-size: 0.82rem !important;
        line-height: 1.4;
    }

    .skills-tab-content h4 {
        font-size: 0.54rem !important; /* Shrunk text under icons to fit mobile grid */
    }

    .skill-compact-card h5 {
        font-size: 0.84rem !important;
    }

    .skill-compact-card span {
        font-size: 0.72rem !important;
    }

    .contact-info h2 {
        font-size: 1.4rem !important;
    }

    .contact-info p {
        font-size: 0.85rem !important;
    }

    .contact-item h4 {
        font-size: 0.9rem !important;
    }

    .contact-item p, .contact-item a {
        font-size: 0.82rem !important;
    }
}

/* =====================================================
   MOBILE HERO TEXT — smaller on phones only
   ===================================================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.15;
    }
    .hero-lead {
        font-size: 0.92rem !important;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.65rem !important;
    }
    .hero-lead {
        font-size: 0.88rem !important;
    }
}

/* =====================================================
   VIDEO MODAL POPUP
   ===================================================== */
.vmodal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vmodal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vmodal-box {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Cinematic larger preview window */
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.05);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.vmodal-overlay.active .vmodal-box {
    transform: scale(1) translateY(0);
}

/* Close × button */
.vmodal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.vmodal-close:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: transparent;
    transform: scale(1.1);
}

/* 16:9 responsive player */
.vmodal-player-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.vmodal-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Drive CTA strip */
.vmodal-footer {
    display: flex;
    justify-content: center;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.vmodal-drive-btn {
    font-size: 0.9rem;
    padding: 10px 24px;
}

/* Prevent background scroll when modal open */
body.vmodal-open {
    overflow: hidden;
}

/* Floating WhatsApp FAB Styling */
#whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #25d366;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

#whatsapp-fab.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#whatsapp-fab:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.45), 0 0 25px rgba(37, 211, 102, 0.3);
    transform: translateY(-3px) scale(1.05);
}

#whatsapp-fab:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    #whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

/* Particles Background Canvas */
#particles-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; /* Sits underneath content */
    pointer-events: none;
}

/* Core Capabilities Custom FA Icon styling */
.FA-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Responsive adjustment for right-aligned experience date row */
@media (max-width: 576px) {
    .timeline-location-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .timeline-date {
        align-self: flex-start;
        margin-left: 0;
        margin-top: 4px;
    }
}

/* Consolidated premium sliding tabs used for both portfolio and skills nav */

/* Blur dummy graphic design mockups as requested by user */
.portfolio-item[data-category="graphic"] .portfolio-thumb img {
    filter: blur(10px) brightness(0.7);
    transition: filter 0.3s ease;
}

.portfolio-item[data-category="graphic"]:hover .portfolio-thumb img {
    filter: blur(4px) brightness(0.85);
}

.portfolio-item a {
    text-decoration: none;
    color: inherit;
}

/* Luxury Clean Intro Loader */
#intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Determined by the panels underneath */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: visibility 1.2s ease;
}

#intro-loader.fade-out {
    visibility: hidden;
    pointer-events: none;
}

/* Left and Right sliding panels */
#intro-loader::before,
#intro-loader::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #03000a; /* Deep luxury dark background */
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

#intro-loader::before {
    left: 0;
}

#intro-loader::after {
    right: 0;
}

/* Slide panels away left and right */
#intro-loader.fade-out::before {
    transform: translateX(-100%);
}

#intro-loader.fade-out::after {
    transform: translateX(100%);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10; /* Above the panels */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#intro-loader.fade-out .loader-content {
    opacity: 0;
    transform: translateY(-24px);
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    animation: loaderReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.loader-line {
    width: 0;
    height: 1.5px;
    background: var(--grad-primary);
    animation: loaderProgress 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loaderReveal {
    0% {
        opacity: 0;
        letter-spacing: 0.05em;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        letter-spacing: 0.24em; /* Luxury cinematic tracking expand */
        transform: translateY(0);
    }
}

@keyframes loaderProgress {
    0% {
        width: 0;
    }
    100% {
        width: 120px;
    }
}

/* Site Entrance Cinematic Stagger Reveal */
.hero-content, .hero-availability, .hero-quick-stats {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#header {
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-revealed .hero-content, 
.site-revealed .hero-availability, 
.site-revealed .hero-quick-stats {
    opacity: 1;
    transform: translateY(0);
}

.site-revealed #header {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Delay configs for staggered clean motion */
.site-revealed #header {
    transition-delay: 0.1s;
}
.site-revealed .hero-availability {
    transition-delay: 0.25s;
}
.site-revealed .hero-content {
    transition-delay: 0.4s;
}
.site-revealed .hero-quick-stats {
    transition-delay: 0.55s;
}

/* =====================================================
   TOAST POPUPS & VIEWPORT NOTICE
   ===================================================== */
.toast-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast-popup.toast-error {
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 500;
}

.toast-content i {
    color: #00ffcc;
    font-size: 1.2rem;
}

.toast-popup.toast-error i {
    color: #ef4444;
}

/* Mobile Suggestion Overlay */
.mobile-notice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 0, 10, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-notice-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-notice-card {
    position: relative;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-notice-overlay.active .mobile-notice-card {
    transform: scale(1);
}

.mobile-notice-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
}

.mobile-notice-icon {
    font-size: 2.2rem;
    color: #c084fc;
    margin-bottom: 12px;
}

.mobile-notice-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
    font-family: var(--font-heading);
}

.mobile-notice-card p {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .toast-popup {
        left: 20px;
        right: 20px;
        bottom: 20px;
        text-align: center;
        justify-content: center;
    }
    .toast-content {
        justify-content: center;
    }
}

/* ==========================================
   BRANDS MARQUEE SECTION
   ========================================== */
.brands-section {
    padding: 60px 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.marquee-container {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 24px 20px; /* Thinner padding */
    background: transparent !important; /* Transparent background */
    border: none !important; /* No stroke */
    border-radius: 0;
    box-shadow: none !important; /* No shadow */
    /* Premium visual blur/fade at the edges of the scrolling ticker */
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 80px;
}

.marquee-left {
    animation: scrollMarqueeLeft 90s linear infinite;
}

.marquee-right {
    animation: scrollMarqueeRight 90s linear infinite;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 150px;
    flex-shrink: 0;
}

.brand-logo img {
    height: auto;
    width: auto;
    max-height: 40px; /* Equal sizing limits */
    max-width: 120px;
    object-fit: contain;
    /* Soft grayscale blending by default */
    filter: grayscale(1) brightness(0.8) opacity(0.5);
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.brand-logo:hover img {
    filter: grayscale(0) brightness(1) opacity(1);
}

/* OUJ Logo Visibility Fix */
.brand-logo img[src*="OUJ.png"] {
    filter: brightness(0) invert(1) opacity(0.75) !important;
}
.brand-logo:hover img[src*="OUJ.png"] {
    filter: brightness(0) invert(1) opacity(1) !important;
}

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

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

/* ==========================================
   VERTICAL PORTFOLIO VIDEO & MODAL STYLING
   ========================================== */
.portfolio-item.vertical-video .portfolio-thumb {
    aspect-ratio: 9 / 16 !important;
}

@media (min-width: 769px) {
    .portfolio-horizontal-scroll-wrap:not(.disable-horizontal-scroll) .portfolio-item[data-category="video"].vertical-video {
        width: 281px !important; /* Matches height of 500px at 9:16 aspect ratio */
    }
}

/* Vertical Video Modal Adjustments */
.vmodal-overlay.vmodal-vertical .vmodal-box {
    max-width: 420px; /* Thinner box for vertical videos */
}

.vmodal-overlay.vmodal-vertical .vmodal-player-wrap {
    padding-top: 177.77%; /* 9:16 aspect ratio */
}

/* ==========================================
   MOBILE DESIGN REALIGNMENT (Videos & Brands)
   ========================================== */
@media (max-width: 768px) {
    /* Prevent vertical videos from overflowing the 280px container */
    .portfolio-horizontal-scroll-wrap:not(.disable-horizontal-scroll) .portfolio-item[data-category="video"].vertical-video {
        width: 140px !important;
    }
    
    /* Make brand logos smaller on mobile */
    .brand-logo {
        height: 35px !important;
        width: 90px !important;
    }
    .brand-logo img {
        max-height: 25px !important;
        max-width: 75px !important;
    }
    
    /* Reduce marquee gap on mobile */
    .marquee-track {
        gap: 40px !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    /* Hide services past the first 9 (3x3 grid) on mobile unless expanded */
    .services-grid:not(.expanded) .service-card:nth-child(n+10) {
        display: none !important;
    }
    
    /* Center/stretch the 10th card if expanded on mobile (3 columns) */
    .services-grid.expanded .service-card:last-child {
        grid-column: span 3;
    }
    
    .service-card {
        padding: 12px 6px !important;
        border-radius: 12px !important;
    }
    
    .service-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
        margin-bottom: 6px !important;
    }
    
    .service-card h3 {
        font-size: 0.68rem !important;
        margin-top: 2px !important;
        margin-bottom: 0 !important;
        line-height: 1.25 !important;
    }
    
    /* No description text on mobile view */
    .service-card p {
        display: none !important;
    }
    
    .services-more-btn-wrap {
        display: flex !important; /* Show toggle button on mobile */
        margin-top: 24px;
    }
}

/* ==========================================
   SERVICES SECTION STYLING
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 40px 30px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(168, 85, 247, 0.4) !important;
    box-shadow: 0 20px 45px rgba(168, 85, 247, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.service-icon {
    font-size: 2.2rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary); /* Slate-400 for clean secondary text style */
    line-height: 1.6;
}

.services-more-btn-wrap {
    display: none; /* Hidden on desktop by default */
    justify-content: center;
    margin-top: 40px;
}
