/* ════════════════════════════════════════
   CSS VARIABLES
════════════════════════════════════════ */
:root {
    --bg:           #09090f;
    --bg-alt:       #0d0d1c;
    --surface:      rgba(255,255,255,0.04);
    --border:       rgba(255,255,255,0.08);
    --primary:      #7c3aed;
    --primary-lt:   #9d6ef7;
    --secondary:    #06b6d4;
    --pink:         #ec4899;
    --green:        #10b981;
    --orange:       #f59e0b;
    --yellow:       #eab308;
    --blue:         #3b82f6;
    --cyan:         #06b6d4;
    --purple:       #7c3aed;
    --text:         #f1f5f9;
    --text-muted:   #94a3b8;
    --grad:         linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
    --grad-btn:     linear-gradient(135deg, #7c3aed, #06b6d4);
    --glow:         0 0 40px rgba(124,58,237,0.25);
    --radius:       16px;
    --radius-lg:    24px;
    --transition:   all 0.35s cubic-bezier(0.4,0,0.2,1);
    --font-head:    'Syne', sans-serif;
    --font-body:    'Poppins', sans-serif;
}

/* ════════════════════════════════════════
   BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--grad-btn); border-radius: 6px; }

/* Selection */
::selection { background: rgba(124,58,237,0.35); color: #fff; }

/* ════════════════════════════════════════
   UTILITIES
════════════════════════════════════════ */
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(124,58,237,0.35);
    box-shadow: var(--glow);
    transform: translateY(-4px);
}

.btn-gradient {
    background: var(--grad-btn);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: .4px;
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(124,58,237,0.55);
    filter: brightness(1.1);
}

.btn-glass {
    background: rgba(255,255,255,0.06);
    color: var(--text) !important;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    font-family: var(--font-body);
    backdrop-filter: blur(8px);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-glass:hover {
    border-color: rgba(124,58,237,0.5);
    background: rgba(124,58,237,0.12);
    transform: translateY(-3px);
}

.btn-lg-custom { padding: 13px 34px; font-size: 1rem; }

.section-pad { padding: 110px 0; position: relative; overflow: hidden; }
.section-alt  { background: var(--bg-alt); }

.section-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--primary-lt);
    display: block;
    margin-bottom: .5rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: .75rem;
}

.title-line {
    width: 56px;
    height: 4px;
    background: var(--grad-btn);
    border-radius: 4px;
    margin-top: .5rem;
}

/* Color accent helpers */
.color-purple { --acc: var(--purple); }
.color-cyan   { --acc: var(--cyan);   }
.color-blue   { --acc: var(--blue);   }
.color-pink   { --acc: var(--pink);   }
.color-green  { --acc: var(--green);  }
.color-orange { --acc: var(--orange); }
.color-yellow { --acc: var(--yellow); }

/* ════════════════════════════════════════
   PRELOADER
════════════════════════════════════════ */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }

.pre-ring {
    width: 68px; height: 68px;
    border: 3px solid rgba(124,58,237,0.15);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin .9s linear infinite;
}

.pre-label {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
#mainNav {
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
    z-index: 1000;
}
#mainNav.scrolled {
    padding: 12px 0;
    background: rgba(9,9,15,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.navbar-brand {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.brand-accent { color: var(--primary-lt); }
.brand-dot    { color: var(--secondary); }

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: .9rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    width: 0; height: 2px;
    background: var(--grad-btn);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .3s ease;
}
.nav-link:hover, .nav-link.active-link {
    color: var(--text) !important;
}
.nav-link:hover::after, .nav-link.active-link::after { width: 60%; }

/* Hamburger */
.toggler-icon {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
    margin: 5px 0;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,0.18) 0%, transparent 70%),
                radial-gradient(ellipse 60% 50% at 90% 60%, rgba(6,182,212,0.1) 0%, transparent 70%),
                var(--bg);
}

#particleCanvas {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 0;
}

.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .07;
    animation: blobFloat 10s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -150px; }
.blob-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -80px; right: -100px; animation-delay: -5s; }

.hero-container {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 140px 0 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.3);
    color: var(--primary-lt);
    font-size: .82rem;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 50px;
    letter-spacing: .5px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: .6rem 0 .5rem;
}

.hero-role {
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-muted);
    min-height: 2.5rem;
}

#typed-output {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 480px;
}

.hero-socials { display: flex; gap: 14px; align-items: center; }
.hero-social-link {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}
.hero-social-link:hover {
    background: var(--grad-btn);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}

/* Avatar */
.hero-avatar-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 420px;
}

