/* ==========================================================================
   Template: Portfolio - Creative Developer Portfolio
   Version: 2.0.0
   Author: Outline Templates

   A bold, modern portfolio template for developers, designers, and creatives.
   Features smooth animations, project filtering, and full dark mode support.
   ========================================================================== */

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
    /* Primary Colors - Violet */
    --color-primary: #8B5CF6;
    --color-primary-hover: #7C3AED;
    --color-primary-light: #EDE9FE;
    --color-primary-dark: #6D28D9;
    --color-primary-glow: rgba(139, 92, 246, 0.3);

    /* Secondary Colors */
    --color-secondary: #18181B;
    --color-secondary-light: #27272A;

    /* Accent Colors */
    --color-accent-amber: #F59E0B;
    --color-accent-emerald: #10B981;
    --color-accent-rose: #F43F5E;
    --color-accent-cyan: #06B6D4;
    --color-success: #10B981;
    --color-error: #EF4444;

    /* Neutral Colors - Light Mode */
    --color-text: #18181B;
    --color-text-secondary: #3F3F46;
    --color-text-muted: #71717A;
    --color-text-subtle: #A1A1AA;

    /* Backgrounds - Light Mode */
    --color-background: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-surface-elevated: #FFFFFF;
    --color-surface-muted: #F4F4F5;

    /* Borders */
    --color-border: #E4E4E7;
    --color-border-subtle: #F4F4F5;
    --color-border-strong: #D4D4D8;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Typography Scale */
    --text-hero: clamp(3rem, 8vw, 5rem);
    --text-display: clamp(2.5rem, 5vw, 4rem);
    --text-h1: clamp(2rem, 4vw, 3rem);
    --text-h2: clamp(1.75rem, 3vw, 2.5rem);
    --text-h3: clamp(1.25rem, 2vw, 1.5rem);
    --text-h4: clamp(1.125rem, 1.5vw, 1.25rem);
    --text-body: 1rem;
    --text-body-lg: 1.125rem;
    --text-small: 0.875rem;
    --text-xs: 0.75rem;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.75;

    /* Spacing Scale (8px base) */
    --space-0: 0;
    --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;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px var(--color-primary-glow);
    --shadow-glow-lg: 0 0 80px var(--color-primary-glow);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-spring: 500ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-overlay: 40;
    --z-modal: 50;
    --z-toast: 60;
    --z-max: 100;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

[data-theme="dark"],
.dark {
    /* Primary Colors - Adjusted for dark mode */
    --color-primary: #A78BFA;
    --color-primary-hover: #8B5CF6;
    --color-primary-light: rgba(167, 139, 250, 0.15);
    --color-primary-dark: #C4B5FD;
    --color-primary-glow: rgba(167, 139, 250, 0.25);

    /* Neutral Colors - Dark Mode */
    --color-text: #FAFAFA;
    --color-text-secondary: #E4E4E7;
    --color-text-muted: #A1A1AA;
    --color-text-subtle: #71717A;

    /* Backgrounds - Dark Mode */
    --color-background: #09090B;
    --color-surface: #18181B;
    --color-surface-elevated: #27272A;
    --color-surface-muted: #18181B;

    /* Borders - Dark Mode */
    --color-border: #3F3F46;
    --color-border-subtle: #27272A;
    --color-border-strong: #52525B;

    /* Shadows - Dark Mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

/* Typography */
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text);
}

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

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

a:hover {
    color: var(--color-primary);
}

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

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus,
.sr-only:active {
    position: fixed;
    top: var(--space-4);
    left: var(--space-4);
    z-index: var(--z-max);
    width: auto;
    height: auto;
    padding: var(--space-3) var(--space-4);
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    background: var(--color-primary);
    color: white;
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.container-narrow {
    max-width: 48rem;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.dark .navbar.scrolled {
    background: rgba(9, 9, 11, 0.9);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--color-primary);
}

.navbar-brand span {
    color: var(--color-primary);
}

.navbar-nav {
    display: none;
    align-items: center;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .navbar-nav {
        display: flex;
    }
}

.navbar-link {
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--color-surface-muted);
    color: var(--color-text);
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Light mode - show moon, hide sun */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* Dark mode - show sun, hide moon */
.dark .theme-toggle .icon-sun { display: block; }
.dark .theme-toggle .icon-moon { display: none; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--color-text);
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-sans);
    font-size: var(--text-small);
    font-weight: var(--font-semibold);
    line-height: var(--leading-none);
    text-align: center;
    white-space: nowrap;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-secondary);
    color: white;
}

