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

:root {
    --bg: #ffffff;
    --bg-soft: #f8f9fb;
    --bg-card: #ffffff;
    --accent: #0EA5E9;
    --accent-dark: #0284c7;
    --accent-light: #e0f2fe;
    --txt: #0f172a;
    --txt-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(14,165,233,.15);
    --radius: 1.2rem;
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--txt);
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 9rem 8% 5rem;
}

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */
.heading {
    font-family: var(--font-display);
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--txt);
    margin-bottom: 5rem;
    text-align: center;
}

.heading span { color: var(--accent); }

span { color: var(--accent); }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: 1.1rem 2.6rem;
    background: var(--accent);
    color: #fff;
    border-radius: 10rem;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .02em;
    transition: var(--transition);
    cursor: pointer;
}

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

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-top: 2.5rem;
    padding: 1.1rem 2.6rem;
    background: var(--accent);
    color: #fff;
    border-radius: 10rem;
    font-size: 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ==========================================
   HEADER / NAV
   ========================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 8%;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.sticky {
    padding: 1.2rem 8%;
    box-shadow: var(--shadow-md);
}

.logo {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--txt);
    letter-spacing: -.02em;
}

.logo span { color: var(--accent); }

.navbar {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem 1.2rem;
}

.navbar a {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--txt-muted);
    padding: .4rem .6rem;
    border-radius: .6rem;
    transition: var(--transition);
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent);
    background: var(--accent-light);
}

#menu-icon {
    font-size: 2.8rem;
    color: var(--txt);
    cursor: pointer;
    display: none;
    padding: .4rem;
}

/* ==========================================
   HOME
   ========================================== */
.home {
    min-height: 100vh;
    padding-top: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    background: var(--bg);
}

.home-img img {
    width: 28rem;
    height: 28rem;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-light);
    box-shadow: var(--shadow-lg);
    animation: float 5s ease-in-out infinite;
    transition: var(--transition);
}

.home-img img:hover {
    box-shadow: 0 0 0 6px var(--accent-light), var(--shadow-lg);
}

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

.home-content {
    max-width: 56rem;
}

.greeting {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--txt-muted);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.home-content h1 {
    font-family: var(--font-display);
    font-size: 5.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--txt);
    margin-bottom: 1.8rem;
    letter-spacing: -.03em;
}

.home-content h3 {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--txt-muted);
    margin-bottom: 2rem;
    min-height: 3.2rem;
}

.home-content h3 span { color: var(--accent); }

