* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #0f172a;
    --text-color: #f1f5f9;
    --background-color: rgb(15, 23, 42);
    --surface: #1e293b;
    --text-secondary: #94a3b8;
    --accent: #22c55e;

}

section {
    padding: 3rem 2rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.logo {
    font-weight: 600;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 2rem;

    background: rgba(15, 23, 42, 0.6);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-links li {
    transform: translateX(20px);
    opacity: 0;
    transition: 0.3s;
}

.nav-links.active li {
    transform: translateX(0);
    opacity: 1;
}

.nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
.nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
.nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
.nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
.nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
.nav-links.active li:nth-child(6) { transition-delay: 0.6s; }
.nav-links.active li:nth-child(7) { transition-delay: 0.7s; }
.nav-links.active li:nth-child(8) { transition-delay: 0.8s; }
.nav-links.active li:nth-child(9) { transition-delay: 0.9s; }
.nav-links.active li:nth-child(10) { transition-delay: 1s; }

.nav-links {
    list-style: none;
    position: fixed;
    top: 70px;
    right: -100%; /* caché à droite */
    height: auto;
    width: 250px;

    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    transition: right 0.4s ease, opacity 0.3s ease;
    opacity: 0;

    z-index: 1000;

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    opacity: 1;
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius);
    z-index: 1000;
}

.nav-links a {
    position: relative;
    color: var(--text-color); /* blanc propre */
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

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

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

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}


.burger {
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {

    .nav-links {
        position: static;

        display: flex;
        flex-direction: row;
        align-items: center;

        gap: 2rem;

        width: auto;
        height: auto;

        background: transparent;

        padding: 0;

        opacity: 1;

        box-shadow: none;

        border-radius: 0;
    }

    .nav-links li {
        opacity: 1;
        transform: none;
    }

    .burger {
        display: none;
    }

    .nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 2px;

    background: var(--primary-color);

    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

.hero p {
    color: var(--text-secondary);
    margin: 1rem 0 2rem;
}

.btn {
    background: var(--primary-color);
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.skills {
    padding: 3rem 2rem;
}

.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
}

.skill:hover {
    transform: translateY(-5px);
    background: #334155;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #1e293b;
    padding: 1rem;
    border-radius: 8px;
}

.projects {
    padding: 3rem 2rem;
}

.project-image {
    position: relative;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* LE DÉGRADÉ 🔥 */
.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0) 40%,
        var(--surface) 100%
    );
}

.projects-grid {
    display: grid;
    gap: 1.5rem;
}

.project-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1rem;
    opacity: 0;
    transition: 0.3s;
    margin-top: -5px;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.project-card:hover .project-content {
    opacity: 1;
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .hero h2 {
        font-size: 3rem;
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.contact input,
.contact textarea {
    padding: 0.8rem;
    border-radius: var(--radius);
    border: none;
    background: var(--surface);
    color: var(--text);
}

.contact button {
    background: var(--primary);
    border: none;
    padding: 0.8rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.3s;
}

.contact button:hover {
    background: #4f46e5;
}

#error {
    margin-top: 1rem;
    color: var(--accent);
}

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

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

/* PAGE GENERIQUE */
.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* HEADER PAGE */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
}

/* CONTENU */
.page-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
}

/* TEXTES */
.page-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* LISTES */
.page-content ul {
    padding-left: 1.2rem;
}

/* LIENS */
.page-content a {
    color: var(--primary);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* FORMULAIRE */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* GROUPES */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* INPUTS */
.contact-form input,
.contact-form textarea {
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: #0f172a;
  color: var(--text);
  transition: 0.3s;
}

/* FOCUS */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border: 1px solid var(--primary);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}

/* TEXTAREA */
textarea {
  min-height: 120px;
  resize: vertical;
}

/* MESSAGE ERREUR */
#error {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.page-content .btn {
  display: inline-block;
  margin-top: 2rem;
}

#project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: block;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stats div {
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  flex: 1;
}

.stats strong {
  display: block;
  font-size: 1.5rem;
}

.badge {
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  display: inline-block;
  transition: 0.3s;
}

.badge:hover {
  background: var(--primary);
}

section {
  transition: transform 0.3s;
}

section:hover {
  transform: translateY(-3px);
}

.logo {
  transition: 0.3s;
}

* {
  cursor: none;
  cursor: none !important;
}

.arrow {
  font-size: 2rem;
  animation: bounce 1s infinite;
  opacity: 0.6;
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.live-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;

  margin-top: 2rem;
}

.live-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
}

.live-box img {
  width: 100%;
  border-radius: var(--radius);
}

/* LA LIGNE */
.divider {
  width: 2px;
  height: 150px;
  background: var(--text-secondary);
  opacity: 0.3;
}

