/* ==================== */
/* CSS Variables */
/* ==================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --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);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

ul {
    list-style: none;
}

/* ==================== */
/* Header & Navigation */
/* ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.header.sticky {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 1.5rem 0;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    font-size: 1.1rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

.nav-link-cv {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
}

.nav-link-cv::after {
    display: none;
}

.nav-link-cv:hover {
    background-color: var(--primary-dark);
    color: white;
}

.nav-link-contact {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
}

.nav-link-contact::after {
    display: none;
}

.nav-link-contact:hover {
    background-color: #d97706;
    color: white;
}

/* Projects Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.projects-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 360px;
    max-height: 450px;
    background: white;
    border-radius: 0.875rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1001;
}

.projects-dropdown::-webkit-scrollbar {
    width: 6px;
}

.projects-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.projects-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.projects-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.nav-item-dropdown:hover .projects-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.project-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.1rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.project-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.project-dropdown-item:hover::before {
    transform: scaleY(1);
}

.project-dropdown-item:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.03), rgba(245, 158, 11, 0.03));
    transform: translateX(4px);
}

.project-dropdown-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 0.625rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.project-dropdown-item:hover .project-dropdown-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(245, 158, 11, 0.2));
}

.project-dropdown-content {
    flex: 1;
    min-width: 0;
}

.project-dropdown-content h4 {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}

.project-dropdown-content p {
    color: var(--text-secondary);
    font-size: 0.72rem;
    margin: 0;
    opacity: 0.8;
}

.project-star {
    font-size: 1rem;
    margin-left: auto;
    padding-left: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.project-dropdown-item:hover .project-star {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
}

.projects-dropdown-footer {
    padding: 0.75rem 1.1rem;
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.5), rgba(243, 244, 246, 1));
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.view-all-projects {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.view-all-projects:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* Dropdown Arrow */
.projects-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 3px;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ==================== */
/* Buttons */
/* ==================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f9fafb 0%, #e0e7ff 100%);
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    padding-left: 5rem;
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(-150px) scale(0.8) rotate(-2deg);
    filter: blur(10px);
    animation: heroSlideDown 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards,
               textFloat 3s ease-in-out 2.2s infinite;
}

@keyframes heroSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-150px) scale(0.8) rotate(-2deg);
        filter: blur(10px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(10px) scale(1.02) rotate(0deg);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes textFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero-text .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-light);
    opacity: 0.5;
    z-index: -1;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-180px) scale(0.8) rotate(-2deg);
    filter: blur(10px);
    animation: heroSlideDown 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards,
               textFloat 3s ease-in-out 2.2s infinite;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(-210px) scale(0.8) rotate(-2deg);
    filter: blur(10px);
    animation: heroSlideDown 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards,
               textFloat 3s ease-in-out 2.2s infinite;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(-240px) scale(0.8) rotate(-2deg);
    filter: blur(10px);
    animation: heroSlideDown 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards,
               textFloat 3s ease-in-out 2.2s infinite;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-xl);
    border: 8px solid var(--primary-light);
    opacity: 0;
    transform: scale(0.7);
    filter: blur(8px);
    animation: profileReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards, float 3s ease-in-out 2.2s infinite;
}

@keyframes profileReveal {
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-light);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: arrowReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards, arrowFloat 3s ease-in-out 2.2s infinite;
    z-index: 10;
}

@keyframes arrowReveal {
    to {
        opacity: 1;
    }
}

.scroll-arrow:hover {
    color: var(--primary-color);
    transform: translateX(-50%) scale(1.1);
}

.scroll-arrow svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes arrowFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}

/* ==================== */
/* Section Titles */
/* ==================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(3px);
    animation: revealTitle 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes revealTitle {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: expandLine 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

@keyframes expandLine {
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

/* ==================== */
/* Timeline Section */
/* ==================== */
.timeline-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    position: relative;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(50px) scale(0.85);
    filter: blur(5px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    top: 0;
    padding-top: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.timeline-item:nth-child(odd)::before {
    right: calc(50% + 50px);
}

.timeline-item:nth-child(even)::before {
    left: calc(50% + 50px);
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.02);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.timeline-content .institution {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.timeline-content .description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    border-radius: 6px;
}

.timeline-logos {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.timeline-logo-small {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 5px;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transform: translateY(-50%);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    left: -50px;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: -50px;
}

.timeline-item[data-year]::before {
    content: attr(data-year);
    position: absolute;
    top: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--bg-secondary);
    padding: 0.3rem 1rem;
    border-radius: 1rem;
}

.timeline-item:nth-child(odd)::before {
    right: calc(50% + 30px);
}

.timeline-item:nth-child(even)::before {
    left: calc(50% + 30px);
}

.dots-timeline {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.dots-timeline.visible {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== */
/* Projects Carousel */
/* ==================== */
.projects-carousel-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #fef3c7 100%);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0;
    perspective: 2000px;
    opacity: 0;
    transform: translateX(100px);
    filter: blur(5px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    width: 400px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-container.active {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.project-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
}

.project-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-type {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.project-category {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-readme {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.readme-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    background-color: rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.readme-link:hover {
    background-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

.view-all-projects {
    text-align: center;
    margin-top: 3rem;
}

/* ==================== */
/* Internships Section */
/* ==================== */
.internships-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.internships-list {
    max-width: 900px;
    margin: 0 auto;
}

.internship-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(40px) scale(0.88);
    filter: blur(4px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.internship-item.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.internship-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 0.5rem;
    white-space: nowrap;
}

.internship-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.internship-content:hover {
    box-shadow: var(--shadow-xl);
    transform: translateX(5px);
}

.internship-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.internship-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.internship-logos {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    float: right;
    margin-left: 1.5rem;
}

.internship-logos .internship-logo {
    float: none;
    margin: 0;
}

.internship-location {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.internship-tasks {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.internship-tasks li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.internship-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ==================== */
/* Projects Detail Page */
/* ==================== */
.projects-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.projects-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.projects-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.projects-detail {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.project-detail {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 3rem;
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.project-detail h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-meta {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.project-section {
    margin-bottom: 2rem;
}

.project-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.project-section ul {
    list-style: none;
    margin-left: 0;
}

.project-section ul li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.project-section ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.project-section ul li strong {
    color: var(--text-primary);
}

.project-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

.project-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.project-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 4rem 0;
}

/* ==================== */
/* Contact Page */
/* ==================== */
.contact-page {
    min-height: 80vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f9fafb 0%, #e0e7ff 100%);
}

.page-title {
    font-size: 3rem;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(3px);
    animation: heroReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(40px) scale(0.88);
    filter: blur(4px);
    animation: contactReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes contactReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.contact-card:nth-child(1) {
    animation-delay: 0.3s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.5s;
}

.contact-card:hover {
    transform: translateY(-5px) scale(1);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.contact-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-link {
    font-size: 1.5rem;
    font-weight: 600;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.contact-email {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.contact-email:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.contact-linkedin {
    color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
}

.contact-linkedin:hover {
    background: #0077b5;
    color: white;
    transform: scale(1.05);
}

.contact-divider {
    text-align: center;
    position: relative;
    margin: 2rem 0;
    opacity: 0;
    transform: scale(0.7);
    filter: blur(3px);
    animation: contactReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.contact-divider span {
    background: white;
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.back-home {
    text-align: center;
    margin-top: 4rem;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(3px);
    animation: contactReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

/* ==================== */
/* Project Detail Page */
/* ==================== */
.project-hero {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.95) 0%, rgba(224, 231, 255, 0.95) 100%),
                url('../images/airbus-project-satellite-image.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 60px;
    position: relative;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.9) 0%, rgba(224, 231, 255, 0.9) 100%);
    z-index: 0;
}

.project-hero .container {
    position: relative;
    z-index: 1;
}

.project-breadcrumb {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.project-breadcrumb a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

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

.project-hero-content {
    max-width: 900px;
}

.project-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.badge {
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-category {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.badge-tech {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
}

.project-hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: heroReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.project-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.project-content {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
}

.content-section {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

.content-section:nth-child(1) {
    animation-delay: 0.1s;
}

.content-section:nth-child(2) {
    animation-delay: 0.2s;
}

.content-section:nth-child(3) {
    animation-delay: 0.3s;
}

.content-section:nth-child(4) {
    animation-delay: 0.4s;
}

.content-section:nth-child(5) {
    animation-delay: 0.5s;
}

.content-section:nth-child(6) {
    animation-delay: 0.6s;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
    padding-left: 0;
}

.content-section li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    margin-left: 1.5rem;
}

.content-section li::marker {
    color: var(--primary-color);
}

/* Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tech-category {
    background: rgba(99, 102, 241, 0.03);
    padding: 1.2rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.tech-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

.tech-category ul {
    margin-left: 1.2rem;
    margin-bottom: 0;
    padding-left: 0;
}

.tech-category li {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    margin-left: 0;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.content-section a:hover {
    color: var(--primary-dark);
}

.content-section pre {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.content-section code {
    background-color: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

.content-section pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-image {
    margin: 2.5rem 0;
    text-align: center;
}

.project-image img {
    width: 100%;
    max-width: 800px;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.project-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

.references {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.references h2 {
    border-bottom: 3px solid var(--secondary-color);
}

.reference {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

    .hero-text {
        padding-left: 0;
        padding-right: 0;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item::before {
        position: static;
        display: block;
        transform: none;
        margin-bottom: 0.5rem;
        margin-left: 80px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
        right: auto;
    }

    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 60px;
        right: auto;
    }

    .carousel-container {
        padding: 40px 60px;
    }

    .carousel-slide {
        width: 350px;
    }

    .carousel {
        height: 500px;
    }

    .internship-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    .scroll-arrow {
        bottom: 20px;
    }

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

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

    .contact-card {
        padding: 2rem;
    }

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

    .contact-link {
        font-size: 1.2rem;
    }

    .carousel-container {
        padding: 20px 0;
    }

    .carousel-slide {
        width: 100%;
        max-width: 320px;
    }

    .carousel {
        height: 550px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .project-detail {
        padding: 2rem 1.5rem;
    }

    .projects-header h1 {
        font-size: 2rem;
    }

    .footer .container {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-logo {
        width: 60px;
        height: 60px;
    }

    .timeline-logo-small {
        width: 45px;
        height: 45px;
    }

    .internship-logo {
        width: 70px;
        height: 70px;
        float: none;
        display: block;
        margin: 0 auto 1rem;
    }

    .internship-logos {
        float: none;
        justify-content: center;
        margin: 0 auto 1rem;
    }

    .internship-logos .internship-logo {
        width: 60px;
        height: 60px;
    }

    /* Project Detail Page Responsive */
    .project-hero {
        padding: 100px 0 40px;
        background-attachment: scroll;
    }

    .project-hero-content h1 {
        font-size: 2.2rem;
    }

    .project-subtitle {
        font-size: 1.05rem;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .content-section p,
    .content-section li {
        font-size: 1rem;
    }

    .content-section ul {
        margin-left: 1.5rem;
    }

    .content-section li {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .scroll-arrow {
        bottom: 15px;
    }

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

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

    .contact-card {
        padding: 1.5rem;
    }

    .contact-text {
        font-size: 1rem;
    }

    .contact-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }

    .contact-icon svg {
        width: 50px;
        height: 50px;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-logo {
        width: 45px;
        height: 45px;
    }

    .timeline-logo-small {
        width: 35px;
        height: 35px;
    }

    .internship-logo {
        width: 60px;
        height: 60px;
    }

    .internship-logos .internship-logo {
        width: 50px;
        height: 50px;
    }

    .project-card {
        padding: 1.5rem;
    }

    .internship-content {
        padding: 1.5rem;
    }

    /* Project Detail Page Responsive */
    .project-hero {
        padding: 90px 0 30px;
        background-attachment: scroll;
        background-size: cover;
    }

    .project-hero-content h1 {
        font-size: 1.8rem;
    }

    .project-subtitle {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .content-section {
        margin-bottom: 3rem;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .content-section p,
    .content-section li {
        font-size: 0.95rem;
    }

    .content-section ul {
        margin-left: 1.2rem;
    }

    .content-section li {
        margin-left: 0.8rem;
    }

    .project-image img {
        border-radius: 0.5rem;
    }

    .image-caption {
        font-size: 0.85rem;
    }

    .references {
        padding: 1.5rem;
    }

    .reference {
        font-size: 0.75rem;
    }
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-up {
    animation: slideUp 0.6s ease;
}

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

/* ==================== */
/* Language Selector */
/* ==================== */
.language-selector {
    position: relative;
    margin-left: 1rem;
}

.lang-btn-current {
    background: transparent;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn-current:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.lang-btn-current .flag-icon {
    font-size: 1.8rem;
    display: block;
    line-height: 1;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 60px;
}

.language-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.6rem 0.8rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.lang-option:hover {
    background: rgba(37, 99, 235, 0.1);
}

.lang-option.active {
    background: var(--primary-color);
}

.lang-option .flag-icon {
    font-size: 1.5rem;
    display: block;
    line-height: 1;
}

/* Mobile language selector */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: center;
    }

    .lang-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .language-selector.open .lang-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}

/* ==================== */
/* Image Zoom Lightbox */
/* ==================== */
.image-zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

.image-zoom-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 2rem;
}

.image-zoom-overlay img,
.image-zoom-overlay video {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    margin: auto;
    flex-shrink: 0;
}

.project-image img,
.project-image video {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image img:hover,
.project-image video:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ==================== */
/* Installation Video with Annotations */
/* ==================== */
.installation-video-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    align-items: flex-start;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.video-side {
    flex: 12;
    min-width: 0;
    cursor: pointer;
    position: relative;
}

.video-side::after {
    content: '🔍 Cliquer pour agrandir';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-side:hover::after {
    opacity: 1;
}

.video-side video {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.annotations-side {
    flex: 8;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    align-self: flex-start;
}

.annotation {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: 1.25rem;
    opacity: 0;
    display: none;
    transition: all 0.4s ease;
    gap: 1rem;
    align-items: flex-start;
}

.annotation.visible {
    display: flex;
    animation: slideInRight 0.4s ease;
}

.annotation.visible:not(.active) .annotation-number {
    opacity: 0.6;
}

.annotation.active {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
    border-left-width: 6px;
    opacity: 1 !important;
}

.annotation-number {
    background: var(--primary-color);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.annotation-content {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.annotation.active .annotation-content {
    color: var(--text-primary);
    font-weight: 500;
}

.annotation-content code {
    background-color: var(--bg-secondary);
    padding: 0.4rem 0.6rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
    word-break: break-all;
}

.annotation.active .annotation-content code {
    background-color: #f0f7ff;
    color: var(--primary-color);
    font-weight: 600;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fullscreen video overlay */
.video-fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
}

.video-fullscreen-overlay.active {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    align-items: center;
}

.video-fullscreen-overlay .installation-video-container {
    display: flex !important;
    gap: 2rem !important;
    align-items: flex-start !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    padding-right: 2rem !important;
    width: 100vw !important;
    left: 0 !important;
    transform: none !important;
}

.video-fullscreen-overlay .video-side {
    cursor: default;
}

.video-fullscreen-overlay .video-side::after {
    display: none;
}

.video-fullscreen-overlay video {
    max-height: 90vh;
}

.video-fullscreen-overlay .annotations-side {
    max-height: 90vh;
    overflow-y: auto;
}

.video-fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.video-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 968px) {
    .installation-video-container {
        flex-direction: column;
    }

    .video-side,
    .annotations-side {
        flex: 1;
        width: 100%;
    }

    .video-fullscreen-overlay.active {
        flex-direction: column;
        overflow-y: auto;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
