*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --emerald: #00ff87;
    --emerald-dim: #00c96a;
    --emerald-glow: rgba(0,255,135,0.15);
    --navy: #050d1a;
    --navy-2: #0a1628;
    --navy-3: #0f1e35;
    --text: #c8ddf5;
    --text-dim: #6b8aad;
    --white: #ffffff;
    --mono: 'Space Mono', monospace;
    --sans: 'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--navy);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}

/* Custom cursor */
.cursor {
    width: 12px; height: 12px;
    background: var(--emerald);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid var(--emerald);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transition: transform 0.12s ease, width 0.2s, height 0.2s, opacity 0.2s;
    opacity: 0.5;
}
.cursor-ring.hover { width: 60px; height: 60px; opacity: 0.8; }

/* Grid background */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(0,255,135,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,135,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
}

/* NAV */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(5,13,26,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,255,135,0.08);
}
.nav-container {
    max-width: 1300px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-family: var(--mono); font-size: 1.1rem; color: var(--emerald); letter-spacing: 0.05em; }
.logo span { color: var(--text-dim); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    font-family: var(--mono); font-size: 0.78rem;
    text-decoration: none; color: var(--text-dim);
    letter-spacing: 0.1em; text-transform: uppercase;
    transition: color 0.2s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--emerald);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--emerald); }
.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--emerald); transition: 0.3s; display: block; }

/* HERO */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding-top: 80px; position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(0,255,135,0.06) 0%, transparent 70%);
}
.hero-container {
    max-width: 1300px; margin: 0 auto; padding: 4rem 2rem;
    display: grid; grid-template-columns: 1fr 420px;
    gap: 4rem; align-items: center;
    position: relative; z-index: 1;
}
.hero-eyebrow {
    font-family: var(--mono); font-size: 0.78rem;
    color: var(--emerald); letter-spacing: 0.2em;
    text-transform: uppercase; margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--emerald); }
.hero-name {
    font-family: var(--sans); font-weight: 800;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1; color: var(--white); margin-bottom: 1rem;
}
.hero-name .highlight { color: var(--emerald); display: block; }
.hero-tagline {
    font-family: var(--mono); font-size: 1rem;
    color: var(--text-dim); margin-bottom: 1.5rem; line-height: 1.6;
}
.hero-desc {
    font-size: 1.05rem; color: var(--text);
    line-height: 1.8; margin-bottom: 3rem;
    max-width: 500px; opacity: 0.85;
}
.hero-actions { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.btn {
    font-family: var(--mono); font-size: 0.8rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.9rem 2rem; border-radius: 4px;
    text-decoration: none; display: inline-block;
    transition: all 0.25s ease;
}
.btn-primary {
    background: var(--emerald); color: var(--navy);
    font-weight: 700; box-shadow: 0 0 30px rgba(0,255,135,0.3);
}
.btn-primary:hover {
    background: var(--white);
    box-shadow: 0 0 50px rgba(0,255,135,0.5);
    transform: translateY(-2px);
}
.btn-outline {
    border: 1px solid rgba(0,255,135,0.4); color: var(--emerald);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--emerald); background: var(--emerald-glow);
    transform: translateY(-2px);
}

/* Hero image */
.hero-image { display: flex; justify-content: center; align-items: center; }
.photo-frame { position: relative; width: 340px; height: 340px; }
.photo-frame::before {
    content: ''; position: absolute; inset: -2px; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--emerald), transparent 40%, var(--emerald) 100%);
    animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-inner {
    position: absolute; inset: 3px;
    border-radius: 50%; overflow: hidden; background: var(--navy-2);
}
.hero-photo {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    border-radius: 50%; transition: transform 0.4s ease;
}
.photo-frame:hover .hero-photo { transform: scale(1.05); }
.status-badge {
    position: absolute; bottom: 10px; left: 50%;
    transform: translateX(-50%);
    background: var(--navy-3);
    border: 1px solid rgba(0,255,135,0.3);
    border-radius: 20px; padding: 0.4rem 1rem;
    font-family: var(--mono); font-size: 0.7rem;
    color: var(--emerald); white-space: nowrap;
    display: flex; align-items: center; gap: 0.5rem;
}
.status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--emerald); animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Sections */
section { padding: 100px 0; position: relative; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.section-label {
    font-family: var(--mono); font-size: 0.72rem;
    color: var(--emerald); letter-spacing: 0.25em;
    text-transform: uppercase; margin-bottom: 0.8rem;
    display: flex; align-items: center; gap: 1rem; justify-content: center;
}
.section-label::before, .section-label::after {
    content: ''; flex: 1; height: 1px;
    background: rgba(0,255,135,0.2); max-width: 80px;
}
.section-title {
    text-align: center;
    font-family: var(--sans); font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white); margin-bottom: 4rem;
}

