/* =========================================
   FONTS — loaded via HTML <link> only
   ========================================= */
:root {
    --bg-white:       #ffffff;
    --bg-off-white:   #f0f4ff;
    --text-logo:      #0f172a;
    --text-dark:      #1e293b;
    --text-nav:       #334155;
    --text-muted:     #64748b;
    --accent-blue:    #3b82f6;
    --accent-purple:  #8b5cf6;
    --accent-pink:    #ec4899;
    --accent-green:   #10b981;
    --bg-glass:       rgba(255,255,255,0.85);
    --shadow-soft:    0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover:   0 20px 40px rgba(59,130,246,0.15);
    --font-code:      'Fira Code', monospace;
    --font-display:   'Syne', sans-serif;
    --font-body:      'DM Sans', sans-serif;

    /* Aurora gradient stops */
    --aurora-1: rgba(59,130,246,0.12);
    --aurora-2: rgba(139,92,246,0.10);
    --aurora-3: rgba(236,72,153,0.08);
    --aurora-4: rgba(16,185,129,0.07);
}

::selection {
    background: rgba(59,130,246,0.2);
    color: var(--accent-blue);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-off-white);
    font-family: var(--font-body);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
    cursor: none;
}

/* ─── Reduce motion override ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    body { cursor: auto; }
    #cursor-dot, #cursor-ring { display: none; }
}

/* =========================================
   PAGE LOADER
   ========================================= */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--text-logo);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: min(420px, 90vw);
}
.loader-logo {
    font-family: var(--font-code);
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
    animation: loader-pulse 2s ease-in-out infinite;
}
.loader-logo .l-bracket { color: var(--accent-purple); }
.loader-logo .l-name    { color: var(--accent-blue); }
@keyframes loader-pulse {
    0%,100% { opacity: 0.85; }
    50%      { opacity: 1; text-shadow: 0 0 30px rgba(59,130,246,0.6); }
}

.loader-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    overflow: hidden;
}
.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    border-radius: 99px;
    transition: width 0.15s ease;
    position: relative;
}
.loader-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.5));
    border-radius: 99px;
    animation: bar-shimmer 1.2s ease-in-out infinite;
}
.loader-text {
    font-family: var(--font-code);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================
   SCROLL PROGRESS BAR
   ========================================= */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    z-index: 99999;
    background: transparent;
}
#scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    border-radius: 0 99px 99px 0;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

/* =========================================
   MAGNETIC CURSOR
   ========================================= */
#cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    mix-blend-mode: multiply;
    will-change: left, top;
}

#cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(59,130,246,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease,
                border-color 0.2s ease, background 0.2s ease,
                opacity 0.2s ease;
    will-change: left, top;
}

body.cursor-hover #cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
}
body.cursor-hover #cursor-ring {
    width: 52px;
    height: 52px;
    background: rgba(139,92,246,0.06);
    border-color: var(--accent-purple);
}
body.cursor-click #cursor-dot {
    transform: translate(-50%,-50%) scale(0.5);
    background: var(--accent-pink);
}
body.cursor-click #cursor-ring {
    transform: translate(-50%,-50%) scale(0.85);
    border-color: var(--accent-pink);
}

/* =========================================
   NOISE TEXTURE OVERLAY
   ========================================= */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* =========================================
   NEURAL CANVAS
   ========================================= */
#neural-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* =========================================
   AURORA BACKGROUND
   ========================================= */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: aurora-drift 25s ease-in-out infinite alternate;
    mix-blend-mode: multiply;
}
.aurora-orb:nth-child(1) {
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--aurora-1), transparent 70%);
    top: -200px; left: -150px;
    animation-duration: 28s;
}
.aurora-orb:nth-child(2) {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--aurora-2), transparent 70%);
    top: 30%; right: -100px;
    animation-delay: -8s; animation-duration: 22s;
}
.aurora-orb:nth-child(3) {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--aurora-3), transparent 70%);
    bottom: 0; left: 20%;
    animation-delay: -14s; animation-duration: 32s;
}
.aurora-orb:nth-child(4) {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--aurora-4), transparent 70%);
    bottom: 20%; right: 15%;
    animation-delay: -5s; animation-duration: 18s;
}
.aurora-orb:nth-child(5) {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(16,185,129,0.06), transparent 70%);
    top: 60%; left: 5%;
    animation-delay: -10s; animation-duration: 26s;
}
@keyframes aurora-drift {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    25%  { transform: translate(80px, 60px) scale(1.12) rotate(5deg); }
    50%  { transform: translate(40px, 120px) scale(0.92) rotate(-3deg); }
    75%  { transform: translate(100px, 30px) scale(1.08) rotate(8deg); }
    100% { transform: translate(60px, 90px) scale(1.04) rotate(-6deg); }
}

