/* --- SYSTÈME DE DESIGN RUPHY ULTRA-PRO --- */
:root {
  --bg: #030712;
  --surface: #0f172a;
  --accent-blue: #00d4ff;
  --accent-green: #00ff9d;
  --accent-orange: #f8981d;
  --accent-red: #e34f26;
  --glass: rgba(15, 23, 42, 0.9);
  --border: rgba(255, 255, 255, 0.1);
}
button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 1s;
  text-transform: uppercase;
  font-family: inherit;
}
button:hover {
  transform: scale(0.8);
  box-shadow: 0 0 20px cyan;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: #f1f5f9;
  font-family: "Fira Code", "JetBrains Mono", monospace;
}

/* --- NAVIGATION --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: var(--glass);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.time {
  color: var(--accent-blue);
  margin-bottom: 20px;
  margin-left: 50%;
  font-size: larger;
}
#about {
  width: 100%;

  display: flex;

  justify-content: center;

  margin: 80px 0;
}

.about-card {
  width: min(1000px, 90%);

  padding: 40px;

  border-radius: 25px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(0, 212, 255, 0.3);

  backdrop-filter: blur(15px);

  box-shadow: 0 0 40px rgba(0, 212, 255, 0.15);

  transition: 0.4s;
}

.about-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 0 50px rgba(0, 212, 255, 0.35);
}

.about-card h2 {
  color: #00d4ff;

  font-size: 2rem;

  margin-bottom: 20px;
}

.about-card p {
  font-size: 1.05rem;

  line-height: 1.8;

  color: #ddd;
}

.status {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 8px 16px;

  margin-bottom: 25px;

  border-radius: 50px;

  background: #0f172a;

  border: 1px solid #00d4ff;

  color: #00d4ff;

  font-size: 0.8rem;

  letter-spacing: 2px;
}

.dot {
  width: 10px;

  height: 10px;

  background: #00ff4c;

  border-radius: 50%;

  box-shadow: 0 0 12px #00ff66;
}

.badges {
  margin-top: 35px;

  display: flex;

  flex-wrap: wrap;

  gap: 12px;
}

.badges img {
  transition: 0.3s;

  cursor: pointer;
}

.badges img:hover {
  transform: translateY(-5px) scale(1.05);
}

.brand {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 26px;
}
.brand span {
  color: var(--accent-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* --- BIBLIOTHÈQUE SCIENTIFIQUE (DROPDOWN) --- */
