/* =========================================
   1. VARIABLES & THEME
========================================= */
:root {
  /* Deep Space / Cyber Theme */
  --bg-body: #030305;
  
  --brand: #3b82f6;       /* Blue */
  --brand-glow: #60a5fa;  /* Light Blue */
  --accent-cyan: #06b6d4; /* Cyan */
  --accent-purple: #8b5cf6; /* Purple */
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --container-max: 1240px;
  --header-height: 80px;
  --radius-std: 20px;
  --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* =========================================
   2. RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* BACKGROUND BLOBS */
.ambient-light {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; overflow: hidden; background: #020204;
}

.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; will-change: transform;
  transition: transform 0.1s ease-out; /* Smoother follow */
}

.blob-1 {
  top: -10%; left: -20%; width: 80vw; height: 80vw;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  animation: float 20s infinite ease-in-out alternate;
}

.blob-2 {
  bottom: -10%; right: -20%; width: 70vw; height: 70vw;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  animation: float 15s infinite ease-in-out alternate-reverse;
}

.blob-3 {
  top: 40%; left: 30%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  opacity: 0.3;
  animation: float 25s infinite ease-in-out alternate;
}

@media (min-width: 769px) {
  .blob { filter: blur(80px); }
  .blob-1 { width: 40vw; height: 40vw; }
  .blob-2 { width: 30vw; height: 30vw; }
  .blob-3 { width: 25vw; height: 25vw; }
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 30px) scale(1.1); }
}

/* Grid Overlay */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { padding-left: 1.2rem; }

.container {
  width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem;
  /* CRITICAL FOR 3D EFFECT */
  perspective: 1000px; 
}

/* Typography */
h1, h2, h3 { font-weight: 700; margin: 0; color: var(--text-primary); letter-spacing: -0.02em; }

h1 {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--brand-glow) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
}

h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
p { color: var(--text-secondary); font-weight: 300; font-size: 1.05rem; margin-bottom: 1.5rem; }

/* =========================================
   3. HEADER & NAV
========================================= */
.site-header {
  position: fixed; top: 0; inset-inline: 0; height: var(--header-height);
  z-index: 1000; background: rgba(5, 5, 5, 0.3);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  border-bottom: var(--glass-border); transition: all 0.3s ease;
}

.site-header.scrolled { background: rgba(5, 5, 5, 0.85); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.site-header.hide { transform: translateY(-100%); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 85px; width: auto; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); padding: 0.5rem 0; position: relative; }

.main-nav a::after {
  content: ''; position: absolute; width: 100%; height: 2px; bottom: 0; left: 0;
  background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease;
  box-shadow: 0 0 8px var(--brand);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.main-nav a:hover, .main-nav a.active { color: #fff; }

.btn-nav {
  background: rgba(255,255,255,0.08); padding: 0.6rem 1.5rem !important; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1); color: #fff !important;
}
.btn-nav:hover { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 15px var(--brand); }
.nav-social { display: flex; align-items: center; }
.social-icon.small {
    width: 35px; height: 35px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center; font-weight: bold;
}

/* Mobile Menu */
/* Mobile Menu */
.nav-toggle {
  /* ascuns pe desktop, vizibil pe mobil în media query */
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
 
  align-items: center;
  justify-content: center;

  /* IMPORTANT: butonul peste overlay-ul .main-nav */
  position: relative;
  z-index: 1100;
}


/* stil pentru iconițele din buton */
.nav-toggle .icon-open,
.nav-toggle .icon-close {
  line-height: 1;
}

/* X-ul este ascuns implicit */
.nav-toggle .icon-close {
  display: none;
}

/* când meniul e deschis (nav-toggle are .active), afișăm X și ascundem burger-ul */
.nav-toggle.active .icon-open {
  display: none;
}

.nav-toggle.active .icon-close {
  display: inline;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;   /* pe mobil, butonul devine vizibil */
  }

  .main-nav {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
    background: rgba(5, 5, 8, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding-top: 100px; z-index: 999; display: flex; justify-content: center;
    border-left: var(--glass-border);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: center; gap: 2rem; }
  .main-nav a { font-size: 1.5rem; font-weight: 600; }
  .nav-social { display: none; }
}


/* =========================================
   4. HERO & LAYOUT
========================================= */
.hero, .page-hero { padding-top: 150px; padding-bottom: 60px; }

.hero-inner {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 961px) { .hero-inner { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }

.hero-highlight {
  display: inline-block; padding: 0.4rem 1rem;
  background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 100px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--brand-glow); margin-bottom: 1.5rem;
}

.hero h1 { display: flex; flex-direction: column; align-items: flex-start; }
.hero-rotate {
  color: var(--accent-cyan); display: inline-block; min-height: 1.2em;
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: linear-gradient(90deg, var(--accent-cyan), var(--brand));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-bullets li { display: flex; align-items: flex-start; margin-bottom: 0.8rem; font-weight: 500; font-size: 1.05rem; }
.hero-bullets li::before { content: '✓'; color: var(--brand); margin-right: 10px; font-weight: bold; }

.checklist { list-style: none; padding: 0; margin-top: 1rem; }
.checklist li { display: flex; align-items: flex-start; margin-bottom: 0.8rem; font-weight: 500; line-height: 1.4; }
.checklist li::before {
  content: ''; flex-shrink: 0; width: 18px; height: 18px; background: var(--brand); border-radius: 50%;
  margin-right: 12px; margin-top: 4px; box-shadow: 0 0 10px var(--brand);
}

.section { padding: 5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.section-alt { background: rgba(255,255,255,0.02); }
.section-header { text-align: center; margin-bottom: 3.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 650px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 950px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.two-cols { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .two-cols { grid-template-columns: 1fr 1fr; } }

/* =========================================
   5. 3D TILT CARDS
========================================= */
.card, .hero-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border); border-radius: var(--radius-std);
  padding: 2rem; 
  position: relative; overflow: hidden;
  
  /* 3D SETTINGS */
  transition: transform 0.1s ease-out, box-shadow 0.2s ease; /* Fast transform for smooth tilt */
  transform-style: preserve-3d;
  will-change: transform;
}

/* The "Shooting Star" Blue Line */
.card::before, .hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

/* Trigger line on hover/touch */
.card:hover::before, .hero-card:hover::before,
.card.hover-state::before, .hero-card.hover-state::before {
  transform: translateX(100%);
}

.card:hover, .hero-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.2);
  /* Transform is handled by JS now for the tilt */
}

