/* ============================================
   DESIGN SYSTEM & VARIABLES
   ============================================ */
:root {
    /* Colors - Dark Theme with Cyan/Electric Blue accent */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-tertiary: #141425;
    --bg-card: rgba(20, 20, 40, 0.6);
    --bg-card-hover: rgba(30, 30, 60, 0.8);

    --text-primary: #e8e8f0;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;

    --accent-primary: #00d4ff;
    --accent-secondary: #7b61ff;
    --accent-tertiary: #ff6b9d;
    --accent-gradient: linear-gradient(135deg, #00d4ff, #7b61ff);
    --accent-gradient-hover: linear-gradient(135deg, #7b61ff, #00d4ff);

    --border-color: rgba(100, 100, 180, 0.15);
    --border-glow: rgba(0, 212, 255, 0.3);

    --glass-bg: rgba(15, 15, 30, 0.7);
    --glass-border: rgba(100, 100, 200, 0.1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --shadow-glow-purple: 0 0 30px rgba(123, 97, 255, 0.15);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --container-padding: 0 24px;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: left, top;
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
    transition: var(--transition-base);
}

.nav-logo:hover {
    color: var(--accent-primary);
}

.logo-bracket {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 30px;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--accent-primary);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
    background: var(--accent-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient-hover);
    opacity: 0;
    transition: var(--transition-base);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary i,
.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(0, 255, 136, 0);
    }
}

.hero-title {
    margin-bottom: 24px;
}

.title-greeting {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.title-name {
    display: block;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #e8e8f0 20%, #00d4ff 50%, #7b61ff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.title-role {
    display: inline;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.typing-cursor {
    display: inline;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.5s forwards;
    opacity: 0;
}

.hero-socials {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.6s forwards;
    opacity: 0;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-base);
    background: var(--bg-card);
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 0.8s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

.hero-image-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(0, 212, 255, 0.3);
}

.hero-image-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.15);
    animation: spinSlow 20s linear infinite;
}

.hero-image-ring::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--accent-primary);
}

.ring-2 {
    width: 340px;
    height: 340px;
    border-color: rgba(123, 97, 255, 0.1);
    animation-direction: reverse;
    animation-duration: 25s;
}

.ring-2::before {
    background: var(--accent-secondary);
    box-shadow: 0 0 15px var(--accent-secondary);
    width: 8px;
    height: 8px;
    top: auto;
    bottom: -4px;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Floating Cards - Orbiting */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    z-index: 3;
    /* Center on parent */
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -50px;
    white-space: nowrap;
}

.floating-card i {
    font-size: 1.1rem;
    color: var(--accent-primary);
}

/* Each card starts at a different angle and orbits 360° */
.card-1 {
    animation: orbit1 25s linear infinite;
}

.card-2 {
    animation: orbit2 25s linear infinite;
}

.card-3 {
    animation: orbit3 25s linear infinite;
}

.card-4 {
    animation: orbit4 25s linear infinite;
}

/* Orbit keyframes — rotate position, translate out, counter-rotate to keep text upright */
@keyframes orbit1 {
    from {
        transform: rotate(0deg) translateX(200px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(200px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    from {
        transform: rotate(90deg) translateX(200px) rotate(-90deg);
    }

    to {
        transform: rotate(450deg) translateX(200px) rotate(-450deg);
    }
}

@keyframes orbit3 {
    from {
        transform: rotate(180deg) translateX(200px) rotate(-180deg);
    }

    to {
        transform: rotate(540deg) translateX(200px) rotate(-540deg);
    }
}

@keyframes orbit4 {
    from {
        transform: rotate(270deg) translateX(200px) rotate(-270deg);
    }

    to {
        transform: rotate(630deg) translateX(200px) rotate(-630deg);
    }
}

/* ============================================
   LEETCODE HIGHLIGHT CARD
   ============================================ */
.leetcode-highlight {
    margin-top: 48px;
}

.leetcode-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 161, 22, 0.06), rgba(255, 161, 22, 0.02));
    border: 1px solid rgba(255, 161, 22, 0.2);
    border-radius: var(--radius-xl);
    padding: 28px 36px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.leetcode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffa116, #ffcc00, #ffa116);
    opacity: 1;
}

.leetcode-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 161, 22, 0.05), transparent);
    transition: left 0.6s ease;
}

.leetcode-card:hover::after {
    left: 100%;
}

.leetcode-card:hover {
    border-color: rgba(255, 161, 22, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(255, 161, 22, 0.15);
}

.leetcode-card-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.leetcode-icon-wrapper {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffa116, #ffcc00);
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 161, 22, 0.3);
}

.leetcode-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.leetcode-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 400px;
}

