/* 1. VARIABILE ȘI RESET */
:root {
    --red: #FF3131;
    --dark: #08080a;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-gray: #a0a0aa;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

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

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden; /* Previne scroll-ul orizontal pe mobil */
position: relative;
}

/* 2. LAYOUT ȘI GRILA PRINCIPALĂ */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
    width: 100%;
}

section { 
    padding: 100px 0; 
}

/* 3. FUNDAL ANIMAT */
.bg-animate {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.blob {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 49, 49, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: floatBlob 20s infinite alternate;
}
.blob-1 { top: -200px; right: -100px; }
.blob-2 { bottom: -200px; left: -100px; animation-delay: -5s; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 80px) scale(1.1); }
}

/* 4. NAVIGAȚIE (MODERN GLASS) */
.glass-nav {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 12px 35px;
    z-index: 1000;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 35px; }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-gray); font-size: 14px; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--red); }
.btn-nav { background: var(--red); color: white !important; padding: 8px 20px; border-radius: 50px; }

/* 5. HERO SECTION - COMPLEX */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    padding-top: 80px; 
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.badge { 
    background: rgba(255, 49, 49, 0.1); 
    color: var(--red); 
    padding: 8px 18px; 
    border-radius: 100px; 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(45px, 6vw, 90px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -4px;
    margin: 20px 0;
}
h1 span { color: var(--red); }

.hero-p { 
    font-size: 18px; 
    color: var(--text-gray); 
    max-width: 520px; 
    margin-bottom: 40px; 
}

/* Trust Bar */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}
.trust-item b { display: block; font-size: 22px; color: var(--red); }
.trust-item span { font-size: 13px; color: var(--text-gray); }
.trust-divider { width: 1px; height: 40px; background: var(--glass-border); }

/* 6. VIZUAL HERO (STACĂ PLUTITOARE) */
.hero-visual { position: relative; display: flex; justify-content: flex-end; }
.floating-stack { position: relative; width: 400px; height: 400px; }

.main-visual-circle {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 49, 49, 0.08) 0%, transparent 70%);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: rotateSlow 25s linear infinite;
}
.inner-logo { width: 180px; filter: drop-shadow(0 0 25px rgba(255, 49, 49, 0.2)); }

.glass-box {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 16px 22px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}
.box-1 { top: 10%; left: -30px; animation: floatY 4s infinite alternate; }
.box-2 { bottom: 20%; right: -10px; animation: floatY 5s infinite alternate-reverse; }

/* 7. BUTOANE */
.hero-actions { display: flex; gap: 15px; }
.btn { 
    padding: 16px 35px; 
    border-radius: 16px; 
    text-decoration: none; 
    font-weight: 700; 
    transition: 0.4s; 
    display: inline-block; 
}
.btn-red { 
    background: var(--red); 
    color: white; 
    box-shadow: 0 10px 30px rgba(255, 49, 49, 0.3); 
}
.btn-red:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(255, 49, 49, 0.4); 
}
.btn-outline { 
    border: 1px solid var(--glass-border); 
    color: white; 
}
.btn-outline:hover { 
    background: var(--glass); 
}

/* 8. SERVICII ȘI CARDURI */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 24px; 
}
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 32px;
    transition: 0.4s;
}
.glass-card:hover { 
    border-color: var(--red); 
    transform: translateY(-10px); 
}

/* 9. CONTACT FORM */
.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    margin-bottom: 15px; 
}
input, textarea {
    width: 100%; padding: 18px; border-radius: 14px; background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border); color: white; font-family: inherit;
}

/* 10. ANIMAȚII */
@keyframes floatY { from { transform: translateY(0); } to { transform: translateY(-25px); } }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 11. RESPONSIVE (TELEFON & TABLETĂ) */
@media (max-width: 992px) {
    .hero-wrapper { 
        grid-template-columns: 1fr; 
        text-align: center; 
        padding-top: 100px; 
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 1;
    }
    .hero-visual {
        justify-content: center;
        order: 2;
        margin-top: 60px;
    }
    .hero-trust { justify-content: center; width: 100%; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
    .btn-outline { margin-left: 0; }
    h1 { letter-spacing: -2px; }
}

@media (max-width: 600px) {
    .floating-stack { width: 300px; height: 320px; scale: 0.85; }
    .main-visual-circle { width: 260px; height: 260px; }
    .hero-trust { flex-direction: column; gap: 20px; }
    .trust-divider { width: 50px; height: 1px; }
    .form-row { grid-template-columns: 1fr; }
    .glass-nav { padding: 10px 20px; }
    .nav-links { display: none; } /* Meniul se ascunde pe mobil pentru simplitate */
}

/* --- SECTION WRAPPER --- */
.full-service-section {
    padding: 120px 0;
    border-bottom: 1px solid var(--glass-border);
}

.service-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-title-large {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

/* --- PRICING TABLES --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.price-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 24px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    backdrop-filter: blur(10px);
}

.price-card.featured {
    border-color: var(--red);
    background: rgba(255, 49, 49, 0.05);
    transform: scale(1.05);
}

.price-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.05);
}

.price-header h4 { color: var(--text-gray); text-transform: uppercase; font-size: 13px; letter-spacing: 2px; }
.price-header .amount { font-size: 42px; font-weight: 800; margin: 15px 0; display: block; }
.price-header .amount span { font-size: 16px; color: var(--text-gray); }

.price-features { list-style: none; margin: 30px 0; text-align: left; }
.price-features li { margin-bottom: 12px; font-size: 14px; opacity: 0.8; }
.price-features li::before { content: "✓"; color: var(--red); margin-right: 10px; font-weight: bold; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .service-intro { grid-template-columns: 1fr; text-align: center; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: scale(1); }
}

/* --- ABOUT ADVANCED --- */
.about-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    padding: 60px !important;
    align-items: center;
    margin-bottom: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,49,49,0.02) 100%);
}

