/* ====================================
   ANSH BAHL — PORTFOLIO STYLESHEET
   ==================================== */

/* ---------- PRELOADER ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    animation: preloader-pulse 1.5s ease-in-out infinite;
}

.preloader-logo .logo-bracket {
    color: #6366f1;
}

@keyframes preloader-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.preloader-bar {
    width: 180px;
    height: 3px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    border-radius: 3px;
    animation: preloader-fill 1.2s ease forwards;
}

@keyframes preloader-fill {
    to { width: 100%; }
}

/* ---------- CUSTOM CURSOR ---------- */
.custom-cursor {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.custom-cursor.cursor-hover {
    width: 52px;
    height: 52px;
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(99, 102, 241, 0.06);
}

.custom-cursor-dot.cursor-hover {
    width: 4px;
    height: 4px;
    background: #a78bfa;
}

@media (max-width: 768px) {
    .custom-cursor, .custom-cursor-dot {
        display: none !important;
    }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}


/* ---------- CSS VARIABLES ---------- */
:root {
    /* Background */
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: rgba(15, 15, 42, 0.6);
    --bg-card-hover: rgba(25, 25, 60, 0.7);

    /* Text */
    --text-primary: #e4e4f0;
    --text-secondary: #9596af;
    --text-muted: #5e5f7a;

    /* Accent */
    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #a78bfa;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);

    /* Glass */
    --glass-bg: rgba(15, 15, 42, 0.5);
    --glass-border: rgba(99, 102, 241, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Misc */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-xs: 4px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;

    /* Sizes */
    --nav-height: 72px;
    --container-max: 1200px;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

a {
    color: var(--accent-3);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- GLASS CARD ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-3);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-1);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    border-color: var(--accent-1);
    color: var(--accent-3);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- SECTION ---------- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-number {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-1);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
    margin-left: 16px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--accent-3);
    font-weight: 600;
}

/* ---------- ANIMATION CLASSES ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(5) {
    transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(6) {
    transition-delay: 0.5s;
}

/* ====================================
   NAVBAR
   ==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo-bracket {
    color: var(--accent-1);
    font-weight: 400;
}

.nav-logo:hover {
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active {
    color: var(--accent-3);
}

.nav-link-cta {
    background: var(--gradient);
    color: #fff !important;
    border-radius: 50px;
    padding: 8px 20px;
}

.nav-link-cta:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ====================================
   HERO
   ==================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* Background Effects */
.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    top: -10%;
    right: -5%;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
    bottom: 10%;
    left: -10%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 12s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-10px, 20px) scale(0.95);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-3);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--accent-3);
    margin-bottom: 24px;
    font-weight: 500;
    min-height: 2em;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-1);
    font-weight: 300;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* ====================================
   ABOUT
   ==================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 400;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
}

.about-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.about-highlight-item i {
    color: var(--accent-1);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* Terminal Card */
.about-card {
    padding: 0;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ff5f57;
}

.terminal-dot.yellow {
    background: #febc2e;
}

.terminal-dot.green {
    background: #28c840;
}

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.term-prompt {
    color: #22c55e;
    font-weight: 700;
}

.term-cmd {
    color: var(--accent-3);
}

.term-output {
    color: var(--text-secondary);
    padding-left: 16px;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: #22c55e;
}

/* Profile Photo */
.about-image {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-photo-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    padding: 4px;
    background: var(--gradient);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.25);
    transition: var(--transition);
}

.about-photo-wrapper:hover {
    box-shadow: 0 12px 50px rgba(99, 102, 241, 0.35);
    transform: translateY(-4px);
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 3px);
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    max-height: 340px;
}

/* ====================================
   SKILLS
   ==================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.skill-category {
    padding: 32px;
}

.skill-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent-1);
}

.skill-category-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--accent-1);
    color: var(--accent-3);
    background: rgba(99, 102, 241, 0.15);
}

.skill-tag i {
    color: var(--accent-1);
    font-size: 0.8rem;
}

/* Tech Orbit */
.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-secondary);
}

.tech-orbit {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}

.tech-orbit::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

.tech-orbit-item {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-3);
    top: 50%;
    left: 50%;
    transform: rotate(calc(var(--i) * 45deg)) translate(140px) rotate(calc(var(--i) * -45deg));
    transition: var(--transition);
    z-index: 2;
}

.tech-orbit-item:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-1);
    transform: rotate(calc(var(--i) * 45deg)) translate(140px) rotate(calc(var(--i) * -45deg)) scale(1.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.tech-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    z-index: 3;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ====================================
   PROJECTS
   ==================================== */
.project-featured {
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.project-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.project-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-3);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-featured-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: center;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-features {
    list-style: none;
    margin-bottom: 24px;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-features li i {
    color: #22c55e;
    font-size: 0.75rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-badge {
    padding: 4px 14px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--accent-3);
    font-size: 0.78rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 12px;
}

/* Project Mockup */
.project-mockup {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
}

.mockup-header {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--glass-border);
}

.mockup-body {
    padding: 24px;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    margin-bottom: 16px;
}

.chart-bar {
    flex: 1;
    height: var(--h);
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.chart-bar.accent {
    background: var(--gradient);
    opacity: 0.8;
}

.mockup-line {
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 16px;
}

.mockup-stats {
    display: flex;
    justify-content: space-around;
}

.mockup-stat {
    text-align: center;
}

.mockup-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.mockup-stat-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-3);
}

