/* global.css */

/* CSS Variables */
:root {
    --primary-bg: #0B0D17;
    --secondary-bg: #1A1C23;
    --accent-color: #7D4CDB;
    --text-color: #FFFFFF;
    --font-family-base: 'Poppins', sans-serif;
    --container-width: 80%;
    --container-max-width: 1200px;
    --navbar-height: 60px;
    --transition-speed: 0.3s;
}

/* Global Styles */
body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: var(--font-family-base);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.container {
    width: var(--container-width);
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 20px;
    padding-top: calc(var(--navbar-height) + 20px);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base);
}

h1 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    color: var(--text-color);
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: slideIn 1s forwards;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Paragraphs and Text */
p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 15px;
}

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

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    text-decoration: underline;
    color: #1DB954;
}

/* Section */
section {
    padding: 40px 0;
    border-bottom: 2px solid rgba(127, 115, 227, 0.3);
    box-shadow: 0 2px 0 0 rgba(127, 115, 227, 0.25);
  }
/* Text Styles */
p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 15px;
}
/* Updated styles.css */





/* =======================
   Navbar Styles (Modern)
======================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(26, 28, 35, 0.95), rgba(11, 13, 23, 0.85));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background var(--transition-speed), transform var(--transition-speed);
  }
  
  .navbar.hidden {
    transform: translateY(-100%);
  }
  
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1280px;
    margin: 0 auto;
  }
  
  .navbar-brand a {
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed), transform var(--transition-speed);
  }
  
  .navbar-brand a:hover {
    color: var(--accent-color);
    transform: scale(1.05);
  }
  
  .navbar nav {
    display: flex;
    align-items: center;
  }
  
  .navbar nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
  }
  
  .navbar nav ul li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-speed), transform var(--transition-speed);
  }
  
  .navbar nav ul li a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
  }
  
  .navbar nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: width var(--transition-speed) ease-in-out;
  }
  
  .navbar nav ul li a:hover::after,
  .navbar nav ul li a.active::after {
    width: 100%;
  }
  
  .navbar nav ul li a.active {
    color: var(--accent-color);
  }
  
  /* =====================
     Hamburger Styles
  ===================== */
  
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
    position: relative;
  }
  
  .hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 1.5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* =====================
     Responsive Navigation
  ===================== */
  
  @media (max-width: 768px) {
    .hamburger {
      display: flex !important;
    }
  
    .navbar nav {
      display: none !important;
    }
  
    .navbar nav.active {
      display: flex !important;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100vw;
      padding: 40px 24px 32px;
      background: rgba(10, 10, 15, 0.95);
      border-radius: 0 0 18px 18px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      animation: slideDownFade 0.35s ease forwards;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      z-index: 1500;
    }
  
    .navbar nav ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 20px;
      width: 100%;
    }
  
    .navbar nav ul li {
      width: 100%;
    }
  
    .navbar nav ul li a {
      display: block;
      width: 100%;
      font-size: 1.25rem;
      font-weight: 600;
      color: #f4f4f4;
      padding: 12px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      transition: background 0.25s ease, color 0.25s ease;
    }
  
    .navbar nav ul li a:hover {
      color: #7f73e3;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 8px;
      padding-left: 8px;
    }
  
    @keyframes slideDownFade {
      from {
        opacity: 0;
        transform: translateY(-12px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
    body.no-scroll {
      overflow: hidden;
    }
  }
  /* =====================
     Animation & Body scroll lock
  ===================== */
  
  @keyframes fadeInMenu {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  body.no-scroll {
    overflow: hidden !important;
  }

/* Footer Styles */
/* Footer Styles */
footer {
    position: relative;
    padding: 30px 0;
    background: linear-gradient(to top, rgba(11, 13, 23, 0.95), rgba(26, 28, 35, 0.85));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    text-align: center;
    opacity: 0; /* Pentru animația de fade-in */
    animation: fadeIn 1s forwards ease-in-out 0.5s; /* Fade-in cu întârziere */
}

/* Animație de fade-in */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Linie decorativă deasupra footer-ului, similară cu cea de sub titluri */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background-color: var(--accent-color);
    animation: slideIn 1s forwards ease-in-out;
}

/* Reutilizăm animația slideIn din global.css */
@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
    transition: opacity var(--transition-speed);
}

footer p:hover {
    opacity: 1;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed);
}

footer a:hover {
    color: #9b78e3;
    text-decoration: none;
}