@media (max-width: 768px) {
  .live-container {
    flex-direction: column;
  }

  .divider {
    width: 100%;
    height: 2px;
  }
}

.live-box {
  transition: 0.3s;
}

.live-box:hover {
  transform: translateY(-5px);
}

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

.friend {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.friend img {
  width: 100%;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.friend:hover .overlay {
  opacity: 1;
}

.cv {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
}

.cv-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cv-header h1 {
  font-size: 2rem;
}

.cv-section {
  margin-bottom: 2rem;
}

.cv-section h2 {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

/* =========================
   CV (SAFE - SANS CONFLIT)
========================= */

.cv {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

/* HERO */
.cv-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.cv-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.cv-hero p {
  color: var(--text-secondary);
}

.cv-buttons {
  margin-top: 1rem;
}

/* GRID */
.cv-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cv-grid {
    grid-template-columns: 1fr 2fr;
  }
}

/* COLONNES */
.cv-left,
.cv-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* CARDS */
.cv .card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 12px;
}

/* SKILLS / LANGUES */
.cv .skill {
  margin-bottom: 1rem;
}

.cv .bar {
  height: 8px;
  background: #334155;
  border-radius: 10px;
  margin-top: 0.3rem;
}

.cv .bar div {
  height: 100%;
  background: var(--primary-color);
  border-radius: 10px;
}

/* CONTACT FINAL */
.contact-final {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 3rem;
  background: var(--surface);
  border-radius: 12px;
}

.contact-actions {
  margin-top: 1.5rem;
}

/* MOBILE */
@media (max-width: 768px) {
  .cv {
    padding: 1rem;
  }

  .cv-hero h1 {
    font-size: 2rem;
  }
}

.btn {
  position: relative;
  background: var(--primary-color);
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: none;
  color: white;
  cursor: pointer;
  overflow: hidden;
  transition: 0.3s;
}

/* HOVER */
.btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

/* =========================
   SOCIAL
========================= */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  background: var(--background-color);
  padding: 0.6rem 1rem;
  border-radius: 999px;

  text-decoration: none;
  color: var(--text-color);

  transition: 0.3s;
}

.social-link span {
  font-size: 1.2rem;
}

/* HOVER */
.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.social-link:hover {
  box-shadow: 0 0 10px rgba(99,102,241,0.5);
}

.featured-project {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* bouton plus petit */
.small-btn {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.small-btn:hover {
  transform: translateX(5px);
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

/* =========================
   BLOG LIST
========================= */

.blog-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
}

/* IMAGE */
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* CONTENU */
.blog-card-content {
  padding: 1.2rem;
}

.blog-card h2 {
  margin-bottom: 0.5rem;
}

.blog-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blog-card small {
  opacity: 0.6;
}

/* =========================
   ARTICLE PAGE
========================= */

.article-container {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
}

.article-container h1 {
  margin-bottom: 0.5rem;
}

.article-container small {
  color: var(--text-secondary);
}

.article-content {
  margin-top: 2rem;
  line-height: 1.8;
}

/* IMAGE DANS ARTICLE */
.article-content img {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* TITRES */
.article-content h2 {
  margin-top: 2rem;
}

/* PARAGRAPHES */
.article-content p {
  margin-bottom: 1rem;
}

/* =========================
   LAB
========================= */

.lab-hero {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 1.5rem;
}

.lab-buttons {
  margin-top: 1rem;
}

.lab-hero p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: auto;
}

.lab-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .lab-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lab-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);

  transition: 0.3s;

  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.lab-card:hover {
  transform: translateY(-8px);
}

.lab-card .btn {
  margin-top: auto;
}

.lab-card p {
  color: var(--text-secondary);
}

/* =========================
   PASSWORD TOOL
========================= */

.password-tool {
    max-width: 700px;
    margin: auto;

    display: flex;
    flex-direction: column;

    gap: 2rem;
}

.password-output {
    display: flex;
    gap: 1rem;
}

.password-output input {
    flex: 1;

    background: var(--background-color);

    border: none;

    padding: 1rem;

    border-radius: var(--radius);

    color: white;

    font-size: 1rem;
}

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

.option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.generate-btn {
    width: 100%;
}

/* =========================
   BASE64 TOOL
========================= */

.base64-tool {
    max-width: 800px;
    margin: auto;

    display: flex;
    flex-direction: column;

    gap: 2rem;
}

.base64-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.base64-group label {
    color: var(--text-secondary);
}

.base64-group textarea {
    min-height: 180px;

    background: var(--background-color);

    border: none;

    border-radius: var(--radius);

    padding: 1rem;

    color: white;

    resize: vertical;
}

/* BUTTONS */
.base64-buttons {
    display: flex;
    gap: 1rem;

    flex-wrap: wrap;
}

.base64-buttons .btn {
    flex: 1;
}

/* =========================
   TERMINAL
========================= */

.terminal-container {
    max-width: 900px;
    margin: auto;

    background: #020617;

    border-radius: var(--radius);

    overflow: hidden;

    border: 1px solid #1e293b;
}

/* HEADER */
.terminal-header {
    background: #0f172a;

    padding: 1rem;

    display: flex;
    align-items: center;
    gap: 1rem;

    border-bottom: 1px solid #1e293b;
}

/* DOTS */
.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dots span {
    width: 12px;
    height: 12px;

    border-radius: 50%;
}

.terminal-dots span:nth-child(1) {
    background: #ef4444;
}

.terminal-dots span:nth-child(2) {
    background: #f59e0b;
}

.terminal-dots span:nth-child(3) {
    background: #22c55e;
}

/* BODY */
.terminal-body {
    padding: 1rem;

    min-height: 400px;
    max-height: 500px;

    overflow-y: auto;

    font-family: monospace;
}

/* INPUT */
.terminal-input {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1rem;

    border-top: 1px solid #1e293b;

    font-family: monospace;
}

.terminal-input input {
    flex: 1;

    background: transparent;

    border: none;

    color: white;

    outline: none;

    font-family: monospace;
}

/* PROMPT */
.prompt {
    color: #22c55e;
}

/* RESPONSE */
.response {
    color: var(--text-secondary);

    margin-bottom: 1rem;

    white-space: pre-line;
}

/* LINE */
.line {
    display: flex;
    gap: 0.5rem;

    margin-bottom: 0.5rem;
}

/* =========================
   STRENGTH CHECKER
========================= */

.strength-tool {
    max-width: 700px;
    margin: auto;

    display: flex;
    flex-direction: column;

    gap: 2rem;
}

/* INPUT */
.strength-input {
    display: flex;
    gap: 1rem;
}

.strength-input input {
    flex: 1;

    background: var(--background-color);

    border: none;

    border-radius: var(--radius);

    padding: 1rem;

    color: white;
}

/* BAR */
.strength-bar {
    height: 12px;

    background: #1e293b;

    border-radius: 999px;

    overflow: hidden;
}

#strength-progress {
    width: 0%;
    height: 100%;

    transition: 0.3s;

    border-radius: 999px;
}

/* TEXT */
#strength-text {
    text-align: center;

    font-weight: 600;
}

