/* ===================================
   CSS Variables & Theme
   =================================== */
:root {
    /* Colors */
    --color-primary: #0a0e27;
    --color-secondary: #141b3d;
    --color-accent-blue: #2196f3;
    --color-accent-orange: #ff6b6b;
    --color-accent-teal: #00d4ff;
    --color-text-primary: #ffffff;
    --color-text-secondary: #c4c4c4;
    --color-text-muted: #8892b0;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-glass: rgba(255, 255, 255, 0.03);
    --color-glass-hover: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent-orange) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(33, 150, 243, 0.15) 0%, transparent 70%);
    --gradient-hero: linear-gradient(135deg, #0a0e27 0%, #141b3d 50%, #1a2351 100%);

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

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(33, 150, 243, 0.4);
    --shadow-glow-orange: 0 0 40px rgba(255, 107, 107, 0.4);

    /* Z-index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
}

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

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

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

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent-orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-blue);
}

strong, b {
    font-weight: 600;
    color: var(--color-text-primary);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background: var(--color-glass);
    border-radius: var(--radius-sm);
}

.inline-code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background: var(--color-glass);
    border-radius: var(--radius-sm);
    color: var(--color-accent-orange);
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-orange);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

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

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(33, 150, 243, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--space-8);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-accent-orange);
    font-weight: 500;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
    font-weight: 800;
    margin-bottom: var(--space-6);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-typewriter {
    min-height: 60px;
    margin-bottom: var(--space-6);
}

.typewriter-text {
    font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
    font-weight: 600;
    color: var(--color-text-primary);
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--color-accent-orange);
    margin-left: 4px;
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-10);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-text-primary);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
}

.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-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(33, 150, 243, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-accent-orange);
}

.btn-secondary:hover {
    background: var(--color-accent-orange);
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.social-icon:hover {
    fill: var(--color-accent-orange);
    transform: scale(1.1);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: block;
    width: 2px;
    height: 40px;
    background: var(--color-border);
    position: relative;
    overflow: hidden;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--color-accent-orange);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ===================================
   Section Titles
   =================================== */
.section-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-12);
    margin-left: auto;
    margin-right: auto;
    display: block;
    position: relative;
    padding-bottom: var(--space-6);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-blue), transparent);
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--color-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-intro {
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
}

.about-text p {
    font-size: var(--text-base);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.about-location {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
    padding: var(--space-3) var(--space-6);
    background: var(--color-glass);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
}

.location-icon {
    width: 18px;
    height: 18px;
    fill: var(--color-accent-orange);
}

/* ===================================
   Skills Section
   =================================== */
.skills {
    background: var(--color-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.skill-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.3);
}

.skill-category-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--color-accent-orange);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-name {
    font-weight: 500;
    color: var(--color-text-primary);
}

.skill-level {
    font-size: var(--text-sm);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: var(--color-glass);
}

.skill-level.advanced {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.skill-level.intermediate {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.skill-level.basic {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

/* ===================================
   Projects Section
   =================================== */
.projects {
    background: var(--color-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(33, 150, 243, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

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

.project-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-4);
}

.project-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: 0;
    color: var(--color-text-primary);
}

.project-links {
    display: flex;
    gap: var(--space-2);
}

.project-links a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.project-links a:hover {
    color: var(--color-accent-orange);
}

.project-links svg {
    width: 20px;
    height: 20px;
}

.project-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tech-tag {
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
    background: rgba(33, 150, 243, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-accent-blue);
    border: 1px solid rgba(33, 150, 243, 0.3);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: var(--color-accent-blue);
    transform: translateY(-2px);
}

/* ===================================
   Experience Section
   =================================== */
.experience {
    background: var(--color-primary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent-blue) 0%, var(--color-accent-orange) 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: var(--space-12);
}

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

.timeline-dot {
    position: absolute;
    left: 10px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 4px var(--color-primary), 0 0 20px rgba(33, 150, 243, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px var(--color-primary), 0 0 20px rgba(33, 150, 243, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 4px var(--color-primary), 0 0 30px rgba(33, 150, 243, 0.8);
    }
}

.timeline-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    transform: translateX(12px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.3);
}

.timeline-date {
    font-size: var(--text-sm);
    color: var(--color-accent-orange);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.timeline-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
    color: var(--color-text-primary);
}

.timeline-company {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    font-weight: 500;
}

.timeline-achievements {
    list-style: none;
    margin-bottom: var(--space-4);
}

.timeline-achievements li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    color: var(--color-text-secondary);
}

.timeline-achievements li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-accent-orange);
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--color-secondary);
}

.contact-intro {
    text-align: center;
    font-size: var(--text-lg);
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    color: var(--color-text-primary);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-text-primary);
}

.contact-info h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-1);
    color: var(--color-text-primary);
}

.contact-info p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.contact-languages {
    text-align: center;
    padding: var(--space-8);
    background: var(--color-glass);
    border-radius: var(--radius-xl);
}

.contact-languages h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--color-text-primary);
}

.language-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

.language-item {
    padding: var(--space-2) var(--space-4);
    background: var(--color-glass-hover);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-primary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-8) 0;
    text-align: center;
}

.footer p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.footer-built {
    font-size: var(--text-sm);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .section {
        padding: var(--space-12) 0;
    }

    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-secondary);
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-4);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        border-top: 1px solid var(--color-border);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Hero */
    .hero-content {
        padding: var(--space-4);
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
    }

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

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

    /* Timeline */
    .timeline::before {
        left: 10px;
    }

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

    .timeline-dot {
        left: 1px;
    }

    /* Contact */
    .contact-links {
        grid-template-columns: 1fr;
    }

    /* Section Title */
    .section-title {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .typewriter-text {
        font-size: var(--text-lg);
    }

    .project-card,
    .skill-category,
    .timeline-content,
    .contact-card {
        padding: var(--space-6);
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

.hidden {
    display: none;
}

.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .navbar,
    .hero-scroll,
    .footer,
    .contact-links,
    .project-links {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ===================================
   Accessibility
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-accent-orange);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent-orange);
    color: white;
    padding: var(--space-2) var(--space-4);
    z-index: 9999;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 0;
}