/* =========================================
   SCROLL REVEAL BLOCKS
   ─────────────────────────────────────────
   FIX BUG 4 & 8:
   The transition here is the CSS fallback.
   GSAP overrides this with inline styles.
   The key fix: we no longer toggle this class
   off (see script.js initScrollReveal fix).
   Once 'is-visible' is added it stays forever,
   so content is always visible after first reveal.
   ========================================= */
.reveal-block {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity  0.7s cubic-bezier(0.4,0,0.2,1) var(--rd, 0s),
        transform 0.7s cubic-bezier(0.4,0,0.2,1) var(--rd, 0s);
}
.reveal-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    z-index: 1000;
    transition: top 0.45s cubic-bezier(0.4,0,0.2,1),
                padding 0.4s ease,
                background 0.4s ease,
                box-shadow 0.4s ease;
}
.navbar.sticky {
    padding: 12px 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 30px rgba(0,0,0,0.04);
}
.navbar.navbar-hidden { top: -100px; box-shadow: none; }

.logo-wrapper { position: relative; text-decoration: none; display: inline-block; }

.code-text {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-logo);
    letter-spacing: -1px;
    transition: letter-spacing 0.3s ease;
}
.method  { color: var(--accent-blue);   transition: 0.3s; }
.brackets{ color: var(--accent-purple); transition: 0.3s; }

.logo-wrapper:hover .code-text { letter-spacing: 0; }
.logo-wrapper:hover .method    { text-shadow: 0 0 25px rgba(59,130,246,0.7); }
.logo-wrapper:hover .brackets  { animation: pulse-brackets 0.8s infinite alternate; color: var(--accent-pink); }
@keyframes pulse-brackets {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.2); }
}

.logo-tooltip {
    position: absolute;
    bottom: -22px; left: 0;
    font-size: 0.72rem;
    font-family: var(--font-code);
    color: var(--accent-green);
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.35s cubic-bezier(0.68,-0.55,0.27,1.55);
    pointer-events: none;
    white-space: nowrap;
}
.logo-wrapper:hover .logo-tooltip { opacity: 1; transform: translateY(0); }

.nav-link {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-nav) !important;
    position: relative;
    transition: color 0.3s;
    margin: 0 6px;
    letter-spacing: 0.01em;
    text-decoration: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-link:hover,
.nav-link.active               { color: var(--accent-blue) !important; }
.nav-link:hover::after,
.nav-link.active::after        { width: 100%; }

.btn-liquid {
    position: relative;
    padding: 10px 30px;
    text-decoration: none;
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: 50px;
    overflow: hidden;
    background: var(--text-logo);
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-soft);
    display: inline-block;
}
.btn-liquid span { position: relative; z-index: 2; }
.liquid {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    border-radius: 40%;
    z-index: 1;
    animation: liquid-spin 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease, top 0.5s ease;
}
@keyframes liquid-spin { to { transform: rotate(360deg); } }
.btn-liquid:hover .liquid { opacity: 0.9; top: -70%; }
.btn-liquid:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: white; }

.navbar-toggler {
    border: none;
    font-size: 1.5rem;
    color: var(--text-logo);
    padding: 0.5rem;
    cursor: pointer;
}
.navbar-toggler:focus { box-shadow: none; outline: none; }

/* =========================================
   HERO
   ========================================= */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

