/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST IMPROVED
   ============================================ */

/* Variables pour le responsive */
:root {
    --mobile-breakpoint: 768px;
    --tablet-breakpoint: 992px;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Typographie */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;

    /* Bordures */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

section {
    padding: var(--space-xl) 0;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-sm);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    margin-bottom: var(--space-xs);
}

p {
    margin-bottom: var(--space-md);
    color: var(--gray);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    border: 2px solid transparent;
    line-height: 1;
    min-height: 48px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.btn-youtube {
    background-color: #ff0000;
    color: white;
}

.btn-youtube:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

/* ============================================
   NAVIGATION - RESPONSIVE
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 0.875rem 0;
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* Image du logo */
.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

/* Texte du nom */
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark);
    white-space: nowrap;
}

/* Mobile : garantir visibilité */
@media (max-width: 767px) {
    .logo {
        z-index: 1002;
        position: relative;
    }
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

/* ============================================
   HERO SECTION - RESPONSIVE
   ============================================ */

.hero {
    padding-top: 6rem;
    padding-bottom: var(--space-lg);
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero::before {
    display: none;
    /* Supprime l'effet de fond sur mobile */
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero-content {
    order: 2;
    text-align: center;
}

.hero-visual {
    order: 1;
}

.hero-title {
    margin-bottom: var(--space-sm);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    display: block;
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--gray);
    margin: var(--space-xs) 0 var(--space-md);
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: var(--space-lg);
    color: var(--gray);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.hero-buttons .btn {
    width: 100%;
}

.code-snippet {
    background-color: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: none;
    margin: 0 auto;
    max-width: 500px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--dark-light);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background-color: var(--danger);
}

.dot.yellow {
    background-color: var(--warning);
}

.dot.green {
    background-color: var(--success);
}

.code-title {
    color: var(--gray-light);
    font-size: 0.75rem;
    font-family: monospace;
}

.code-content {
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
    font-size: 0.875rem;
}

.code-content code {
    font-family: 'Courier New', monospace;
    color: #93c5fd;
    line-height: 1.4;
    font-size: 0.8125rem;
}

/* ============================================
   ABOUT SECTION - RESPONSIVE
   ============================================ */

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.about-text h3 {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    margin-bottom: var(--space-md);
}

.about-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.expertise h4 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-sm);
}

.tag {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.stat-card {
    background-color: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.8125rem;
}

/* ============================================
   PROJECTS SECTION - RESPONSIVE
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.project-card {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.project-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.project-description {
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
    line-height: 1.6;
    color: var(--gray);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background-color: var(--gray-light);
    color: var(--dark);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
}

.section-footer {
    text-align: center;
    margin-top: var(--space-lg);
}

/* ============================================
   CONTENTS SECTION - RESPONSIVE
   ============================================ */

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.video-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-light);
}

.video-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.video-card:hover .thumbnail-overlay {
    opacity: 1;
}

.play-button {
    width: 50px;
    height: 50px;
    background: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: transform var(--transition-normal);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.video-info {
    padding: var(--space-md);
}

.video-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    color: var(--dark);
}

.video-description {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

/* ============================================
   CHANNEL CTA - RESPONSIVE
   ============================================ */

.channel-cta {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    border: 2px solid rgba(255, 0, 0, 0.2);
    margin: var(--space-lg) 0;
}

.cta-content h3 {
    font-size: 1.5rem;
    color: #ff0000;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.cta-content h3 i {
    font-size: 1.5rem;
}

.btn-youtube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: none;
    margin-top: var(--space-sm);
    width: 100%;
    max-width: 300px;
}

/* ============================================
   SERVICES SECTION - RESPONSIVE
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.service-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.service-features {
    margin-bottom: var(--space-lg);
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.service-price {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.125rem;
}

.service-cta {
    font-weight: 600;
    color: var(--primary);
    transition: color var(--transition-fast);
    font-size: 0.9375rem;
}

/* ============================================
   CONTACT SECTION - RESPONSIVE
   ============================================ */

.contact-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.contact-info p {
    margin-bottom: var(--space-lg);
}

.contact-details {
    margin: var(--space-lg) 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding: var(--space-sm);
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--radius-md);
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.9375rem;
    margin: 0;
    color: var(--gray);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.social-link {
    width: 44px;
    height: 44px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--primary);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.contact-form {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: var(--space-sm);
}

/* ============================================
   FOOTER - RESPONSIVE
   ============================================ */

.footer {
    background-color: var(--dark);
    color: var(--gray-light);
    padding: var(--space-xl) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.footer-logo .logo {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-logo .logo-image-container {
    width: 48px;
    height: 48px;
}

.footer-logo .logo-text {
    color: white;
    font-size: 1.25rem;
}

.footer-tagline {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    color: var(--gray);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.footer-links a {
    color: var(--gray-light);
    transition: color var(--transition-fast);
    font-size: 0.9375rem;
    padding: 0.25rem 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: var(--space-md);
}

/* ============================================
   MEDIA QUERIES - TABLET & DESKTOP
   ============================================ */

@media (min-width: 576px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .hero-buttons .btn {
        width: auto;
    }

    .btn-youtube {
        width: auto;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }

    section {
        padding: var(--space-2xl) 0;
    }

    .hero {
        padding-top: 8rem;
        min-height: 90vh;
    }

    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        align-items: center;
    }

    .hero-content {
        order: 1;
        text-align: left;
    }

    .hero-visual {
        order: 2;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .about-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: var(--space-xl);
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .contact-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .contact-form .btn-primary {
        width: auto;
    }
}

@media (min-width: 992px) {
    .container {
        padding: 0 var(--space-xl);
    }

    .nav-link {
        font-size: 1rem;
    }

    .code-content code {
        font-size: 1rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   NAVIGATION MOBILE MENU
   ============================================ */

@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 6rem var(--space-lg) var(--space-lg);
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease-in-out;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: white;
        box-shadow: var(--shadow-sm);
        z-index: -1;
    }

    .nav-link {
        padding: 0.75rem 0;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    /* Overlay pour le menu mobile */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Animation pour le bouton menu */
    .menu-toggle.active i {
        transform: rotate(90deg);
    }

    /* Empêcher le scroll du body quand le menu est ouvert */
    body.menu-open {
        overflow: hidden;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.p-1 {
    padding: var(--space-sm);
}

.p-2 {
    padding: var(--space-md);
}

.p-3 {
    padding: var(--space-lg);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles pour l'accessibilité */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus,
.social-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   PERFORMANCE OPTIMIZATION
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --dark: #f8fafc;
        --light: #0f172a;
        --gray-light: #1e293b;
        --gray: #94a3b8;
    }

    body {
        color: var(--dark);
        background-color: var(--light);
    }

    .navbar {
        background-color: rgba(15, 23, 42, 0.98);
    }

    .logo-text {
        color: white;
    }

    .nav-link {
        color: var(--dark);
    }

    .code-snippet {
        background-color: #1e293b;
    }

    .code-header {
        background-color: #0f172a;
    }

    .project-card,
    .service-card,
    .contact-form {
        background-color: #1e293b;
        color: var(--dark);
    }

    .project-title,
    .service-title,
    .form-group label {
        color: var(--dark);
    }
}
