/* ===================================================
   AlRey · base.css
   Stiluri comune tuturor paginilor.
   Modifică aici → se aplică pretutindeni.
   =================================================== */

/* ─── VARIABILE ─────────────────────────────────── */
:root {
  --cyan:        #4fd1d9;
  --purple:      #a855f7;
  --bg:          #0b0e14;
  --surface:     #141b24;
  --surface2:    #1a2430;
  --border:      #26313d;
  --border2:     #2a3847;
  --text:        #e8edf2;
  --text-muted:  #7b96b0;
  --text-light:  #b8c9dd;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm:   0.6rem;
  --radius-md:   1rem;
  --radius-lg:   1.5rem;
  --radius-xl:   2rem;
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── BODY ───────────────────────────────────────── */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  scroll-behavior: smooth;
  padding: 0 1.5rem;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
  position: relative;
}

/* ─── SCROLL PROGRESS BAR ────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--cyan));
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  z-index: 9999;
  transition: width 0.1s linear;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── CURSOR GLOW ────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 350px; height: 350px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(79,209,217,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
.cursor-glow.visible { opacity: 1; }

/* ─── TOAST ──────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  background: var(--surface2);
  border: 1px solid var(--cyan);
  color: #e0f0fa;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(79,209,217,0.2);
  animation: toastIn 0.4s cubic-bezier(0.16,1,0.3,1), toastOut 0.35s 2.5s ease-in forwards;
  backdrop-filter: blur(12px);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* ─── SCROLL REVEAL ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible          { opacity: 1; transform: translateY(0); }
.reveal-delay-1          { transition-delay: 0.1s; }
.reveal-delay-2          { transition-delay: 0.2s; }
.reveal-delay-3          { transition-delay: 0.3s; }

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,14,20,0.85);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.35s ease;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.navbar.scrolled {
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(79,209,217,0.12);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.brand {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand .rey { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 2.4rem;
  font-size: 1rem;
  font-weight: 450;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: #c8d4e0;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.25s;
}
.nav-links a:hover              { color: #fff; }
.nav-links a:hover::after       { width: 100%; }
.nav-links a.active-link        { color: var(--cyan); }
.nav-links a.active-link::after { width: 100%; }

/* Dropdown */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}
.dropdown-content {
  position: absolute;
  top: 100%; left: 0;
  background: rgba(15,21,29,0.95);
  backdrop-filter: blur(12px);
  min-width: 200px;
  border: 1px solid rgba(79,209,217,0.2);
  border-radius: 12px;
  padding: 0.6rem 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 1002;
}
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-content a {
  color: #b8c9dd;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.dropdown-content a::after { display: none; }
.dropdown-content a:hover {
  color: #fff;
  background: rgba(79,209,217,0.08);
  border-left-color: var(--cyan);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: #e0edfa;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 0.3rem;
  background: var(--surface2);
  padding: 0.25rem 0.4rem;
  border-radius: 40px;
  border: 1px solid #2f4052;
  margin-left: 0.5rem;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.lang-btn.active        { background: var(--cyan); color: var(--bg); }
.lang-btn:hover:not(.active) { color: #e0edfa; }

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  margin-top: 4rem;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid #1e2935;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: #b0c8dd;
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.footer-email {
  color: #b6cfe6;
  letter-spacing: 0.2px;
  background: var(--surface2);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.9rem;
  border: 1px solid #2a3a49;
  cursor: pointer;
  transition: all 0.25s;
  user-select: all;
}
.footer-email:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(79,209,217,0.15);
  color: var(--cyan);
}

/* ─── FLOATING PARTICLES ─────────────────────────── */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(79,209,217,0.3);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) translateX(0);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-20px) translateX(40px); opacity: 0; }
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 700px) {
  body { padding: 0 1.2rem; }
  .navbar {
    flex-wrap: nowrap;
    margin: 0 -1.2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1.2rem;
    padding: 1rem 0 0.5rem;
    align-items: flex-start;
  }
  .nav-links.open {
    display: flex;
    animation: slideDown 0.35s cubic-bezier(0.16,1,0.3,1);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .navbar     { flex-wrap: wrap; }
  .lang-toggle { margin-left: 0; }
  footer      { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 1.4rem; }
}

@media (max-width: 450px) {
  .brand { font-size: 1.5rem; }
}

/* ─── REDUCED MOTION ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
