/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Pre build properties */
:root {
    --bg: #09090f;
    --surface: #111120;
    --card: #16162a;
    --border: rgba(255, 255, 255, .07);
    --text: #e8e8f0;
    --muted: #7a7a9a;
    --accent1: #7c6aff;
    --accent2: #ff6a9b;
    --accent3: #3df0c8;
    --grad: linear-gradient(135deg, var(--accent1), var(--accent2));
    --grad2: linear-gradient(135deg, var(--accent3), var(--accent1));
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --radius: 16px;
    --max: 1300px;
    --nav-h: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
}

/* Noise Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: .4;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
}

section {
    position: relative;
    z-index: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent1);
    border-radius: 99px;
}

/* CSS Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-22px) rotate(3deg);
    }
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: .6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bar-grow {
    from {
        width: 0;
    }
}

@keyframes blob {

    0%,
    100% {
        border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    }

    33% {
        border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%;
    }

    66% {
        border-radius: 55% 45% 60% 40% / 45% 55% 50% 50%;
    }
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(9, 9, 15, .7);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--grad);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .03em;
    transition: color .25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad);
    border-radius: 99px;
    transition: width .3s cubic-bezier(.4, 0, .2, 1);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 9px 22px;
    background: var(--grad);
    border-radius: 99px;
    color: #fff !important;
    font-weight: 500 !important;
    font-size: .88rem !important;
    transition: transform .2s, box-shadow .2s !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 106, 255, .35);
}

.nav-cta::after {
    display: none !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 99px;
    transition: transform .3s, opacity .3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(9, 9, 15, .97);
    border-bottom: 1px solid var(--border);
    padding: 24px 32px;
    z-index: 999;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--font-head);
    transition: color .2s;
}

.mobile-menu a:hover {
    color: var(--text);
}

/* Section Labels */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent1);
    margin-bottom: 16px;
}

.section-tag::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent1);
    border-radius: 99px;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 56px;
}

/* Hero or Home Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    animation: blob 10s ease-in-out infinite, float 8s ease-in-out infinite;
    filter: blur(80px);
    opacity: .18;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: var(--accent1);
    top: -100px;
    right: -100px;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent2);
    bottom: 0;
    left: -80px;
    animation-delay: -4s;
}

.hero-blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent3);
    top: 40%;
    right: 25%;
    animation-delay: -7s;
}

/* Grid lines */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px;
    background: rgba(124, 106, 255, .12);
    border: 1px solid rgba(124, 106, 255, .25);
    border-radius: 99px;
    font-size: .8rem;
    color: var(--accent1);
    margin-bottom: 28px;
    animation: slide-up .6s ease both;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent3);
    border-radius: 50%;
    position: relative;
}

.hero-badge-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent3);
    animation: pulse-ring 1.5s ease-out infinite;
}

.hero-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: 16px;
    animation: slide-up .6s .1s ease both;
}

.hero-name span {
    background: linear-gradient(135deg, var(--accent1), var(--accent2), var(--accent3));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 5s ease infinite;
}

.hero-role {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--muted);
    margin-bottom: 24px;
    font-weight: 300;
    animation: slide-up .6s .2s ease both;
}

.hero-role b {
    color: var(--text);
    font-weight: 500;
}

.hero-desc {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
    max-width: 460px;
    margin-bottom: 40px;
    animation: slide-up .6s .3s ease both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: slide-up .6s .4s ease both;
}

.btn-primary {
    padding: 14px 32px;
    background: var(--grad);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .25s, box-shadow .25s;
    animation: gradient-shift 4s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(124, 106, 255, .35);
}

.btn-secondary {
    padding: 14px 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color .25s, background .25s, transform .25s;
}

.btn-secondary:hover {
    border-color: var(--accent1);
    background: rgba(124, 106, 255, .08);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-in .8s .4s ease both;
}

.avatar-wrap {
    position: relative;
    width: 340px;
    height: 340px;
}

.avatar-ring {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 2px dashed rgba(124, 106, 255, .3);
    animation: spin-slow 20s linear infinite;
}

.avatar-ring-2 {
    position: absolute;
    inset: -32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 106, 155, .15);
    animation: spin-slow 30s linear infinite reverse;
}

.avatar-img {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent1) 0%, var(--accent2) 50%, var(--accent3) 100%);
    background-size: 300% 300%;
    animation: gradient-shift 6s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .9);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(124, 106, 255, .3);
}

