/* ============================================
   YAZID NAIT ALLOU — Portfolio
   Design: Clean Premium Light · One Accent
   ============================================ */

/* ---- DESIGN TOKENS ---- */
:root {
    --accent:        #4F46E5;
    --accent-hover:  #4338CA;
    --accent-light:  #818CF8;
    --accent-muted:  rgba(79, 70, 229, 0.08);
    --accent-border: rgba(79, 70, 229, 0.18);

    --bg-base:       #FFFFFF;
    --bg-subtle:     #F8F8FA;
    --bg-card:       #FFFFFF;
    --bg-elevated:   #F1F1F5;

    --text-primary:  #0A0A0F;
    --text-secondary:#4B5563;
    --text-muted:    #9CA3AF;

    --border:        #E5E5EA;
    --border-strong: #C7C7CC;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
    --shadow-accent: 0 4px 20px rgba(79, 70, 229, 0.25);

    --bg-base: #080b14;
    --bg-card: rgba(15, 20, 40, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --bg-elevated: #0d1120;
    --bg-section-alt: #0a0e1a;

    --text-primary: #f0f4ff;
    --text-secondary: #9ba3bf;
    --text-muted: #5a6378;

    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(108, 99, 255, 0.3);

    --gradient-primary: linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
    --gradient-hero: linear-gradient(135deg, #080b14 0%, #0d1427 50%, #080b14 100%);
    --gradient-ai: linear-gradient(135deg, #1a0533 0%, #0a1a3a 50%, #001a2e 100%);
    --gradient-text: linear-gradient(135deg, #6c63ff, #00d4ff);

    --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.6);

    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --navbar-h: 72px;
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
    --bg-base: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: #ffffff;
    --bg-glass-hover: #f8f9fb;
    --bg-elevated: #f4f5f7;
    --bg-section-alt: #f4f5f7;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --border: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(108, 99, 255, 0.25);

    /* Flat, no gradients */
    --gradient-primary: #5b52e8;
    --gradient-hero: #ffffff;
    --gradient-ai: #f4f5f7;
    --gradient-text: #5b52e8;

    --shadow-glow: 0 0 0 1px rgba(108, 99, 255, 0.12);
    --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-strong: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Base */
[data-theme="light"] body { background-color: #ffffff; color: #111827; cursor: auto; }
[data-theme="light"] .cursor-glow { display: none; }
[data-theme="light"] #particles-canvas { display: none; }

/* Navbar */
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
[data-theme="light"] .nav-link { color: #4b5563; }
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active { color: #111827; background: #f4f5f7; }
[data-theme="light"] .logo-text { background: none; -webkit-text-fill-color: #5b52e8; color: #5b52e8; }
[data-theme="light"] .logo-dot { background: #5b52e8; }
[data-theme="light"] .lang-btn { color: #9ca3af; }
[data-theme="light"] .lang-btn.active, [data-theme="light"] .lang-btn:hover { color: #5b52e8; }
[data-theme="light"] .lang-separator { color: #d1d5db; }
[data-theme="light"] .hamburger span { background: #111827; }

/* Hero */
[data-theme="light"] .hero-bg { background: #ffffff; }
[data-theme="light"] .hero-gradient { background: #ffffff; }
[data-theme="light"] .hero-gradient::after { display: none; }
[data-theme="light"] .hero-grid { display: none; }
[data-theme="light"] .hero-greeting { color: #6b7280; }
[data-theme="light"] .hero-title { color: #111827; }
[data-theme="light"] .gradient-text {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #5b52e8;
    background-clip: unset;
    color: #5b52e8;
}
[data-theme="light"] .role-prefix { color: #6b7280; }
[data-theme="light"] #typed-text { color: #5b52e8; }
[data-theme="light"] .typed-cursor { color: #5b52e8; }
[data-theme="light"] .hero-description { color: #4b5563; }
[data-theme="light"] .stat-number {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #5b52e8;
    color: #5b52e8;
}
[data-theme="light"] .stat-plus { color: #5b52e8; }
[data-theme="light"] .stat-label { color: #9ca3af; }
[data-theme="light"] .stat-divider { background: #e5e7eb; }
[data-theme="light"] .scroll-indicator { color: #9ca3af; }
[data-theme="light"] .scroll-mouse { border-color: #d1d5db; }
[data-theme="light"] .scroll-wheel { background: #5b52e8; }

/* Buttons */
[data-theme="light"] .btn-primary {
    background: #5b52e8;
    color: white;
    box-shadow: none;
}
[data-theme="light"] .btn-primary:hover { background: #4a42cc; box-shadow: none; }
[data-theme="light"] .btn-outline {
    color: #111827;
    border-color: #d1d5db;
    background: transparent;
}
[data-theme="light"] .btn-outline:hover { background: #f4f5f7; border-color: #9ca3af; }
[data-theme="light"] .btn-ghost { background: #f4f5f7; border-color: #e5e7eb; color: #111827; }
[data-theme="light"] .btn-ghost:hover { background: #e5e7eb; }

/* Sections backgrounds */
[data-theme="light"] .about { background: #f4f5f7; }
[data-theme="light"] .ai-expertise { background: #f4f5f7; }
[data-theme="light"] .ai-bg-overlay { display: none; }
[data-theme="light"] .skills { background: #ffffff; }
[data-theme="light"] .certifications { background: #f4f5f7; }
[data-theme="light"] .projects { background: #ffffff; }
[data-theme="light"] .services { background: #f4f5f7; }
[data-theme="light"] .contact { background: #ffffff; }
[data-theme="light"] .footer { background: #111827; }

/* Section headers */
[data-theme="light"] .section-tag {
    color: #5b52e8;
    background: rgba(91, 82, 232, 0.08);
    border-color: rgba(91, 82, 232, 0.15);
}
[data-theme="light"] .section-title { color: #111827; }
[data-theme="light"] .section-subtitle { color: #6b7280; }

/* Cards — flat, white, subtle border */
[data-theme="light"] .profile-info-card,
[data-theme="light"] .about-highlights,
[data-theme="light"] .skills-category,
[data-theme="light"] .certif-card,
[data-theme="light"] .project-card,
[data-theme="light"] .service-card,
[data-theme="light"] .contact-card,
[data-theme="light"] .contact-form-wrapper,
[data-theme="light"] .ai-tools-showcase,
[data-theme="light"] .timeline-content,
[data-theme="light"] .certif-stats,
[data-theme="light"] .ai-domain-card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    backdrop-filter: none;
}
[data-theme="light"] .project-card:hover,
[data-theme="light"] .service-card:hover,
[data-theme="light"] .certif-card:hover,
[data-theme="light"] .ai-domain-card:hover { border-color: #5b52e8; box-shadow: 0 4px 16px rgba(91,82,232,0.08); }

/* About */
[data-theme="light"] .avatar-placeholder { background: #5b52e8; box-shadow: none; }
[data-theme="light"] .avatar-badge { background: #5b52e8; border-color: #ffffff; box-shadow: none; }
[data-theme="light"] .info-item { color: #4b5563; }
[data-theme="light"] .info-item i { color: #5b52e8; }
[data-theme="light"] .about-text { color: #4b5563; }
[data-theme="light"] .about-title { color: #111827; }
[data-theme="light"] .highlight-item { color: #4b5563; }
[data-theme="light"] .highlight-item i { color: #10b981; }

/* Timeline */
[data-theme="light"] .timeline::before { background: #e5e7eb; }
[data-theme="light"] .timeline-dot { border-color: #5b52e8; background: #ffffff; }
[data-theme="light"] .timeline-date { color: #9ca3af; }
[data-theme="light"] .timeline-content h4 { color: #111827; }
[data-theme="light"] .timeline-content p { color: #4b5563; }
[data-theme="light"] .timeline-tags span { background: #f4f5f7; border-color: #e5e7eb; color: #4b5563; }

/* AI Cards */
[data-theme="light"] .ai-domain-card h3 { color: #111827; }
[data-theme="light"] .ai-domain-card p { color: #4b5563; }
[data-theme="light"] .tech-badge { background: #f4f5f7; border-color: #e5e7eb; color: #4b5563; }
[data-theme="light"] .featured-badge { background: #5b52e8; color: white; }
[data-theme="light"] .icon-glow { display: none; }
[data-theme="light"] .ai-card-icon i { color: #5b52e8; }
[data-theme="light"] .metric-value { color: #5b52e8; }
[data-theme="light"] .metric-label { color: #9ca3af; }
[data-theme="light"] .tool-item { background: #f4f5f7; border-color: #e5e7eb; }
[data-theme="light"] .tool-item:hover { border-color: #5b52e8; background: #ffffff; }
[data-theme="light"] .tool-item span { color: #4b5563; }
[data-theme="light"] .tools-title { color: #6b7280; }

/* Skills */
[data-theme="light"] .category-title { color: #111827; }
[data-theme="light"] .category-title i { color: #5b52e8; }
[data-theme="light"] .skill-info { color: #4b5563; }
[data-theme="light"] .skill-track { background: #f4f5f7; }
[data-theme="light"] .ai-fill { background: #5b52e8; }
[data-theme="light"] .web-fill { background: #0ea5e9; }
[data-theme="light"] .cloud-badge { background: #f4f5f7; border-color: #e5e7eb; color: #4b5563; }
[data-theme="light"] .cloud-badge.hot { background: rgba(91,82,232,0.07); border-color: rgba(91,82,232,0.15); color: #5b52e8; }

/* Projects */
[data-theme="light"] .filter-btn { background: #f4f5f7; border-color: #e5e7eb; color: #4b5563; }
[data-theme="light"] .filter-btn:hover, [data-theme="light"] .filter-btn.active { background: #5b52e8; border-color: #5b52e8; color: white; }
[data-theme="light"] .project-img-overlay { background: linear-gradient(to top, rgba(255,255,255,0.85) 0%, transparent 60%); }
[data-theme="light"] .project-img-overlay span { color: #6b7280; }
[data-theme="light"] .project-content h3 { color: #111827; }
[data-theme="light"] .project-content p { color: #4b5563; }
[data-theme="light"] .project-stack span { background: #f4f5f7; border-color: #e5e7eb; color: #4b5563; }
[data-theme="light"] .proj-link { color: #5b52e8; border-color: rgba(91,82,232,0.2); }
[data-theme="light"] .proj-link:hover { background: rgba(91,82,232,0.07); color: #4a42cc; }

/* Certifications */
[data-theme="light"] .certif-provider { color: #111827; }
[data-theme="light"] .certif-id { color: #9ca3af; }
[data-theme="light"] .certif-badge-icon { background: #f4f5f7; border-color: #e5e7eb; color: #5b52e8; }
[data-theme="light"] .certif-body h3 { color: #111827; }
[data-theme="light"] .certif-body p { color: #4b5563; }
[data-theme="light"] .certif-footer { border-color: #e5e7eb; }
[data-theme="light"] .certif-skill-tag { color: #10b981; }
[data-theme="light"] .certif-link { color: #5b52e8; border-color: rgba(91,82,232,0.2); }
[data-theme="light"] .certif-link:hover { background: rgba(91,82,232,0.07); border-color: #5b52e8; }
[data-theme="light"] .certif-stat-number { background: none; -webkit-text-fill-color: #5b52e8; color: #5b52e8; }
[data-theme="light"] .certif-stat-icon { color: #5b52e8; }
[data-theme="light"] .certif-stat-label { color: #6b7280; }
[data-theme="light"] .certif-stat-divider { background: #e5e7eb; }

/* Services */
[data-theme="light"] .service-card::before { display: none; }
[data-theme="light"] .service-card h3 { color: #111827; }
[data-theme="light"] .service-card p { color: #4b5563; }
[data-theme="light"] .service-icon-wrapper { background: #f4f5f7; }
[data-theme="light"] .featured-service { background: #ffffff; border-color: #5b52e8; }
[data-theme="light"] .featured-icon { background: rgba(91,82,232,0.1); }
[data-theme="light"] .service-icon { color: #5b52e8; }
[data-theme="light"] .service-list li { color: #4b5563; }
[data-theme="light"] .service-list li i { color: #10b981; }

/* Contact */
[data-theme="light"] .contact-icon { background: #f4f5f7; color: #5b52e8; }
[data-theme="light"] .contact-label { color: #9ca3af; }
[data-theme="light"] .contact-value { color: #111827; }
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: #f4f5f7;
    border-color: #e5e7eb;
    color: #111827;
}
[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus { border-color: #5b52e8; background: #ffffff; }
[data-theme="light"] .contact-form label { color: #4b5563; }
[data-theme="light"] .social-btn { border-color: #e5e7eb; color: #4b5563; }
[data-theme="light"] .social-btn:hover { background: #5b52e8; color: white; border-color: #5b52e8; }

/* Theme toggle */
[data-theme="light"] .theme-toggle { background: #f4f5f7; border-color: #e5e7eb; color: #f59e0b; }
[data-theme="light"] .theme-toggle:hover { background: #e5e7eb; transform: rotate(20deg); }

/* Orb */
[data-theme="light"] .orb-core { background: #5b52e8; box-shadow: 0 4px 24px rgba(91,82,232,0.25); }
[data-theme="light"] .floating-tag { background: #ffffff; border-color: #e5e7eb; color: #4b5563; }
[data-theme="light"] .floating-tag i { color: #5b52e8; }
[data-theme="light"] .orb-ring { border-color: rgba(91,82,232,0.12); }

/* Back to top */
[data-theme="light"] .back-to-top { background: #5b52e8; box-shadow: none; }

/* Scroll progress */
[data-theme="light"] .scroll-progress { background: #5b52e8; }

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-h);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-main); }

/* ---- PARTICLES CANVAS ---- */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- CURSOR ---- */
.cursor-glow {
    display: none;
    position: fixed;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
    pointer-events: none; /* Force transparent clicks */
}

body:hover .cursor-glow { display: none; }

/* ---- SCROLL PROGRESS ---- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s;
}

/* ---- CONTAINER ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---- SECTION HEADER ---- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
    position: relative;
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-glow);
}

.btn-outline:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-h);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 11, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.lang-btn {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
    font-weight: 600;
}

.lang-btn.active, .lang-btn:hover {
    color: var(--primary-light);
}

.lang-separator { color: var(--text-muted); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- THEME TOGGLE ---- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: var(--border-glow);
    color: var(--primary-light);
    transform: rotate(20deg);
}

[data-theme="light"] .theme-toggle {
    background: rgba(255,255,255,0.8);
    border-color: rgba(108,99,255,0.2);
    color: #f59e0b;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(255, 107, 157, 0.08) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 24px;
    margin-left: calc((100vw - 1200px) / 2);
    margin-left: max(24px, calc((100vw - 1200px) / 2));
    padding-top: var(--navbar-h);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 245, 160, 0.1);
    border: 1px solid rgba(0, 245, 160, 0.2);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 13px;
    color: var(--success);
    margin-bottom: 24px;
    animation: fade-in-up 0.6s ease forwards;
}

.hero-badge i { animation: spin-slow 3s linear infinite; }

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

.hero-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    animation: fade-in-up 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-greeting {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-roles {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: fade-in-up 0.6s ease 0.2s forwards;
    opacity: 0;
    min-height: 2rem;
}

.role-prefix { color: var(--text-secondary); }

#typed-text {
    color: var(--secondary);
    font-weight: 600;
}

.typed-cursor {
    animation: blink 1s step-end infinite;
    color: var(--secondary);
    font-weight: 300;
}

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

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
    animation: fade-in-up 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    animation: fade-in-up 0.6s ease 0.4s forwards;
    opacity: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-plus { color: var(--primary-light); font-weight: 700; font-size: 1.2rem; }

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fade-in-up 0.6s ease 0.5s forwards;
    opacity: 0;
}

/* AI Orb Visual */
.hero-visual {
    position: absolute;
    right: max(24px, calc((100vw - 1200px) / 2));
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.ai-orb {
    width: 340px;
    height: 340px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: rotate-ring linear infinite;
}

.ring-1 {
    width: 340px; height: 340px;
    border-color: rgba(108, 99, 255, 0.2);
    animation-duration: 20s;
}

.ring-2 {
    width: 260px; height: 260px;
    border-color: rgba(0, 212, 255, 0.2);
    animation-duration: 15s;
    animation-direction: reverse;
}

.ring-3 {
    width: 180px; height: 180px;
    border-color: rgba(255, 107, 157, 0.2);
    animation-duration: 10s;
}

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

.orb-core {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.5), 0 0 120px rgba(108, 99, 255, 0.2);
    animation: pulse-orb 3s ease-in-out infinite;
}

@keyframes pulse-orb {
    0%, 100% { box-shadow: 0 0 60px rgba(108, 99, 255, 0.5), 0 0 120px rgba(108, 99, 255, 0.2); }
    50% { box-shadow: 0 0 80px rgba(108, 99, 255, 0.8), 0 0 150px rgba(108, 99, 255, 0.3); }
}

.orb-icon {
    font-size: 2.5rem;
    color: white;
}

.floating-tag {
    position: absolute;
    background: rgba(15, 20, 40, 0.9);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    animation: float-tag ease-in-out infinite;
}

.floating-tag i { margin-right: 6px; color: var(--secondary); }

.tag-1 { top: 10%; right: -20px; animation-duration: 3s; animation-delay: 0s; }
.tag-2 { top: 35%; right: -40px; animation-duration: 4s; animation-delay: 0.5s; }
.tag-3 { bottom: 35%; right: -20px; animation-duration: 3.5s; animation-delay: 1s; }
.tag-4 { bottom: 10%; right: -30px; animation-duration: 4.5s; animation-delay: 1.5s; }

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    animation: fade-in-up 1s ease 1s forwards;
    opacity: 0;
}

.scroll-mouse {
    width: 24px; height: 36px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px; height: 8px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--bg-section-alt); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

/* ============================================
   CINEMATIC SHOWCASE
   ============================================ */
.cinematic-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Film strips */
.film-strip {
    width: 100%;
    display: flex;
    gap: 6px;
    padding: 6px 8px;
    background: #0a0a0a;
    border-left: 4px solid #111;
    border-right: 4px solid #111;
    overflow: hidden;
}

.film-strip-top {
    border-radius: 10px 10px 0 0;
    border-top: 4px solid #111;
}

.film-strip-bottom {
    border-radius: 0 0 10px 10px;
    border-bottom: 4px solid #111;
}

.film-strip span {
    flex: 1;
    height: 14px;
    background: #222;
    border-radius: 3px;
    border: 1px solid #333;
    min-width: 22px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}

/* Stage wrapper with ambient glow */
.cinematic-stage {
    position: relative;
    width: 100%;
}

.cinematic-spotlight {
    position: absolute;
    top: -30px;
    width: 60%;
    height: 120%;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.18;
    animation: spotlight-pulse 4s ease-in-out infinite;
}

.cinematic-spotlight.left {
    left: -20%;
    background: radial-gradient(ellipse at center, #6c63ff, transparent);
}

.cinematic-spotlight.right {
    right: -20%;
    background: radial-gradient(ellipse at center, #00d4ff, transparent);
    animation-delay: 2s;
}

@keyframes spotlight-pulse {
    0%, 100% { opacity: 0.18; }
    50% { opacity: 0.32; }
}

/* The main cinematic frame */
.cinematic-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 14;
    background: #000;
    overflow: hidden;
    border-left: 4px solid #0a0a0a;
    border-right: 4px solid #0a0a0a;
    z-index: 1;
}

/* Scanlines effect */
.scanlines {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
    animation: scanlines-move 8s linear infinite;
    will-change: background-position;
}

@keyframes scanlines-move {
    from { background-position: 0 0; }
    to { background-position: 0 100px; }
}

/* Corner brackets — HUD targeting style */
.corner-bracket {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 4;
    pointer-events: none;
}

.corner-bracket.tl { top: 10px; left: 10px; border-top: 2px solid rgba(108,99,255,0.8); border-left: 2px solid rgba(108,99,255,0.8); }
.corner-bracket.tr { top: 10px; right: 10px; border-top: 2px solid rgba(108,99,255,0.8); border-right: 2px solid rgba(108,99,255,0.8); }
.corner-bracket.bl { bottom: 10px; left: 10px; border-bottom: 2px solid rgba(0,212,255,0.8); border-left: 2px solid rgba(0,212,255,0.8); }
.corner-bracket.br { bottom: 10px; right: 10px; border-bottom: 2px solid rgba(0,212,255,0.8); border-right: 2px solid rgba(0,212,255,0.8); }

/* Video */
.cinematic-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.08) brightness(1.0) saturate(1.1);
    z-index: 1;
    position: relative;
}

/* HUD Top bar */
.cinematic-hud-top {
    position: absolute;
    top: 0;
    left: 0; right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
    pointer-events: none;
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239,68,68,0.8);
    animation: rec-blink 1.2s ease-in-out infinite;
}

@keyframes rec-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.rec-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ef4444;
    font-family: 'Courier New', monospace;
}

.hud-center {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(108,99,255,0.8);
    pointer-events: none;
}

.hud-center i {
    color: #f59e0b;
    font-size: 13px;
    filter: drop-shadow(0 0 6px rgba(245,158,11,0.7));
}

.cinematic-title-label {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hud-right {
    pointer-events: auto;
}

.cinematic-sound-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.cinematic-sound-btn:hover {
    background: var(--accent, #4F46E5);
    border-color: transparent;
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(108,99,255,0.6);
}

/* HUD Bottom bar */
.cinematic-hud-bottom {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    pointer-events: none;
    gap: 8px;
}

.hud-name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-family: var(--font-display);
    flex: 1;
}

.hud-role {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(108,99,255,0.9);
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.hud-timecode {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.45);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

/* Info pills */
.cinematic-info-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
}

.info-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.info-pill:hover {
    border-color: rgba(108,99,255,0.4);
    background: rgba(108,99,255,0.08);
    transform: translateX(4px);
}

.info-pill i {
    color: var(--primary-light);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    position: relative;
    width: 220px; height: 220px;
}

.profile-avatar.hollywood-avatar {
    width: 240px;
    height: 300px;
}

.hollywood-video-card {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 36px rgba(79, 70, 229, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hollywood-video-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 48px rgba(79, 70, 229, 0.35), 0 0 0 2px var(--accent, #4F46E5);
}

.hollywood-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) brightness(1.02);
}

.hollywood-video-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.6) 100%);
}

.hollywood-badge {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hollywood-badge i {
    color: #f59e0b;
}

.hollywood-sound-btn {
    pointer-events: auto;
    align-self: flex-end;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hollywood-sound-btn:hover {
    background: var(--accent, #4F46E5);
    transform: scale(1.1);
    border-color: transparent;
}

.avatar-placeholder {
    width: 100%; height: 100%;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.avatar-badge {
    position: absolute;
    bottom: -12px; right: -12px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 3px solid var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.profile-info-card {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.info-item i {
    width: 20px;
    color: var(--primary-light);
    text-align: center;
}

.about-content { display: flex; flex-direction: column; gap: 16px; }

.about-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

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

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: 8px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.highlight-item i { color: var(--success); }

.about-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Timeline */
.timeline-section { }

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

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

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

.timeline-item {
    display: flex;
    gap: 32px;
    padding-left: 0;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition-slow);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    flex-shrink: 0;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 3px solid var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.timeline-date {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 8px 0;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-tags span {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: var(--primary-light);
    font-weight: 500;
}

/* ============================================
   AI EXPERTISE
   ============================================ */
.ai-expertise {
    background: var(--gradient-ai);
    position: relative;
    overflow: hidden;
}

.ai-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.6;
    z-index: 0;
}

.ai-expertise .container { z-index: 1; position: relative; }

.section-header.light .section-title,
.section-header.light .section-subtitle {
    color: var(--text-primary);
}

.ai-domains {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.ai-domain-card {
    background: rgba(15, 20, 40, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.ai-domain-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(108, 99, 255, 0.05) 100%);
    z-index: 0;
}

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

.ai-domain-card.featured {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
}

.ai-domain-card.featured:hover {
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.4);
}

.featured-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.ai-card-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border);
}

.icon-glow {
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-md);
    opacity: 0.3;
    filter: blur(8px);
}

.cv-glow { background: var(--secondary); }
.gen-glow { background: var(--primary); }
.ml-glow { background: var(--success); }

.ai-domain-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.ai-domain-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.ai-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.tech-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.ai-card-metric {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* AI Tools Showcase */
.ai-tools-showcase {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.tools-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: default;
}

.tool-item:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    background: var(--bg-glass-hover);
}

.tool-item img { width: 32px; height: 32px; object-fit: contain; }

.tool-icon-text {
    font-size: 1.8rem;
    line-height: 1;
}

.tool-item span {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

/* ============================================
   SKILLS
   ============================================ */
.skills { background: var(--bg-base); }

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.skills-category {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.skills-category:hover { border-color: var(--border-glow); }

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i { color: var(--primary-light); }

.skill-bars { display: flex; flex-direction: column; gap: 20px; }

.skill-bar-item {}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.skill-info span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.skill-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-fill { background: var(--gradient-primary); }
.web-fill { background: linear-gradient(90deg, #00d4ff, #6c63ff); }

/* Tech Cloud */
.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cloud-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
}

.cloud-badge:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.cloud-badge.hot {
    background: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.3);
    color: var(--primary-light);
}

.cloud-badge.hot:hover {
    background: rgba(108, 99, 255, 0.2);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.2);
}

.cloud-badge i { font-size: 14px; }

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certifications {
    background: var(--bg-section-alt);
    position: relative;
    overflow: hidden;
}

.certifications::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.certif-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.certif-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.certif-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.certif-card:hover {
    border-color: rgba(0, 212, 255, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.1), var(--shadow-card);
}

.certif-card:hover::before { opacity: 1; }

.certif-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.certif-logo {
    flex-shrink: 0;
}

.oc-logo {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fa0050, #d4004b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: white;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(250, 0, 80, 0.4);
    font-family: var(--font-display);
}

.certif-org {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.certif-provider {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.certif-id {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
}

.certif-badge-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 14px;
    flex-shrink: 0;
    transition: var(--transition);
}

.certif-card:hover .certif-badge-icon {
    background: rgba(0, 212, 255, 0.2);
    transform: rotate(10deg) scale(1.1);
}

.certif-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.certif-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

.certif-body p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.certif-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--warning);
    background: rgba(255, 209, 102, 0.1);
    border: 1px solid rgba(255, 209, 102, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-top: 4px;
    width: fit-content;
}

.certif-date i { font-size: 10px; }

.certif-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.certif-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--success);
    font-weight: 600;
}

.certif-skill-tag i { font-size: 10px; }

.certif-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.certif-link:hover {
    background: rgba(0, 212, 255, 0.12);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-1px);
}

.certif-link i { font-size: 11px; color: #ff4444; }

/* Certif Stats Bar */
.certif-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 40px;
    backdrop-filter: blur(10px);
}

.certif-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.certif-stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.certif-stat-icon {
    font-size: 1.8rem;
    color: var(--secondary);
}

.certif-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.certif-stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

@media (max-width: 1100px) {
    .certif-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .certif-grid { grid-template-columns: 1fr; }
    .certif-stats { flex-direction: column; gap: 20px; padding: 24px; }
    .certif-stat-divider { width: 60px; height: 1px; }
}

/* ============================================
   PROJECTS
   ============================================ */
.projects { background: var(--bg-section-alt); }

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.project-card.featured-project {
    border-color: rgba(108, 99, 255, 0.4);
    grid-column: span 1;
}

.project-card.hidden { display: none; }

.project-img-wrapper { position: relative; }

.project-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ai-project-img { background: linear-gradient(135deg, #1a0533, #0a0e1a); }
.genai-project-img { background: linear-gradient(135deg, #0d1427, #1a0533); }
.web-project-img-1 { background: linear-gradient(135deg, #001a2e, #0a1a3a); }
.wp-project-img { background: linear-gradient(135deg, #1a1a0a, #2a1a0a); }
.saas-project-img { background: linear-gradient(135deg, #001a1a, #0a1a2e); }
.ticket-project-img { background: linear-gradient(135deg, #1a0a1a, #0a1a2e); }
.epi-project-img { background: linear-gradient(135deg, #1a0a00, #2a1500, #1a0e00); }
.epi-project-img .project-icon-big { color: #ff9500; }
.agents-project-img { background: linear-gradient(135deg, #0a001a, #001a10, #0a001a); }
.agents-project-img .project-icon-big { color: #a855f7; }

.project-icon-big {
    font-size: 3rem;
    opacity: 0.4;
    transition: var(--transition);
}

.project-card:hover .project-icon-big {
    opacity: 0.8;
    transform: scale(1.1);
}

.project-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 11, 20, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.project-img-overlay span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.project-badges {
    position: absolute;
    top: 12px; left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.proj-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.ai-badge {
    background: rgba(108, 99, 255, 0.9);
    color: white;
}

.web-badge {
    background: rgba(0, 212, 255, 0.9);
    color: #001a2e;
}

.new-badge {
    background: rgba(0, 245, 160, 0.9);
    color: #001a1a;
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
    flex: 1;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-stack span {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.project-links { display: flex; gap: 8px; }

.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.proj-link:hover {
    background: rgba(108, 99, 255, 0.1);
    color: white;
}

.projects-cta { text-align: center; }

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--bg-base); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
}

.service-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.service-card.featured-service {
    border-color: rgba(108, 99, 255, 0.4);
    background: rgba(108, 99, 255, 0.05);
}

.service-icon-wrapper {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background: var(--gradient-primary);
    border-color: transparent;
}

.service-icon-wrapper.featured-icon {
    background: var(--gradient-primary);
    border-color: transparent;
}

.service-icon {
    font-size: 1.3rem;
    color: var(--primary-light);
}

.service-card:hover .service-icon, 
.featured-icon .service-icon {
    color: white;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.service-list li i { color: var(--success); font-size: 11px; }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--bg-section-alt); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    border-color: var(--border-glow);
    transform: translateX(4px);
}

.contact-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

a.contact-value:hover { color: var(--primary-light); }

.contact-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--bg-glass);
}

.social-btn:hover { transform: translateY(-3px); }
.social-btn.linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.social-btn.github:hover { background: #333; border-color: #555; }
.social-btn.youtube:hover { background: #ff0000; border-color: #ff0000; }

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #05070f;
    border-top: 1px solid var(--border);
    padding: 60px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   FORM FEEDBACK MESSAGES
   ============================================ */
.form-success,
.form-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    animation: fade-in-up 0.4s ease forwards;
}

.form-success {
    background: rgba(5, 150, 105, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.form-success i { font-size: 18px; color: #10b981; flex-shrink: 0; }

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.form-error i { font-size: 18px; color: #ef4444; flex-shrink: 0; }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
}

/* ============================================
   CERTIFICATE MODAL PREVIEW
   ============================================ */
.certif-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.certif-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.certif-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(8px);
}

.certif-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.certif-modal.active .certif-modal-container {
    transform: scale(1) translateY(0);
}

.certif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

.certif-modal-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.certif-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition);
}

.certif-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

.certif-modal-body {
    flex: 1;
    position: relative;
    background: #1e1e24;
}

.certif-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.certif-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-base);
}

/* Light mode overrides for modal */
[data-theme="light"] .certif-modal-overlay {
    background: rgba(255, 255, 255, 0.85);
}
[data-theme="light"] .certif-modal-container {
    background: #ffffff;
    border-color: #e5e7eb;
}
[data-theme="light"] .certif-modal-header {
    border-color: #e5e7eb;
}
[data-theme="light"] .certif-modal-footer {
    background: #f4f5f7;
    border-color: #e5e7eb;
}
[data-theme="light"] .certif-modal-close {
    background: #f4f5f7;
    border-color: #d1d5db;
    color: #4b5563;
}
[data-theme="light"] .certif-modal-body {
    background: #f4f5f7;
}

@media (max-width: 640px) {
    .certif-modal-container {
        height: 90vh;
        width: 95%;
    }
    .certif-modal-header {
        padding: 14px 18px;
    }
    .certif-modal-title {
        font-size: 1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .hero-visual { display: none; }
    .ai-domains { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: repeat(4, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }

    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--navbar-h);
        left: 0; right: 0;
        background: rgba(8, 11, 20, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

    .about-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .stat-divider { display: none; }

    /* Cinematic showcase responsive */
    .cinematic-showcase { max-width: 360px; margin: 0 auto; }
    .hud-name { font-size: 11px; letter-spacing: 1px; }
    .hud-role, .hud-timecode { font-size: 8px; }
}

@media (max-width: 640px) {
    :root { --navbar-h: 64px; }
    section { padding: 60px 0; }
    .projects-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .about-cta { flex-direction: column; }
    .ai-domains { grid-template-columns: 1fr; }

    /* Cinematic on small screens */
    .cinematic-showcase { max-width: 300px; }
    .corner-bracket { width: 18px; height: 18px; }
    .cinematic-info-pills { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .info-pill { flex: 0 1 auto; padding: 6px 12px; font-size: 12px; }
    .info-pill:hover { transform: none; }
}