/* CHECKS */
.checks {
    display: flex;
    flex-direction: column;

    gap: 1rem;
}

/* =========================
   HASH TOOL
========================= */

.hash-tool {
    max-width: 800px;
    margin: auto;

    display: flex;
    flex-direction: column;

    gap: 2rem;
}

.hash-group {
    display: flex;
    flex-direction: column;

    gap: 0.5rem;
}

.hash-group label {
    color: var(--text-secondary);
}

/* TEXTAREA */
.hash-group textarea {
    min-height: 180px;

    background: var(--background-color);

    border: none;

    border-radius: var(--radius);

    padding: 1rem;

    color: white;

    resize: vertical;

    font-family: monospace;
}

/* OUTPUT */
#hash-output {
    word-break: break-all;
}

/* =========================
   MATRIX MODE
========================= */

.matrix-page {
    background: black;

    overflow: hidden;
}

/* CANVAS */
#matrix {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
}

/* UI */
.matrix-ui {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 2rem;
}

.matrix-ui h1 {
    color: #22c55e;

    font-size: 3rem;

    margin: 1rem 0;
}

.matrix-ui p {
    color: #86efac;

    max-width: 600px;
}

/* BUTTONS */
.matrix-buttons {
    display: flex;

    gap: 1rem;

    margin-top: 2rem;

    flex-wrap: wrap;
}

/* MATRIX BTN */
.matrix-page .btn {
    background: #22c55e;

    color: black;

    font-weight: 600;
}

.matrix-page .btn:hover {
    background: #4ade80;
}

/* =========================
   PORT SCANNER
========================= */

.scanner-tool {
    max-width: 800px;
    margin: auto;

    display: flex;
    flex-direction: column;

    gap: 2rem;
}

/* TOP */
.scanner-top {
    display: flex;
    gap: 1rem;
}

.scanner-top input {
    flex: 1;

    background: var(--background-color);

    border: none;

    border-radius: var(--radius);

    padding: 1rem;

    color: white;
}

/* STATUS */
#scan-status {
    color: var(--text-secondary);

    font-weight: 500;
}

