/* ==========================================================================
   Portfolio Website Styles - Duong Nguyen
   Optimized CSS Architecture - No Redundancy
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
    /* Color Scheme - Dark Theme */
    --bg: #0a0e1a;
    --fg: #ffffff;
    --muted: #8b9dc3;
    --accent: #00d4ff;
    --accent-hover: #173853;
    --accent-secondary: #7c3aed;
    --card: #1a1f2e;
    --border: #2d3748;
    --color-grey-700: oklch(.928 .006 264.531);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);

    /* Effects */
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 212, 255, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 212, 255, 0.2);

    /* Typography */
    --font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-base: 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);

    color-scheme: dark;
}

/* Light Theme - Disabled (theme switching removed) */

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-family);
    /* Optimize theme switching - use contain for better performance */
    contain: layout style paint;
}

/* Theme transition optimization - only animate when class is present */
html.theme-transitioning {
    transition: background-color 0.2s ease-out;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    /* Smooth color transitions */
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

/* ==========================================================================
   Performance & Animations
   ========================================================================== */

/* Hardware Acceleration - Optimized */
.navbar,
.hero,
.project-card,
.timeline-card,
.btn {
    transform: translateZ(0);
    /* Remove will-change from default state - only use during animation */
}

/* View Transition API Support - Enhanced */
@supports (view-transition-name: none) {

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.25s;
        animation-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
    }

    /* Optimize theme transition */
    ::view-transition-old(root) {
        animation-name: fade-out;
    }

    ::view-transition-new(root) {
        animation-name: fade-in;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Smooth Transitions - Optimized for Performance */
.card,
.nav-links a,
.btn {
    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-smooth);
    /* Use GPU acceleration for transforms */
    will-change: auto;
    /* Only set during hover/interaction */
}

/* Optimize hover states */
.card:hover,
.btn:hover,
.nav-links a:hover {
    will-change: transform;
}

.card:not(:hover),
.btn:not(:hover),
.nav-links a:not(:hover) {
    will-change: auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

/* Animation Classes - Restore CSS animations for reliability */
.fade-in {
    animation: fadeIn 0.6s ease-out;
    opacity: 1;
    transform: translateY(0);
}

.fade-in--delayed {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    transform: translateY(20px);
}


/* ==========================================================================
   Navigation Component
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 12px 0;
    transition: all var(--transition-smooth);
}

/* Light theme navbar styles removed */

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 120px;
    /* Reduced size to accommodate text */
    transition: all var(--transition-smooth);
    filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.3));
    will-change: transform, filter;
    transform: translateZ(0);
    /* Hardware acceleration */
    object-fit: contain;
    /* Maintain aspect ratio */
    image-rendering: -webkit-optimize-contrast;
    /* Better SVG rendering for WebKit */
    image-rendering: auto;
    /* Fallback for better browser support */
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.5));
}

/* Smooth logo entrance animation */
.logo-image {
    animation: logoEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-10px);
        filter: drop-shadow(0 0 0 transparent);
    }

    60% {
        opacity: 0.8;
        transform: scale(1.05) translateY(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.3));
    }
}


.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--fg);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

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

/* Theme toggle button removed - theme permanently set to dark */

/* ==========================================================================
   Layout Components
   ========================================================================== */

/* Main Content Wrapper */
.main-content {
    padding-top: 50px;
    min-height: calc(100vh - 50px);
}

.main-content--with-header {
    padding-top: 50px;
    min-height: calc(100vh - 50px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

/* ==========================================================================
   Hero Section Component
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Profile Section */
.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-smooth);
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-accent);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

/* Introduction Section */
.intro-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -5rem;
}

.intro-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 0rem;
    padding-top: 20px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    background: var(--gradient-accent);
    font-weight: 600;
    margin-bottom: 2rem;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-description {
    font-size: 1.123rem;
    font-weight: 400;
    color: var(--color-grey-700);
    line-height: 1.5;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* ==========================================================================
   Page Header Component
   ========================================================================== */
.page-header {
    padding: 4rem 2rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    margin-bottom: 4rem;
    position: relative;
    animation: fadeIn 0.6s ease-out;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.page-header__content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    color: var(--color-grey-700);
    font-weight: 400;
    margin: 0 auto 2rem;
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.page-header .cta-buttons {
    display: flex;
    justify-content: center;
    /* centers horizontally */
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    /* optional spacing from heading */
}

/* ==========================================================================
   Button Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-smooth);
    background: rgba(0, 212, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
}

.btn--primary {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-card);
    padding: 1rem 2rem;
    border-radius: 3.125rem;
}

.btn--secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 1rem 2rem;
    border-radius: 3.125rem;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.btn--primary:hover {
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

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

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

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* CTA Buttons Group */
.cta-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Card Components
   ========================================================================== */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all var(--transition-smooth);
}

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

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent);
}

