/* ============================================ */
/* THEME VARIABLES                              */
/* ============================================ */

:root {
    /* Light Mode (Default) */
    --bg-deep: #f8f9fc;
    --bg-primary: #ffffff;
    --bg-elevated: #f0f2f5;
    --bg-card: rgba(255, 255, 255, 0.7);
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #0891b2;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --orb-opacity: 0.25;
    --noise-opacity: 0.02;
    --grid-opacity: 0.4;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-deep: #050508;
    --bg-primary: #0a0a0f;
    --bg-elevated: #12121a;
    --bg-card: rgba(22, 22, 31, 0.5);
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #06b6d4;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --text-primary: #fafafa;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --glass-bg: rgba(22, 22, 31, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --orb-opacity: 0.5;
    --noise-opacity: 0.03;
    --grid-opacity: 1;
}

/* ============================================ */
/* RESET & BASE                                 */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Syne', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

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

/* ============================================ */
/* THEME TOGGLE BUTTON                          */
/* ============================================ */

.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.theme-toggle .sun-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* ============================================ */
/* NAVIGATION BAR                               */
/* ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px var(--shadow-color);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 12px 40px;
    box-shadow: 0 8px 40px var(--shadow-color);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-logo-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.nav-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 100px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

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

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

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

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-cta {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

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

.nav-cta svg {
    width: 14px;
    height: 14px;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--glass-bg);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
}

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

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

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

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

/* ============================================ */
/* CUSTOM CURSOR                                */
/* ============================================ */

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.cursor.hovering {
    transform: scale(2);
    border-color: var(--accent-secondary);
}

/* ============================================ */
/* BACKGROUND & PARALLAX                        */
/* ============================================ */

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: var(--orb-opacity);
    will-change: transform;
    transition: transform 0.1s ease-out, opacity 0.4s ease;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
    top: 40%;
    left: 20%;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: 20%;
    right: 30%;
}

.orb-5 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    filter: blur(40px);
}

.orb-6 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    filter: blur(50px);
}

/* Floating geometric shapes */
.parallax-shape {
    position: absolute;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    backdrop-filter: blur(2px);
    background: var(--glass-bg);
    opacity: 0.5;
    will-change: transform;
    transition: opacity 0.4s ease;
}

[data-theme="dark"] .parallax-shape {
    background: rgba(255, 255, 255, 0.02);
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 8%;
    transform: rotate(15deg);
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 12%;
    transform: rotate(-20deg);
    border-radius: 12px;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 45%;
    right: 25%;
    transform: rotate(45deg);
    border-radius: 50%;
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 15%;
    transform: rotate(-10deg);
    border-radius: 24px;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    transition: opacity 0.4s ease;
}

.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px),
        linear-gradient(var(--border-subtle) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: var(--grid-opacity);
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    transition: opacity 0.4s ease;
}

.main-container {
    position: relative;
    z-index: 10;
}

/* ============================================ */
/* HERO SECTION                                 */
/* ============================================ */

.hero {
    padding: 140px 40px 60px;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
}

/* Profile Photo */
.profile-section {
    position: relative;
}

.profile-photo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: all 0.4s ease;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.profile-photo-wrapper::after {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 0;
    filter: blur(25px);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.status-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px var(--shadow-color);
    border-radius: 100px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 10;
    transition: all 0.4s ease;
}

[data-theme="dark"] .status-badge {
    color: #22c55e;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.name-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-name .gradient-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.hero-bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
}

.hero-bio strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    gap: 16px;
    padding-top: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.stat-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-4px);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 12px 28px var(--accent-glow);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* ============================================ */
/* FILTER BAR                                   */
/* ============================================ */

.filter-bar {
    position: sticky;
    top: 72px;
    z-index: 99;
    padding: 16px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px var(--shadow-color);
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: all 0.4s ease;
}

.filter-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 18px;
    border: 1px solid var(--border-subtle);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-muted);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-elevated);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ============================================ */
/* TIMELINE                                     */
/* ============================================ */

.timeline-section {
    padding: 40px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    display: flex;
    gap: 20px;
}

.year-column {
    flex-shrink: 0;
    width: 60px;
    position: relative;
}

.year-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        var(--accent-primary) 0%,
        var(--accent-secondary) 50%,
        var(--accent-tertiary) 100%
    );
    opacity: 0.3;
}

.year-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    background: var(--bg-deep);
    padding: 4px 0;
    z-index: 2;
}