.avatar-img img {
    width: 100%;
}

.avatar-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .15), transparent 60%);
}

/* Floating chips */
.chip {
    position: absolute;
    padding: 8px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.chip-1 {
    top: 10px;
    right: -30px;
    color: var(--accent3);
    border-color: rgba(61, 240, 200, .2);
    animation: float 6s ease-in-out infinite;
}

.chip-2 {
    bottom: 40px;
    left: -40px;
    color: var(--accent2);
    border-color: rgba(255, 106, 155, .2);
    animation: float 7s ease-in-out infinite reverse;
}

.chip-3 {
    bottom: -10px;
    right: 20px;
    color: var(--accent1);
    border-color: rgba(124, 106, 255, .2);
    animation: float 5s 1s ease-in-out infinite;
}

/* Stats row */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    animation: slide-up .6s .5s ease both;
}

.stat-item h3 {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: .82rem;
    color: var(--muted);
    letter-spacing: .04em;
}

/* About Section */
#about {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad);
}

.about-img img {
    width: 100%;
}

.about-floating-box {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    backdrop-filter: blur(8px);
    animation: float 7s ease-in-out infinite;
}

.about-floating-box .num {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.about-floating-box p {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 4px;
}

.about-content .section-sub {
    margin-bottom: 32px;
}

.about-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.about-list li {
    font-size: .9rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .2s;
}

.about-list li:hover {
    color: var(--text);
}

.about-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent1);
    flex-shrink: 0;
}

/* Skills Section */
#skills {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(124, 106, 255, .03) 50%, transparent);
}

.skills-header {
    text-align: center;
}

.skills-header .section-tag {
    justify-content: center;
}

.skills-header .section-sub {
    margin: 0 auto 56px;
    text-align: center;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-cat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}

.skill-cat:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 106, 255, .3);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.skill-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.icon-purple {
    background: rgba(124, 106, 255, .15);
}

.icon-pink {
    background: rgba(255, 106, 155, .15);
}

.icon-cyan {
    background: rgba(61, 240, 200, .15);
}

.skill-cat h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.skill-bar-wrap {
    margin-bottom: 14px;
}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: .83rem;
    color: var(--muted);
}

.skill-bar-label span:last-child {
    color: var(--accent1);
    font-weight: 500;
}

.skill-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, .06);
    border-radius: 99px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--grad);
    animation: bar-grow .8s .2s cubic-bezier(.4, 0, .2, 1) both;
    transform-origin: left;
}

.skill-bar-fill.cyan {
    background: var(--grad2);
}

.skill-bar-fill.pink {
    background: linear-gradient(90deg, var(--accent2), var(--accent1));
}

/* Tags row */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.skill-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: .75rem;
    color: var(--muted);
    transition: all .2s;
}

.skill-tag:hover {
    background: rgba(124, 106, 255, .12);
    border-color: rgba(124, 106, 255, .3);
    color: var(--accent1);
}

/* Projects Section */
#projects {
    padding: 120px 0;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
}

.projects-header .section-sub {
    margin-bottom: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s, border-color .35s;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .35);
    border-color: rgba(124, 106, 255, .25);
}

.project-card.featured {
    grid-column: span 2;
}

.project-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-card.featured .project-thumb {
    height: 260px;
}

.project-thumb-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform .4s;
}

.project-thumb-bg img {
    width: 100%;
}

.project-card:hover .project-thumb-bg {
    transform: scale(1.08);
}

.bg-p1 {
    background: linear-gradient(135deg, #1a1040, #2d1b69);
}

.bg-p2 {
    background: linear-gradient(135deg, #0d2a1f, #0a4a2e);
}

.bg-p3 {
    background: linear-gradient(135deg, #2a0d1a, #4a0a2a);
}

.bg-p4 {
    background: linear-gradient(135deg, #0d1a2a, #0a2a4a);
}

.bg-p5 {
    background: linear-gradient(135deg, #1a2a0d, #2a4a0a);
}

.project-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .04em;
}

.badge-featured {
    background: var(--grad);
    color: #fff;
}

.badge-new {
    background: rgba(61, 240, 200, .15);
    color: var(--accent3);
    border: 1px solid rgba(61, 240, 200, .2);
}

.badge-wip {
    background: rgba(255, 106, 155, .12);
    color: var(--accent2);
    border: 1px solid rgba(255, 106, 155, .2);
}

.project-body {
    padding: 24px;
}

.project-body h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.project-body p {
    font-size: .87rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.stack-tag {
    padding: 3px 10px;
    background: rgba(255, 255, 255, .05);
    border-radius: 6px;
    font-size: .73rem;
    color: var(--muted);
    font-family: monospace;
}

.project-links {
    display: flex;
    gap: 10px;
}

.proj-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}

.proj-btn-fill {
    background: var(--grad);
    color: #fff;
}

.proj-btn-fill:hover {
    opacity: .85;
    transform: translateY(-1px);
}

.proj-btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
}

.proj-btn-outline:hover {
    border-color: var(--accent1);
    color: var(--accent1);
}

/* Education Section */
#education {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(61, 240, 200, .02) 50%, transparent);
}

.edu-header {
    text-align: center;
}

.edu-header .section-tag {
    justify-content: center;
}

.edu-header .section-sub {
    margin: 0 auto 56px;
    text-align: center;
}

.edu-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.edu-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent1), var(--accent2), transparent);
    border-radius: 99px;
}

