/* ==================== VARIABLES ==================== */
:root {
    /* Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1419;
    --bg-tertiary: #151b26;
    --text-primary: #e6eef9;
    --text-secondary: #9aa5b8;
    --text-muted: #64748b;
    --accent-primary: #6ee7b7;
    --accent-secondary: #34d399;
    --accent-gradient: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    --error: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;

    /* Spacing */
    --max-width: 1280px;
    --section-padding: 6rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ==================== UTILITIES ==================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-number {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: var(--accent-gradient);
    color: #0a0e1a;
    box-shadow: 0 4px 16px rgba(110, 231, 183, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(110, 231, 183, 0.4);
}

.btn.ghost {
    background: transparent;
    border-color: rgba(110, 231, 183, 0.3);
    color: var(--text-primary);
}

.btn.ghost:hover {
    background: rgba(110, 231, 183, 0.1);
    border-color: var(--accent-primary);
}

.btn.large {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

/* ==================== HEADER ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 26, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    padding: 1rem 0;
    background: rgba(10, 14, 26, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-base);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-base);
}

.main-nav a:hover {
    color: var(--text-primary);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.nav-toggle .burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nav-toggle .burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-toggle.active .burger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.nav-toggle.active .burger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.blob.b1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, #6ee7b7, #3b82f6);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob.b2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    bottom: -5%;
    right: -5%;
    animation-delay: 7s;
}

.blob.b3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(45deg, #34d399, #06b6d4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.greeting {
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.name-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 3rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.cursor {
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.8;
}

.cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease-out;
}

.avatar-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring, .avatar-ring-2 {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(110, 231, 183, 0.3);
    animation: rotate 20s linear infinite;
}

.avatar-ring {
    width: 100%;
    height: 100%;
}

.avatar-ring-2 {
    width: 80%;
    height: 80%;
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar {
    width: 250px;
    height: 250px;
    border-radius: 120px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.avatar-inner {
    font-size: 4rem;
    font-weight: 900;
    color: #0a0e1a;
}

.avatar.avatar-image {
    padding: 0;
    background: var(--accent-gradient);
}

.avatar.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.floating-tech {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(15, 20, 25, 0.9);
    border: 1px solid rgba(110, 231, 183, 0.3);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    animation: floatTech 3s ease-in-out infinite;
}
/*Animation cercle page d'acueil*/
/*Github*/
.tech-0 { top: -5%;left: 40%; animation-delay: 0.5s; }
/*HTML*/
.tech-1 { top: 20%; left: 0; animation-delay: 1s; }
/*CSS*/
.tech-2 { top: 20%; right: 0; animation-delay: 1s; }
/*JS*/
.tech-3 { bottom: 20%; left: 0; animation-delay: 1.5s; }
/*PHP*/
.tech-4 { bottom: 20%; right: 0; animation-delay: 1.5s; }
/*MySQL*/
.tech-5 { bottom: -5%; right: 40%; animation-delay: 0.5s; }


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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: fadeIn 2s ease-out;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.about-cta {
    margin-top: 2rem;
}

.code-window {
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.window-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-title {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.window-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.window-content pre {
    font-family: 'Fira Code', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-keyword { color: #c678dd; }
.code-class { color: #e5c07b; }
.code-variable { color: #61afef; }
.code-string { color: #98c379; }
.code-function { color: #61afef; }

/* ==================== SKILLS SECTION ==================== */
.skills-section {
    padding: var(--section-padding) 0;
}

.skills-content {
    margin-top: 3rem;
}

.skills-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.skill {
    background: var(--bg-secondary);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.skill:hover {
    transform: translateY(-8px);
    border-color: rgba(110, 231, 183, 0.3);
    box-shadow: var(--shadow-lg);
}

.skill .icon {
    width: 80px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.skill .icon svg {
    width: 100%;
    height: 100%;
    transition: all var(--transition-base);
}

.skill:hover .icon svg {
    transform: scale(1.1) rotate(5deg);
}

/* Styles pour les images de logos */
.skill-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
}

.skill:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Filtre spécifique pour GitHub pour ne pas qu'il soit complètement noir */
.skill-icon[alt*="GitHub"],
.skill-icon[title*="GitHub"] {
    filter: brightness(0) invert(1);
}

.skill:hover .skill-icon[alt*="GitHub"],
.skill:hover .skill-icon[title*="GitHub"] {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.skill .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(110, 231, 183, 0.2);
    opacity: 0;
    transition: all var(--transition-base);
}

.skill:hover .ring {
    opacity: 1;
    width: 100px;
    height: 100px;
}

.skill .label {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.skill-level {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: var(--accent-gradient);
    width: 0;
    transition: width 1s ease-out;
}



/* Soft Skills */
.soft-skills {
    margin-top: 4rem;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.soft-skill {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.soft-skill:hover {
    background: var(--bg-tertiary);
    border-color: rgba(110, 231, 183, 0.2);
    transform: translateX(8px);
}

.soft-skill svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.soft-skill span {
    font-weight: 500;
    color: var(--text-secondary);
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.project-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.625rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(110, 231, 183, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project {
    background: var(--bg-tertiary);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.project:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(110, 231, 183, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-primary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: all var(--transition-base);
}

.project:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 48px;
    height: 48px;
    background: rgba(110, 231, 183, 0.2);
    border: 1px solid var(--accent-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    transition: all var(--transition-base);
}

.project-link:hover {
    background: var(--accent-primary);
    color: #0a0e1a;
    transform: translateY(-4px);
}

.project-content {
    padding: 1.5rem;
}

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

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(110, 231, 183, 0.1);
    border: 1px solid rgba(110, 231, 183, 0.2);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.project-meta {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.meta-item svg {
    width: 16px;
    height: 16px;
}

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

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-section {
    padding: var(--section-padding) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.testimonial:hover {
    transform: translateY(-4px);
    border-color: rgba(110, 231, 183, 0.2);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--accent-primary);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--bg-primary);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.footer-nav a {
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

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

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox .inner {
    position: relative;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease-out;
}

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

.lightbox .close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox .close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    transform: rotate(90deg);
}

.lightbox-header {
    margin-bottom: 2rem;
}

.lightbox-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.lightbox img {
    width: 100%;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.lightbox-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

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

/* ==================== PAGE HEADER ==================== */
.page-header {
    padding: 8rem 0 4rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.page-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.page-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==================== RESUME / CV PAGE ==================== */
.resume-section {
    padding: var(--section-padding) 0;
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
}

.resume-block {
    margin-bottom: 3rem;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--accent-primary);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(110, 231, 183, 0.1);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.company {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Sidebar */
.resume-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-block {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.contact-item svg {
    color: var(--accent-primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
}

.languages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.interest-tag {
    padding: 0.375rem 0.875rem;
    background: rgba(110, 231, 183, 0.1);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--accent-primary);
}

/* ==================== CONTACT PAGE ==================== */
.contact-section {
    padding: var(--section-padding) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-panel,
.contact-form-panel {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
    transition: all var(--transition-base);
}

.contact-method:hover {
    transform: translateY(-2px);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: rgba(110, 231, 183, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon svg {
    color: var(--accent-primary);
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.1);
}

.msg {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.msg.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.msg.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.faq-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
}

.faq-item h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.faq-item svg {
    color: var(--accent-primary);
}

/* ==================== PROJECT DETAIL PAGE ==================== */
.project-detail {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    padding: var(--section-padding) 0;
}

.project-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-hero .meta {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-features {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-features h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.project-features ul {
    list-style: none;
    padding: 0;
}

.project-features li {
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.project-features li:last-child {
    border-bottom: none;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.project-gallery {
    margin-top: 2rem;
}

.project-gallery img {
    box-shadow: var(--shadow-lg);
}

.sidebar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sidebar p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* ==================== RESPONSIVE - PROJECT DETAIL ==================== */
@media (max-width: 1024px) {
    .project-detail {
        grid-template-columns: 1fr;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem;
    }

    .hero-content,
    .about-content,
    .resume-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .avatar-container {
        width: 300px;
        height: 300px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .skill-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .main-nav.open {
        display: flex;
        transform: translateX(0);
    }

    .main-nav a {
        font-size: 1.25rem;
        width: 100%;
        padding: 0.75rem 0;
    }

    .main-nav a::after {
        bottom: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

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

    .cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        height: 3rem;
    }

    .avatar-container {
        width: 200px;
        height: 200px;
    }

    .floating-tech {
        display: none;
    }

    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .skill {
        padding: 1rem 0.5rem;
    }

    .skill .label {
        font-size: 0.875rem;
    }
}
