/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.6);
    --bg-glass: rgba(26, 26, 46, 0.4);

    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    --accent-glow: rgba(99, 102, 241, 0.3);

    --border-color: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.4);

    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;

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

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

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #eeeef3;
    --bg-secondary: #e4e4ec;
    --bg-tertiary: #d8d8e2;
    --bg-card: rgba(240, 240, 248, 0.85);
    --bg-glass: rgba(238, 238, 243, 0.75);

    --text-primary: #1a1a2e;
    --text-secondary: #3d3d52;
    --text-tertiary: #6e6e84;

    --accent-primary: #5b5ef0;
    --accent-secondary: #7c5ce6;
    --accent-gradient: linear-gradient(135deg, #5b5ef0, #7c5ce6, #9678f0);
    --accent-glow: rgba(91, 94, 240, 0.25);

    --border-color: rgba(91, 94, 240, 0.18);
    --border-hover: rgba(91, 94, 240, 0.4);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(91, 94, 240, 0.12);
}

/* Light theme specific overrides */
[data-theme="light"] .hero::before {
    background: radial-gradient(circle at 30% 40%, rgba(91, 94, 240, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(124, 92, 230, 0.04) 0%, transparent 50%);
}

[data-theme="light"] .hero-name {
    -webkit-text-fill-color: var(--text-primary);
    background: none;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(238, 238, 243, 0.9);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .photo-border {
    border-color: var(--accent-primary);
}

[data-theme="light"] .about-photo img {
    filter: grayscale(5%) contrast(1.02);
}

[data-theme="light"] .about-photo:hover img {
    filter: grayscale(0%) contrast(1.05);
}

[data-theme="light"] .detail-card,
[data-theme="light"] .cert-card,
[data-theme="light"] .project-card,
[data-theme="light"] .pub-card {
    background: rgba(240, 240, 248, 0.9);
    border-color: rgba(91, 94, 240, 0.14);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .detail-card:hover,
[data-theme="light"] .cert-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .pub-card:hover {
    box-shadow: 0 8px 30px rgba(91, 94, 240, 0.12);
}

[data-theme="light"] .timeline-content {
    background: rgba(240, 240, 248, 0.9);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .skill-card {
    background: rgba(240, 240, 248, 0.8);
}

[data-theme="light"] .skill-tab {
    color: var(--text-secondary);
}

[data-theme="light"] .skill-tab.active {
    color: white;
}

[data-theme="light"] .filter-btn {
    color: var(--text-secondary);
}

[data-theme="light"] .filter-btn.active {
    color: white;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(245, 245, 250, 0.9);
    border-color: rgba(91, 94, 240, 0.2);
    color: var(--text-primary);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: var(--text-tertiary);
}

[data-theme="light"] .contact-info-card {
    background: rgba(240, 240, 248, 0.85);
}

[data-theme="light"] .footer {
    background: #e4e4ec;
}

[data-theme="light"] .project-modal-overlay {
    background: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .project-modal {
    background: #f0f0f8;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-close {
    background: rgba(228, 228, 236, 0.9);
}

[data-theme="light"] .modal-media-placeholder {
    background: rgba(228, 228, 236, 0.8);
}

[data-theme="light"] .loader {
    background: #eeeef3;
}

[data-theme="light"] .reading-progress {
    box-shadow: 0 0 8px rgba(91, 94, 240, 0.2);
}

[data-theme="light"] .stat-number {
    -webkit-text-fill-color: initial;
    color: var(--accent-primary);
    background: none;
}

[data-theme="light"] .btn-outline {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

[data-theme="light"] .btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

[data-theme="light"] .theme-toggle {
    color: var(--text-secondary);
}

[data-theme="light"] .lang-toggle {
    color: var(--text-secondary);
    border-color: rgba(91, 94, 240, 0.2);
}

[data-theme="light"] #particles-canvas {
    opacity: 0.4;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

/* ========================================
   Reading Progress Bar
   ======================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 10000;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ========================================
   Animated Counters
   ======================================== */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    min-width: 1ch;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

button {
    cursor: none;
    border: none;
    background: none;
    font-family: inherit;
}

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

ul {
    list-style: none;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

/* ========================================
   Custom Cursor
   ======================================== */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transition: transform 0.15s ease, opacity 0.15s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.cursor.active {
    transform: translate(-50%, -50%) scale(0.5);
}

.cursor-follower.active {
    width: 50px;
    height: 50px;
    opacity: 0.3;
}

/* ========================================
   Particles Canvas
   ======================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   Loader
   ======================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-code {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 30px;
}

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

.loader-text {
    margin: 0 8px;
}

.loader-dots {
    animation: blink 1.2s infinite;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    animation: loadBar 1.5s ease-in-out forwards;
}

@keyframes loadBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

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

.navbar.scrolled {
    padding: 12px 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: transform var(--transition-base);
}

.nav-logo:hover {
    transform: scale(1.05);
}

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

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
}

.logo-dot {
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
    margin: 0 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    color: var(--accent-primary);
    background: var(--bg-card);
    box-shadow: var(--shadow-glow);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-mono);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
}

.lang-toggle i {
    font-size: 0.9rem;
}

.lang-toggle:hover {
    color: var(--accent-primary);
    background: var(--bg-card);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.lang-label {
    letter-spacing: 0.05em;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   Section Header
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

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

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

.section-subtitle {
    max-width: 500px;
    margin: 20px auto 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, -5%); }
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-greeting {
    display: block;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-name {
    display: block;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

.role-prefix {
    color: var(--accent-primary);
    font-weight: 700;
}

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

.typewriter-cursor {
    color: var(--accent-primary);
    animation: blink 0.8s infinite;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.8;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

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

.btn-outline:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

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

/* Social Links */
.hero-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
}

.hero-stat:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.hero-stat i {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.hero-stat strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
}

.hero-stat span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Scroll Indicator */
.hero-scroll {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--accent-primary);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ========================================
   About Section
   ======================================== */

/* Top row: photo + text side by side */
.about-top {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 50px;
}

/* Profile Photo */
.about-photo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-photo {
    position: relative;
    width: 280px;
    height: 340px;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    filter: grayscale(15%) contrast(1.05);
    transition: all var(--transition-base);
}

.about-photo:hover img {
    filter: grayscale(0%) contrast(1.1);
    transform: translate(-4px, -4px);
}

.photo-border {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-primary);
    z-index: 1;
    transition: all var(--transition-base);
}

.about-photo:hover .photo-border {
    top: 8px;
    left: 8px;
}

.photo-dots {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    z-index: 0;
    background-image: radial-gradient(var(--accent-primary) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.4;
}

/* Detail cards: horizontal grid below */
.about-details {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.detail-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.detail-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.about-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent-primary);
    position: relative;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number::after {
    content: '+';
    -webkit-text-fill-color: var(--accent-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
}

/* ========================================
   Skills Section
   ======================================== */
.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.skill-tab {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.skill-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.skill-tab.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.skill-panel {
    display: none;
}

.skill-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.skill-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease-in-out;
}

/* ========================================
   Experience Section
   ======================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 50px;
}

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

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.timeline-content {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateX(8px);
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

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

.timeline-company i {
    color: var(--accent-primary);
    font-size: 0.85rem;
}

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

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ========================================
   Certifications & Courses Section
   ======================================== */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}

.cert-column-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-column-title i {
    color: var(--accent-primary);
}

.cert-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

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

.cert-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1rem;
}

.cert-info {
    flex: 1;
    min-width: 0;
}

.cert-info h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.cert-issuer {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cert-meta {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    margin-bottom: 6px;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.cert-tags span {
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ========================================
   Projects Section
   ======================================== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-card.hidden {
    display: none;
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

.project-link {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all var(--transition-base);
    transform: translateY(20px);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: white;
    color: var(--accent-primary);
}

.project-info {
    padding: 24px;
}

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

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

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

.project-tech span {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-card a,
.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-card a:hover {
    color: var(--accent-primary);
}

.contact-socials {
    margin-top: 16px;
}

.contact-socials h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.contact-social-links {
    display: flex;
    gap: 12px;
}

.contact-social-links a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.contact-social-links a:hover {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.form-group input:focus ~ .form-highlight,
.form-group textarea:focus ~ .form-highlight {
    width: 100%;
}

/* ========================================
   Project Date
   ======================================== */
.project-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

/* ========================================
   Publications Section
   ======================================== */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.publication-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.publication-card:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

.pub-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}

.pub-venue {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pub-venue a {
    color: var(--accent-secondary);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.pub-venue a:hover {
    color: var(--accent-primary);
}

.pub-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .publication-card {
        flex-direction: column;
        gap: 16px;
    }

    .pub-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}

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

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

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-heart {
    color: var(--error);
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

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

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px var(--accent-glow);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* ========================================
   Project Modals
   ======================================== */
.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.project-modal-overlay.active .project-modal {
    transform: translateY(0) scale(1);
}

/* Scrollbar styling */
.project-modal::-webkit-scrollbar {
    width: 6px;
}

.project-modal::-webkit-scrollbar-track {
    background: transparent;
}

.project-modal::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 2;
}

.modal-close:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: rotate(90deg);
}

/* Modal header */
.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-right: 50px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.modal-date {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Modal tech tags */
.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.modal-tech span {
    padding: 5px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-weight: 500;
}

/* Modal media */
.modal-media {
    margin-bottom: 28px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 50px 20px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.modal-media-placeholder i {
    font-size: 2.5rem;
    opacity: 0.4;
}

.modal-media-placeholder span {
    font-size: 0.9rem;
    font-style: italic;
}

/* Modal media gallery (for when images/videos are added) */
.modal-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
}

.modal-media-gallery img,
.modal-media-gallery video {
    width: 100%;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition-base);
}

.modal-media-gallery img:hover,
.modal-media-gallery video:hover {
    transform: scale(1.02);
}

/* Modal sections */
.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section h3 i {
    color: var(--accent-primary);
    font-size: 0.95rem;
}

.modal-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-section ul li {
    position: relative;
    padding-left: 22px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.modal-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* "View details" button on cards */
.btn-view-project {
    margin-top: 14px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-view-project:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Make project cards indicate clickability */
.project-card[data-modal] {
    cursor: none;
}

/* Modal cursor: keep custom cursor visible */
.project-modal-overlay,
.project-modal {
    cursor: none;
}

/* Allow native cursor on video controls for proper interaction */
.project-modal video {
    cursor: pointer;
}

/* Body lock when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        padding: 0 20px;
    }

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

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

    .hero-stats {
        gap: 16px;
    }

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

    .about-photo-wrapper {
        justify-content: center;
    }

    .about-photo {
        width: 240px;
        height: 300px;
    }

    .about-details {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    /* Hide custom cursor on mobile */
    .cursor, .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    a, button {
        cursor: pointer;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 40px 40px;
        transition: right var(--transition-base);
        border-left: 1px solid var(--border-color);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .nav-actions .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-name {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

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

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

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

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

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 5px;
    }

    .contact-form {
        padding: 24px;
    }

    /* Modal responsive */
    .project-modal {
        padding: 24px;
        max-height: 85vh;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-right: 40px;
    }

    .modal-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

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

    .about-photo {
        width: 200px;
        height: 260px;
    }

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

    .skill-card {
        padding: 16px 12px;
    }

    .projects-filter {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}