.edu-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 48px;
}

.edu-item:nth-child(odd) .edu-content {
    grid-column: 1;
    text-align: right;
}

.edu-item:nth-child(odd) .edu-spacer {
    grid-column: 3;
}

.edu-item:nth-child(even) .edu-content {
    grid-column: 3;
}

.edu-item:nth-child(even) .edu-spacer {
    grid-column: 1;
}

.edu-dot-wrap {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
}

.edu-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--grad);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(124, 106, 255, .3);
    flex-shrink: 0;
    position: relative;
}

.edu-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(124, 106, 255, .2);
    animation: pulse-ring 2s ease-out infinite;
}

.edu-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform .3s, border-color .3s;
}

.edu-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 106, 255, .25);
}

.edu-card .year {
    font-size: .75rem;
    color: var(--accent1);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.edu-card h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.edu-card .institute {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.edu-card p {
    font-size: .83rem;
    color: var(--muted);
    line-height: 1.65;
}

.edu-grade {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 4px 10px;
    background: rgba(61, 240, 200, .1);
    border-radius: 99px;
    font-size: .75rem;
    color: var(--accent3);
    font-weight: 500;
}

/* Contact Section */
#contact {
    padding: 120px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-sub {
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.contact-method:hover {
    transform: translateX(6px);
    border-color: rgba(124, 106, 255, .3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(124, 106, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background .25s;
}

.contact-method:hover .contact-icon {
    background: rgba(124, 106, 255, .25);
}

.contact-method-info strong {
    display: block;
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-method-info span {
    font-size: .8rem;
    color: var(--muted);
}

/* Form */
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: .03em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .9rem;
    outline: none;
    transition: border-color .25s, background .25s, box-shadow .25s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent1);
    background: rgba(124, 106, 255, .06);
    box-shadow: 0 0 0 4px rgba(124, 106, 255, .12);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(122, 122, 154, .5);
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--grad);
    background-size: 200%;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .04em;
    transition: transform .25s, box-shadow .25s, opacity .25s;
    animation: gradient-shift 4s ease infinite;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(124, 106, 255, .35);
}

.form-submit:active {
    transform: translateY(0);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copy {
    font-size: .82rem;
    color: var(--muted);
}

.footer-copy span {
    color: var(--accent2);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
    transition: all .25s;
}

.social-btn:hover {
    background: rgba(124, 106, 255, .15);
    border-color: rgba(124, 106, 255, .4);
    color: var(--accent1);
    transform: translateY(-3px);
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0 32px;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .avatar-wrap {
        width: 260px;
        height: 260px;
    }

    .avatar-img {
        width: 260px;
        height: 260px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .skills-categories {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card.featured {
        grid-column: span 2;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 60px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-inner {
        padding: 60px 0;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 28px;
        flex-wrap: wrap;
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .edu-timeline::before {
        left: 16px;
        transform: none;
    }

    .edu-item {
        grid-template-columns: 32px 1fr;
        gap: 16px;
    }

    .edu-item:nth-child(odd) .edu-content,
    .edu-item:nth-child(even) .edu-content {
        grid-column: 2;
        text-align: left;
    }

    .edu-item .edu-spacer {
        display: none;
    }

    .edu-dot-wrap {
        grid-column: 1;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .avatar-wrap {
        width: 200px;
        height: 200px;
    }

    .avatar-img {
        width: 200px;
        height: 200px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .chip-1,
    .chip-2,
    .chip-3 {
        display: none;
    }
}