:root {
    --header-bg: #f4f4f4;
    --header-color: #111;
    --burger-color: #111;
}
/* Global reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #fff;
    color: #111;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 90%;
    margin: auto;
    padding: 2rem 1rem;
}

/* === HEADER BASE === */
.site-header {
  background-color: var(--header-bg, rgba(255, 255, 255, 0.96));
  color: var(--header-color, #111);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ddd;
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

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

/* === LOGO === */
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.logo-mark svg {
    width: 40px;
    height: 40px;
    color: var(--header-color, #111);
    transition: color 0.4s ease;
}
.logo-mark:hover {
    color: #007bff; /* Exemple : bleu au survol */
}
.logo-svg {
    width: 80px;
    height: 80px;
}
.logo-text h1 {
  font-size: 1.3rem;
}
.logo-name {
  font-weight: 700;
}
.logo-last {
  font-weight: 300;
  color: #555;
}
.subtitle {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
}

/* === NAV === */
.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.main-nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.main-nav a:hover {
  border-color: currentColor;
}
.icon {
  margin-right: 0.3rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* === BURGER BUTTON === */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--burger-color, #111);
  border-radius: 3px;
  transition: 0.3s ease;
}
/* Animate to X when active */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === MOBILE NAV SIDEBAR === */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--header-bg, #fff);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 4rem 2rem;
    gap: 1.2rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .main-nav.show {
    right: 0;
  }
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--header-color);
  margin-left: 1rem;
}

.theme-toggle:hover {
  opacity: 0.8;
}


.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-theme="dark"] {
  --header-bg: rgba(20, 20, 20, 0.92);
  --header-color: #f0f0f0;
  background-color: #121212;
  color: #eee;
}

[data-theme="dark"] .main-nav,
[data-theme="dark"] .site-header {
  background-color: var(--header-bg);
}

[data-theme="dark"] .theme-toggle {
    color: var(--header-color);
}

[data-theme="dark"] .burger span {
    background-color: var(--header-color);
}

/* Footer */
.site-footer {
    background-color: #f4f4f4;
    padding: 2rem 1rem 0.25rem 1rem;
    margin-top: 5rem;
    border-top: 1px solid #ddd;
    color: #444;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-text {
    text-align: center;
    font-size: 0.9rem;
    color: inherit;
}

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

.footer-links a {
    color: #222;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #000;
}

.heart {
    color: red;
    font-weight: bold;
}

/* Dark mode support */
[data-theme="dark"] .site-footer {
    background-color: #111;
    color: #ccc;
    border-top-color: #444;
}

[data-theme="dark"] .footer-links a {
    color: #ccc;
}

[data-theme="dark"] .footer-links a:hover {
    color: #fff;
}


.icon {
    margin-right: 0.4rem;
    opacity: 0.8;
    transform: translateY(1px);
}

/* Hero section */
.hero {
    margin-bottom: 3rem;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.08);
    background-color: #f9f9f9;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    color: #444;
}

.profile-pic {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ccc;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1rem;
}


/* Mobile */
@media (max-width: 600px) {
    .main-nav {
        flex-direction: column;
        gap: 0.6rem;
    }

    .logo h1 {
        font-size: 1.6rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }
}


/* Horizontal hero layout */
.hero-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

/* Image on the left */
.hero-image {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-left {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Text on the right */
.hero-text {
    flex: 2 1 400px;
}

.hero-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #111;
}

.hero-text p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

/* Signature quote at bottom */
.signature-text {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    margin-top: 2rem;
}

/* Appliquer dark mode automatiquement */
@media (prefers-color-scheme: dark) {
    :root {
        --header-bg: rgba(20, 20, 20, 0.92);
        --header-color: #f0f0f0;
        --burger-color: #f0f0f0;
    }

    .main-nav {
        background-color: var(--header-bg);
    }

    .logo-mark svg,
    .logo-name,
    .logo-last,
    .main-nav a {
        color: var(--header-color) !important;
    }

    .burger span {
        background-color: #f0f0f0;
    }
}

@media (prefers-color-scheme: dark) {
    .site-footer {
        background-color: #111;
        color: #ccc;
        border-top-color: #444;
    }

    .footer-links a {
        color: #ccc;
    }

    .footer-links a:hover {
        color: #fff;
    }

    .heart {
        color: #f66;
    }
    .burger span {
        background-color: #f0f0f0 !important;
    }

}

/* Mobile responsive stack */
@media (max-width: 768px) {
    .hero-horizontal {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding: 0 1rem;
    }
}

/* ************** Projects Pages ****************** */

.section-header {
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #111;
    font-weight: 600;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    line-height: 1.6;
}

.project-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #222;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.svg-placeholder {
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #eee;
}

.svg-placeholder svg {
    width: 100%;
    height: 100%;
}


.project-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.project-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #111;
}