.cursor {
    display: inline-block;
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.home-desc {
    font-size: 1.6rem;
    color: var(--txt-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 50rem;
}

.social-media {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    font-size: 2rem;
    color: var(--txt-muted);
    transition: var(--transition);
}

.social-media a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   ABOUT
   ========================================== */
.about {
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-img img {
    width: 30rem;
    height: 30rem;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.about-content h2 { text-align: left; margin-bottom: 1rem; }

.about-content h3 {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 2rem;
}

.about-content p {
    color: var(--txt-muted);
    margin-bottom: 1.6rem;
    line-height: 1.8;
}

/* ==========================================
   TIMELINE
   ========================================== */
.timeline {
    background: var(--bg);
}

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

.timeline-container::before {
    content: '';
    position: absolute;
    left: 2.4rem;
    top: .4rem;
    bottom: 0;
    width: 2px;
    background: var(--accent-light);
}

.timeline-item {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
}

.timeline-dot {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--accent-light);
    margin-top: .6rem;
    z-index: 1;
    position: relative;
    left: 1.6rem;
}

.timeline-content {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem 2.5rem;
    flex: 1;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.year {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    padding: .3rem 1rem;
    border-radius: 10rem;
    margin-bottom: 1rem;
    letter-spacing: .04em;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .8rem;
}

.location {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 1.3rem;
    color: var(--txt-muted);
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.5rem;
    color: var(--txt-muted);
    line-height: 1.7;
}

/* ==========================================
   BTS SIO
   ========================================== */
.bts-sio {
    background: var(--bg-soft);
}

.bts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.bts-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    transition: var(--transition);
}

.bts-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.main-card {
    grid-column: 1 / -1;
}

.highlight-card {
    border-color: var(--accent);
    background: var(--accent-light);
}

.bts-card-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.bts-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    padding: .25rem .9rem;
    border-radius: 10rem;
}

.bts-card p {
    font-size: 1.5rem;
    color: var(--txt-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.skills-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.skills-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.skills-card i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.skills-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.skills-card p {
    font-size: 1.45rem;
    color: var(--txt-muted);
    line-height: 1.7;
}

/* ==========================================
   CERTIFICATIONS
   ========================================== */
.certifications {
    background: var(--bg-soft);
}

.cert-graphics-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-graphic {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
    width: 28rem;
    transition: var(--transition);
}

.cert-graphic:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.cert-img-wrap {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 2px solid var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.cert-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-graphic h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: .8rem;
}

.cert-graphic p {
    font-size: 1.4rem;
    color: var(--txt-muted);
    margin-bottom: 2rem;
}

/* ==========================================
   COMPANY
   ========================================== */
.company {
    background: var(--bg);
}

.company-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.company-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    transition: var(--transition);
}

.company-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.company-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.company-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.company-meta {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--accent-light);
    border-radius: .8rem;
}

.company-meta li {
    font-size: 1.4rem;
    color: var(--txt-muted);
    margin-bottom: .5rem;
}

.company-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1.5rem 0 .8rem;
}

.company-card ul {
    margin-left: 1.8rem;
    font-size: 1.4rem;
    color: var(--txt-muted);
}

.company-card ul li { margin-bottom: .4rem; }

.company-card p {
    font-size: 1.4rem;
    color: var(--txt-muted);
    line-height: 1.7;
}

/* ==========================================
   EXAMS
   ========================================== */
.exams {
    background: var(--bg-soft);
}

.exams-container {
    max-width: 900px;
    margin: 0 auto;
}

.exams-container > p {
    font-size: 1.6rem;
    color: var(--txt-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.exams-container h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--txt);
}

.exam-list {
    list-style: none;
}

.exam-list li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.exam-list li:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.exam-badge {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    padding: .25rem .9rem;
    border-radius: 10rem;
    margin-bottom: .8rem;
    letter-spacing: .04em;
}

.exam-list li strong {
    display: block;
    font-size: 1.6rem;
    margin-bottom: .8rem;
    color: var(--txt);
}

.exam-list li p {
    font-size: 1.45rem;
    color: var(--txt-muted);
    line-height: 1.7;
}

/* ==========================================
   TECH WATCH
   ========================================== */
.tech-watch {
    background: var(--bg);
}

.tech-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.tech-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.8rem 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.tech-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.tech-card i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.tech-card h3 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--txt);
}

.tech-card p {
    font-size: 1.45rem;
    color: var(--txt-muted);
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.tech-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-links a {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: .4rem 1.2rem;
    border-radius: 10rem;
    transition: var(--transition);
}

.tech-links a:hover {
    background: var(--accent);
    color: #fff;
}

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

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.project-icon {
    font-size: 4rem;
    color: var(--accent);
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--txt);
}

.project-tag {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--accent-light);
    color: var(--accent);
    padding: .25rem .9rem;
    border-radius: 10rem;
}

.project-card p {
    font-size: 1.45rem;
    color: var(--txt-muted);
    line-height: 1.7;
    flex: 1;
}

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

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.info-item i {
    font-size: 2.4rem;
    color: var(--accent);
    margin-top: .2rem;
    flex-shrink: 0;
    background: var(--accent-light);
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item strong {
    display: block;
    font-size: 1.4rem;
    color: var(--txt-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .4rem;
}

.info-item p {
    font-size: 1.5rem;
    color: var(--txt);
}

.info-item a {
    color: var(--accent);
    font-size: 1.5rem;
    transition: var(--transition);
}

.info-item a:hover { color: var(--accent-dark); }

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

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

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1.6rem 1.5rem .6rem;
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--txt);
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: .9rem;
    transition: var(--transition);
    resize: vertical;
}

.input-group label {
    position: absolute;
    left: 1.5rem;
    top: 1.2rem;
    font-size: 1.5rem;
    color: var(--txt-muted);
    pointer-events: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--accent-light);
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: .5rem;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
}

