/* ===== Variables ===== */
:root {
    /* Azure Theme (Default) */
    --primary: #58d8ff;
    --primary-light: #8de4ff;
    --primary-dark: #2eafdc;
    --secondary: #9e7bff;
    --accent: #42fff2;
    
    /* Base Colors */
    --bg-primary: #05070f;
    --bg-secondary: #0a0e1a;
    --surface: rgba(15, 23, 42, 0.6);
    --surface-light: rgba(25, 35, 60, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Effects */
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(88, 216, 255, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', var(--font-primary);
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: clamp(80px, 12vw, 140px);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Purple Theme */
[data-theme="purple"] {
    --primary: #a855f7;
    --primary-light: #c084fc;
    --primary-dark: #7c3aed;
    --secondary: #ec4899;
    --accent: #f472b6;
}

/* Amber Theme */
[data-theme="amber"] {
    --primary: #f59e0b;
    --primary-light: #fbbf24;
    --primary-dark: #d97706;
    --secondary: #f97316;
    --accent: #fb923c;
}

/* Emerald Theme */
[data-theme="emerald"] {
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --secondary: #14b8a6;
    --accent: #2dd4bf;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: none;
}

::selection {
    background: var(--primary);
    color: white;
}

/* ===== Custom Cursor ===== */
.cursor {
    position: fixed;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--primary), transparent 70%);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: screen;
    opacity: 0.8;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    will-change: transform;
}

.cursor-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--primary);
}

.cursor.hover {
    width: 64px;
    height: 64px;
    opacity: 0.6;
}

/* ===== Animated Background ===== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -5s;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence baseFrequency="0.9" numOctaves="3"/%3E%3C/filter%3E%3Crect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E');
    opacity: 0.5;
    mix-blend-mode: overlay;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* ===== Glass Effect ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary), transparent, var(--secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.glass:hover::after {
    opacity: 0.05;
}

.glass:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(88, 216, 255, 0.15);
    transform: translateY(-4px) scale(1.01);
}

/* ===== Container ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
    position: relative;
    z-index: 1;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--transition-base);
    padding: 16px 0;
}

.nav.scrolled {
    background: rgba(5, 7, 15, 0.8);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 20px var(--primary));
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-name {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.02em;
}

.nav-title {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-base);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::before {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-dropdown {
    position: relative;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
}

.theme-toggle:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

.theme-icon {
    color: var(--primary);
}

.theme-label {
    font-size: 14px;
}

.dropdown-arrow {
    transition: transform var(--transition-base);
}

.theme-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.theme-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: 100;
}

.theme-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: var(--transition-base);
}

.theme-option:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.theme-option.active {
    background: var(--surface-light);
    border-color: var(--primary);
    color: var(--text-primary);
}

.theme-preview {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-name {
    flex: 1;
}

.theme-check {
    opacity: 0;
    font-size: 16px;
    color: var(--primary);
    transition: var(--transition-base);
}

.theme-option.active .theme-check {
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform-origin: left;
    transform: scaleX(0);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(40px, 8vw, 80px);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.greeting-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.name-highlight {
    font-size: clamp(2.5rem, 9vw, 5.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite, fadeInScale 0.8s ease-out 0.5s backwards;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 40px var(--primary));
}

.name-highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.8s backwards;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes expandWidth {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 8px 24px rgba(88, 216, 255, 0.3);
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(88, 216, 255, 0.5);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(88, 216, 255, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.avatar-container {
    position: relative;
    width: clamp(280px, 40vw, 380px);
    aspect-ratio: 1;
}

.avatar-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 50%, transparent 70%);
    filter: blur(60px);
    opacity: 0.6;
    animation: glow-pulse 3s ease-in-out infinite, rotate 15s linear infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.avatar-ring {
    position: absolute;
    inset: -20px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    opacity: 0.6;
    animation: rotate 8s linear infinite;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid transparent;
    border-bottom-color: var(--accent);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: rotate 6s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-lg);
}

.floating-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

.tag:nth-child(1) { animation-delay: 0s; }
.tag:nth-child(2) { animation-delay: 0.5s; }
.tag:nth-child(3) { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tag:hover::before {
    opacity: 0.1;
}

.tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(88, 216, 255, 0.3);
}

/* ===== Sections ===== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Cards Grid ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(88, 216, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.icon-animated {
    color: var(--primary);
    filter: drop-shadow(0 4px 16px var(--primary));
    animation: iconFloat 3s ease-in-out infinite;
}

.feature-card:hover .icon-animated {
    animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Work Grid ===== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    padding: 24px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.project-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-year {
    font-size: 12px;
    color: var(--text-muted);
}

.project-status {
    padding: 4px 12px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.project-status.live {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--surface);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-tags span {
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
}

.project-link:hover {
    gap: 12px;
}

/* ===== Experience ===== */
.experience-grid {
    display: grid;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto 64px;
}

.timeline-card {
    padding: 32px;
    border-radius: 24px;
    position: relative;
    padding-left: 64px;
}

.timeline-marker {
    position: absolute;
    left: 32px;
    top: 40px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

.timeline-marker::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 7px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), transparent);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-company {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-period {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.timeline-achievements {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-achievements li {
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.timeline-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.education-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.education-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.education-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    border-radius: 20px;
    transition: var(--transition-base);
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.education-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--primary);
}

.education-content {
    flex: 1;
}

.education-school {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.education-details {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.education-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.credentials {
    max-width: 900px;
    margin: 0 auto;
}

.credentials-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.credential-badge {
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-base);
}

.credential-badge:hover {
    transform: translateY(-4px);
}

.credential-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.credential-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    padding: 40px;
    border-radius: 24px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--surface);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-value {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-base);
}

a.contact-value:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--surface-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.contact-form {
    padding: 40px;
    border-radius: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 216, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: slideLeft 3s ease-in-out infinite;
}

@keyframes slideLeft {
    0%, 100% {
        transform: translateX(-150%);
        opacity: 0;
    }
    50% {
        transform: translateX(50%);
        opacity: 1;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-info {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.footer-name {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px var(--primary));
    }
    50% {
        filter: drop-shadow(0 0 40px var(--primary));
    }
}

.footer-role {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-location {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-email {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--primary);
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.footer-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 216, 255, 0.3), transparent);
    transition: left 0.5s;
}

.footer-email:hover::before {
    left: 100%;
}

.footer-email:hover {
    background: var(--primary);
    color: var(--background);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 216, 255, 0.4);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    width: 100%;
    text-align: center;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Animations ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor {
        display: none;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 7, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .cards-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        gap: 16px;
    }
    
    .theme-dropdown {
        display: none;
    }
    
    .hero-heading {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}