/* Projects Grid */
.projects-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================ */
/* PROJECT CARDS                                */
/* ============================================ */

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--accent-glow),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateX(8px) translateY(-4px) scale(1.01);
    box-shadow:
        0 20px 50px var(--shadow-color),
        0 0 80px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

.project-card.featured {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.1) 0%,
        var(--bg-card) 100%
    );
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow:
        0 4px 24px var(--shadow-color),
        0 0 40px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

/* Card Left Section */
.card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.card-date-complexity {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.complexity-dots {
    display: flex;
    gap: 3px;
}

.complexity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-subtle);
    transition: all 0.3s ease;
}

.complexity-dot.filled {
    background: var(--accent-primary);
}

.project-card:hover .complexity-dot.filled {
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Card Center Section */
.card-center {
    min-width: 0;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.category-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--accent-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    white-space: nowrap;
}

.featured-tag {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.status-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

[data-theme="dark"] .status-live {
    color: #22c55e;
}

.status-live::before {
    content: '';
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

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

.project-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Right Section */
.card-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.specs-preview {
    display: flex;
    gap: 20px;
}

.spec-mini {
    text-align: right;
}

.spec-mini-value {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-tertiary);
    font-weight: 700;
}

.spec-mini-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.expand-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.expand-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.15);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.expand-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.project-card.expanded .expand-btn svg {
    transform: rotate(180deg);
}

/* Expanded Content */
.expanded-content {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.project-card.expanded .expanded-content {
    max-height: 400px;
    padding-top: 20px;
    opacity: 1;
}

.expanded-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.specs-full {
    background: var(--bg-elevated);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.4s ease;
}

.specs-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

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

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.spec-value {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-tertiary);
    font-weight: 700;
}

.tech-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    padding: 6px 10px;
    background: var(--bg-elevated);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.card-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

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

.action-btn.secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.action-btn.secondary:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

/* ============================================ */
/* CONTACT SECTION                              */
/* ============================================ */

.contact-section {
    padding: 100px 40px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 16px;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.contact-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.contact-card:hover {
    transform: translateX(8px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 40px var(--accent-glow);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
}

.contact-card:hover .contact-card-icon {
    background: var(--accent-primary);
}

.contact-card:hover .contact-card-icon svg {
    color: white;
}

.contact-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-card-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-card-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-arrow {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.contact-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.contact-footer p {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================ */
/* RESPONSIVE - TABLET                          */
/* ============================================ */

@media (max-width: 900px) {
    .navbar {
        padding: 14px 24px;
    }

    .nav-logo-text {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 14px;
        background: var(--bg-elevated);
        border-radius: 12px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
    }

    .nav-toggle {
        display: flex;
    }

    .theme-toggle {
        right: 80px;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-left {
        justify-content: space-between;
    }

    .card-right {
        justify-content: space-between;
        border-top: 1px solid var(--border-subtle);
        padding-top: 12px;
    }

    .expanded-inner {
        grid-template-columns: 1fr;
    }

    .year-column {
        display: none;
    }
}

/* ============================================ */
/* RESPONSIVE - HERO                            */
/* ============================================ */

@media (max-width: 800px) {
    .hero {
        padding: 60px 24px 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .profile-section {
        display: flex;
        justify-content: center;
    }

    .profile-photo-wrapper {
        width: 160px;
        height: 160px;
    }

    .info-section {
        align-items: center;
    }

    .name-title {
        align-items: center;
    }

    .hero-bio {
        text-align: center;
    }

    .quick-stats {
        justify-content: center;
    }

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

/* ============================================ */
/* RESPONSIVE - MOBILE                          */
/* ============================================ */

@media (max-width: 600px) {
    .navbar {
        padding: 12px 16px;
    }

    .theme-toggle {
        top: 18px;
        right: 70px;
        width: 40px;
        height: 40px;
    }

    .hero {
        padding: 40px 20px 30px;
    }

    .filter-bar {
        padding: 12px 20px;
    }

    .timeline-section {
        padding: 24px 16px 60px;
    }

    .project-card {
        padding: 16px;
    }

    .specs-preview {
        display: none;
    }

    .card-right {
        border: none;
        padding: 0;
        justify-content: flex-end;
    }

    .contact-section {
        padding: 60px 20px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-card-icon {
        width: 44px;
        height: 44px;
    }
}