.avatar-outer-ring {
    width: 300px; height: 300px;
    border-radius: 50%;
    background: var(--grad);
    padding: 3px;
    animation: spinSlow 8s linear infinite;
    box-shadow: 0 0 60px rgba(124,58,237,0.3);
}

.avatar-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
}

.avatar-initials {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: spinSlow 8s linear infinite reverse;
}

/* Floating badges */
.float-badge {
    position: absolute;
    background: rgba(9,9,15,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.fb-1 { top: 30px;  left: -10px;  animation: floatA 3s ease-in-out infinite; }
.fb-2 { top: 30px;  right: -10px; animation: floatB 3.5s ease-in-out infinite; }
.fb-3 { bottom: 60px; left: -10px; animation: floatB 4s ease-in-out infinite; }
.fb-4 { bottom: 60px; right: -10px;animation: floatA 3.2s ease-in-out infinite; }

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    color: var(--text-muted);
    font-size: .72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 1;
    animation: fadeInUp 1s ease 2s both;
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex; justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 4px; height: 8px;
    background: var(--primary-lt);
    border-radius: 4px;
    animation: scrollWheel 1.6s ease-in-out infinite;
}

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.section-blob-bg {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
}

.about-photo-wrap {
    position: relative;
    display: inline-block;
}
.about-photo-ring {
    width: 280px; height: 280px;
    border-radius: var(--radius-lg);
    background: var(--grad);
    padding: 3px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(124,58,237,0.25);
}
.about-photo-inner {
    width: 100%; height: 100%;
    border-radius: calc(var(--radius-lg) - 3px);
    background: var(--bg-alt);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 800;
    background: var(--bg-alt);
    -webkit-text-fill-color: transparent;
    background-clip: unset;
    color: transparent;
    background-image: none;
}
.about-photo-inner {
    width: 100%; height: 100%;
    border-radius: calc(var(--radius-lg) - 3px);
    background: var(--bg-alt);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #1a1a2e 100%);
    position: relative;
}
.about-photo-inner::after {
    content: 'PK';
    position: absolute;
    font-family: var(--font-head);
    font-size: 4.5rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-photo-badge {
    position: absolute;
    bottom: -12px; right: -12px;
    background: var(--grad-btn);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

.about-subtitle {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.about-text {
    color: var(--text-muted);
    font-size: .97rem;
    line-height: 1.9;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.25);
    color: var(--primary-lt);
    font-size: .78rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 50px;
    margin: 3px 3px 3px 0;
}

/* Stats */
.stat-card {
    padding: 28px 20px;
    border-radius: var(--radius);
    text-align: center;
}
.stat-icon-wrap {
    width: 52px; height: 52px;
    background: var(--grad-btn);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(124,58,237,0.3);
}
.stat-number {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-label {
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 500;
    margin-top: 6px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ════════════════════════════════════════
   SKILLS
════════════════════════════════════════ */
.skills-tab-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: .88rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}
.skills-tab-btn:hover, .skills-tab-btn.active {
    background: var(--grad-btn);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}

.skills-panel { display: none; }
.skills-panel.active { display: block; }

.skill-name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
}
.skill-pct {
    font-weight: 700;
    font-size: .88rem;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.skill-track {
    height: 8px;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    overflow: hidden;
}
.skill-fill {
    height: 100%;
    width: 0;
    border-radius: 8px;
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Skill bar colors */
.skill-fill.color-purple { background: linear-gradient(90deg,#7c3aed,#9d6ef7); }
.skill-fill.color-cyan   { background: linear-gradient(90deg,#06b6d4,#22d3ee); }
.skill-fill.color-blue   { background: linear-gradient(90deg,#3b82f6,#60a5fa); }
.skill-fill.color-pink   { background: linear-gradient(90deg,#ec4899,#f472b6); }
.skill-fill.color-green  { background: linear-gradient(90deg,#10b981,#34d399); }
.skill-fill.color-orange { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.skill-fill.color-yellow { background: linear-gradient(90deg,#eab308,#facc15); }

/* ════════════════════════════════════════
   SERVICES
════════════════════════════════════════ */
.service-card {
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad);
    opacity: 0;
    transition: opacity .35s ease;
    border-radius: var(--radius);
}
.service-card:hover::before { opacity: .04; }

.svc-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--acc, var(--primary));
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative; z-index: 1;
}
.service-card:hover .svc-icon-wrap {
    background: var(--acc, var(--primary));
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transform: scale(1.08);
}

.svc-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    position: relative; z-index: 1;
}
.svc-desc {
    font-size: .87rem;
    color: var(--text-muted);
    line-height: 1.75;
    position: relative; z-index: 1;
    flex-grow: 1;
    margin-bottom: 20px;
}
.svc-arrow {
    font-size: .85rem;
    color: var(--acc, var(--primary));
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
    position: relative; z-index: 1;
}
.service-card:hover .svc-arrow { opacity: 1; transform: translateX(0); }

/* ════════════════════════════════════════
   PROJECTS
════════════════════════════════════════ */
.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50px;
    padding: 8px 22px;
    font-size: .86rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--grad-btn);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 18px rgba(124,58,237,0.35);
}

.project-item { transition: var(--transition); }
.project-item.hidden { display: none; }

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.proj-top {
    padding: 28px 24px 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.proj-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--acc, var(--primary));
    opacity: .05;
}

.proj-icon {
    font-size: 2rem;
    color: var(--acc, var(--primary));
    position: relative; z-index: 1;
    filter: drop-shadow(0 0 12px var(--acc, var(--primary)));
}

.proj-cat-badge {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative; z-index: 1;
}

.proj-body { padding: 20px 24px; flex-grow: 1; }
.proj-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.proj-desc {
    font-size: .84rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 50px;
}

.proj-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.proj-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--acc, var(--primary)) !important;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.proj-link:hover { letter-spacing: .5px; }

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact-heading {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
}
.contact-sub { color: var(--text-muted); font-size: .95rem; line-height: 1.8; }

.contact-info-list { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ci-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--primary-lt);
    transition: var(--transition);
}
.contact-info-item:hover .ci-icon {
    background: var(--grad-btn);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(124,58,237,0.35);
}
.ci-label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 500;
}
.ci-value {
    font-size: .93rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: block;
    transition: var(--transition);
}
.ci-value:hover { color: var(--primary-lt); }

.contact-form-card { padding: 36px 32px; }

.form-label-custom {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: .5px;
}
.form-control-custom {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .9rem;
    padding: 12px 16px;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}
.form-control-custom:focus {
    border-color: rgba(124,58,237,0.5);
    background: rgba(124,58,237,0.05);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.form-control-custom::placeholder { color: rgba(148,163,184,0.5); }

/* ════════════════════════════════════════
   SOCIAL ICONS
════════════════════════════════════════ */
.social-icons { display: flex; gap: 12px; }
.social-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: .95rem;
    text-decoration: none;
    transition: var(--transition);
}
.social-icon:hover {
    background: var(--grad-btn);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.35);
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
#footer { background: var(--bg-alt); position: relative; }
.footer-top-line {
    height: 1px;
    background: var(--grad);
    opacity: .3;
}
.footer-brand {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
}
.footer-sub { color: var(--text-muted); font-size: .85rem; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: color .2s;
}
.footer-links a:hover { color: var(--primary-lt); }
.footer-hr { border-color: var(--border); margin: 24px 0 20px; }
.footer-copy { font-size: .83rem; color: var(--text-muted); }

/* ════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════ */
#backToTop {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 46px; height: 46px;
    background: var(--grad-btn);
    color: #fff;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(124,58,237,0.4);
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 900;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(124,58,237,0.55); }

/* ════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════ */
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes spinSlow  { to { transform: rotate(360deg); } }
@keyframes floatA {
    0%,100% { transform: translateY(0);   }
    50%      { transform: translateY(-12px); }
}
@keyframes floatB {
    0%,100% { transform: translateY(0);   }
    50%      { transform: translateY(12px);  }
}
@keyframes blobFloat {
    0%,100% { transform: scale(1)    rotate(0deg);   }
    50%      { transform: scale(1.15) rotate(20deg);  }
}
@keyframes scrollWheel {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 0 80px;
        gap: 48px;
    }
    .hero-text { display: flex; flex-direction: column; align-items: center; }
    .hero-desc { text-align: center; }
    .hero-socials { justify-content: center; }
    .hero-avatar-wrap { height: 340px; }
    .avatar-outer-ring { width: 240px; height: 240px; }
    .avatar-initials { font-size: 4rem; }
    .scroll-cue { display: none; }
    .about-photo-ring { width: 220px; height: 220px; }
}

@media (max-width: 575.98px) {
    .section-pad { padding: 80px 0; }
    .hero-title { font-size: 2.4rem; }
    .hero-role { font-size: 1.2rem; }
    .contact-form-card { padding: 24px 18px; }
    .float-badge { display: none; }
    .hero-avatar-wrap { height: 260px; }
    .avatar-outer-ring { width: 200px; height: 200px; }
    .avatar-initials { font-size: 3rem; }
}