/* Animated grid */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(59,130,246,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    animation: grid-pulse 8s ease-in-out infinite;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
@keyframes grid-pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

/* ── Hero data particles (floating code words) ── */
.hero-data-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.dp {
    position: absolute;
    left: var(--x, 50%);
    top:  var(--y, 50%);
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: var(--accent-blue);
    opacity: 0.12;
    white-space: nowrap;
    user-select: none;
}

/* ── Badge ── */
.badge-wrapper { animation: fadeUp 0.8s ease-out both; }
.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 600;
    border: 1px solid rgba(59,130,246,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.dot-online {
    width: 8px; height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: blink-dot 2s infinite;
}
@keyframes blink-dot {
    0%,100%{ opacity:1; transform:scale(1);   box-shadow: 0 0 10px var(--accent-green); }
    50%    { opacity:0.5; transform:scale(0.7); box-shadow: 0 0 4px  var(--accent-green); }
}

/* ── Title ── */
.hero-title {
    font-family: var(--font-display);
    font-size: 4.4rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.05;
    margin-bottom: 20px;
    margin-top: 20px;
    animation: fadeUp 0.8s ease-out 0.2s both;
    letter-spacing: -0.03em;
}
.highlight-name {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-flow 5s linear infinite;
    display: inline-block;
    position: relative;
    cursor: none;
    transition: letter-spacing 0.45s cubic-bezier(0.34,1.56,0.64,1),
                filter 0.4s ease;
}
@keyframes gradient-flow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ── Subtitle / typewriter ── */
.hero-subtitle {
    font-family: var(--font-code);
    font-size: 1.45rem;
    color: var(--text-nav);
    font-weight: 500;
    margin-bottom: 25px;
    animation: fadeUp 0.8s ease-out 0.4s both;
}
.txt-type {
    color: var(--accent-purple);
    border-right: 3px solid var(--accent-purple);
    padding-right: 4px;
    animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor {
    0%,100%{ border-color: transparent; }
    50%    { border-color: var(--accent-purple); }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 44px;
    animation: fadeUp 0.8s ease-out 0.6s both;
}

/* ── CTA buttons ── */
.btn-group-hero {
    display: flex;
    gap: 20px;
    align-items: center;
    animation: fadeUp 0.8s ease-out 0.8s both;
}

.btn-hire {
    position: relative;
    padding: 16px 44px;
    background: var(--text-logo);
    color: white;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 25px rgba(15,23,42,0.25);
    border: 1px solid transparent;
    display: inline-block;
}
.btn-hire span { position: relative; z-index: 2; }
.btn-hire .wave {
    position: absolute;
    top: 100%; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, var(--accent-blue), var(--accent-purple));
    transition: 0.4s cubic-bezier(0.4,0,0.2,1);
    border-radius: 50% 50% 0 0;
    z-index: 1;
    transform: scaleY(0);
    transform-origin: bottom;
}
.btn-hire:hover .wave    { top: 0; transform: scaleY(1.5); border-radius: 0; }
.btn-hire:hover          { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(59,130,246,0.32); color: white; }

.btn-work {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-display);
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
}
.btn-work:hover   { color: var(--accent-blue); background: rgba(59,130,246,0.06); }
.btn-work i       { transition: transform 0.3s; }
.btn-work:hover i { transform: translateX(5px); }

/* ── Tech stack ── */
.tech-stack {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid rgba(0,0,0,0.06);
    animation: fadeUp 0.8s ease-out 1s both;
}
.tech-stack span { font-weight: 600; color: var(--text-dark); font-size: 0.88rem; }
.tech-stack .icons { display: flex; gap: 16px; }
.tech-stack .icons i {
    font-size: 1.6rem;
    color: #94a3b8;
    transition: 0.35s cubic-bezier(0.34,1.56,0.64,1);
    cursor: none;
}
.tech-stack .icons i:hover {
    color: var(--accent-blue);
    transform: translateY(-6px) scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(59,130,246,0.4));
}

/* =========================================
   AI SPHERE
   ========================================= */
.hero-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
    z-index: 2;
}
.ai-visual-wrapper {
    position: relative;
    width: 420px; height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ai-sphere {
    position: relative;
    width: 300px; height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
}
.ring-1 {
    width: 100%; height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--accent-blue);
    border-bottom-color: var(--accent-purple);
    animation: spin-right 10s linear infinite;
    box-shadow: 0 0 30px rgba(59,130,246,0.12), inset 0 0 30px rgba(59,130,246,0.04);
}
.ring-2 {
    width: 72%; height: 72%;
    border: 2px solid transparent;
    border-top-color: var(--accent-pink);
    border-bottom-color: var(--accent-green);
    animation: spin-left 6s linear infinite;
}
.ring-3 {
    width: 115%; height: 115%;
    border: 1px dashed rgba(59,130,246,0.2);
    animation: spin-right 22s linear infinite;
}
.ring-4 {
    width: 55%; height: 55%;
    border: 1.5px solid transparent;
    border-left-color: var(--accent-blue);
    border-right-color: var(--accent-pink);
    animation: spin-left 4s linear infinite;
    opacity: 0.7;
}
.ring-5 {
    width: 132%; height: 132%;
    border: 1px solid rgba(139,92,246,0.12);
    animation: spin-left 35s linear infinite;
}