/* RESULTS */
#scan-results {
    background: var(--background-color);

    border-radius: var(--radius);

    padding: 1rem;

    min-height: 300px;
    max-height: 400px;

    overflow-y: auto;

    font-family: monospace;
}

/* LINE */
.scan-line {
    display: flex;
    justify-content: space-between;

    padding: 0.5rem 0;

    border-bottom: 1px solid #1e293b;
}

/* STATES */
.open {
    color: #22c55e;
}

.closed {
    color: #ef4444;
}

/* =========================
   REGEX TESTER
========================= */

.regex-tool {
    max-width: 800px;
    margin: auto;

    display: flex;
    flex-direction: column;

    gap: 2rem;
}

/* GROUP */
.regex-group {
    display: flex;
    flex-direction: column;

    gap: 0.5rem;
}

.regex-group label {
    color: var(--text-secondary);
}

/* INPUT */
.regex-group input,
.regex-group textarea {
    background: var(--background-color);

    border: none;

    border-radius: var(--radius);

    padding: 1rem;

    color: white;

    font-family: monospace;
}

/* TEXTAREA */
.regex-group textarea {
    min-height: 200px;

    resize: vertical;
}

/* RESULT */
.regex-result {
    background: var(--background-color);

    border-radius: var(--radius);

    padding: 1.5rem;
}

/* OUTPUT */
#regex-output {
    margin-top: 1rem;

    display: flex;
    flex-wrap: wrap;

    gap: 1rem;
}

/* MATCH */
.match {
    background: var(--primary-color);

    padding: 0.5rem 1rem;

    border-radius: 999px;

    font-family: monospace;
}

/* =========================
   ABOUT PAGE
========================= */

/* PAGE */
.about-page {
    filter: blur(20px);
    pointer-events: none;
    user-select: none;

    transition:
        filter 0.6s ease,
        opacity 0.6s ease;

    opacity: 0.7;
}

/* UNLOCK */
.about-page.unlocked {
    filter: blur(0);
    pointer-events: auto;
    user-select: auto;
    opacity: 1;
}

/* =========================
   LOCK SCREEN
========================= */

.about-lock {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 2rem;

    z-index: 9999;

    background:
        radial-gradient(
            circle at top,
            rgba(99,102,241,0.2),
            rgba(0,0,0,0.92)
        );

    backdrop-filter: blur(20px);

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

/* HIDDEN */
.about-lock.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* BOX */
.lock-box {
    width: 100%;
    max-width: 520px;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,0.95),
            rgba(15,23,42,0.95)
        );

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 28px;

    padding: 2.5rem;

    text-align: center;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.6);

    animation:
        floatBox 4s ease-in-out infinite;
}

/* FLOAT */
@keyframes floatBox {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

}

/* TITLE */
.lock-box h1 {
    font-size: clamp(2rem, 5vw, 3rem);

    line-height: 1.1;
}

/* TEXT */
.lock-box p {
    color: var(--text-secondary);
}

/* INPUT */
.lock-box input {
    background: rgba(15,23,42,0.8);

    border:
        1px solid rgba(255,255,255,0.06);

    border-radius: 16px;

    padding: 1rem 1.2rem;

    color: white;

    text-align: center;

    font-size: 1rem;

    transition: 0.3s;
}

.lock-box input:focus {
    outline: none;

    border-color:
        rgba(99,102,241,0.5);

    box-shadow:
        0 0 0 4px rgba(99,102,241,0.15);
}

/* ERROR */
#error-message {
    color: #ef4444;
    min-height: 20px;
}

/* =========================
   HERO
========================= */

.about-hero {
    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    overflow: hidden;

    padding: 8rem 2rem 4rem;

    isolation: isolate;
}

/* BG */
.hero-background {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(99,102,241,0.22),
            transparent 60%
        );

    z-index: -1;
}

/* CONTENT */
.hero-content {
    width: 100%;
    max-width: 900px;

    margin-inline: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    gap: 1.5rem;

    position: relative;
}

/* TITLE */
.about-hero h1 {
    font-size: clamp(4rem, 10vw, 8rem);

    line-height: 0.95;

    margin: 0;

    text-align: center;
}

.about-hero h1 span {
    color: var(--primary-color);
}

/* TEXT */
.about-hero p {
    max-width: 700px;

    margin: 0 auto;

    color: var(--text-secondary);

    font-size: 1.15rem;

    line-height: 1.8;

    text-align: center;
}

/* BUTTONS */
.hero-buttons {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 1rem;

    flex-wrap: wrap;

    width: 100%;
}

/* SECOND BTN */
.secondary-btn {
    background: transparent;

    border:
        1px solid rgba(255,255,255,0.08);
}