/* ABOUT */
#about { background: var(--navy-2); }
.about-box {
    max-width: 820px; margin: 0 auto;
    background: var(--navy-3);
    border: 1px solid rgba(0,255,135,0.12);
    border-radius: 16px; padding: 3rem;
    position: relative; overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}
.about-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,135,0.1);
}
.about-box p { font-size: 1.05rem; line-height: 1.9; color: var(--text); text-align: center; }
.about-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 2.5rem;
}
.stat-item {
    text-align: center; padding: 1.2rem;
    border: 1px solid rgba(0,255,135,0.1);
    border-radius: 10px; background: rgba(0,255,135,0.03);
}
.stat-num {
    font-family: var(--mono); font-size: 2rem; font-weight: 700;
    color: var(--emerald); display: block;
}
.stat-label {
    font-family: var(--mono); font-size: 0.7rem;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.3rem;
}

/* SKILLS */
#skills { background: var(--navy); }
.skills-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-bottom: 3rem;
}
.skill-category {
    background: var(--navy-2); border: 1px solid rgba(0,255,135,0.08);
    border-radius: 14px; padding: 2rem;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.skill-category::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--emerald), var(--emerald-dim));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.skill-category:hover {
    border-color: rgba(0,255,135,0.25); transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,135,0.08);
}
.skill-category:hover::after { transform: scaleX(1); }
.skill-category h3 {
    font-family: var(--sans); font-weight: 700; font-size: 1rem;
    color: var(--emerald); margin-bottom: 1.2rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-tag {
    font-family: var(--mono); font-size: 0.75rem;
    padding: 0.45rem 0.9rem; border-radius: 4px;
    background: rgba(0,255,135,0.05);
    border: 1px solid rgba(0,255,135,0.15);
    color: var(--text); transition: all 0.2s ease;
}
.skill-tag:hover {
    background: rgba(0,255,135,0.12); border-color: var(--emerald); color: var(--emerald);
}
.skills-highlight {
    text-align: center; padding: 2.5rem;
    background: var(--navy-2); border: 1px solid rgba(0,255,135,0.15); border-radius: 14px;
}
.skills-highlight h3 { font-size: 1.3rem; color: var(--white); margin-bottom: 0.5rem; }
.skills-highlight p { color: var(--text-dim); margin-bottom: 1.5rem; }
.tech-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.tech-badge {
    font-family: var(--mono); font-size: 0.8rem; padding: 0.6rem 1.4rem;
    border: 1px solid var(--emerald); border-radius: 4px; color: var(--emerald);
    background: transparent; transition: all 0.2s ease;
}
.tech-badge:hover {
    background: var(--emerald); color: var(--navy); box-shadow: 0 0 20px rgba(0,255,135,0.4);
}

/* PROJECTS */
#projects { background: var(--navy-2); }
.projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 2rem;
}
.project-card {
    background: var(--navy); border: 1px solid rgba(0,255,135,0.1);
    border-radius: 14px; overflow: hidden;
    transition: all 0.35s ease; position: relative;
}
.project-card:hover {
    transform: translateY(-8px); border-color: rgba(0,255,135,0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,255,135,0.1);
}
.project-number {
    position: absolute; top: 1.5rem; right: 1.5rem;
    font-family: var(--mono); font-size: 0.65rem;
    color: var(--emerald); opacity: 0.5; letter-spacing: 0.1em;
}
.project-header { padding: 2rem 2rem 1.5rem; border-bottom: 1px solid rgba(0,255,135,0.08); }
.project-header h3 {
    font-family: var(--sans); font-weight: 700;
    font-size: 1.25rem; color: var(--white); margin-bottom: 0.5rem;
}
.project-tech { font-family: var(--mono); font-size: 0.72rem; color: var(--emerald); opacity: 0.8; }
.project-body { padding: 1.5rem 2rem 2rem; }
.project-body ul { list-style: none; margin-bottom: 1.5rem; }
.project-body li {
    padding: 0.4rem 0 0.4rem 1.4rem; position: relative;
    font-size: 0.9rem; color: var(--text); line-height: 1.6;
}
.project-body li::before { content: '▹'; position: absolute; left: 0; color: var(--emerald); font-size: 0.8rem; }
.project-links { display: flex; gap: 1rem; }
.project-links a {
    font-family: var(--mono); font-size: 0.72rem;
    text-decoration: none; color: var(--text-dim);
    letter-spacing: 0.08em; transition: color 0.2s;
    padding: 0.4rem 0; border-bottom: 1px solid transparent;
}
.project-links a:hover { color: var(--emerald); border-bottom-color: var(--emerald); }
.featured-project {
    border-color: rgba(0,255,135,0.25);
    background: linear-gradient(145deg, var(--navy), #071228);
}
.featured-project:hover { box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,255,135,0.18); }
.ai-badge {
    position: absolute; top: 1.5rem; right: 3.5rem;
    font-family: var(--mono); font-size: 0.65rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--navy); background: var(--emerald);
    padding: 0.25rem 0.7rem; border-radius: 20px; font-weight: 700;
}
.project-body strong { color: var(--emerald); font-weight: 600; }