/* Orbiting particles */
.orbit-particles { position: absolute; inset: 0; }
.particle {
    position: absolute;
    width: 7px; height: 7px;
    border-radius: 50%;
    top: 50%; left: 50%;
    margin: -3.5px 0 0 -3.5px;
    animation: orbit-particle 8s linear infinite;
    box-shadow: 0 0 12px currentColor;
}
.p1 { background: var(--accent-blue);   color: var(--accent-blue);   animation-delay: 0s; }
.p2 { background: var(--accent-purple); color: var(--accent-purple); animation-delay: -2s; }
.p3 { background: var(--accent-pink);   color: var(--accent-pink);   animation-delay: -4s; }
.p4 { background: var(--accent-green);  color: var(--accent-green);  animation-delay: -6s; }
.p5 {
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    background: var(--accent-blue);
    color: var(--accent-blue);
    animation: orbit-particle 5s linear infinite;
    animation-delay: -1s;
}
.p6 {
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    background: var(--accent-pink);
    color: var(--accent-pink);
    animation: orbit-particle 5s linear infinite;
    animation-delay: -3.5s;
}
@keyframes orbit-particle {
    from { transform: rotate(0deg)   translateX(165px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(165px) rotate(-360deg); }
}

.core-glow {
    width: 130px; height: 130px;
    background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.9), var(--accent-blue) 30%, var(--accent-purple));
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.8;
    animation: pulse-core 3.5s ease-in-out infinite;
}
.core-inner {
    position: absolute;
    width: 40px; height: 40px;
    background: radial-gradient(circle, white 20%, var(--accent-blue) 60%, transparent);
    border-radius: 50%;
    animation: pulse-core 3.5s ease-in-out infinite;
    animation-delay: -1.75s;
}
@keyframes pulse-core {
    0%,100% { transform: scale(0.88); opacity: 0.65; }
    50%      { transform: scale(1.12); opacity: 0.92; }
}

/* ── Float cards ── */
.float-card {
    position: absolute;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    padding: 12px 20px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.7);
    z-index: 10;
    animation: float 5s ease-in-out infinite;
}
.float-card h3    { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin: 0; color: var(--text-dark); }
.float-card small { font-size: 0.78rem; color: var(--text-muted); }

.card-ai   { top: 20px;  left: -10px;  border-left: 4px solid var(--accent-blue); }
.card-code { bottom: 40px; right: -10px; border-left: 4px solid var(--accent-pink); animation-delay: 2s; }

/* FIX: card-data uses float-middle so translateY(-50%) centering isn't
   overwritten by the standard float animation transform */
.card-data {
    top: 50%; right: -30px;
    transform: translateY(-50%);
    border-left: 4px solid var(--accent-green);
    animation: float-middle 5s ease-in-out infinite;
    animation-delay: 1s;
}
@keyframes float-middle {
    0%,100% { transform: translateY(calc(-50% + 0px)); }
    50%      { transform: translateY(calc(-50% - 16px)); }
}

.icon-box {
    width: 44px; height: 44px;
    background: #eff6ff;
    color: var(--accent-blue);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.icon-box.purple { background: #f5f3ff; color: var(--accent-purple); }
.icon-box.green  { background: #ecfdf5; color: var(--accent-green); }

/* ── Scroll indicator ── */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeUp 1s ease 1.2s both;
    z-index: 2;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}
.scroll-indicator span {
    font-family: var(--font-code);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}
@keyframes scroll-pulse {
    0%,100% { transform: scaleY(1);   opacity: 0.5; }
    50%     { transform: scaleY(1.4); opacity: 1; }
}

/* ── Global keyframes ── */
@keyframes spin-right { to { transform: rotate(360deg); } }
@keyframes spin-left  { to { transform: rotate(-360deg); } }
@keyframes float      { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-16px); } }
@keyframes fadeUp     { from{ opacity:0; transform:translateY(38px); } to{ opacity:1; transform:translateY(0); } }
@keyframes bar-shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* =========================================
   SECTIONS GLOBAL
   ========================================= */