.dark .btn-primary {
    background: var(--color-surface-elevated);
    color: var(--color-text);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-accent:hover:not(:disabled) {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-outline:hover:not(:disabled) {
    border-color: var(--color-text);
    background: var(--color-surface-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--color-surface-muted);
    color: var(--color-text);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-body);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-32) 0 var(--space-20);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.dark .hero::before {
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 48rem;
}

.hero-label {
    display: inline-block;
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.hero-title {
    font-size: var(--text-hero);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.hero-title .text-muted {
    color: var(--color-text-muted);
}

.hero-subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-text-secondary);
    max-width: 36rem;
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* ==========================================================================
   PROJECT SECTION
   ========================================================================== */

.projects-section {
    padding: var(--space-24) 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.section-label {
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.section-title {
    font-size: var(--text-h2);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.filter-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    background: var(--color-surface-muted);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.filter-btn.active {
    background: var(--color-secondary);
    color: white;
}

.dark .filter-btn.active {
    background: var(--color-surface-elevated);
    color: var(--color-text);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Project Card */
.project-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    transition: transform var(--transition-base);
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card-image {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-gradient {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-2xl);
}

.project-card-gradient.violet {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #DDD6FE 100%);
}

.project-card-gradient.amber {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.project-card-gradient.emerald {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}

.project-card-gradient.rose {
    background: linear-gradient(135deg, #FFE4E6 0%, #FECDD3 100%);
}

.project-card-gradient.cyan {
    background: linear-gradient(135deg, #CFFAFE 0%, #A5F3FC 100%);
}

.dark .project-card-gradient.violet {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.dark .project-card-gradient.amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.dark .project-card-gradient.emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.dark .project-card-gradient.rose {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2) 0%, rgba(244, 63, 94, 0.1) 100%);
}

.dark .project-card-gradient.cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
}

.project-card-content h3 {
    font-size: var(--text-h3);
    font-family: var(--font-sans);
    margin-bottom: var(--space-1);
}

.project-card-content p {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
    padding: var(--space-24) 0;
    background: var(--color-surface);
}

.about-grid {
    display: grid;
    gap: var(--space-16);
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-content .section-label {
    margin-bottom: var(--space-2);
}

.about-content .section-title {
    margin-bottom: var(--space-6);
}

.about-content p {
    margin-bottom: var(--space-6);
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.skill-tag {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    background: var(--color-surface-muted);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.about-image {
    aspect-ratio: 1;
    background: var(--color-surface-muted);
    border-radius: var(--radius-3xl);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   EXPERIENCE SECTION
   ========================================================================== */

.experience-section {
    padding: var(--space-24) 0;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.experience-item {
    display: grid;
    gap: var(--space-4);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .experience-item {
        grid-template-columns: 200px 1fr;
        gap: var(--space-8);
    }
}

.experience-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.experience-date {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

.experience-content h3 {
    font-size: var(--text-h4);
    font-family: var(--font-sans);
    margin-bottom: var(--space-1);
}

.experience-content .company {
    font-size: var(--text-small);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.experience-content p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-section {
    padding: var(--space-24) 0;
    background: var(--color-surface);
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.testimonials-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    padding: var(--space-6);
    background: var(--color-background);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border-subtle);
}

.testimonial-content {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: var(--text-small);
    font-family: var(--font-sans);
    font-weight: var(--font-semibold);
    margin-bottom: 0;
}

.testimonial-info p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

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

.contact-section {
    padding: var(--space-24) 0;
}

.contact-content {
    text-align: center;
    max-width: 32rem;
    margin: 0 auto;
}

.contact-content .section-label {
    margin-bottom: var(--space-2);
}

.contact-content .section-title {
    margin-bottom: var(--space-6);
}

.contact-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-body-lg);
    font-weight: var(--font-semibold);
    color: white;
    background: var(--color-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.dark .contact-email {
    background: var(--color-surface-elevated);
    color: var(--color-text);
}

.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.dark .contact-email:hover {
    color: var(--color-text);
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--color-text-muted);
    background: var(--color-surface-muted);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-link {
    font-size: var(--text-small);
    color: var(--color-text-subtle);
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================================================
   HOVER EFFECTS
   ========================================================================== */

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.hover-glow {
    transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

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

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface-muted);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-surface-muted);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-strong);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) var(--color-surface-muted);
}

/* ==========================================================================
   SELECTION
   ========================================================================== */

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

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

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .navbar,
    .theme-toggle,
    .filter-buttons {
        display: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    .project-card,
    .testimonial-card {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   PERFORMANCE
   ========================================================================== */

.hero,
.projects-section,
.about-section,
.testimonials-section,
.contact-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}