/* =========================
   GRID
========================= */

.about-grid {
    column-count: 3;

    column-gap: 2rem;

    max-width: 1400px;

    margin: auto;

    padding: 4rem 2rem;
}

.about-grid .card {
    display: inline-block;

    width: 100%;

    margin-bottom: 2rem;
}

@media (max-width: 1100px) {

    .about-grid {
        column-count: 2;
    }

}

@media (max-width: 700px) {

    .about-grid {
        column-count: 1;
    }

}

.card {
    break-inside: avoid;
}

/* =========================
   CARDS
========================= */

.card {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,0.96),
            rgba(15,23,42,0.96)
        );

    border:
        1px solid rgba(255,255,255,0.05);

    backdrop-filter: blur(12px);

    border-radius: 28px;

    padding: 2rem;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

/* SHINE */
.card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,0.03),
            transparent
        );

    opacity: 0;

    transition: 0.4s;
}

.card:hover::before {
    opacity: 1;
}

/* HOVER */
.card:hover {
    transform:
        translateY(-8px);

    border-color:
        rgba(99,102,241,0.4);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.4);
}

/* TITLES */
.card h2 {
    margin-bottom: 1rem;
}

/* TEXT */
.card p,
.card li {
    color: var(--text-secondary);

    line-height: 1.8;
}

/* =========================
   STATUS DOT
========================= */

.status-dot {
    width: 12px;
    height: 12px;

    background: #22c55e;

    border-radius: 50%;

    margin-top: 1rem;

    box-shadow:
        0 0 20px #22c55e;

    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }

}

/* =========================
   GALLERY
========================= */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 1rem;

    margin-top: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 260px;

    object-fit: cover;

    border-radius: 18px;

    transition: 0.5s ease;
}

.gallery-grid img:hover {
    transform:
        scale(1.03)
        rotate(1deg);
}

/* =========================
   VIDEO
========================= */

video {
    width: 100%;

    border-radius: 18px;

    margin-top: 1rem;

    overflow: hidden;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.4);
}

/* =========================
   TIMELINE
========================= */

.timeline {
    position: relative;

    margin-top: 2rem;

    padding-left: 2rem;

    border-left:
        2px solid rgba(99,102,241,0.5);
}

.timeline-item {
    position: relative;

    margin-bottom: 2rem;
}

.timeline-item::before {
    content: "";

    position: absolute;

    left: -2.55rem;
    top: 5px;

    width: 16px;
    height: 16px;

    background: var(--primary-color);

    border-radius: 50%;

    box-shadow:
        0 0 20px var(--primary-color);
}

/* =========================
   PAGE CONTENT
========================= */

.page-content {
    line-height: 1.9;
}

.page-content p {
    color: var(--text-secondary);

    margin-bottom: 1rem;
}

.page-content ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.page-content li {
    margin-bottom: 0.8rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

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

    .about-hero {
        min-height: auto;

        padding-top: 8rem;
    }

    .about-hero h1 {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

}

iframe {
    width: 100%;

    border: none;

    border-radius: 18px;

    margin-top: 1rem;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.4);
}

/* =========================
   IMAGE TOOLS PAGE
========================= */

.image-tools-page {
    min-height: 100vh;
}

/* HERO */
.image-tools-hero {
    position: relative;

    min-height: 65vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    overflow: hidden;

    padding: 8rem 2rem 4rem;
}

/* BG */
.hero-bg {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at top,
            rgba(99,102,241,0.25),
            transparent 60%
        );

    z-index: 0;
}

/* CONTENT */
.image-tools-hero .hero-content {
    position: relative;
    z-index: 2;

    max-width: 850px;

    margin: auto;
}

/* TITLE */
.image-tools-hero h1 {
    font-size: clamp(4rem, 10vw, 7rem);

    line-height: 0.95;

    margin: 1rem 0;
}

.image-tools-hero h1 span {
    color: var(--primary-color);
}

/* TEXT */
.image-tools-hero p {
    color: var(--text-secondary);

    font-size: 1.15rem;

    line-height: 1.8;

    max-width: 700px;

    margin: auto;
}

/* SECTION */
.tools-section {
    max-width: 1500px;

    margin: auto;

    padding: 2rem;
}

/* GRID */
.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 2rem;
}

/* CARD */
.tool-card {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,0.96),
            rgba(15,23,42,0.96)
        );

    border:
        1px solid rgba(255,255,255,0.05);

    border-radius: 28px;

    padding: 2rem;

    display: flex;
    flex-direction: column;

    gap: 1rem;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

/* SHINE */
.tool-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,0.03),
            transparent
        );

    opacity: 0;

    transition: 0.4s;
}