.mockup-stat-value.positive {
    color: #22c55e;
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    padding: 32px;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-1);
}

.project-card-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-card-links a:hover {
    color: var(--accent-3);
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.project-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ====================================
   EXPERIENCE
   ==================================== */
.timeline {
    position: relative;
    padding-left: 48px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -48px;
    top: 28px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    z-index: 2;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.timeline-content {
    padding: 32px;
}

.timeline-header {
    margin-bottom: 12px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.timeline-company {
    color: var(--accent-3);
    font-weight: 600;
    font-size: 1rem;
}

.timeline-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.timeline-meta i {
    color: var(--accent-1);
    margin-right: 6px;
}

.timeline-details {
    list-style: none;
    margin-bottom: 20px;
}

.timeline-details li {
    position: relative;
    padding-left: 20px;
    padding-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.timeline-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: 700;
}

/* ====================================
   ACHIEVEMENTS
   ==================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.achievement-card {
    padding: 32px;
    text-align: center;
}

.achievement-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.achievement-icon.gold {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
}

.achievement-icon.silver {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.achievement-icon.accent {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-1);
}

.achievement-icon.blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.achievement-icon.purple {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-2);
}

.achievement-icon.teal {
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
}

.achievement-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.achievement-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ====================================
   EDUCATION
   ==================================== */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.edu-card,
.certs-card {
    padding: 36px;
}

.edu-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-1);
    margin-bottom: 20px;
}

.edu-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.edu-institution {
    color: var(--accent-3);
    font-weight: 500;
    margin-bottom: 16px;
}

.edu-meta {
    display: flex;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.edu-meta i {
    color: var(--accent-1);
    margin-right: 6px;
}

.edu-gpa {
    color: var(--accent-3);
    font-weight: 600;
}

.certs-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.certs-title i {
    color: var(--accent-1);
}

.certs-list {
    list-style: none;
}

.certs-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.certs-list li:last-child {
    border: none;
}

.certs-list li i {
    color: #22c55e;
    font-size: 0.85rem;
}

.certs-list li .fa-spinner {
    color: var(--accent-1);
}

.cert-badge {
    padding: 2px 10px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-3);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--accent-3);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.cert-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-1);
    color: #fff;
}

.cert-link i {
    font-size: 0.65rem;
}

/* Project Card Footer */
.project-card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.06);
}

/* ====================================
   GITHUB GRAPH
   ==================================== */
.github-card {
    padding: 32px;
}

.github-header {
    margin-bottom: 28px;
}

.github-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.github-avatar {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.github-profile h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.github-profile a {
    font-size: 0.85rem;
    color: var(--accent-3);
}

.github-graph {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 3px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.github-cell {
    aspect-ratio: 1;
    border-radius: 2px;
    min-width: 10px;
}

.level-0 {
    background: rgba(99, 102, 241, 0.05);
}

.level-1 {
    background: rgba(99, 102, 241, 0.2);
}

.level-2 {
    background: rgba(99, 102, 241, 0.4);
}

.level-3 {
    background: rgba(99, 102, 241, 0.6);
}

.level-4 {
    background: rgba(99, 102, 241, 0.85);
}

.github-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* ====================================
   CONTACT
   ==================================== */
.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 540px;
    margin: -28px auto 60px;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.contact-form {
    padding: 36px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.12);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-card i {
    font-size: 1.2rem;
    color: var(--accent-1);
    width: 20px;
    text-align: center;
}

.contact-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-card a,
.contact-card span {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.contact-card a:hover {
    color: var(--accent-3);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--accent-3);
}

/* ====================================
   FORM SUCCESS / ERROR
   ==================================== */
.form-status {
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: center;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-featured-content {
        grid-template-columns: 1fr;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    /* Nav */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
    }

    .nav-link-cta {
        width: auto;
        margin-top: 12px;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 250px;
        justify-content: center;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .tech-orbit {
        width: 260px;
        height: 260px;
    }

    .tech-orbit-item {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        transform: rotate(calc(var(--i) * 45deg)) translate(110px) rotate(calc(var(--i) * -45deg));
    }

    .tech-orbit-item:hover {
        transform: rotate(calc(var(--i) * 45deg)) translate(110px) rotate(calc(var(--i) * -45deg)) scale(1.15);
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Achievements */
    .achievements-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* About highlights */
    .about-highlights {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .timeline {
        padding-left: 32px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-marker {
        left: -32px;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .tech-orbit {
        width: 220px;
        height: 220px;
    }

    .tech-orbit-item {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        transform: rotate(calc(var(--i) * 45deg)) translate(90px) rotate(calc(var(--i) * -45deg));
    }

    .tech-orbit-item:hover {
        transform: rotate(calc(var(--i) * 45deg)) translate(90px) rotate(calc(var(--i) * -45deg)) scale(1.15);
    }

    .tech-center-icon {
        width: 56px;
        height: 56px;
        font-size: 1.1rem;
    }
}