/* EXPERIENCE */
#experience { background: var(--navy); }
.experience-card {
    max-width: 800px; margin: 0 auto;
    background: var(--navy-2); border: 1px solid rgba(0,255,135,0.12);
    border-radius: 14px; padding: 2.5rem;
    border-left: 3px solid var(--emerald); transition: all 0.3s ease;
}
.experience-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,135,0.08); }
.experience-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.experience-header h3 { font-family: var(--sans); font-weight: 700; font-size: 1.4rem; color: var(--white); }
.company { font-family: var(--mono); font-size: 0.85rem; color: var(--emerald); margin-top: 0.3rem; }
.exp-badge {
    font-family: var(--mono); font-size: 0.7rem; padding: 0.4rem 1rem; border-radius: 20px;
    background: rgba(0,255,135,0.08); border: 1px solid rgba(0,255,135,0.2);
    color: var(--emerald); white-space: nowrap;
}
.experience-body ul { list-style: none; }
.experience-body li {
    padding: 0.5rem 0 0.5rem 1.5rem; position: relative;
    font-size: 0.95rem; color: var(--text); line-height: 1.7;
}
.experience-body li::before { content: '▸'; position: absolute; left: 0; color: var(--emerald); }

/* EDUCATION */
#education { background: var(--navy-2); }
.education-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; max-width: 900px; margin: 0 auto;
}
.education-card {
    background: var(--navy); border: 1px solid rgba(0,255,135,0.1);
    border-radius: 14px; padding: 2rem; text-align: center; transition: all 0.3s ease;
}
.education-card:hover {
    border-color: rgba(0,255,135,0.3); transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.education-card h3 {
    font-family: var(--mono); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--emerald); margin-bottom: 1.2rem;
}
.education-card p { color: var(--text); line-height: 1.8; }
.education-card strong { color: var(--white); }
.cert-list { list-style: none; margin-top: 1rem; }
.cert-list li { padding: 0.8rem 0; border-bottom: 1px solid rgba(0,255,135,0.08); color: var(--text); }
.cert-list li small {
    font-family: var(--mono); font-size: 0.7rem;
    color: var(--emerald); display: block; margin-top: 0.2rem;
}

/* CONTACT */
#contact { background: var(--navy); }
.contact-content { max-width: 1000px; margin: 0 auto; text-align: center; }
.contact-subtitle { font-size: 1.05rem; color: var(--text-dim); margin-bottom: 4rem; margin-top: -2.5rem; }
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
}
.contact-item {
    background: var(--navy-2); border: 1px solid rgba(0,255,135,0.08);
    border-radius: 14px; padding: 2rem 1.5rem;
    transition: all 0.35s ease; position: relative; overflow: hidden;
}
.contact-item::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: var(--emerald); transform: scaleX(0); transform-origin: center;
    transition: transform 0.3s ease;
}
.contact-item:hover {
    border-color: rgba(0,255,135,0.25); transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,135,0.1);
}
.contact-item:hover::before { transform: scaleX(1); }
.icon-circle {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(0,255,135,0.08); border: 1px solid rgba(0,255,135,0.2);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem; transition: all 0.3s ease;
}
.icon-circle img { width: 28px; height: 28px; object-fit: contain; }
.contact-item:hover .icon-circle {
    background: rgba(0,255,135,0.15); box-shadow: 0 0 25px rgba(0,255,135,0.4);
}
.contact-item a {
    font-family: var(--mono); font-size: 0.85rem;
    color: var(--text); text-decoration: none; transition: color 0.2s;
}
.contact-item:hover a { color: var(--emerald); }

/* FOOTER */
footer {
    background: var(--navy-3); border-top: 1px solid rgba(0,255,135,0.08);
    padding: 2rem; text-align: center;
}
footer p { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); line-height: 2; }
footer span { color: var(--emerald); }

/* ANIMATIONS */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-image { order: -1; }
    .photo-frame { width: 240px; height: 240px; }
    .hero-eyebrow { justify-content: center; }
    .hero-desc { margin: 0 auto 3rem; }
    .hero-actions { justify-content: center; }
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 65px; left: 0; right: 0;
        background: rgba(5,13,26,0.97);
        flex-direction: column; padding: 2rem;
        gap: 1.5rem; display: none;
        border-bottom: 1px solid rgba(0,255,135,0.1);
    }
    .nav-links.active { display: flex; }
    .about-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    section { padding: 70px 0; }
}