.leetcode-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.leetcode-username {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: #ffa116;
}

.leetcode-cta {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-base);
}

.leetcode-card:hover .leetcode-cta {
    color: #ffa116;
}

.leetcode-cta i {
    font-size: 0.7rem;
    transition: transform var(--transition-base);
}

.leetcode-card:hover .leetcode-cta i {
    transform: translateX(4px);
}

/* ============================================
   SECTIONS (COMMON)
   ============================================ */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 12px;
    opacity: 0.7;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-primary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--transition-base);
}

.stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: var(--transition-base);
}

.skill-category:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    color: #fff;
}

.skill-category h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent-primary);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.skill-tag i {
    font-size: 0.9rem;
    color: var(--accent-primary);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(123, 97, 255, 0.04));
    border-color: rgba(0, 212, 255, 0.15);
}

.project-card.featured::before {
    opacity: 1;
    height: 3px;
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    color: var(--accent-primary);
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition-base);
    font-size: 1.1rem;
}

.project-link-icon:hover {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.08);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.project-subtitle {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 14px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 4px 12px;
    background: rgba(123, 97, 255, 0.08);
    border: 1px solid rgba(123, 97, 255, 0.15);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
}

/* ROS2 Featured Project */
.project-card.ros2-featured {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.04), rgba(0, 212, 255, 0.03));
    border-color: rgba(0, 255, 136, 0.18);
}

.project-card.ros2-featured::before {
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    opacity: 1;
}

.project-card.ros2-featured:hover {
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.12);
}

.ros2-icon {
    background: rgba(0, 255, 136, 0.1) !important;
    border-color: rgba(0, 255, 136, 0.2) !important;
    color: #00ff88 !important;
}

.ros2-badge {
    background: linear-gradient(135deg, #00ff88, #00d4ff) !important;
    color: #0a0a0f !important;
}

.project-card.ros2-featured .project-subtitle {
    color: #00ff88;
}

.project-card.ros2-featured .project-tech span {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 8px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-gradient);
    border-radius: 50%;
    position: relative;
    left: 10px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-base);
}

.timeline-content:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-company i {
    color: var(--accent-secondary);
}

.timeline-details {
    list-style: none;
}

.timeline-details li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
    line-height: 1.7;
}

.timeline-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: flex;
    gap: 24px;
    transition: var(--transition-base);
}

.education-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.education-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    color: #fff;
}

.education-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.education-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.education-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.education-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.education-date,
.education-grade {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.education-grade i {
    color: #ffd700;
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    text-align: center;
    transition: var(--transition-base);
}

.cert-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-6px);
}

.cert-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    margin: 0 auto 20px;
    font-size: 1.4rem;
    color: #fff;
}

.cert-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Inline Certifications */
.certs-inline {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.certs-inline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.certs-inline-header i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.certs-inline-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.certs-inline-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cert-inline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.cert-inline-item:hover {
    border-color: rgba(0, 212, 255, 0.15);
    transform: translateX(4px);
}

.cert-inline-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.cert-inline-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-inline-item strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cert-inline-item span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Highlighted cert */
.cert-inline-item.cert-highlight {
    background: rgba(0, 212, 255, 0.04);
    border-color: rgba(0, 212, 255, 0.15);
}

.cert-inline-item.cert-highlight i {
    color: var(--accent-primary);
}

.cert-inline-item.cert-highlight strong {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
    display: block;
}

.contact-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-6px);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: #fff;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-all;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.contact-social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.contact-social-link i {
    font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Scroll reveal animation utility */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-description {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }

    .hero-image-ring {
        width: 240px;
        height: 240px;
    }

    .ring-2 {
        width: 280px;
        height: 280px;
    }

    .floating-card {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .project-card.featured {
        grid-column: auto;
    }

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

    .leetcode-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .leetcode-card-left {
        flex-direction: column;
        text-align: center;
    }

    .leetcode-card-right {
        align-items: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 10, 20, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 4px;
        transition: var(--transition-base);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 100px 0 40px;
    }

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

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

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-socials {
        flex-direction: column;
        align-items: center;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: -30px;
    }

    .timeline-dot {
        left: 5px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
    }

    .education-icon {
        margin: 0 auto;
    }

    .education-meta {
        justify-content: center;
    }

    .education-location {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero-image {
        width: 160px;
        height: 160px;
    }

    .hero-image-ring {
        width: 190px;
        height: 190px;
    }

    .ring-2 {
        width: 220px;
        height: 220px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .timeline-content {
        padding: 24px;
    }

    .leetcode-card {
        padding: 20px;
    }

    .leetcode-info p {
        max-width: 100%;
    }
}