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

:root {
    --primary-color: #06b6d4;
    --primary-dark: #0891b2;
    --secondary-color: #0e7490;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body.dark-mode {
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --border-color: #334155;
}

body.dark-mode {
    background: #0f172a;
}

body.dark-mode .navbar {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid #334155;
}

body.dark-mode .hero {
    background-image: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
}

body.dark-mode .timeline-item,
body.dark-mode .skill-category,
body.dark-mode .project-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

body.dark-mode .skill-category:hover,
body.dark-mode .project-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2);
}

body.dark-mode .timeline-content {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(100, 116, 139, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .timeline-item:hover,
body.dark-mode .timeline-content:hover {
    background: rgba(30, 41, 59, 1) !important;
    border: 1px solid rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2) !important;
    transform: translateY(-5px);
}

body.dark-mode .timeline-date {
    background: rgba(6, 182, 212, 0.3) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}

body.dark-mode .timeline-dot {
    background: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.3);
}

body.dark-mode .timeline-content h3 {
    color: white !important;
    font-weight: 600;
}

body.dark-mode .timeline-content p {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-mode .footer {
    background: #1e293b;
}

body.dark-mode .nav-link i {
    color: var(--primary-color);
}

body.dark-mode .about-lightbox-content {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(6, 182, 212, 0.4);
}

body.dark-mode .about-item {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(6, 182, 212, 0.3);
}

body.dark-mode .about-item:hover {
    background: rgba(6, 182, 212, 0.2);
}

body.dark-mode .about-label {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .about-value,
body.dark-mode .about-header h2 {
    color: white;
}

body.dark-mode .skill-badge {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

body.dark-mode .btn,
body.dark-mode .btn-course-link {
    color: white;
}

body.dark-mode .timeline-location {
    color: var(--primary-color);
}

body.dark-mode .contact-intro {
    color: var(--text-light);
}

body.dark-mode .lightbox-content {
    background: #1e293b;
}

body.dark-mode .certificate-title {
    color: white;
}

body.dark-mode .project-title,
body.dark-mode .project-description,
body.dark-mode h3,
body.dark-mode h2 {
    color: white;
}

body.dark-mode .experience-date,
body.dark-mode .experience-company,
body.dark-mode .experience-description {
    color: var(--text-light);
}

body.dark-mode .certificate-badge {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

body.dark-mode .badge-placeholder {
    color: var(--primary-color);
}

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

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

section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    min-width: 120px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.nav-brand.fade-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    filter: blur(3px);
}

.nav-brand.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Optional: Add a subtle glow effect */
.nav-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.6s ease;
}

.nav-brand.fade-in::after {
    width: 100%;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    display: none;
}

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

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

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

.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    margin-left: auto;
    margin-right: 20px;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(20deg);
}

body.dark-mode .theme-toggle {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%),
        url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 80px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero.fade-out-section {
    opacity: 0;
    transform: translateY(-30px);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: #ffffff;
    position: relative;
    display: inline-block;
    min-width: 150px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: #00bfff; /* bleu ciel */
    position: relative;
    display: inline-block;
    min-width: 150px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* On supprime le curseur */
.highlight::after {
    content: none;
}


/* Typing cursor effect */
/* .highlight::after {
    content: '|';
    color: #00bfff;
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

.highlight-title {
    color: #ffffff;
    position: relative;
    display: inline-block;
    min-width: 200px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
} */

.highlight-title::after {
    content: '|';
    color: white;
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

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

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-fun {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    background: rgba(6, 182, 212, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
}

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

.btn {
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-cv {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
}

.btn-cv:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-2px);
}

.btn-cv i {
    margin-right: 8px;
}

.btn-about {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: white;
    border: none;
}

.btn-about:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    transform: translateY(-2px);
}

.btn-about i {
    margin-right: 8px;
}

.btn-learn-more {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-learn-more:hover {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    transform: translateY(-2px);
}

.btn-learn-more i {
    margin-right: 8px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

/* ===== About Section ===== */
.about {
    background: var(--bg-white);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about.fade-in-section {
    opacity: 1;
    transform: translateY(0);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-xl);
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Education Timeline ===== */
.education {
    background: var(--bg-light);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    animation: fadeInLeft 0.6s ease;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-light);
    box-shadow: 0 0 0 4px white;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.timeline-location {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Experience Section ===== */
.experience {
    background: var(--bg-white);
}

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

.experience-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease;
}

.experience-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.experience-item.work-experience {
    border-left-color: #0891b2;
    background: linear-gradient(to right, #f0fdfa 0%, white 100%);
}

.experience-item.certification {
    border-left-color: #06b6d4;
}

.experience-item.learning {
    border-left-color: #a5f3fc;
}

.experience-icon-badge {
    font-size: 2.5rem;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
    flex-shrink: 0;
}

.experience-icon-badge svg {
    color: var(--primary-color);
    stroke: var(--primary-color);
}

.experience-icon-badge i {
    font-size: 2rem;
    color: white;
}

.work-experience .experience-icon-badge {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.work-experience .experience-icon-badge i {
    color: white;
}

.python-badge {
    background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
}

.ml-badge {
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
}

.embedded-badge {
background: linear-gradient(135deg, #00979d 0%, #00b4ba 100%);
}

.fastapi-badge {
background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.flutter-badge {
background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

.datascience-badge {
background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.leadership-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.btn-course-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-course-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.4);
}

.tech-stack {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.tech-stack strong {
    color: var(--text-dark);
}

.tech-stack .highlight-title {
    display: inline-block;
    min-width: 150px;
    text-align: left;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.experience-details {
flex: 1;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
}

.experience-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 20px;
}

.experience-company {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.experience-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.certificate-badge {
    margin-top: 15px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.badge-placeholder {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.certificate-badge img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.certificate-badge {
    cursor: pointer;
    transition: var(--transition);
}

.certificate-badge:hover {
    background: #e0f2fe;
    border-color: var(--primary-color);
}

.course-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* ===== Certificate Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-close svg {
    color: var(--text-dark);
    stroke: var(--text-dark);
    stroke-width: 3;
}

.lightbox-close:hover svg {
    color: white;
    stroke: white;
}

#certificateImage {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.certificate-title {
    text-align: center;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.certificate-title {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== CV Lightbox ===== */
.cv-lightbox-content {
    max-width: 900px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
}

.cv-preview {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cv-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cv-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-view-pdf {
    background: white;
    color: var(--text-dark);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.btn-view-pdf:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* About Me Lightbox */
.about-lightbox-content {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    background: rgba(224, 242, 254, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.about-modal-content {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.about-item:hover {
    background: rgba(224, 242, 254, 0.8);
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.about-item > i {
    font-size: 1.8rem;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.about-item-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.about-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

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

/* ===== Skills Section ===== */
.skills {
    background: var(--bg-light);
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.skill-badge {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.skill-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.skill-badge:hover::before {
    width: 220px;
    height: 220px;
}

.skill-badge:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
    border-color: var(--secondary-color);
}

.skill-badge i {
    font-size: 3rem;
    color: var(--primary-color);
    z-index: 1;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 25px;
    z-index: 1;
    position: relative;
}

.skill-name::after {
    content: '|';
    color: var(--primary-color);
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

/* ===== Projects Section (Removed) ===== */

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-light);
}

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

.contact-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 50px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.contact-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-logo:hover::before {
    width: 120px;
    height: 120px;
}

.contact-logo i {
    font-size: 1.8rem;
    color: var(--primary-color);
    z-index: 1;
    transition: var(--transition);
}

.contact-logo:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.6);
}

.contact-logo:hover i {
    transform: rotate(360deg);
}

.contact-logo:hover {
    background: var(--primary-color);
}

.contact-logo:hover i {
    color: white;
}

.contact-logo.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.contact-logo {
    animation: pulse 3s ease-in-out infinite;
}

.contact-logo:nth-child(2) {
    animation-delay: 0.3s;
}

.contact-logo:nth-child(3) {
    animation-delay: 0.6s;
}

/* ===== Projects Section ===== */
.projects {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: -10px;
    margin-bottom: 50px;
}

.projects-grid {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15);
}

.project-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.project-img:hover {
    opacity: 0.8;
}

.project-info {
    padding: 25px;
}

.project-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0 0 15px 0;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.project-tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Project Gallery Lightbox */
.gallery-lightbox-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-main {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
}

.gallery-nav i {
    font-size: 1.2rem;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
}

.gallery-thumbnails img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-light);
    padding: 30px 0;
    text-align: center;
    position: relative;
    border-top: 2px solid var(--primary-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.footer-made {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-made i {
    color: #ef4444;
}

.footer-made .fa-coffee {
    color: #a16207;
}

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

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

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .theme-toggle {
        margin-right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        gap: 0;
    }

    /* Dark mode mobile menu fixes */
    body.dark-mode .nav-menu {
        background: #0f172a;
        box-shadow: var(--shadow-lg);
    }

    body.dark-mode .nav-menu li {
        border-bottom: 1px solid #334155;
    }

    body.dark-mode .mobile-menu-btn span {
        background: #f1f5f9;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link i {
        display: inline-block;
        font-size: 1.1rem;
        color: var(--primary-color);
    }

    section {
        padding: 50px 0;
    }

    .hero {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.4;
    }

    .highlight, .highlight-title {
        font-size: 0.95em;
        min-width: 100px;
    }

    .hero-description {
        text-align: left;
        margin-left: 20px;
        padding-right: 20px;
    }

    .hero-fun {
        text-align: left;
        margin-left: 20px;
        margin-right: 20px;
        font-size: 0.95rem;
        padding: 12px 15px;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .image-placeholder {
        width: 180px;
        height: 180px;
    }

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

    .timeline {
        padding-left: 40px;
    }

    .timeline-dot {
        left: -32px;
    }

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

    .experience-item {
        flex-direction: column;
        padding: 20px;
    }

    .experience-icon-badge {
        min-width: 50px;
        height: 50px;
    }

    .experience-icon-badge i {
        font-size: 1.5rem;
    }

    .skill-badge {
        width: 160px;
        height: 160px;
        gap: 10px;
    }

    .skill-badge i {
        font-size: 2.2rem;
    }

    .skill-name {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .footer {
        background-attachment: scroll;
        padding: 25px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
    }

    .btn {
        width: calc(100% - 40px);
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-bottom: 100px;
    }

    .hero-title {
        font-size: 1.3rem;
        line-height: 1.6;
    }

    .highlight, .highlight-title {
        font-size: 0.85em;
        min-width: 60px;
        display: inline;
    }

    .hero-description {
        text-align: left;
        margin-left: 15px;
        padding-right: 15px;
        font-size: 0.95rem;
    }

    .hero-fun {
        text-align: left;
        margin-left: 15px;
        margin-right: 15px;
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .hero-buttons {
        margin-left: 0;
        margin-right: 0;
        padding: 0 15px;
        gap: 10px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        font-size: 0.9rem;
        padding: 10px 20px;
        text-align: center;
    }

    .hero-scroll {
        bottom: 20px;
    }

    .scroll-indicator {
        width: 25px;
        height: 40px;
    }

    .about-lightbox-content {
        width: 92%;
        max-width: 92vw;
        max-height: 85vh;
    }

    .about-modal-content {
        padding: 60px 15px 25px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .about-avatar {
        width: 70px;
        height: 70px;
    }

    .about-header {
        margin-bottom: 25px;
    }

    .about-header h2 {
        font-size: 1.3rem;
    }

    .about-details {
        gap: 12px;
    }

    .about-item {
        padding: 12px;
        gap: 12px;
    }

    .about-item > i {
        font-size: 1.3rem;
        min-width: 25px;
    }

    .about-label {
        font-size: 0.75rem;
    }

    .about-value {
        font-size: 0.9rem;
    }

    .about-lightbox .lightbox-close {
        position: fixed;
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        background: var(--primary-color);
        border: 3px solid white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        z-index: 10002;
    }

    .about-lightbox .lightbox-close svg {
        width: 22px;
        height: 22px;
        stroke: white;
        color: white;
        stroke-width: 3;
    }

    .about-lightbox .lightbox-close:hover {
        background: var(--primary-dark);
        transform: scale(1.1);
    }

    .cv-lightbox-content {
        width: 95%;
        max-height: 90vh;
    }

    .cv-preview {
        padding: 10px;
    }

    .cv-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-download,
    .btn-view-pdf {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

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

    .container {
        padding: 0 15px;
    }

    .timeline-content,
    .experience-item,
    .skill-category {
        padding: 18px;
    }

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

    .contact-logo i {
        font-size: 1.5rem;
    }

    .contact-methods {
        gap: 30px;
    }

    .project-images {
        grid-template-columns: 1fr;
    }

    .project-img {
        height: 200px;
    }

    .project-info {
        padding: 20px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .gallery-lightbox-content {
        width: 98%;
        padding: 15px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-thumbnails img {
        width: 80px;
        height: 80px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-date {
        font-size: 0.85rem;
    }

    .lightbox-content {
        max-width: 95%;
        padding: 15px;
    }

    .lightbox-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        background: var(--bg-white);
    }

    #certificateImage {
        max-height: 70vh;
    }

    .certificate-title {
        font-size: 1rem;
    }

    .skills-badges {
        gap: 25px;
        padding: 20px 10px;
    }

    .skill-badge {
        width: 140px;
        height: 140px;
        gap: 8px;
    }

    .skill-badge i {
        font-size: 1.8rem;
    }

    .skill-name {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* ===== Utility Classes ===== */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
