/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* ==========================================
   NAVIGATION
   ========================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-links a {
    color: #999;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    line-height: 1.3;
    padding: 0.5rem 0;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #999;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    background: #fff;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ==========================================
   SCROLL ARROW ANIMATION
   ========================================== */
.scroll-arrow {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    animation: bounceGlow 2.5s ease-in-out infinite;
}

.scroll-arrow:hover {
    animation-play-state: paused;
}

.scroll-arrow svg {
    display: block;
    width: 100px;
    height: 100px;
}

@keyframes bounceGlow {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.4;
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }
    50% {
        transform: translateX(-50%) translateY(15px) scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    font-weight: 700;
}

/* ==========================================
   PROJECT CARDS GRID
   ========================================== */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: #141414;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1a3a52 0%, #2a4a62 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(100, 200, 255, 0.1) 0%, transparent 50%);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-description {
    color: #999;
    line-height: 1.6;
}

/* ==========================================
   OVERLAY
   ========================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ==========================================
   PROJECT MODAL
   ========================================== */
.project-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    background: #141414;
    border-radius: 16px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    overflow-y: auto;
    max-height: 90vh;
    padding: 2rem;
}

/* Scrollbar personnalisée pour la modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
    z-index: 10;
}

.close-btn:hover {
    transform: rotate(90deg);
    background: #f0f0f0;
}

.project-image-large {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1a3a52 0%, #2a4a62 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.project-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.project-image-large::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(100, 200, 255, 0.15) 0%, transparent 60%);
}

.project-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
}

/* ==========================================
   PROJECT DETAILS
   ========================================== */
.project-details {
    margin-top: 2rem;
}

.detail-section {
    margin-bottom: 2.5rem;
}

.detail-section h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section .icon {
    font-size: 1.6rem;
}

.detail-section p {
    color: #bbb;
    line-height: 1.8;
    font-size: 1.05rem;
}

.detail-section ul {
    list-style: none;
    padding-left: 0;
}

.detail-section li {
    color: #bbb;
    line-height: 1.8;
    font-size: 1rem;
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.detail-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #6dd5ed;
    font-weight: bold;
}

.project-video {
    width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
}

.project-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   VIDEO ANNOTATIONS
   ========================================== */
.video-annotation {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.video-annotation p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.video-annotation strong {
    color: #fff;
    font-weight: 600;
}

/* Variante INFO (bleu) */
.video-annotation.info {
    background: rgba(100, 200, 255, 0.1);
    border-left-color: #64c8ff;
}

/* Variante WARNING (orange) */
.video-annotation.warning {
    background: rgba(255, 165, 0, 0.1);
    border-left-color: #ffa500;
}

/* Variante SUCCESS (vert) */
.video-annotation.success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
}

/* Variante ERROR (rouge) */
.video-annotation.error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

/* Animation au hover */
.video-annotation:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* ==========================================
   PROJECT DOWNLOAD BUTTON
   ========================================== */