.tool-card:hover::before {
    opacity: 1;
}

/* HOVER */
.tool-card:hover {
    transform:
        translateY(-10px);

    border-color:
        rgba(99,102,241,0.4);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.45);
}

/* ICON */
.tool-icon {
    font-size: 3.5rem;
}

/* TITLE */
.tool-card h2 {
    font-size: 1.8rem;
}

/* TEXT */
.tool-card p {
    color: var(--text-secondary);

    line-height: 1.8;

    flex: 1;
}

/* BTN */
.tool-card .btn {
    width: fit-content;
}

/* PREMIUM */
.premium-card {
    border:
        1px solid rgba(99,102,241,0.3);

    background:
        linear-gradient(
            145deg,
            rgba(99,102,241,0.12),
            rgba(15,23,42,0.96)
        );
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .image-tools-hero {
        min-height: auto;

        padding-top: 8rem;
    }

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

}

/* =========================
   RESIZE TOOL
========================= */

.resize-page {
    min-height: 100vh;
}

/* HERO */
.tool-hero {
    text-align: center;

    padding:
        8rem 2rem 4rem;

    max-width: 900px;

    margin: auto;
}

.tool-hero h1 {
    font-size:
        clamp(3rem, 8vw, 6rem);

    margin: 1rem 0;
}

.tool-hero p {
    color: var(--text-secondary);

    max-width: 700px;

    margin: auto;

    line-height: 1.8;
}

/* CONTAINER */
.resize-container {
    max-width: 1500px;

    margin: auto;

    padding: 2rem;

    display: grid;

    grid-template-columns:
        400px 1fr;

    gap: 2rem;
}

/* CARD */
.resize-card,
.resize-preview {
    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,0.96),
            rgba(15,23,42,0.96)
        );

    border:
        1px solid rgba(255,255,255,0.05);

    border-radius: 28px;

    padding: 2rem;
}

/* INPUTS */
.resize-inputs {
    display: flex;

    gap: 1rem;

    margin:
        2rem 0;
}

/* GROUP */
.input-group {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 0.5rem;
}

/* LABEL */
.input-group label {
    color: var(--text-secondary);
}

/* INPUT */
.input-group input,
.resize-card input[type="file"] {
    background: var(--background-color);

    border: none;

    border-radius: 14px;

    padding: 1rem;

    color: white;
}

/* BUTTONS */
.resize-card .btn {
    margin-top: 1rem;

    width: 100%;
}

/* CANVAS */
canvas {
    width: 100%;

    max-height: 700px;

    object-fit: contain;

    border-radius: 20px;

    background:
        repeating-conic-gradient(
            #1e293b 0% 25%,
            #0f172a 0% 50%
        )
        50% / 20px 20px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {

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

}

@media (max-width: 700px) {

    .resize-inputs {
        flex-direction: column;
    }

}

/* =========================
   IMAGE SPLITTER
========================= */

.split-page {
    min-height: 100vh;
}

/* CONTAINER */
.split-container {
    max-width: 1600px;

    margin: auto;

    padding: 2rem;

    display: grid;

    grid-template-columns:
        380px 1fr;

    gap: 2rem;
}

/* SETTINGS */
.split-settings,
.split-result {
    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,0.96),
            rgba(15,23,42,0.96)
        );

    border:
        1px solid rgba(255,255,255,0.05);

    border-radius: 28px;

    padding: 2rem;
}

/* SETTINGS */
.split-settings {
    display: flex;
    flex-direction: column;

    gap: 1.5rem;
}

/* INPUT */
.split-settings input {
    background: var(--background-color);

    border: none;

    border-radius: 14px;

    padding: 1rem;

    color: white;
}

/* GRID */
#split-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 2rem;

    margin-top: 2rem;
}

/* PIECE */
.split-piece {
    background:
        rgba(15,23,42,0.7);

    border:
        1px solid rgba(255,255,255,0.05);

    border-radius: 22px;

    padding: 1rem;

    display: flex;
    flex-direction: column;

    gap: 1rem;

    transition: 0.4s;
}

.split-piece:hover {
    transform:
        translateY(-6px);
}

/* CANVAS */
.split-piece canvas {
    width: 100%;

    border-radius: 16px;

    background:
        repeating-conic-gradient(
            #1e293b 0% 25%,
            #0f172a 0% 50%
        )
        50% / 20px 20px;
}

/* BTN */
.split-piece .btn {
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1000px) {

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

}

/* =========================
   IMAGE CONVERTER
========================= */

:root {
    --primary-color: #6366f1;
    --background-color: #0f172a;
    --surface: #1e293b;
    --text-color: #f8fafc;
    --text-secondary: #94a3b8;
}