.section-padding {
    padding: 110px 0;
    background-color: transparent;
    position: relative;
    z-index: 1;
}
.section-padding::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), rgba(139,92,246,0.4), transparent);
    animation: shimmer-line 6s ease-in-out infinite;
}
@keyframes shimmer-line {
    0%,100% { opacity: 0.2; }
    50%     { opacity: 1; }
}

.section-header { max-width: 700px; margin-left: auto; margin-right: auto; }

.badge-title {
    display: inline-block;
    color: var(--accent-purple);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    background: rgba(139,92,246,0.1);
    padding: 6px 16px;
    border-radius: 30px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-desc { color: var(--text-muted); font-size: 1.08rem; line-height: 1.65; }

/* =========================================
   SERVICE CARDS — glowing border
   ========================================= */
.service-card {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 42px 32px;
    border-radius: 22px;
    border: 1px solid rgba(226,232,240,0.8);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.4s ease,
                background 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 1;
}
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.09);
    background: rgba(255,255,255,0.96);
}

.card-glow-border {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.service-card:hover .card-glow-border { opacity: 1; }
.active-glow { opacity: 0.5; }

.active-card {
    border-color: rgba(139,92,246,0.25);
    box-shadow: 0 10px 30px rgba(139,92,246,0.07);
}

.icon-wrapper {
    width: 70px; height: 70px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--accent-blue);
    transition: color 0.3s;
}
.icon-bg {
    position: absolute;
    inset: 0;
    background: rgba(59,130,246,0.1);
    border-radius: 50%;
    z-index: -1;
    transition: background 0.4s, transform 0.4s;
}
.service-card:hover .icon-wrapper { color: white; }
.service-card:hover .icon-bg {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    transform: scale(1.1);
}
.service-card:hover .icon-wrapper i { animation: bounce-icon 0.55s ease; }
@keyframes bounce-icon {
    0%,100%{ transform: scale(1); }
    50%    { transform: scale(1.25); }
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}
.service-card p { color: var(--text-muted); line-height: 1.65; margin-bottom: 25px; font-size: 1rem; }

.link-learn {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}
.link-learn i { font-size: 0.78rem; color: var(--accent-purple); transition: transform 0.3s; }
.service-card:hover .link-learn   { color: var(--accent-blue); }
.service-card:hover .link-learn i { transform: translateX(5px); }

/* =========================================
   SKILLS SECTION
   ========================================= */
.skill-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59,130,246,0.1);
    background: rgba(255,255,255,0.95);
}

.circle-box {
    position: relative;
    width: 120px; height: 120px;
    margin: 0 auto 18px;
}

/* ─────────────────────────────────────────
   FIX BUG 7: SVG ring bars need explicit
   stroke-dasharray initialization in CSS.
   Without this, the JS transition doesn't
   fire correctly in Safari and some Chrome
   versions. JS also sets this but CSS
   provides the initial state guarantee.
   ───────────────────────────────────────── */
.progress-ring__circle { stroke: #f1f5f9; }
.progress-ring__bar {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-linecap: round;
    stroke-dasharray: 326.73 326.73;   /* FIX: explicit both values, not just one */
    stroke-dashoffset: 326.73;          /* FIX: matches circumference = 2π×52 */
    transition: stroke-dashoffset 1.6s cubic-bezier(0.4,0,0.2,1);
    will-change: stroke-dashoffset;
}

.skill-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 1.9rem;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}
.skill-card:hover .skill-icon { transform: translate(-50%,-50%) scale(1.15) rotate(-5deg); }

.skill-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}
.skill-card p  { margin: 0; font-size: 0.9rem; }
.counter       { font-weight: 700; color: var(--accent-blue); }

/* ── About / inline skill bars ── */
.bar-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.bar-label-row span { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); }
.bar-pct            { color: var(--accent-blue); font-family: var(--font-code); font-size: 0.82rem; }

.skill-bars      { display: flex; flex-direction: column; gap: 20px; }
.skill-bar-item  { }

.bar-track {
    height: 7px;
    background: rgba(0,0,0,0.07);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}
.bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    border-radius: 99px;
    transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: bar-shimmer 2.5s ease-in-out infinite;
}

/* Download CV */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 36px;
    background: var(--text-logo);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(30,41,59,0.2);
}
.btn-download i       { font-size: 1.2rem; transition: transform 0.3s; }
.btn-download:hover   { background: var(--accent-blue); transform: translateY(-3px); color: white; box-shadow: 0 15px 30px rgba(59,130,246,0.3); }
.btn-download:hover i { transform: translateY(3px); }

/* =========================================
   QUALIFICATION TIMELINE
   ========================================= */
.bg-light-alt { background-color: rgba(255,255,255,0.2); }

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 0;
    opacity: 0.3;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    z-index: 1;
}
.timeline-item.left  { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-content {
    background: rgba(248,250,252,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 30px;
    border-radius: 22px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
}
.timeline-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(59,130,246,0.12);
    background: rgba(255,255,255,0.97);
    border-color: rgba(59,130,246,0.2);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    background: white;
    border: 4px solid var(--accent-purple);
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(139,92,246,0.2), 0 0 20px rgba(139,92,246,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover::after {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(139,92,246,0.25), 0 0 30px rgba(139,92,246,0.5);
}
.timeline-item.left::after  { right: -10px; }
.timeline-item.right::after { left: -10px; }

.date-badge {
    display: inline-block;
    background: var(--text-logo);
    color: white;
    padding: 5px 16px;
    border-radius: 50px;
    font-family: var(--font-code);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.degree     { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.university { font-size: 1rem; font-weight: 600; color: var(--accent-blue); margin-bottom: 10px; }
.location   { font-size: 0.88rem; color: #64748b; margin-bottom: 18px; }

.coursework { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.timeline-item.right .coursework { justify-content: flex-start; }
.coursework span {
    background: rgba(59,130,246,0.1);
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.coursework span:hover { background: var(--accent-blue); color: white; }

.timeline-decoration {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 100px; height: 100px;
    display: flex; justify-content: center; align-items: center;
    z-index: 0;
}
.timeline-item.left  .right-deco { right: -140px; left: auto; }
.timeline-item.right .left-deco  { left: -140px; right: auto; }

.deco-icon-box {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex; justify-content: center; align-items: center;
    font-size: 2.5rem;
    color: var(--accent-purple);
    border: 1px solid rgba(139,92,246,0.12);
    animation: float-deco 4s ease-in-out infinite;
    position: relative; z-index: 2;
}
.deco-icon-box.code-style { color: var(--accent-blue); animation-delay: 2s; border-color: rgba(59,130,246,0.12); }
.deco-dots {
    position: absolute;
    width: 100%; height: 100%;
    top: 10px; left: 10px;
    background-image: radial-gradient(#cbd5e1 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.45;
    z-index: 1;
    border-radius: 20px;
}
.timeline-decoration::before {
    content: '';
    position: absolute;
    top: 50%; width: 40px; height: 2px;
    background: repeating-linear-gradient(90deg, #cbd5e1 0, #cbd5e1 5px, transparent 5px, transparent 10px);
    z-index: -1;
}
.timeline-item.left  .right-deco::before { right: 100%; }
.timeline-item.right .left-deco::before  { left: 100%; }
@keyframes float-deco { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

/* =========================================
   PROJECTS
   ========================================= */
.filter-wrapper { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-filter {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 8px 26px;
    border-radius: 50px;
    color: #64748b;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: 0.3s;
}
.btn-filter:hover,
.btn-filter.active {
    background: var(--text-logo);
    color: white;
    box-shadow: 0 5px 15px rgba(30,41,59,0.2);
    border-color: var(--text-logo);
}

.project-showcase {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.project-showcase:hover { box-shadow: 0 35px 70px rgba(59,130,246,0.14); transform: translateY(-4px); }

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-green);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    background: rgba(16,185,129,0.1);
    padding: 5px 13px;
    border-radius: 20px;
}
.dot-pulse {
    width: 7px; height: 7px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0%  { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
    70% { transform: scale(1);    box-shadow: 0 0 0 10px rgba(16,185,129,0); }
    100%{ transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.project-desc { color: #64748b; margin-bottom: 24px; line-height: 1.65; font-size: 1rem; }

.tech-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tech-tags span {
    background: rgba(241,245,249,0.9);
    color: var(--text-nav);
    padding: 5px 13px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.tech-tags span:hover {
    background: rgba(59,130,246,0.12);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.action-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.btn-launch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-blue);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: 0 8px 20px rgba(59,130,246,0.22);
}
.btn-launch:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59,130,246,0.35);
    color: white;
    background: var(--accent-purple);
}

.btn-git {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-nav);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 18px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: 0.3s;
}
.btn-git:hover { color: var(--text-logo); background: rgba(0,0,0,0.04); transform: translateY(-2px); }

.browser-mockup {
    background: rgba(248,250,252,0.65);
    border-left: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.browser-header {
    background: #e2e8f0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.dot        { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green  { background: #10b981; }
.url-bar {
    background: white;
    color: #94a3b8;
    font-size: 0.73rem;
    padding: 4px 14px;
    border-radius: 20px;
    margin-left: 14px;
    flex-grow: 1;
    font-family: var(--font-code);
}
.img-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
}
.project-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.project-showcase:hover .project-img { transform: scale(1.05); }
.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(248,250,252,0.35), transparent);
    pointer-events: none;
}

/* =========================================
   CONTACT
   ========================================= */
.bg-grid {
    background-image:
        linear-gradient(rgba(0,0,0,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.018) 1px, transparent 1px);
    background-size: 32px 32px;
}

.contact-info-wrapper { display: flex; flex-direction: column; gap: 20px; }

.contact-card {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.2);
    background: rgba(255,255,255,0.96);
}

.contact-card.social-card {
    display: block;
    text-align: center;
}
.contact-card.social-card h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.contact-details h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.contact-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
    display: block;
}
.contact-link:hover  { color: var(--accent-blue); }
.contact-details p   { margin: 4px 0 0; font-size: 0.9rem; color: var(--text-muted); }

.status-dot          { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.status-dot.online   { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); animation: blink-dot 2s infinite; }

.social-links { display: flex; justify-content: center; gap: 14px; }
.social-btn {
    width: 46px; height: 46px;
    background: rgba(241,245,249,0.85);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.35s cubic-bezier(0.34,1.56,0.64,1);
    font-size: 1.15rem;
    text-decoration: none;
}
.social-btn:hover {
    background: var(--text-logo);
    color: white;
    transform: translateY(-5px) scale(1.12);
}

/* ── Contact Form ── */
.form-container {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 44px;
    border-radius: 26px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.6);
}

/* Override Bootstrap's .input-group to not conflict */
.contact-form .input-group {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    display: block;
}
.contact-form .input-group input,
.contact-form .input-group textarea {
    width: 100%;
    padding: 15px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    border: none;
    border-bottom: 2px solid #e2e8f0;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
    display: block;
}
.contact-form .input-group label {
    position: absolute;
    top: 15px; left: 0;
    color: #94a3b8;
    pointer-events: none;
    transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease, font-weight 0.3s ease;
    font-size: 1rem;
}
.contact-form .input-group input:focus ~ label,
.contact-form .input-group input:not(:placeholder-shown) ~ label,
.contact-form .input-group textarea:focus ~ label,
.contact-form .input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.78rem;
    color: var(--accent-blue);
    font-weight: 700;
}
.contact-form .input-group .line {
    position: absolute;
    bottom: 0; left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    transition: width 0.4s ease;
}
.contact-form .input-group input:focus ~ .line,
.contact-form .input-group textarea:focus ~ .line { width: 100%; }

.btn-submit {
    background: var(--text-logo);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 13px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}
.btn-submit:hover   { background: var(--accent-blue); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(59,130,246,0.3); }
.btn-submit i       { transition: transform 0.3s; }
.btn-submit:hover i { transform: translateX(5px) rotate(-10deg); }
#my-form-status     { font-size: 0.95rem; transition: opacity 0.3s; min-height: 22px; }

/* =========================================
   FOOTER
   ========================================= */
.footer-section {
    background: var(--text-logo);
    color: #cbd5e1;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}
.footer-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple), var(--accent-pink));
}

.footer-brand          { font-family: var(--font-code); font-size: 1.8rem; font-weight: 700; color: white; text-decoration: none; }
.footer-brand .highlight { color: var(--accent-blue); }
.footer-brand .brackets  { color: var(--accent-purple); }
.footer-desc           { font-size: 0.94rem; line-height: 1.65; max-width: 300px; margin-bottom: 20px; }

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-code);
    font-size: 0.82rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.status-dot                { width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%; }
.pulse-green               { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); animation: pulse-green 2s infinite; }
.text-green                { color: var(--accent-green); font-weight: 600; }

.footer-heading {
    font-family: var(--font-display);
    color: white;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0;
    width: 40px; height: 3px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    border-radius: 2px;
}

.footer-links             { list-style: none; padding: 0; margin: 0; }
.footer-links li          { margin-bottom: 12px; }
.footer-links a {
    text-decoration: none;
    color: #cbd5e1;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a i         { font-size: 0.78rem; color: var(--accent-purple); transition: color 0.3s; }
.footer-links a:hover     { color: white; transform: translateX(5px); }
.footer-links a:hover i   { color: var(--accent-blue); }

.social-wrapper { display: flex; flex-direction: column; gap: 14px; }

/* Footer social cards */
.footer-section .social-card {
    display: flex !important;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.03);
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.footer-section .social-card i {
    font-size: 1.15rem;
    width: 34px; height: 34px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s, color 0.3s;
    flex-shrink: 0;
}
.footer-section .social-card:hover               { transform: translateX(6px); }
.footer-section .social-card.linkedin:hover      { background: #0077b5; border-color: #0077b5; }
.footer-section .social-card.github:hover        { background: #333; border-color: #333; }
.footer-section .social-card.website:hover       { background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); border-color: transparent; }
.footer-section .social-card:hover i             { background: white; }
.footer-section .social-card.linkedin:hover i    { color: #0077b5; }
.footer-section .social-card.github:hover i      { color: #333; }
.footer-section .social-card.website:hover i     { color: var(--accent-purple); }

.footer-bottom { margin-top: 50px; }
.line-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.18), transparent);
    margin-bottom: 20px;
}

/* ── Scroll-to-top ── */
.scroll-top-btn {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(59,130,246,0.35);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transform: translateY(10px);
}
.scroll-top-btn.active { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover  { background: var(--accent-purple); transform: translateY(-5px); color: white; }

/* =========================================
   NAME HOVER — shimmer + glow + underline sweep
   ========================================= */
.highlight-name:hover {
    letter-spacing: 0.02em;
    filter: drop-shadow(0 0 28px rgba(139,92,246,0.5))
            drop-shadow(0 0 55px rgba(59,130,246,0.28));
    animation: gradient-flow-fast 1.4s linear infinite;
}
@keyframes gradient-flow-fast {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
.highlight-name::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    display: block;
}
.highlight-name:hover::after { width: 100%; }

/* =========================================
   RESPONSIVENESS
   ========================================= */
@media (max-width: 991px) {
    body { cursor: auto; }
    #cursor-dot, #cursor-ring { display: none; }

    .hero-section    { padding-top: 130px; text-align: center; }
    .hero-title      { font-size: 3rem; }
    .hero-desc       { margin: 0 auto 40px; }
    .btn-group-hero  { justify-content: center; }
    .tech-stack      { justify-content: center; flex-direction: column; gap: 10px; }
    .hero-img-wrapper{ height: 420px; margin-top: 50px; }
    .ai-sphere       { width: 250px; height: 250px; }
    .card-data       { display: none; }
    .skill-card      { padding: 16px; }

    .timeline-decoration { display: none; }
}

@media (max-width: 768px) {
    .timeline-line                          { left: 30px; }
    .timeline-item                          { width: 100%; padding-left: 70px; padding-right: 20px; text-align: left; }
    .timeline-item.left, .timeline-item.right { left: 0; }
    .timeline-item.left::after,
    .timeline-item.right::after             { left: 21px; right: auto; }
    .coursework                             { justify-content: flex-start; }
}

@media (max-width: 576px) {
    .hero-title          { font-size: 2.4rem; }
    .hero-subtitle       { font-size: 1.15rem; }
    .btn-group-hero      { flex-direction: column; width: 100%; }
    .btn-hire            { width: 100%; text-align: center; }
    .btn-work            { justify-content: center; }
    .float-card          { display: none; }
    .hero-img-wrapper    { height: 320px; }
    .ai-sphere           { width: 210px; height: 210px; }
    .section-title       { font-size: 2rem; }
    .form-container      { padding: 28px 20px; }
}