.project-context {
    font-size: 0.9rem;
    color: #444;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.tag {
    background-color: #f0f0f0;
    color: #222;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 0.3px;
}

/* Bouton */
.modal-btn {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
    background: transparent;
    border: 1px solid #aaa;
    border-radius: 4px;
    color: #222;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease;
}

.modal-btn:hover {
    background: #eee;
    border-color: #444;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .project-card {
        background-color: #1e1e1e;
        border-color: #333;
    }


    .project-context,
    .modal-btn {
        color: #eee;
    }

    .section-header {
        background-color: #1e1e1e;
        border-color: #333;
    }

    .section-title {
        color: #f0f0f0;
    }

    .section-subtitle {
        color: #bbb;
    }


    .tag {
        background-color: #333;
        color: #ccc;
    }

    .modal-btn {
        border-color: #666;
    }

    .modal-btn:hover {
        background-color: #2c2c2c;
        border-color: #aaa;
    }

    .svg-placeholder rect {
        fill: #2a2a2a;
    }

    .svg-placeholder text {
        fill: #ccc;
    }

    .project-icon {
        filter: brightness(0.9);
    }
}


/* .project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.project-content {
    padding: 1rem;
    flex: 1;
}

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

.project-description {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0.8rem;
}

.project-tech {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background-color: #eaeaea;
    color: #222;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: monospace;
    transition: background 0.2s;
}

.tag:hover {
    background-color: #d0d0d0;
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
    .project-card {
        background-color: #1b1b1b;
        border-color: #333;
    }

    .project-description,
    .project-tech,
    .project-title {
        color: #ddd;
    }

    .tag {
        background-color: #333;
        color: #ccc;
    }

    .tag:hover {
        background-color: #444;
    }
} */ 

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    animation: fadeUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: #1e1e1e;
        color: #eee;
    }

    .modal-close {
        color: #ccc;
    }
}

/* ====================== Experience ============================== */

.timeline {
    position: relative;
    margin-left: 1.5rem;
    border-left: 2px solid #ccc;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    position: relative;
    padding-left: 1rem;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #111;
    position: absolute;
    left: -1.55rem;
    top: 0.3rem;
}

.timeline-content {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.04);
}

.exp-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.3rem;
}

.exp-orga {
    font-size: 0.9rem;
    color: #444;
}

.exp-dates {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    margin: 0.4rem 0;
}

.exp-desc {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .timeline {
        border-left-color: #444;
    }

    .timeline-marker {
        background-color: #f0f0f0;
    }

    .timeline-content {
        background-color: #1e1e1e;
        border-color: #333;
    }

    .exp-title {
        color: #f0f0f0;
    }

    .exp-orga,
    .exp-desc {
        color: #ccc;
    }

    .exp-dates {
        color: #aaa;
    }
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    color: #222;
    margin-bottom: 0.6rem;
    background-color: #eee;
    font-family: monospace;
}

/* Couleurs par rôle */
.role-academic {
    background-color: #dce9ff;
}

.role-freelance {
    background-color: #fdf2e9;
}

.role-internship {
    background-color: #e8f5e9;
}

.role-professional {
    background-color: #f3f3f3;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .role-badge {
        color: #eee;
    }

    .role-academic {
        background-color: #29405e;
    }

    .role-freelance {
        background-color: #5a4335;
    }

    .role-internship {
        background-color: #2d503b;
    }

    .role-professional {
        background-color: #333;
    }
}

/* ====================== Skills ============================== */

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

.skill-category {
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.04);
}

.skill-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    background-color: #e0e0e0;
    color: #222;
    padding: 0.35rem 0.75rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-family: monospace;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease;
}

.skill-badge:hover {
    background-color: #ccc;
}

.skill-badge {
    background-color: #e0e0e0;
    color: #222;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: monospace;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

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

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .skill-category {
        background-color: #1e1e1e;
        border-color: #333;
    }

    .skill-category-title {
        color: #f0f0f0;
    }

    .skill-badge {
        background-color: #333;
        color: #eee;
    }

    .skill-badge:hover {
        background-color: #444;
    }
}

/* ====================== Education ============================== */

.edu-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
}

.edu-toggle {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    color: #111;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.edu-toggle:hover {
    background-color: #f3f3f3;
    transform: translateX(4px);
}

.edu-date {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    margin-top: 0.3rem;
}

.arrow {
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.edu-toggle.active .arrow {
    transform: rotate(45deg);
}

.edu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fdfdfd;
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #333;
}

.edu-content.open {
    padding: 1.5rem 2rem;
    max-height: 800px;
    background-color: #fdfdfd;
    border-top: 1px solid #eee;
    transition: all 0.3s ease;
}

.edu-content p {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.edu-meta {
    list-style: none;
    margin-bottom: 1rem;
    padding-left: 0;
    font-size: 0.95rem;
    color: #444;
}

.edu-meta li {
    margin-bottom: 0.4rem;
}

.edu-description {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}

.edu-description h4 {
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: #111;
    font-weight: 600;
}

.edu-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block;
}