body {
    background: var(--background-color);

    color: var(--text-color);

    font-family: sans-serif;
}

.convert-page {
    min-height: 100vh;
}

/* CONTAINER */
.convert-container {
    max-width: 1500px;

    margin: auto;

    padding: 2rem;

    display: grid;

    grid-template-columns:
        380px 1fr;

    gap: 2rem;
}

/* PANELS */
.convert-settings,
.convert-preview {
    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,0.96),
            rgba(15,23,42,0.96)
        );

    border:
        1px solid rgba(255,255,255,0.05);

    border-radius: 28px;

    padding: 2rem;
}

/* SETTINGS */
.convert-settings {
    display: flex;
    flex-direction: column;

    gap: 1.5rem;
}

/* INPUTS */
.convert-settings input,
.convert-settings select {
    background: var(--background-color);

    border: none;

    border-radius: 14px;

    padding: 1rem;

    color: white;
}

/* SELECT */
.convert-settings select {
    cursor: pointer;
}

/* BUTTONS */
.convert-settings .btn {
    width: 100%;
}

/* CANVAS */
#convert-canvas {
    width: 100%;

    max-height: 700px;

    border-radius: 20px;

    object-fit: contain;

    background:
        repeating-conic-gradient(
            #1e293b 0% 25%,
            #0f172a 0% 50%
        )
        50% / 20px 20px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {

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

}

/* =========================
   IMAGE FILTERS
========================= */

.filters-page {
    min-height: 100vh;
}

/* CONTAINER */
.filters-container {
    max-width: 1600px;

    margin: auto;

    padding: 2rem;

    display: grid;

    grid-template-columns:
        400px 1fr;

    gap: 2rem;
}

/* PANELS */
.filters-settings,
.filters-preview {
    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,0.96),
            rgba(15,23,42,0.96)
        );

    border:
        1px solid rgba(255,255,255,0.05);

    border-radius: 28px;

    padding: 2rem;
}

/* SETTINGS */
.filters-settings {
    display: flex;
    flex-direction: column;

    gap: 1.5rem;
}

/* FILE */
.filters-settings input[type="file"] {
    background: var(--background-color);

    border: none;

    border-radius: 14px;

    padding: 1rem;

    color: white;
}

/* SLIDER GROUP */
.slider-group {
    display: flex;
    flex-direction: column;

    gap: 0.5rem;
}

/* LABEL */
.slider-group label {
    color: var(--text-secondary);
}

/* RANGE */
.slider-group input[type="range"] {
    width: 100%;

    accent-color: var(--primary-color);
}

/* CANVAS */
#filters-canvas {
    width: 100%;

    max-height: 700px;

    border-radius: 20px;

    object-fit: contain;

    background:
        repeating-conic-gradient(
            #1e293b 0% 25%,
            #0f172a 0% 50%
        )
        50% / 20px 20px;
}

/* BTN */
.filters-settings .btn {
    width: 100%;

    margin-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 1000px) {

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

}

/* =========================
   IMAGE COMPRESSOR
========================= */

.compress-page {
    min-height: 100vh;
}

/* CONTAINER */
.compress-container {
    max-width: 1600px;

    margin: auto;

    padding: 2rem;

    display: grid;

    grid-template-columns:
        400px 1fr;

    gap: 2rem;
}

/* PANELS */
.compress-settings,
.compress-preview {
    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,0.96),
            rgba(15,23,42,0.96)
        );

    border:
        1px solid rgba(255,255,255,0.05);

    border-radius: 28px;

    padding: 2rem;
}

/* SETTINGS */
.compress-settings {
    display: flex;
    flex-direction: column;

    gap: 1.5rem;
}

/* FILE */
.compress-settings input[type="file"] {
    background: var(--background-color);

    border: none;

    border-radius: 14px;

    padding: 1rem;

    color: white;
}

/* RANGE */
.compress-settings input[type="range"] {
    width: 100%;

    accent-color: var(--primary-color);
}

/* STATS */
.compress-stats {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1rem;
}

/* STAT */
.compress-stats div {
    background:
        rgba(15,23,42,0.8);

    border-radius: 18px;

    padding: 1rem;

    text-align: center;
}

.compress-stats strong {
    display: block;

    margin-bottom: 0.5rem;
}

/* CANVAS */
#compress-canvas {
    width: 100%;

    max-height: 700px;

    border-radius: 20px;

    object-fit: contain;

    background:
        repeating-conic-gradient(
            #1e293b 0% 25%,
            #0f172a 0% 50%
        )
        50% / 20px 20px;
}

/* BUTTONS */
.compress-settings .btn {
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1000px) {

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

}

