:root {
    --bg-dark: #0a0e1a;
    --bg-card: #111827;
    --bg-card2: #0f172a;
    --accent: #00c2b3;
    --accent2: #6366f1;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(255, 255, 255, 0.07);
    --glow: 0 0 40px rgba(0, 194, 179, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 6%;
    background: rgba(10, 14, 26, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: #0a0e1a !important;
    padding: 0.5rem 1.3rem;
    border-radius: 6px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    opacity: 0.85;
}

/* HERO */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 6% 5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0, 194, 179, 0.08) 0%, transparent 65%), radial-gradient(ellipse 50% 40% at 20% 70%, rgba(99, 102, 241, 0.07) 0%, transparent 60%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 194, 179, 0.1);
    border: 1px solid rgba(0, 194, 179, 0.25);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8)
    }
}

.hero-name {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    letter-spacing: -1px;
}

.hero-name .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.hero-summary {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2.2rem;
    max-width: 560px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.2rem;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-meta-item i {
    color: var(--accent);
}

.hero-meta-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-meta-item a:hover {
    color: var(--accent);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: #0a0e1a;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 194, 179, 0.35);
}

.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-stats {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 1;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    text-align: center;
    min-width: 130px;
    box-shadow: var(--glow);
}

.stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* SECTIONS */
section {
    padding: 6rem 6%;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-sub {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1rem;
    margin-bottom: 3.5rem;
    line-height: 1.7;
}

/* SKILLS */
#skills {
    background: var(--bg-card2);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    transition: border-color 0.2s, transform 0.2s;
}

.skill-card:hover {
    border-color: rgba(0, 194, 179, 0.3);
    transform: translateY(-3px);
}

.skill-card-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 194, 179, 0.08);
    border: 1px solid rgba(0, 194, 179, 0.15);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
}

.tag.purple {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.tag.orange {
    background: rgba(251, 146, 60, 0.08);
    border-color: rgba(251, 146, 60, 0.22);
    color: #fb923c;
}

.soft-skill-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
}

/* EXPERIENCE */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 0 4px rgba(0, 194, 179, 0.15);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.exp-company {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}

.exp-date {
    font-size: 0.82rem;
    color: var(--accent);
    background: rgba(0, 194, 179, 0.08);
    border: 1px solid rgba(0, 194, 179, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    white-space: nowrap;
}

.exp-role {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.exp-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exp-bullets li {
    font-size: 0.92rem;
    color: var(--text-muted);
    padding-left: 1rem;
    position: relative;
    line-height: 1.6;
}

.exp-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

/* PROJECTS */
#projects {
    background: var(--bg-card2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 194, 179, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-img-wrap {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.45s ease;
}

.project-card:hover .project-img-wrap img {
    transform: scale(1.05);
}

/* Gradient fallbacks per card */
.fb-1 {
    background: linear-gradient(135deg, #0d2137 0%, #1a4a6e 100%);
}

.fb-2 {
    background: linear-gradient(135deg, #0d1f37 0%, #1e3a5f 100%);
}

.fb-3 {
    background: linear-gradient(135deg, #1a0d37 0%, #3d1a6e 100%);
}

.fb-4 {
    background: linear-gradient(135deg, #0d370d 0%, #1a6e2a 100%);
}

.fb-5 {
    background: linear-gradient(135deg, #37200d 0%, #6e4a1a 100%);
}

.fb-6 {
    background: linear-gradient(135deg, #1a1a0d 0%, #3a3a1a 100%);
}

.fb-7 {
    background: linear-gradient(135deg, #0d1a37 0%, #1a2e5f 100%);
}

.fb-8 {
    background: linear-gradient(135deg, #370d1a 0%, #6e1a3a 100%);
}

.img-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.img-fallback.visible {
    opacity: 0.65;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(10, 14, 26, 0.55) 100%);
    pointer-events: none;
}

.project-category {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(10, 14, 26, 0.78);
    border: 1px solid rgba(0, 194, 179, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.project-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.2rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.tech-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.project-link {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
}

.project-link:hover {
    gap: 0.6rem;
}

/* EDUCATION */
.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 700px;
    transition: border-color 0.2s;
}

.edu-card:hover {
    border-color: rgba(0, 194, 179, 0.3);
}

.edu-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.edu-degree {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.edu-school {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.edu-year {
    font-size: 0.82rem;
    color: var(--accent);
    background: rgba(0, 194, 179, 0.08);
    border: 1px solid rgba(0, 194, 179, 0.2);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    display: inline-block;
}

/* CONTACT */
#contact {
    background: var(--bg-card2);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    border-color: rgba(0, 194, 179, 0.35);
    transform: translateX(4px);
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: rgba(0, 194, 179, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.1rem;
    color: var(--accent);
}

.contact-icon.github-bg {
    background: rgba(255, 255, 255, 0.06);
}

.contact-icon.github-bg i {
    color: #e2e8f0;
}

.contact-icon.linkedin-bg {
    background: rgba(10, 102, 194, 0.15);
}

.contact-icon.linkedin-bg i {
    color: #60a5fa;
}

.contact-icon.location-bg {
    background: rgba(239, 68, 68, 0.1);
}

.contact-icon.location-bg i {
    color: #f87171;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.contact-val {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cta-box {
    background: linear-gradient(135deg, rgba(0, 194, 179, 0.1), rgba(99, 102, 241, 0.07));
    border: 1px solid rgba(0, 194, 179, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
}

.cta-box h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    line-height: 1.65;
}

/* FOOTER */
footer {
    background: #06080f;
    border-top: 1px solid var(--border);
    padding: 2rem 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-logo span {
    color: var(--accent);
}

footer p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

@media (max-width: 900px) {
    .hero-stats {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    nav .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    section {
        padding: 4rem 5%;
    }

    #home {
        padding: 7rem 5% 4rem;
    }

    nav {
        padding: 1rem 5%;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.35s;
}

.delay-4 {
    animation-delay: 0.5s;
}