.dropdown {
  position: relative;
}
.dropbtn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 1s;
  text-transform: uppercase;
  font-family: inherit;
}
.dropbtn:hover {
  background: var(--accent-blue);
  color: #000;
  box-shadow: 0 0 25px var(--accent-blue);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: #0f172a;

  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.dot-card {
  width: 10px;

  height: 10px;

  background: #e42343;

  border-radius: 50%;

  box-shadow: 0 0 12px #e22727;
}
.dropdown-content a {
  color: #94a3b8;
  padding: 15px 20px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.dropdown-content a:hover {
  background: rgba(0, 212, 255, 0.05);
  color: var(--accent-green);
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* --- HERO SECTION --- */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: radial-gradient(circle at center, #1e293b 0%, #030712 100%);
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.hero p {
  color: red;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* --- GRILLE DE COURS --- */
.grid-container {
  max-width: 1500px;
  margin: 0 auto 100px;
  padding: 0 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* --- CARTES DES LANGUAGES --- */
.card {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover {
  transform: translateY(-12px);
  border-color: var(--card-color, var(--accent-blue));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}
.code-snippet {
  background: #010409;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin: 15px 0;
  color: #8b949e;
  border-left: 3px solid var(--card-color);
}
.card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.card p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-run {
  background: var(--card-color);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.btn-run:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

/* --- VARIANTES DE COULEURS PAR LANGAGE --- */
.python {
  --card-color: var(--accent-blue);
}
.cpp {
  --card-color: #00599c;
}
.java {
  --card-color: var(--accent-green);
}
.html {
  --card-color: var(--accent-red);
}

.tag-py {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-blue);
}
.tag-cpp {
  background: rgba(0, 89, 156, 0.1);
  color: #6495ed;
}
.tag-java {
  background: rgba(248, 152, 29, 0.1);
  color: var(--accent-orange);
}
.tag-html {
  background: rgba(227, 79, 38, 0.1);
  color: var(--accent-red);
}
.card-cpp a {
  text-decoration: none;
}
.grid-container a {
  text-decoration: none;
  color: #030712;
  font-family: "Courier New", Courier, monospace;
}
.menu {
  display: flex;
  gap: 15px;
  flex-direction: row;
  justify-content: center;
}
/*=============================
        PROJECTS SECTION
==============================*/

#projects {
  width: min(1400px, 95%);
  margin: 120px auto;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 3rem;
  color: #00d4ff;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-header p {
  max-width: 750px;
  margin: auto;

  color: #b8c2d0;

  line-height: 1.8;

  font-size: 1.05rem;
}

/*=============================
        GRID
==============================*/

.projects-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

  gap: 35px;
}

/*=============================
        CARD
==============================*/

.project-card {
  display: flex;

  flex-direction: column;

  overflow: hidden;

  border-radius: 25px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(0, 212, 255, 0.15);

  backdrop-filter: blur(18px);

  transition: 0.45s;

  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);

  border-color: #00d4ff;

  box-shadow:
    0 0 25px rgba(0, 212, 255, 0.2),
    0 0 60px rgba(0, 212, 255, 0.15);
}

/*=============================
        IMAGE
==============================*/

.project-image {
  width: 100%;

  height: 220px;

  object-fit: cover;

  transition: 0.5s;
}

.project-card:hover .project-image {
  transform: scale(1.06);
}

/*=============================
        CONTENT
==============================*/

.project-content {
  padding: 25px;

  flex: 1;
}

.project-content h3 {
  color: white;

  font-size: 1.5rem;

  margin-bottom: 18px;
}

.project-content p {
  color: #c5d1df;

  line-height: 1.8;

  margin-bottom: 30px;
}

/*=============================
        BADGES
==============================*/

.tech-stack {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.tech-stack img {
  transition: 0.35s;
}

.tech-stack img:hover {
  transform: translateY(-4px) scale(1.05);
}

/*=============================
        BUTTONS
==============================*/

.project-buttons {
  display: flex;

  justify-content: space-between;

  gap: 15px;

  padding: 25px;
}

.project-buttons a,
.project-buttons button {
  flex: 1;

  text-align: center;

  text-decoration: none;

  border: none;

  padding: 14px;

  border-radius: 15px;

  cursor: pointer;

  font-weight: 700;

  transition: 0.35s;
}

/*=============================
        GITHUB
==============================*/

.btn-github {
  background: #181717;

  color: white;
}

.btn-github:hover {
  background: #2d2d2d;

  transform: translateY(-4px);
}

/*=============================
        PREVIEW
==============================*/

.btn-preview {
  background: #00d4ff;

  color: #02131f;
}

.btn-preview:hover {
  background: #42e4ff;

  transform: translateY(-4px);
}

/*=============================
        RESPONSIVE
==============================*/

@media (max-width: 768px) {
  .project-buttons {
    flex-direction: column;
  }

  .section-header h2 {
    font-size: 2.3rem;
  }
}
/*==================================
          CONTACT SECTION
===================================*/

#contact {
  width: min(1200px, 90%);
  margin: 120px auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  color: #00d4ff;
  font-size: 2.8rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.contact-header p {
  color: #b8c2d0;
  line-height: 1.8;
  max-width: 700px;
  margin: auto;
}

/*==================================
            GRID
===================================*/

.contact-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 30px;
}

/*==================================
            CARD
===================================*/

.contact-card {
  text-decoration: none;

  display: flex;

  flex-direction: column;

  align-items: center;

  padding: 35px 25px;

  border-radius: 25px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(0, 212, 255, 0.15);

  backdrop-filter: blur(15px);

  transition: 0.4s;
}

.contact-card:hover {
  transform: translateY(-8px);

  border-color: #00d4ff;

  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.2),
    0 0 40px rgba(0, 212, 255, 0.15);
}

/*==================================
             ICON
===================================*/

.contact-icon {
  width: 90px;

  height: 90px;

  display: flex;

  justify-content: center;

  align-items: center;

  border-radius: 50%;

  border: 2px solid #00d4ff;

  margin-bottom: 25px;

  transition: 0.4s;
}

.contact-icon i {
  font-size: 2.4rem;

  color: #00d4ff;

  transition: 0.4s;
}

.contact-card:hover .contact-icon {
  transform: rotate(8deg) scale(1.08);

  box-shadow: 0 0 20px rgba(0, 212, 255, 0.45);
}

.contact-card:hover .contact-icon i {
  transform: scale(1.15);
}

/*==================================
            TEXT
===================================*/

.contact-card h3 {
  color: white;

  margin-bottom: 12px;
}

.contact-card span {
  color: #9ba8b5;

  text-align: center;

  line-height: 1.6;

  font-size: 0.95rem;
}

/*==================================
        RESPONSIVE
===================================*/

@media (max-width: 768px) {
  .contact-header h2 {
    font-size: 2.2rem;
  }
}
/*=========================
        FOOTER
==========================*/

#footer {
  width: 100%;

  margin-top: 120px;

  padding: 60px 20px;

  text-align: center;

  border-top: 1px solid rgba(0, 212, 255, 0.15);

  background: rgba(255, 255, 255, 0.03);

  backdrop-filter: blur(10px);
}

.footer-logo h2 {
  color: #00d4ff;

  letter-spacing: 4px;

  font-size: 2rem;
}

.footer-logo p {
  margin-top: 10px;

  color: #b8c2d0;
}

/*=========================
        LINKS
==========================*/

.footer-links {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 25px;

  margin: 35px 0;
}

.footer-links a {
  color: white;

  text-decoration: none;

  transition: 0.3s;
}

.footer-links a:hover {
  color: #00d4ff;
}

/*=========================
      SEPARATOR
==========================*/

.footer-line {
  width: 80%;

  max-width: 700px;

  height: 1px;

  background: rgba(0, 212, 255, 0.2);

  margin: 25px auto;
}

/*=========================
      COPYRIGHT
==========================*/

.copyright {
  color: #9aa7b4;

  margin-bottom: 12px;
}

.quote {
  color: #00d4ff;

  font-style: italic;

  letter-spacing: 1px;
}
