:root {
    --bg: #07111f;
    --bg2: #0b1630;
    --card: rgba(12, 19, 36, 0.7);
    --stroke: rgba(255, 255, 255, 0.08);
    --text: #e5eefc;
    --muted: rgba(229, 238, 252, 0.72);
    --accent: #7c5cff;
    --accent2: #39d0ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    cursor: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at top, #12244b 0%, var(--bg) 45%, #050814 100%);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ── BACKGROUND ─────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 90%);
    pointer-events: none;
    z-index: -1;
}

.glow {
    position: fixed;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    top: -8rem;
    right: -6rem;
    background: var(--accent);
}

.glow-2 {
    bottom: 0;
    left: -8rem;
    background: var(--accent2);
}

/* ── NAVIGATION ─────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    backdrop-filter: blur(18px);
    background: rgba(4, 9, 18, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.8);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--muted);
    font-weight: 500;
}

.nav a:hover {
    color: var(--text);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ── LAYOUT ─────────────────────────────── */
main {
    width: min(1200px, calc(100% - 3rem));
    margin: 0 auto;
}

.section {
    padding: 6rem 0 2rem;
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading p {
    color: var(--accent2);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    font-weight: 600;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 0.5rem;
    letter-spacing: -0.04em;
    font-weight: 800;
}

/* --- HERO CARD REFINEMENT --- */
.hero-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 3.5rem 2.5rem;
  border-radius: 40px;
  backdrop-filter: blur(30px);
  box-shadow: var(--shadow);
  text-align: center;
}

/* --- THE TECH GLOBE --- */
.globe-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2.5rem;
}

.globe {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-core {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--accent2);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.5;
  animation: pulseCore 3s ease-in-out infinite;
}

.ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 50%;
  animation: rotateGlobe 6s linear infinite;
}

.ring:nth-child(2) { transform: rotateY(60deg); animation-delay: -1s; }
.ring:nth-child(3) { transform: rotateY(-60deg); animation-delay: -2s; }
.ring:nth-child(4) { transform: rotateX(75deg); animation-delay: -3s; }

.scan-line {
  position: absolute;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
  top: 50%;
  left: -10%;
  opacity: 0.3;
  animation: scan 4s ease-in-out infinite;
}

/* --- TEXT & DETAILS --- */
.hero-card-content h2 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  background: linear-gradient(to bottom, #fff, #b0b0b0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role-text {
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.info-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.info-row .label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-row .value {
  color: var(--text);
  font-weight: 500;
}

/* --- ANIMATIONS --- */
@keyframes rotateGlobe {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@keyframes pulseCore {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

@keyframes scan {
  0% { top: 10%; opacity: 0; }
  50% { opacity: 0.5; }
  100% { top: 90%; opacity: 0; }
}

/* ── HERO ───────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    min-height: calc(100vh - 80px);
}

.eyebrow {
    display: inline-flex;
    padding: 0.5rem 1rem;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.1rem;
    margin: 2rem 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), #5e8bff);
    color: white;
    box-shadow: 0 18px 50px rgba(124, 92, 255, 0.25);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
}

.btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--stroke);
    padding: 1.5rem;
    border-radius: 24px;
    text-align: center;
    backdrop-filter: blur(12px);
}

.stat-card strong {
    display: block;
    font-size: 1.5rem;
    color: var(--accent2);
}

.stat-card span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.hero-card {
    background: var(--card);
    border: 1px solid var(--stroke);
    padding: 2.5rem;
    border-radius: 32px;
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow);
}

.profile-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    padding: 8px;
    background: conic-gradient(from 180deg, var(--accent), var(--accent2), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 8s linear infinite;
}

.profile-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-card-content {
    text-align: center;
}

.hero-card-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-card-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-card-content ul {
    list-style: none;
    text-align: left;
}

.hero-card-content li {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--muted);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── SKILLS ─────────────────────────────── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--stroke);
    padding: 1.5rem;
    border-radius: 24px;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.skill-top strong {
    font-size: 1.1rem;
}

.skill-top span {
    font-family: var(--font-mono);
    color: var(--accent2);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.skill-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    width: 0;
    transition: width 1.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* ── PROJECTS ───────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--stroke);
    padding: 2.5rem;
    border-radius: 32px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(124, 92, 255, 0.3);
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(124, 92, 255, 0.1);
    color: var(--accent);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.project-footer span {
    color: var(--muted);
    font-family: var(--font-mono);
}

.project-footer a {
    color: var(--accent2);
    font-weight: 600;
}

/* ── TIMELINE ───────────────────────────── */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    background: var(--card);
    border: 1px solid var(--stroke);
    padding: 2rem;
    border-radius: 24px;
}

.timeline-dot {
    position: absolute;
    left: -2.45rem;
    top: 2rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 0 15px rgba(124, 92, 255, 0.5);
}

.timeline-item span {
    color: var(--accent2);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.timeline-item p {
    margin-top: 1rem;
}

/* ── CONTACT ────────────────────────────── */
.contact-card {
    background: var(--card);
    border: 1px solid var(--stroke);
    padding: 4rem;
    border-radius: 40px;
    text-align: center;
    backdrop-filter: blur(24px);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-links a {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--accent2);
}

/* ── FOOTER ─────────────────────────────── */
.footer {
    padding: 4rem 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── REVEAL ANIMATION ───────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── CURSOR ─────────────────────────────── */
.cursor-dot,
.cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 0 10px rgba(124, 92, 255, 0.8);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(124, 92, 255, 0.5);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent2);
    background: rgba(124, 92, 255, 0.05);
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .lead {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .stats {
        max-width: 500px;
        margin-inline: auto;
    }
}

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

    .menu-btn {
        display: flex;
    }

    .skills-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 2.5rem;
    }

    .contact-links {
        gap: 1rem;
    }

    .contact-links a {
        width: 100%;
    }
}