/* ==========================================================================
   Timeline Component (CV Page)
   ========================================================================== */
.journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
    margin-bottom: 3rem;
}

.timeline-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

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

.timeline-card::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 1.75rem;
    width: 8px;
    height: calc(100% - 3.5rem);
    background: var(--gradient-accent);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.company-name {
    font-weight: 500;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-title {
    font-weight: 400;
    color: var(--color-grey-700);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-location {
    color: var(--color-grey-700);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 1rem;
    display: inline-block;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.timeline-card ul {
    margin: 0;
    color: var(--color-grey-700);
    line-height: 1.6;
}

.achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievements li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-grey-700);
    line-height: 1.6;
    border-left: 2px solid transparent;
    transition: all var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}

/* .achievements li:hover {
    border-left-color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
} */

.achievements li::before {
    content: '▸';
    color: var(--accent);
    position: absolute;
    left: 0.5rem;
    font-weight: bold;
    font-size: 1.1em;
}

/* ==========================================================================
   Projects Component
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    height: fit-content;
}

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

.project-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 1.25rem 1.25rem 0 0;
    transition: transform 0.4s ease;
}

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

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--fg);
    margin: 0;
    line-height: 1.5;
}

.project-type {
    background: var(--gradient-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
}

.project-description {
    color: var(--color-grey-700);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Skills Component
   ========================================================================== */
.skills-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--color-grey-700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0.75rem;
}

.skills-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.skill-category {
    margin-bottom: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all var(--transition-smooth);
}

.skill-category:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
}

.skill-category h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* ==========================================================================
   Tech Stack Component
   ========================================================================== */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-stack--centered {
    justify-content: center;
    margin-top: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tech-tag,
.tag {
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.375rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all var(--transition-smooth);
}

.tech-tag:hover,
.tag:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   Gallery Component (Project Detail Pages)
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery img {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    display: block;
    object-fit: fill;
    border: 2px solid var(--border);
    border-color: var(--accent);
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.gallery img:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.gallery>div {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.screenshot-label {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 1.25rem;
    }
}

/* ==========================================================================
   CV Download Component
   ========================================================================== */
.cv-download {
    text-align: center;
    margin-top: 3.75rem;
    padding: 3rem 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}


.cv-download h3 {
    color: var(--color-grey-700);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.cv-download p {
    color: var(--color-grey-700);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.actions--left {
    justify-content: flex-start;
}

.section-title {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-grey-700);
}

/* Project Detail Page Styles */
.screenshot-label {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 1rem;
}

.project-detail-text {
    color: var(--muted);
    margin-top: 16px;
}

.project-detail-list {
    margin: 16px 0;
    padding-left: 20px;
    color: var(--muted);
}

.business-impact-title {
    margin-top: 32px;
}

/* Text Utility Classes */
.text-muted {
    color: var(--muted);
}

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

.text-accent {
    color: var(--accent);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.footer {
    background: rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    animation: fadeIn 1s ease-out;
    color: var(--muted);
    position: relative;
}

/* Light theme footer styles removed */

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;;
}

.footer-socials a {
    color: var(--muted);
    text-decoration: none;
    transition: all var(--transition-smooth);
    position: relative;
}

.footer-socials a:hover {
    color: var(--accent);
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.75rem;
        text-align: center;
    }

    .journey-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }

    .container {
        padding: 0 1.5rem 3.75rem;
    }

    .nav-content {
        padding: 0 1.5rem;
    }

    .page-header {
        padding: 7.5rem 1.5rem 5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .profile-image-container {
        width: 280px;
        height: 280px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 1.25rem;
    }

    .logo-image {
        height: 32px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero-container {
        padding: 0 1.25rem;
        gap: 2.5rem;
    }

    .container {
        padding: 0 1rem 2.5rem;
    }

    .page-header {
        padding: 6.25rem 1rem 3.75rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-description {
        font-size: 1rem;
    }

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

    .project-content {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .profile-image-container {
        width: 240px;
        height: 240px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .logo {
        gap: 0.5rem;
        padding: 0.25rem;
    }

    .logo-image {
        height: 28px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav-links a {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }

    .project-card {
        margin: 0 -0.5rem;
    }

    .tech-stack {
        justify-content: center;
    }
}

/* ==========================================================================
   Performance & Accessibility
   ========================================================================== */

/* Reduced Motion Support */
@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;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --border: #ffffff;
        --muted: #ffffff;
    }
}

/* Focus Styles for Accessibility */
.btn:focus-visible,
.nav-links a:focus-visible,
.logo:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Logo focus and active states */
.logo:focus-visible {
    border-radius: 0.75rem;
    background: rgba(0, 212, 255, 0.1);
}

.logo:active .logo-image {
    transform: scale(0.95);
}

/* Print Styles */
@media print {

    .navbar,
    .cta-buttons {
        display: none;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}