@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #00050f;
    --bg-mid: #000d1f;
    --neon-blue: #00e5ff;
    --soft-blue: #4db8ff;
    --purple: #7b5ea7;
    --glass-bg: rgba(0, 18, 45, 0.55);
    --glass-border: rgba(77, 184, 255, 0.18);
    --text-main: #e6f1ff;
    --text-muted: #7eaacb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    cursor: none;
    /* hide default cursor */
}

/* ─── Custom Cursor ───────────────────────────────────────── */
#cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 12px var(--neon-blue), 0 0 24px var(--neon-blue);
    transform: translate(-50%, -50%);
    transition: transform 0.05s;
}

#cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0, 229, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease, width 0.2s, height 0.2s, border-color 0.2s;
}

body:has(a:hover) #cursor-ring,
body:has(.btn:hover) #cursor-ring {
    width: 56px;
    height: 56px;
    border-color: var(--neon-blue);
}

/* ─── Canvas Layers ───────────────────────────────────────── */
#matrix {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.22;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ─── Scroll Progress Bar ─────────────────────────────────── */
#scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--purple));
    z-index: 1000;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--neon-blue);
}

/* ─── Navigation ──────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    backdrop-filter: blur(14px);
    background: rgba(0, 5, 15, 0.6);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neon-blue);
    letter-spacing: 2px;
    text-shadow: 0 0 12px var(--neon-blue);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--neon-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.nav-links a:hover {
    color: var(--neon-blue);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* ─── Main Content ────────────────────────────────────────── */
.content {
    position: relative;
    z-index: 10;
}

/* ─── Hero Section ────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Radial glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

.hero-content {
    max-width: 920px;
    text-align: center;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--neon-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    margin-bottom: 1.5rem;
    animation: fadeSlideDown 0.8s ease-out forwards;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
    animation: blink 1.2s ease-in-out infinite;
}

/* Name */
h1 {
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 30%, var(--soft-blue) 60%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideDown 0.9s ease-out 0.1s both;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--neon-blue);
    margin-left: 0.3rem;
    vertical-align: middle;
    box-shadow: 0 0 10px var(--neon-blue), 0 0 22px var(--neon-blue);
    animation: cursorPulse 0.75s ease-in-out infinite;
    -webkit-text-fill-color: initial;
    /* reset gradient clip for cursor */
}

/* Sub-head */
.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 400;
    color: var(--soft-blue);
    margin-bottom: 2.5rem;
    letter-spacing: 0.03em;
    animation: fadeSlideDown 0.9s ease-out 0.3s both;
}

.hero-subtitle span {
    font-weight: 600;
    color: var(--neon-blue);
}

/* Description card */
.description-box {
    backdrop-filter: blur(16px) saturate(1.4);
    background: var(--glass-bg);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    border: 1px solid var(--glass-border);
    margin-bottom: 3rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s;
    animation: fadeSlideUp 0.9s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
}

.description-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.06), transparent);
    animation: shimmer 3.5s ease-in-out infinite;
}

.description-box:hover {
    border-color: rgba(77, 184, 255, 0.5);
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.12), 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(-6px);
}

.description-box p {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.85;
    color: #b4d4ee;
    margin-bottom: 0.75rem;
}

.description-box p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--soft-blue);
    font-weight: 600;
}

.accent-highlight {
    color: var(--neon-blue);
    font-weight: 600;
}

/* Buttons */
.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    animation: fadeSlideUp 0.9s ease-out 0.7s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    cursor: none;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--soft-blue));
    color: var(--bg-deep);
    border: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.6), 0 8px 24px rgba(0, 229, 255, 0.3);
    transform: translateY(-4px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(77, 184, 255, 0.5);
    color: var(--soft-blue);
}

.btn-outline:hover {
    background: rgba(77, 184, 255, 0.1);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
}

/* Floating decorations */
.float-decoration {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(77, 184, 255, 0.15);
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    top: 8%;
    left: 4%;
    width: 130px;
    height: 130px;
}

.float-2 {
    bottom: 8%;
    right: 4%;
    width: 160px;
    height: 160px;
    animation-delay: 1.5s;
}

.float-3 {
    top: 45%;
    left: 18%;
    width: 90px;
    height: 90px;
    border-radius: 18px;
    transform: rotate(45deg);
    animation-delay: 3s;
}

/* ─── Section Shared ──────────────────────────────────────── */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.01em;
}

.section-title span {
    color: var(--neon-blue);
    position: relative;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
}


/* ─── Skills Section ──────────────────────────────────────── */
.skills {
    flex-direction: column;
    align-items: center;
}

.skills-container {
    max-width: 1200px;
    width: 100%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.skill-card {
    backdrop-filter: blur(14px);
    background: var(--glass-bg);
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeSlideUp 0.8s ease-out both;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-card:hover {
    border-color: rgba(0, 229, 255, 0.35);
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    transition: color 0.3s;
}

.skill-card:hover h3 {
    color: var(--neon-blue);
}

.skill-card p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Skill progress bar */
.skill-bar-wrap {
    margin-top: 1rem;
}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-family: 'JetBrains Mono', monospace;
}

.skill-bar-track {
    height: 4px;
    background: rgba(77, 184, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--neon-blue), var(--purple));
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--neon-blue);
}

/* ─── Timeline / Experience ───────────────────────────────── */
.experience {
    flex-direction: column;
}

.experience-inner {
    max-width: 800px;
    width: 100%;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    padding: 0 0 3rem 2.5rem;
    animation: fadeSlideUp 0.8s ease-out both;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon-blue);
    border: 2px solid var(--bg-deep);
    box-shadow: 0 0 12px var(--neon-blue);
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--neon-blue);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.timeline-card {
    backdrop-filter: blur(14px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.timeline-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.12);
    transform: translateX(6px);
}

.timeline-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.timeline-card .role {
    color: var(--soft-blue);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.92rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--neon-blue);
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
}

/* ─── Contact / Footer ────────────────────────────────────── */
.contact {
    flex-direction: column;
    min-height: auto;
    padding: 5rem 2rem;
}

.contact-inner {
    max-width: 740px;
    width: 100%;
    text-align: center;
}

.contact-inner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

footer {
    text-align: center;
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

footer span {
    color: var(--neon-blue);
}

/* ─── Keyframe Animations ─────────────────────────────────── */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

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

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes cursorPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

@keyframes float {

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

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

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--neon-blue);
    }

    50% {
        opacity: 0.3;
        box-shadow: none;
    }
}

@keyframes pulse-glow {

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

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes shimmer {
    0% {
        left: -60%;
    }

    100% {
        left: 120%;
    }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: 5rem 1.25rem 2rem;
    }

    .buttons {
        gap: 0.9rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

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

}

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