.edu-download {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #333;
    background: #eaeaea;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    text-decoration: none;
}

.edu-download:hover {
    background: #ccc;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .edu-item {
        background: #1e1e1e;
        border-color: #333;
    }

    .edu-toggle {
        color: #f0f0f0;
    }

    .edu-content {
        background: #111;
        color: #ddd;
    }

    .edu-date {
        color: #aaa;
    }

    .edu-content.open {
        background-color: #111;
        border-top: 1px solid #333;
    }

    .edu-meta li,
    .edu-description {
        color: #ccc;
    }

    .edu-description h4 {
        color: #eee;
    }

    .edu-toggle:hover {
        background-color: #222;
    }

    .edu-download {
        background: #222;
        color: #eee;
    }

    .edu-download:hover {
        background: #444;
    }
}

/* ====================== Certifications ============================== */

.cert-row {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
}

.cert-row::-webkit-scrollbar {
    height: 6px;
}

.cert-card {
    min-width: 180px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.8rem;
    scroll-snap-align: start;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cert-card:hover {
    transform: scale(1.03);
}

.cert-card img {
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.cert-placeholder {
    font-size: 1.5rem;
    background: #ddd;
    padding: 1rem;
    border-radius: 6px;
}

.cert-meta {
    font-size: 0.85rem;
    color: #333;
}

.secondary {
    opacity: 0.85;
    border-top: 1px dashed #ccc;
    padding-top: 1rem;
}

/* Modal container */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

/* Modal box */
.modal-content {
  background: #fff;
  color: #111;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeInModal 0.4s ease;
  font-family: monospace;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  font-weight: bold;
}

/* Modal inner content */
.modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.modal-content p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.modal-content a {
  display: inline-block;
  margin-top: 0.8rem;
  background: #333;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.modal-content a:hover {
  background: #555;
}

.modal-content embed,
.modal-content img {
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  max-width: 100%;
  height: auto;
}

/* Animation */
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .modal-content {
    background: #111;
    color: #eee;
    box-shadow: 0 12px 30px rgba(255,255,255,0.1);
  }
  .modal-close {
    color: #aaa;
  }
  .modal-content a {
    background: #eee;
    color: #111;
  }
  .modal-content a:hover {
    background: #ddd;
  }
}


.cert-marquee {
    overflow: hidden;
    width: 100%;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
    position: relative;
}

.cert-track {
    display: flex;
    gap: 1rem;
    animation: scroll-loop 40s linear infinite;
}

@keyframes scroll-loop {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

.cert-card {
    min-width: 180px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cert-card:hover {
    transform: scale(1.03);
}

.cert-card img {
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.cert-placeholder {
    font-size: 1.5rem;
    background: #ddd;
    padding: 1rem;
    border-radius: 6px;
}

.cert-meta {
    font-size: 0.85rem;
    color: #333;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .cert-card {
        background: #1e1e1e;
        border-color: #333;
    }
    .cert-meta, .cert-placeholder {
        color: #eee;
    }
}

/* ====================== Contact ============================== */
.contact-info {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    font-family: monospace;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.contact-form button {
    background: #111;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    font-family: monospace;
    border-radius: 6px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #333;
}

.flash {
    background: #e0ffe0;
    color: #060;
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .contact-form input,
    .contact-form textarea {
        background: #1a1a1a;
        color: #eee;
        border-color: #444;
    }

    .flash {
        background: #113311;
        color: #bfffbf;
    }
}

.contact-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: #444;
}

.contact-item a {
    text-decoration: none;
    color: #111;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .contact-item a {
        color: #eee;
    }

    .contact-item i {
        color: #ccc;
    }
}

/* ====================== Conatct v2 ============================== */
.contact-section {
  padding: 2rem 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: auto;
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.contact-subtitle {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-list i {
  font-size: 1.2rem;
  color: #333;
}

.contact-list a {
  text-decoration: none;
  color: #000;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form-block {
  background-color: #fdfdfd;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: monospace;
  background: #fff;
}

.contact-form button {
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  border: none;
  background: #000;
  color: #fff;
  font-family: monospace;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #444;
}

.flash {
  background: #e0ffe0;
  color: #060;
  padding: 0.8rem;
  border-radius: 6px;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .contact-form-block {
    background: #1e1e1e;
    border-color: #333;
  }
  .contact-list a {
    color: #eee;
  }
  .contact-form input,
  .contact-form textarea {
    background: #111;
    color: #eee;
    border-color: #444;
  }
  .contact-form button {
    background: #eee;
    color: #111;
  }
  .contact-form button:hover {
    background: #ccc;
  }
  .flash {
    background: #113311;
    color: #bfffbf;
  }
}

.whatsapp-qr {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #444;
}

.whatsapp-qr img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 0.5rem;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .whatsapp-qr p {
    color: #ccc;
  }
}