.project-download {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    width: 100%;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-icon {
    font-size: 1.4rem;
}

/* ==========================================
   WORKFLOW STEPS
   ========================================== */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.workflow-step {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.workflow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(109, 213, 237, 0.1);
}

.workflow-step .step-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.workflow-step h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.workflow-step p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================
   TOOLS
   ========================================== */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.tool-tag {
    background: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.3s;
}

.tool-tag:hover {
    background: #252525;
    transform: translateY(-2px);
}

.tool-tag .tool-icon {
    font-size: 1.3rem;
}

/* ==========================================
   PROJECT COLLECTION - Badge compteur
   ========================================== */
.project-count {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================
   SUB-PROJECTS GRID
   ========================================== */
.collection-intro {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.sub-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.sub-project-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.sub-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.sub-project-image {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.sub-project-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.sub-project-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.sub-project-description {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.view-details-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600;
    font-size: 0.95rem !important;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5) !important;
}

.view-details-btn:active {
    transform: translateY(-1px) !important;
}

/* ==========================================
   SUB-PROJECT DETAILS
   ========================================== */
.sub-project-details {
    margin-top: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.back-btn:active {
    transform: translateY(-1px);
}

.sub-detail-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.sub-project-details .detail-section h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================
   CAROUSEL
   ========================================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    touch-action: pan-y;
    user-select: none;
}

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    cursor: grab;
}

.carousel:active {
    cursor: grabbing;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel.swiping .carousel-slide {
    transition: transform 0.1s ease;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Boutons de navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 1rem 1.2rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 1rem;
    border-radius: 0 8px 8px 0;
}

.carousel-btn.next {
    right: 1rem;
    border-radius: 8px 0 0 8px;
}

/* Indicateurs */
.carousel-indicators {
    position: absolute;
    bottom: auto;
    top: calc(500px - 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Légende sous l'image */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 3rem 2rem 1.5rem;
    backdrop-filter: blur(5px);
}

.carousel-caption p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Animation pour la légende */
.carousel-slide.active .carousel-caption {
    animation: fadeInCaption 0.5s ease-in-out 0.3s both;
}

@keyframes fadeInCaption {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   CAROUSEL CAPTION EXTERNAL - FIX COMPLET
   Remplacez la section existante dans votre CSS
   ========================================== */

/* Légende externe qui change */
.carousel-caption-external {
    margin-top: 1rem;
    text-align: center;
    min-height: 3rem;
    position: relative;
}

.caption-text {
    display: none; /* Cacher par défaut */
    width: 100%;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding: 0.5rem 0;
}

.caption-text.active {
    display: block; /* Afficher uniquement la légende active */
}

/* ==========================================
   IMAGE COMPARE SLIDER (AVANT/APRÈS)
   ========================================== */
.image-compare-container {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
}

.image-compare {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    cursor: ew-resize;
    user-select: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Image AVANT (dessous) */
.image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.image-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image APRÈS (dessus, à DROITE du slider) */
.image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    z-index: 2;
}

.image-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Labels AVANT/APRÈS */
.image-label {
    position: absolute;
    top: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.image-label.before {
    left: 1.5rem;
}

.image-label.after {
    right: 1.5rem;
}

/* Barre de séparation */
.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    z-index: 11;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Bouton slider */
.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: ew-resize;
    pointer-events: none;
    z-index: 1;
}

.slider-button svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Légende */
.compare-caption {
    margin-top: 1rem;
    text-align: center;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: #999;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    padding: 0.5rem 1.5rem;
    background: #1a1a1a;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #e0e0e0;
    transition: background 0.3s;
}

.skill-tag:hover {
    background: #252525;
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: #fff;
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    text-align: center;
    padding: 3rem 5%;
    color: #666;
    border-top: 1px solid #1a1a1a;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    nav {
        padding: 1.5rem 5%;
    }

    .logo {
        font-size: 1.2rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-links svg {
        width: 18px;
        height: 18px;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-modal {
        width: 95vw;
        max-height: 95vh;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .project-title-large {
        font-size: 1.8rem;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .project-image-large {
        height: 200px;
        font-size: 3.5rem;
    }

    .sub-projects-grid {
        grid-template-columns: 1fr;
    }

    .scroll-arrow {
        bottom: 2rem;
    }

    .scroll-arrow svg {
        width: 80px;
        height: 80px;
    }

    /* Carousel responsive */
    .carousel {
        height: 300px;
    }

    .carousel-btn {
        padding: 0.75rem 1rem;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 0.5rem;
    }

    .carousel-btn.next {
        right: 0.5rem;
    }

    .carousel-indicators {
        top: calc(300px - 2.5rem);
    }

    .carousel-caption {
        padding: 2rem 1rem 1rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    /* Image compare responsive */
    .image-compare {
        height: 350px;
    }

    .slider-button {
        width: 40px;
        height: 40px;
    }

    .slider-button svg {
        width: 20px;
        height: 20px;
    }

    .image-label {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        top: 1rem;
    }

    .image-label.before {
        left: 1rem;
    }

    .image-label.after {
        right: 1rem;
    }

    /* Video annotation responsive */
    .video-annotation {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}