.about-text {
    font-size: 18px;
    color: var(--text-gray);
    margin: 25px 0;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feat {
    font-size: 14px;
    font-weight: 600;
}

.feat span {
    color: var(--red);
    margin-right: 8px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-box {
    background: rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.stat-box:hover {
    border-color: var(--red);
    transform: translateX(10px);
}

.stat-box b {
    display: block;
    font-size: 32px;
    color: var(--red);
}

/* --- EXPERTISE GRID --- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.expert-card {
    padding: 40px !important;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

.expert-num {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: 900;
    opacity: 0.05;
    transition: 0.4s;
}

.expert-icon {
    font-size: 45px;
    margin-bottom: 20px;
}

.expert-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-white);
}

.expert-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.expert-card:hover {
    border-color: var(--red);
    transform: translateY(-10px);
}

.expert-card:hover .expert-num {
    opacity: 0.2;
    color: var(--red);
}

/* --- RESPONSIVE ABOUT --- */
@media (max-width: 992px) {
    .about-hero { grid-template-columns: 1fr; padding: 30px !important; }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .expertise-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
}

/* --- FOOTER MEGA STYLES --- */
.footer-mega {
    padding: 100px 0 40px 0;
    background: linear-gradient(to top, rgba(255, 49, 49, 0.05), transparent);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-brand p {
    color: var(--text-gray);
    max-width: 350px;
    margin: 20px 0;
    font-size: 15px;
}

.footer-logo {
    height: 45px;
    filter: brightness(1.2);
}

/* Social Icons Style */
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: 0.3s;
}
.social-icons a:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-5px);
}

/* Navigatie Footer */
.footer-nav {
    display: flex;
    gap: 60px;
}
.nav-col h4 {
    color: var(--text-white);
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-col ul {
    list-style: none;
}
.nav-col ul li {
    margin-bottom: 12px;
}
.nav-col ul li a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 14px;
    transition: 0.3s;
}
.nav-col ul li a:hover {
    color: var(--red);
    padding-left: 5px;
}

/* Big Text background effect */
.footer-big-text {
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    text-align: center;
    line-height: 0.8;
    margin-bottom: -20px;
    user-select: none;
    pointer-events: none;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-gray);
}

.footer-web {
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
    margin-left: 20px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .footer-top { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-nav { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .footer-big-text { font-size: 20vw; }
}

@media (max-width: 600px) {
    .footer-nav { flex-direction: column; gap: 40px; }
}

/* --- FINISĂRI ULTIME PENTRU RESPONSIVE --- */

@media (max-width: 768px) {
    /* Ajustăm titlurile mari să nu ocupe tot ecranul */
    h1 {
        font-size: 42px !important;
        letter-spacing: -1px;
    }

    .service-title-large {
        font-size: 32px !important;
    }

    /* Reducem padding-ul secțiunilor ca să nu avem prea mult spațiu gol */
    section {
        padding: 60px 0;
    }

    /* Forțăm toate cardurile să aibă margini laterale egale */
    .container {
        padding: 0 20px;
    }

    /* Hero visual - cercul cu logo să nu fie uriaș pe telefon */
    .floating-stack {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        scale: 0.9;
    }

    .main-visual-circle {
        width: 220px !important;
        height: 220px !important;
    }

    /* Formularul de contact - input-urile să fie full width */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    /* Tabelele de prețuri/servicii - eliminăm scale-ul de la 'featured' pe mobil */
    .price-card.featured {
        transform: scale(1) !important;
        margin: 10px 0;
    }

    /* Footer - aliniere pe centru pentru tot */
    .footer-top {
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }

    .footer-big-text {
        font-size: 18vw;
        margin-top: 20px;
    }
}

/* Fix pentru ecranele foarte mici (ex: iPhone SE) */
@media (max-width: 380px) {
    h1 {
        font-size: 36px !important;
    }

    .btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Prevenire Scroll Orizontal Accidental */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Asigură-te că nav-flex le pune în capete opuse */
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Stilul hamburgerului */
.mobile-toggle {
    display: none; /* Ascuns pe desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff; /* Culoarea liniuțelor */
    transition: 0.3s;
}

/* Responsive: Afișare Hamburger sub 1100px */
@media (max-width: 1100px) {
    .mobile-toggle {
        display: flex; /* Apare pe mobil */
    }

    .nav-links {
        position: fixed;
        right: -100%; /* Ascuns în dreapta */
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0; /* Apare pe ecran */
    }

    /* Logo mai mic pe mobil să nu înghesuie meniul */
    .logo img {
        height: 35px;
        width: auto;
    }
}

/* Animație X când meniul este deschis */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--red);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--red);
}