/* =========================
   REMOVE BACKGROUND
========================= */

.remove-page {
    min-height: 100vh;
}

/* CONTAINER */
.remove-container {
    max-width: 1600px;

    margin: auto;

    padding: 2rem;

    display: grid;

    grid-template-columns:
        400px 1fr;

    gap: 2rem;
}

/* PANELS */
.remove-settings,
.remove-preview {
    background:
        linear-gradient(
            145deg,
            rgba(30,41,59,0.96),
            rgba(15,23,42,0.96)
        );

    border:
        1px solid rgba(255,255,255,0.05);

    border-radius: 28px;

    padding: 2rem;
}

/* SETTINGS */
.remove-settings {
    display: flex;
    flex-direction: column;

    gap: 1.5rem;
}

/* FILE */
.remove-settings input[type="file"] {
    background: var(--background-color);

    border: none;

    border-radius: 14px;

    padding: 1rem;

    color: white;
}

/* STATUS */
.remove-status {
    background:
        rgba(15,23,42,0.7);

    border-radius: 18px;

    padding: 1rem;

    text-align: center;

    color: var(--text-secondary);
}

/* PREVIEW */
.preview-wrapper {
    width: 100%;

    min-height: 500px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 24px;

    overflow: hidden;

    background:
        repeating-conic-gradient(
            #1e293b 0% 25%,
            #0f172a 0% 50%
        )
        50% / 20px 20px;
}

/* IMAGE */
#remove-preview-image {
    max-width: 100%;

    max-height: 700px;

    object-fit: contain;
}

/* BUTTONS */
.remove-settings .btn {
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1000px) {

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

/* =========================
   CUSTOM CURSOR
========================= */

.cursor-dot {
    width: 8px;
    height: 8px;

    background: white;

    border-radius: 50%;

    position: fixed;

    top: 0;
    left: 0;

    transform:
        translate(-50%, -50%);

    pointer-events: none;

    z-index: 999999;
}

.cursor-outline {
    width: 35px;
    height: 35px;

    border:
        2px solid rgba(255,255,255,0.5);

    border-radius: 50%;

    position: fixed;

    top: 0;
    left: 0;

    transform:
        translate(-50%, -50%);

    pointer-events: none;

    z-index: 999998;

    backdrop-filter: blur(2px);
}

audio {
    width: 100%;

    margin-top: 1rem;

    border-radius: 14px;
}

/* =========================
   CUSTOM SOUND BUTTON
========================= */

.sound-btn {
    position: relative;

    width: 100%;

    padding: 1.2rem 1.5rem;

    border: none;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(99,102,241,1),
            rgba(79,70,229,1)
        );

    color: white;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

    box-shadow:
        0 10px 30px rgba(99,102,241,0.35);
}

/* SHINE */

.sound-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,0.25),
            transparent
        );

    transition: 0.6s;
}

/* HOVER */

.sound-btn:hover::before {
    left: 120%;
}

.sound-btn:hover {
    transform:
        translateY(-4px)
        scale(1.01);

    box-shadow:
        0 18px 40px rgba(99,102,241,0.45);
}

/* CLICK */

.sound-btn:active {
    transform:
        scale(0.97);
}

/* ICON */

.sound-btn span {
    margin-right: 0.6rem;

    font-size: 1.1rem;
}

/* OPTIONAL COLORS */

.sound-btn.red {
    background:
        linear-gradient(
            145deg,
            #ef4444,
            #dc2626
        );

    box-shadow:
        0 10px 30px rgba(239,68,68,0.35);
}

.sound-btn.green {
    background:
        linear-gradient(
            145deg,
            #22c55e,
            #16a34a
        );

    box-shadow:
        0 10px 30px rgba(34,197,94,0.35);
}

.sound-btn.orange {
    background:
        linear-gradient(
            145deg,
            #f59e0b,
            #d97706
        );

    box-shadow:
        0 10px 30px rgba(245,158,11,0.35);
}

.sound-time {
    margin-top: 1rem;

    padding: 0.8rem 1rem;

    background:
        rgba(15,23,42,0.7);

    border-radius: 14px;

    color: var(--text-secondary);

    font-size: 0.95rem;

    text-align: center;
}

.stop-btn {
    position: sticky;

    top: 1rem;

    z-index: 999;

    width: 100%;

    margin-bottom: 2rem;

    padding: 1.4rem;

    font-size: 1.2rem;

    letter-spacing: 1px;

    background:
        linear-gradient(
            145deg,
            #ef4444,
            #b91c1c
        );

    box-shadow:
        0 15px 40px rgba(239,68,68,0.45);
}

.stop-btn:hover {

    transform:
        scale(1.02);

}