.form-success, .form-error {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: .9rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.form-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-success i, .form-error i {
    font-size: 2.2rem;
    flex-shrink: 0;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 3rem 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer p {
    font-size: 1.4rem;
    color: var(--txt-muted);
}

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

.footer-links a {
    font-size: 2rem;
    color: var(--txt-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE – Hamburger menu
   ========================================== */
@media (max-width: 1100px) {
    #menu-icon { display: block; }

    .navbar {
        position: fixed;
        top: 0; right: -100%;
        width: 28rem;
        max-width: 80vw;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 8rem 2rem 3rem;
        box-shadow: -4px 0 30px rgba(0,0,0,.12);
        transition: right 0.35s cubic-bezier(.4,0,.2,1);
        z-index: 999;
        overflow-y: auto;
    }

    .navbar.active { right: 0; }

    .navbar a {
        font-size: 1.6rem;
        padding: 1.2rem 1rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .navbar a:last-child { border-bottom: none; }
}

@media (max-width: 900px) {
    html { font-size: 57%; }

    section { padding: 8rem 6% 4rem; }

    .home {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding-top: 11rem;
    }

    .home-img img { width: 22rem; height: 22rem; }

    .home-content h1 { font-size: 4.5rem; }

    .social-media { justify-content: center; }

    .home-desc { margin: 0 auto 2.5rem; }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-img img { width: 22rem; height: 22rem; }

    .about-content h2 { text-align: center; }

    .bts-container { grid-template-columns: 1fr; }
    .main-card { grid-column: auto; }

    .contact-container { grid-template-columns: 1fr; }

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

    .footer { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
    html { font-size: 55%; }

    .home-content h1 { font-size: 3.8rem; }

    .heading { font-size: 3.4rem; }

    .timeline-container::before { left: 1.6rem; }

    .company-container,
    .skills-container,
    .tech-container,
    .projects-container { grid-template-columns: 1fr; }

    .cert-graphics-container { flex-direction: column; align-items: center; }

    .cert-graphic { width: 100%; max-width: 32rem; }
}

@media (max-width: 400px) {
    html { font-size: 52%; }
    .header { padding: 1.5rem 5%; }
    section { padding: 8rem 5% 4rem; }
}

/* ==========================================
   LANGUAGE SWITCHER
   ========================================== */
.lang-switcher {
    position: relative;
    margin-right: 0.5rem;
    z-index: 1100;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1.5px solid var(--main-color, #00d4ff);
    color: var(--text-color, #fff);
    border-radius: 2rem;
    padding: 0.32rem 0.75rem;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.lang-btn:hover {
    background: var(--main-color, #00d4ff);
    color: var(--bg-color, #0a0a1a);
    box-shadow: 0 0 12px var(--main-color, #00d4ff);
}

.lang-btn i { font-size: 1rem; }

.lang-chevron {
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--second-bg-color, #12122a);
    border: 1px solid rgba(0,212,255,0.25);
    border-radius: 0.75rem;
    list-style: none;
    padding: 0.4rem 0;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    animation: langFadeIn 0.18s ease;
    z-index: 1200;
}

.lang-dropdown.open { display: block; }

@keyframes langFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.4rem;
    margin: 0.1rem 0.3rem;
    font-size: 0.88rem;
    color: var(--text-color, #ccc);
    transition: background 0.15s, color 0.15s;
}

.lang-option:hover,
.lang-option.active {
    background: rgba(0,212,255,0.12);
    color: var(--main-color, #00d4ff);
}

.lang-flag { font-size: 1.15rem; }

/* ==========================================
   RTL SUPPORT
   ========================================== */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header {
    flex-direction: row-reverse;
}

body.rtl .navbar {
    flex-direction: row-reverse;
}

body.rtl .home {
    flex-direction: row-reverse;
}

body.rtl .about {
    flex-direction: row-reverse;
}

body.rtl .timeline-item {
    flex-direction: row-reverse;
}

body.rtl .timeline-content {
    text-align: right;
}

body.rtl .timeline::before {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

@media (max-width: 900px) {
    body.rtl .timeline::before {
        right: 18px;
        left: auto;
    }
    body.rtl .timeline-item {
        flex-direction: row-reverse;
        padding-right: 48px;
        padding-left: 0;
    }
    body.rtl .timeline-dot {
        right: 8px;
        left: auto;
    }
}

body.rtl .social-media,
body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .info-item {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .lang-dropdown {
    right: auto;
    left: 0;
}

/* ==========================================
   SECTION INTRO / NOTICE BANNER
   ========================================== */
.section-intro {
    max-width: 780px;
    margin: -3rem auto 4rem;
    text-align: center;
    color: var(--txt-muted);
    font-size: 1.5rem;
}

.notice-banner {
    max-width: 780px;
    margin: -2rem auto 4rem;
    text-align: center;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    padding: 1.4rem 2rem;
    border-radius: var(--radius);
    font-size: 1.4rem;
    font-weight: 600;
}

.subheading {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin: 4rem 0 2.5rem;
    color: var(--txt);
}

.table-note {
    max-width: 780px;
    margin: 2rem auto 0;
    text-align: center;
    color: var(--txt-muted);
    font-size: 1.35rem;
    font-style: italic;
}

/* ==========================================
   SKILLS MATRIX TABLE
   ========================================== */
.skills-matrix-wrap {
    max-width: 1000px;
    margin: 5rem auto 0;
    overflow-x: auto;
}

.skills-matrix {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skills-matrix th,
.skills-matrix td {
    padding: 1.4rem 2rem;
    text-align: left;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border);
}

.skills-matrix th {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

.skills-matrix tbody tr:hover {
    background: var(--bg-soft);
}

/* ==========================================
   ENTREPRISE / STAGE
   ========================================== */
.entreprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.entreprise-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.8rem;
    transition: var(--transition);
}

.entreprise-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.entreprise-card h3 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
}

.entreprise-card p {
    color: var(--txt-muted);
    font-size: 1.45rem;
    line-height: 1.7;
}

.entreprise-id-list {
    list-style: none;
}

.entreprise-id-list li {
    font-size: 1.45rem;
    color: var(--txt-muted);
    margin-bottom: .8rem;
}

.entreprise-id-list li strong {
    color: var(--txt);
}

.swot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.swot-card {
    border-radius: var(--radius);
    padding: 2.4rem;
    border: 1px solid var(--border);
}

.swot-card h4 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.swot-card p {
    color: var(--txt-muted);
    font-size: 1.4rem;
}

.swot-forces     { border-left: 4px solid #22c55e; }
.swot-faiblesses { border-left: 4px solid #ef4444; }
.swot-opportunites { border-left: 4px solid var(--accent); }
.swot-menaces     { border-left: 4px solid #f59e0b; }

/* ==========================================
   MISSIONS
   ========================================== */
.missions {
    background: var(--bg-soft);
}

.mission-card {
    max-width: 900px;
    margin: 0 auto 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    display: grid;
    gap: 2rem;
}

.mission-field strong {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-dark);
    margin-bottom: .5rem;
}

.mission-field p {
    color: var(--txt-muted);
    font-size: 1.45rem;
}

/* ==========================================
   PROJECT DETAIL FIELDS
   ========================================== */
.project-detail strong {
    display: block;
    font-size: 1.3rem;
    color: var(--accent-dark);
    margin-bottom: .3rem;
}

.project-detail p {
    color: var(--txt-muted);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: .5rem;
}

/* ==========================================
   VEILLE TECHNOLOGIQUE — RSS DIRECTORY
   ========================================== */
.rss-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.rss-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.rss-card h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.rss-card ul {
    list-style: none;
}

.rss-card li {
    margin-bottom: .9rem;
}

.rss-card li a {
    color: var(--accent-dark);
    font-size: 1.4rem;
    font-weight: 500;
}

.rss-card li a:hover {
    text-decoration: underline;
}

/* ==========================================
   DOCUMENTS
   ========================================== */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.8rem;
    text-align: center;
    transition: var(--transition);
}

.doc-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.doc-card i {
    font-size: 3.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.doc-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: .8rem;
}

.doc-card p {
    color: var(--txt-muted);
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
}

.download-btn.disabled {
    background: var(--txt-muted);
    cursor: not-allowed;
    opacity: .6;
}

/* ==========================================
   CONCLUSION
   ========================================== */
.conclusion {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.conclusion p {
    font-size: 1.6rem;
    color: var(--txt-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