@media (max-width: 1100px) {
  .nav-links {
      display: none !important; 
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;

      /* EFECTUL GLASSY */
      background: rgba(10, 10, 12, 0.7); /* Mai transparent (0.7) */
      backdrop-filter: blur(25px); /* Blur mai intens pentru look modern */
      -webkit-backdrop-filter: blur(25px); /* Suport pentru Safari/iOS */
      border-left: 1px solid rgba(255, 255, 255, 0.05);

      /* CENTRARE PERFECTĂ */
      flex-direction: column;
      justify-content: center; /* Centrare verticală */
      align-items: center;     /* Centrare orizontală */
      text-align: center;

      gap: 40px; /* Spațiu mai mare între link-uri pe mobil */
      z-index: 1500;
      margin: 0;
      padding: 0;
  }

  .nav-links.active {
      display: flex !important;
      /* ANIMAȚIE DE INTRARE SUBTILĂ */
      animation: fadeInMenu 0.4s ease-out;
  }

  .nav-links li {
      width: 100%; /* Ajută la centrarea textului */
      list-style: none;
  }

  .nav-links a {
      font-size: 28px !important;
      color: #ffffff !important;
      text-decoration: none;
      font-weight: 800;
      letter-spacing: 1px;
      transition: 0.3s;
      display: inline-block;
  }

  /* Efect la atingere pe link-uri */
  .nav-links a:active {
      color: var(--red) !important;
      transform: scale(1.1);
  }
}

/* Definește animația de fade-in */
@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
#backToTop {
    position: fixed !important; /* Forțăm poziția peste orice altceva */
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* Îl aducem în cel mai din față plan */
    display: none; /* Îl lăsăm ascuns, JS-ul îl va face 'flex' când e nevoie */
    
    /* Restul stilului rămâne la fel */
    border: none;
    outline: none;
    background-color: #ff0000;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    background-color: #cc0000; /* Roșu mai închis la hover */
    transform: translateY(-5px);
}

/* Ajustări pentru Mobile */
@media screen and (max-width: 768px) {
    #backToTop {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}
#custom-cursor {
    width: 20px;
    height: 20px;
    background: rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none; /* Să nu blocheze click-urile */
    z-index: 10000;
    transition: transform 0.1s ease-out;
    backdrop-filter: invert(1); /* Face un efect interesant de culori negative */
}

/* Când treci peste un link, cursorul se face mare */
.cursor-hover {
    transform: scale(3);
    background: rgba(255, 0, 0, 0.2) !important;
}
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Stă în spatele conținutului */
    overflow: hidden;
    filter: blur(80px); /* Creează efectul difuz de lumină */
    opacity: 0.6;
}

.blob {
    position: absolute;
    border-radius: 50%;
    transition: all 1s ease-in-out;
}

.red {
    width: 400px;
    height: 400px;
    background: rgba(255, 0, 0, 0.15); /* Roșu CCD subtil */
    top: -100px;
    right: -100px;
    animation: moveRed 15s infinite alternate;
}

.gray {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    bottom: -150px;
    left: -150px;
    animation: moveGray 20s infinite alternate-reverse;
}

/* Animațiile care plimbă luminile pe ecran */
@keyframes moveRed {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-200px, 300px) scale(1.2); }
}

@keyframes moveGray {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(300px, -200px) scale(1.1); }
}

/* Glassmorphism hack: Adaugă un overlay fin pentru granulație (noise) */
.bg-glow::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.05; /* Foarte subtil pentru textură de sticlă premium */
    pointer-events: none;
}

.cf-turnstile-container {
    display: flex;
    justify-content: flex-start; /* Aliniat la stânga ca și input-urile */
    margin-bottom: 50px;
    padding: 5px;
    /* Opțional: îi poți da un pic de blur în spate să se potrivească cu cardul */
    border-radius: 8px;
}

/* Dacă vrei să fie centrat pe mobil, dar la stânga pe desktop: */
@media (max-width: 768px) {
    .cf-turnstile-container {
        justify-content: center;
    }
}