.tag {
  display: inline-block; background: rgba(59, 130, 246, 0.2); color: var(--brand-glow);
  padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.bullet-list { list-style: disc; padding-left: 1.2rem; color: var(--text-secondary); }
.bullet-list li { margin-bottom: 0.5rem; }

/* =========================================
   6. BUTTONS
========================================= */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 2.2rem; border-radius: 100px; font-weight: 600; letter-spacing: 0.5px;
  transition: all 0.3s ease; cursor: pointer; position: relative; overflow: hidden;
  text-transform: uppercase; font-size: 0.9rem; width: auto; text-decoration: none;
}
@media (max-width: 500px) {
  .btn-primary, .btn-secondary { width: 100%; margin-bottom: 0.8rem; }
  .hero-cta { flex-direction: column; }
}
.btn-primary {
  background: linear-gradient(90deg, var(--brand) 0%, #2563eb 100%); color: white; border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover { box-shadow: 0 0 25px var(--brand); transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-full { width: 100%; }

.link-arrow { color: var(--accent-cyan); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
.link-arrow:hover { gap: 10px; text-shadow: 0 0 10px var(--accent-cyan); }

/* =========================================
   7. FORMS
========================================= */
input, select, textarea {
  width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem; border-radius: 12px; color: #fff; font-family: var(--font-main);
  font-size: 16px; margin-bottom: 1rem; transition: 0.3s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: rgba(0,0,0,0.5); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.checkbox-group { display: flex; align-items: center; font-size: 0.9rem; color: var(--text-secondary); }
.checkbox-group input { width: auto; margin-right: 10px; margin-bottom: 0; }

/* =========================================
   8. UTILS & FOOTER
========================================= */
.faq-item { background: rgba(255,255,255,0.02); border: var(--glass-border); border-radius: 16px; margin-bottom: 1rem; }
.faq-item button {
  width: 100%; text-align: left; padding: 1.4rem; background: none; border: none;
  color: #fff; font-weight: 600; font-size: 1.05rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-answer { padding: 0 1.4rem; max-height: 0; overflow: hidden; transition: 0.3s; }
.faq-item.open .faq-answer { padding-bottom: 1.4rem; }
.faq-item.open button { color: var(--brand-glow); }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.scroll-top, .whatsapp-btn {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: fixed; right: 20px; z-index: 990; cursor: pointer; transition: 0.3s; opacity: 0; transform: translateY(20px);
  pointer-events: none; box-shadow: 0 10px 20px rgba(0,0,0,0.5); border: none;
}
.scroll-top { bottom: 90px; background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); color: #fff; font-size: 1.2rem; }
.whatsapp-btn { bottom: 25px; background: #25D366; }
.scroll-top.visible, .whatsapp-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.testimonials-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width: 960px){ .testimonials-layout { grid-template-columns: 1.2fr 2fr; } }

.site-footer { background: #020203; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 4rem; padding-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
@media (min-width: 600px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-inner { grid-template-columns: repeat(4, 1fr); } }
.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--brand); padding-left: 5px; }

