/* ===== Reset & base ===== */
* { margin:0; padding:0; box-sizing:border-box; }
:root { --nav-h: 72px; } /* suprascris din JS cu înălțimea reală */
body { font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height:1.6; color:#333; overflow-x:hidden; }

/* ===== Navbar ===== */
.navbar{
  position:fixed; top:0; left:0; right:0;
  background: rgba(10, 10, 18, 0.95); backdrop-filter: blur(10px);
  z-index:1000; padding: 1rem 0; transition: background .3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-container{
  max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; padding:0 20px;
}
.logo{
  font-size:1.8rem; font-weight:800; text-decoration:none;
  color:#fff; transition: color .3s;
}
.logo:hover{ color:#ff4757; }
.nav-links{ display:flex; list-style:none; gap:2rem; }
.nav-links a{ color:#fff; text-decoration:none; font-weight:500; position:relative; transition: color .3s; }
.nav-links a:hover{ color:#ff4757; }
.nav-links a::after{ content:''; position:absolute; bottom:-5px; left:0; width:0; height:2px; background:linear-gradient(45deg,#ff4757,#c0392b); transition:width .3s; }
.nav-links a:hover::after{ width:100%; }
.mobile-menu-toggle{ display:none; background:none; border:none; color:#fff; font-size:1.5rem; cursor:pointer; z-index:1001; }

.mobile-menu{
  display:none; position:fixed; inset:0; height:100vh;
  background:rgba(0,0,0,0.95); backdrop-filter: blur(10px);
  z-index:1000; padding-top: calc(var(--nav-h) + 30px);
}
.mobile-menu.active{ display:flex; flex-direction:column; align-items:center; }
.mobile-menu a{ color:#fff; text-decoration:none; font-size:1.5rem; font-weight:500; padding:1rem 0; transition: color .3s; }
.mobile-menu a:hover{ color:#ff4757; }
.mobile-menu-close{
  position:absolute; top:20px; right:20px;
  background:none; border:none; color:#fff; font-size:2rem;
  cursor:pointer; transition: color .3s;
}
.mobile-menu-close:hover{ color:#ff4757; }

/* ===== HERO ===== */
.hero-section{
  height: 100vh;
  position: relative;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  overflow:hidden;
}

/* Videoclip YouTube full-bleed – fallback dimensiune + MQ pe aspect-ratio */
.hero-poster{
  position:absolute; top:50%; left:50%;
  transform: translate(-50%, -50%);
  width:100vw; height:56.25vw;
  object-fit:cover;
  z-index:0;
}
@media (max-aspect-ratio: 16/9){ .hero-poster{ width:177.78vh; height:100vh; } }
@media (min-aspect-ratio: 16/9){ .hero-poster{ width:100vw; height:56.25vw; } }
.hero-poster.hidden{ display:none; }

.hero-video{
  position:absolute; top:50%; left:50%;
  transform: translate(-50%, -50%);
  z-index:1; opacity:1; display:block;
  width:100vw; height:56.25vw; /* fallback: 9/16 */
}
/* viewport mai îngust decât 16:9 → potrivește pe înălțime */
@media (max-aspect-ratio: 16/9){ .hero-video{ width:177.78vh; height:100vh; } }
/* viewport mai lat decât 16:9 → potrivește pe lățime */
@media (min-aspect-ratio: 16/9){ .hero-video{ width:100vw; height:56.25vw; } }

.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(45deg, rgba(0,0,0,0.35), rgba(50,50,50,0.2));
  z-index:2;
}

.hero-content{
  position:relative; z-index:3; text-align:center; color:#fff;
  max-width:800px; padding:0 20px; animation: fadeInUp 1.5s ease-out;
}
@keyframes fadeInUp{ from{opacity:0; transform:translateY(50px);} to{opacity:1; transform:none;} }

.hero-content h1{
  font-size: 2rem; font-weight: 700; margin-bottom: 1.2rem; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: -0.2px;
}
.hero-content h1::after {
  content: ''; display: block; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,107,107,0.8), transparent);
  margin: 15px auto 0;
  border-radius: 1px;
}
.hero-content p{ font-size:1.1rem; margin-bottom:2.5rem; opacity:.95; font-weight:300; line-height: 1.5; }

.cta-button{
  display:inline-block; padding:15px 40px;
  background: linear-gradient(45deg, #ff4757, #c0392b);
  color:#fff; text-decoration:none; border-radius:50px;
  font-weight:600; font-size:1.2rem; transition: all .3s ease;
  position: relative;
}
.cta-button::before,
.cta-button::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255,71,87,.6);
  border-radius: 50px;
  animation: pulse-ring 1.5s ease-out infinite;
}
.cta-button::after {
  animation-delay: 0.3s;
}
.cta-button:hover{
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255,71,87,.5);
  background: linear-gradient(45deg, #c0392b, #ff4757);
}
.cta-button:hover::before,
.cta-button:hover::after {
  animation: pulse-ring-hover 0.8s ease-out infinite;
}
.cta-button:hover::after {
  animation-delay: 0.2s;
}
.pulse-ring3 {
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255,71,87,.6);
  border-radius: 50px;
  animation: pulse-ring 1.5s ease-out infinite;
  animation-delay: 0.6s;
  pointer-events: none;
}
.cta-button:hover .pulse-ring3 {
  animation: pulse-ring-hover 0.8s ease-out infinite;
  animation-delay: 0.4s;
}
@keyframes pulse-ring {
  0% { inset: -4px; opacity: 1; }
  100% { inset: -16px; opacity: 0; }
}
@keyframes pulse-ring-hover {
  0% { inset: -4px; opacity: 1; }
  100% { inset: -28px; opacity: 0; }
}

/* ===== Secțiuni ===== */
.services-section{ padding:100px 0; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.container{ max-width:1200px; margin:0 auto; padding:0 20px; position:relative; z-index:1; }
.section-title{
  text-align:center; font-size:3rem; font-weight:700; margin-bottom:3rem;
  background: linear-gradient(45deg,#2c3e50,#1a252f);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.services-grid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap:2rem; }
.service-card{
  background:#fff; padding:2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  transition: all .3s ease; position:relative; overflow:hidden;
  border-radius: 10px;
}
.service-card::before{ content:''; position:absolute; top:0; left:0; width:100%; height:4px; background:linear-gradient(45deg,#ff4757,#c0392b); }
.service-card:hover{ transform: translateY(-10px); box-shadow:0 30px 60px rgba(0,0,0,.15); }
.service-icon{ font-size:3rem; margin-bottom:1rem; color:#2c3e50; }
.service-card h3{ font-size:1.5rem; font-weight:600; margin-bottom:1rem; color:#333; }

.about-section{ padding:100px 0; background: #1a1a1a; color:#fff; }
.about-content{ display:grid; grid-template-columns: 1fr 1fr; gap:4rem; align-items:center; }
.about-text h2{ font-size:2.5rem; font-weight:700; margin-bottom:2rem; }
.about-text p{ font-size:1.2rem; line-height:1.8; opacity:.9; }

.contact-section{ padding:100px 0; background:#1a1a1a; color:#fff; }
.contact-content{ text-align:center; }
.contact-info{ display:flex; justify-content:center; gap:4rem; margin-top:3rem; flex-wrap:wrap; }
.contact-item{ display:flex; align-items:center; gap:1rem; }
.contact-item i{ font-size:1.5rem; color:#25d366; }

.contact-form{ max-width:500px; margin:0 auto; text-align:left; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form-group{ margin-bottom:1rem; }
.form-group label{ display:block; margin-bottom:0.5rem; font-weight:500; color:#fff; }
.form-group input,
.form-group select,
.form-group textarea{
  width:100%; padding:12px 16px; border:2px solid rgba(255,255,255,0.1);
  border-radius:8px; background:rgba(255,255,255,0.05); color:#fff;
  font-size:1rem; transition:border-color 0.3s, background 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder{ color:rgba(255,255,255,0.4); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none; border-color:#ff4757; background:rgba(255,255,255,0.08);
}
.form-group select{ cursor:pointer; }
.form-group select option{ background:#1a1a1a; color:#fff; }
.wa-button{
  width:100%; padding:15px 40px; border:none; cursor:pointer;
  background:#25d366; color:#fff; border-radius:50px;
  font-weight:600; font-size:1.1rem; transition:all .3s ease;
  position: relative;
}
.wa-button::before,
.wa-button::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(37, 211, 102, 0.6);
  border-radius: 50px;
  opacity: 0;
  pointer-events: none;
}
.wa-button:hover{
  background:#128C7E; transform:translateY(-2px);
  box-shadow:0 10px 30px rgba(37,211,102,.4);
}
.wa-button:hover::before,
.wa-button:hover::after {
  opacity: 1;
  animation: pulse-green-ring 1.5s ease-out infinite;
}
.wa-button:hover::after {
  animation-delay: 0.3s;
}
.wa-button i{ margin-right:8px; font-size:1.3rem; }
@media(max-width:600px){
  .form-row{ grid-template-columns:1fr; }
}

.footer{
  background: #0a0a12;
  color: #888;
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer p { font-size: 0.9rem; letter-spacing: 0.5px; }

/*Sectiunea About*/
.about-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}


.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #667eea;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

.certification-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 18px;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.certification-badge:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
}
.certification-badge i {
  font-size: 1.8rem;
  color: #fff;
}
.certification-text {
  display: flex;
  flex-direction: column;
}
.cert-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}
.cert-detail {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(50%) opacity(0.7);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
  filter: grayscale(0%) opacity(1);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: #b0b0b0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

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

  .stat-number {
    font-size: 2.5rem;
  }
}

/* ===== Mobile & tablet ===== */
@media (max-width: 992px){
  .nav-links{ display:none; }
  .mobile-menu-toggle{ display:block; }
}

/* Mobil portret / general */
@media (max-width: 768px){
  /* navbar calc dinamic + comportament */
  .navbar{ padding: .75rem 0; }

  /* HERO: separăm video de text și ținem cont de navbar */
  .hero-section{
    height:auto; display:flex; flex-direction:column;
    padding-top: 0;
    min-height: 100svh;
  }

  .hero-video{
    position:relative; top:auto; left:auto; transform:none;
    width:100%; height:auto; aspect-ratio:16/9; opacity:.9;
    pointer-events:none; margin-top:0;
  }

  .hero-overlay{ display:none; }

  /* Panou albastru pentru text SUB video.
     Pentru a-l pune DEASUPRA, adaugă: order:-1; */
  .hero-content{
    position:relative; z-index:auto; text-align:center; color:#fff;
    width:100%; background: linear-gradient(135deg,#667eea 0%, #764ba2 100%);
    padding: 16px 18px 20px; border-radius: 0;
  }

  .hero-content h1{
    font-size:1.5rem; line-height:1.2; margin-bottom:0.8rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  }
  .hero-content p{
    font-size:1rem; line-height:1.5; max-width:32ch; margin:0 auto 1.5rem; opacity:.98;
  }
  .cta-button{ padding:12px 26px; font-size:1rem; }

  .about-content{ grid-template-columns:1fr; gap:2rem; }
  .contact-info{ flex-direction:column; gap:2rem; }
}

/* Mobil landscape: ecran jos (gen 480px înălțime) */
@media (orientation: landscape) and (max-height: 480px){
  .hero-section{
    height:auto; display:flex; flex-direction:column;
    padding-top: var(--nav-h);
  }
  .hero-video{
    position:relative; top:auto; left:auto; transform:none;
    width:100%; height:auto; aspect-ratio:16/9; opacity:.9; pointer-events:none;
  }
  .hero-overlay{ display:none; }
  .hero-content{
    width:100%; background: linear-gradient(135deg,#667eea 0%, #764ba2 100%);
    padding:16px 14px 20px; border-radius:0; text-align:center;
  }
  .hero-content h1{
    font-size:1.8rem; -webkit-text-stroke:0; text-shadow:0 1px 2px rgba(0,0,0,.45); line-height:1.15; margin-bottom:.5rem;
  }
  .hero-content p{ font-size:.95rem; line-height:1.4; max-width:30ch; margin:0 auto 1rem; }
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: pulse-green 2s infinite;
  touch-action: none;
  user-select: none;
}
.whatsapp-float.dragging {
  animation: none;
  transition: none;
  box-shadow: 2px 8px 25px rgba(0,0,0,0.4);
}
.whatsapp-float::before,
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(37, 211, 102, 0.6);
  border-radius: 50px;
  animation: pulse-green-ring 1.5s ease-out infinite;
  pointer-events: none;
}
.whatsapp-float::after {
  animation-delay: 0.3s;
}
.whatsapp-float:hover {
  background-color: #128C7E;
  color: #FFF;
  transform: scale(1.1);
  animation: none;
}
.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  animation: pulse-green-ring-hover 0.8s ease-out infinite;
}
.whatsapp-float:hover::after {
  animation-delay: 0.2s;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes pulse-green-ring {
  0% { inset: -4px; opacity: 1; }
  100% { inset: -16px; opacity: 0; }
}
@keyframes pulse-green-ring-hover {
  0% { inset: -4px; opacity: 1; }
  100% { inset: -28px; opacity: 0; }
}

/* ===== Privacy Modal Styles ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
  z-index: 10001; opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
  display: flex; justify-content: center; align-items: center; padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
  background: #1a1a1a; color: #fff;
  width: 100%; max-width: 600px;
  max-height: 85vh; overflow-y: auto;
  border-radius: 15px; padding: 30px;
  position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  transform: translateY(20px); transition: transform 0.3s ease;
  scrollbar-width: thin; scrollbar-color: #ff4757 #1a1a1a;
}
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: #1a1a1a; }
.modal-content::-webkit-scrollbar-thumb { background: #ff4757; border-radius: 10px; }

@media (max-width: 480px) {
  .modal-content { padding: 25px 15px; }
  .modal-content h3 { font-size: 1.4rem; }
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal {
  position: absolute; top: 15px; right: 20px;
  background: none; border: none; color: #888;
  font-size: 2rem; cursor: pointer; transition: color 0.2s;
}
.close-modal:hover { color: #fff; }

.modal-content h3 {
  font-size: 1.8rem; margin-bottom: 20px;
  background: linear-gradient(45deg, #ff4757, #c0392b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.modal-body h4 { color: #ff4757; margin: 20px 0 10px; font-size: 1.1rem; }
.modal-body p { font-size: 0.95rem; line-height: 1.6; color: #ccc; margin-bottom: 10px; }
.modal-body ul { list-style: none; padding-left: 10px; }
.modal-body li { margin-bottom: 8px; font-size: 0.95rem; color: #bbb; position: relative; padding-left: 20px; }
.modal-body li::before {
  content: "•"; color: #ff4757; position: absolute; left: 0; font-weight: bold;
}

/* ===== Language Switcher ===== */
.lang-switcher {
  position: relative;
  margin-left: 1.5rem;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-current .lang-flag {
  font-size: 1.1rem;
}

.lang-current .lang-code {
  font-weight: 600;
}

.lang-current i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px;
  min-width: 150px;
  z-index: 1002;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lang-dropdown.active {
  display: block;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-align: left;
  text-decoration: none;
}

.lang-dropdown a:hover {
  background: rgba(255, 71, 87, 0.15);
  color: #fff;
}

.lang-dropdown a.active {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
}

.lang-dropdown a .lang-flag {
  font-size: 1.2rem;
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-lang-switcher a:hover,
.mobile-lang-switcher a.active {
  background: rgba(255, 71, 87, 0.2);
  border-color: #ff4757;
}

.mobile-lang-switcher a .lang-flag {
  font-size: 1.4rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .lang-switcher {
    margin-left: auto;
    margin-right: 1rem;
  }
}

@media (max-width: 480px) {
  .lang-current .lang-code {
    display: none;
  }

  .lang-current {
    padding: 8px 10px;
  }
}
