/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    /* LIGHT THEME (Apple Inspired) */
    --bg-color: #f5f5f7;
    --bg-secondary: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: rgba(0, 0, 0, 0.1);
    --accent-color: #0071e3;
    --accent-hover: #005bb5;
    --card-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);

    --gradient-1: #0071e3;
    --gradient-2: #42a1f5;

    --nav-bg: rgba(245, 245, 247, 0.8);
}

[data-theme="dark"] {
    /* DARK THEME */
    --bg-color: #000000;
    --bg-secondary: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #2997ff;
    --accent-hover: #147ce6;
    --card-bg: rgba(28, 28, 30, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);

    --gradient-1: #2997ff;
    --gradient-2: #5e5ce6;

    --nav-bg: rgba(0, 0, 0, 0.8);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- LANGUAGE SWITCHING --- */
[lang="fr"] .en {
    display: none;
}

[lang="en"] .fr {
    display: none;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.theme-btn:hover {
    background-color: var(--bg-secondary);
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 6rem 2rem 2rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: scale(1.02);
}

/* Background Glowing Orbs */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-1);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    top: -20%;
    left: -10%;
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    background: var(--gradient-2);
}


/* --- CONTENT SECTIONS --- */
.content-section {
    padding: 6rem 2rem;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* --- GLASS CARD --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* --- TIMELINE --- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--bg-color);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- GRID LAYOUTS --- */
.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card-header {
    margin-bottom: 1rem;
}

.achievements-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- SKILLS GRID --- */
.placeholder-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.project-card:hover .skill-tag,
.glass-card:hover .skill-tag {
    border-color: var(--accent-color);
}

/* Projects & Carousel Styles */
.project-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-img-hover {
    transform: scale(1.05);
    /* Slight zoom on image on hover */
}

/* Make sure indicators stay above the images */
.carousel-indicators {
    z-index: 10;
}

.indicator {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator.active {
    transform: scale(1.2);
}

/* --- FOOTER --- */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a:hover {
    color: var(--text-primary);
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile nav for now */
    }

    .title {
        font-size: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
    }
}
