/* DigitalDevIT - Premium Corporate Website Design */
:root {
  --primary: #00A3FF;
  --primary-glow: rgba(0, 163, 255, 0.35);
  --accent: #00F0FF;
  --accent-teal: #00E5A3;
  --bg-main: #060913;
  --bg-surface: #0E1526;
  --bg-surface-hover: #141E34;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 163, 255, 0.4);
  --text-primary: #FFFFFF;
  --text-secondary: #dbdbdb;
  --text-muted: #64748B;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1240px;
}
/* Previne selectarea textului și a imaginilor pe întregul site */
body {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE / Edge */
    user-select: none;         /* Chrome, Firefox, Opera */
}
/* Layout Principal Ofertix */
.ofertix-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

/* Pe ecrane mari (Desktop), activăm cele 2 coloane */
@media (min-width: 992px) {
    .ofertix-grid {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

/* Stil pentru cardul principal care ține tot conținutul */
.content-card {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Asigură că nimic nu depășește marginile cardului */
}

/* Caseta de prețuri */
.pricing-box-card {
    background: var(--bg-main);
    border: 1px solid var(--border-active);
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
}

/* Casetă Suport de Jos */
.footer-support-box {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.12), rgba(0, 240, 255, 0.05));
    border-radius: 16px;
    border: 1px solid var(--primary);
    width: 100%;
    box-sizing: border-box;
    clear: both; /* Forțează coborârea sub grid, indiferent de înălțimea coloanelor */
}
/* Previne drag-and-drop-ul imaginilor pe desktop */
img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}
/* --- Stiluri Parteneri cu Logo-uri Colorate Direct & Fundal Alb la Hover --- */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.partner-card {
    background: var(--bg-surface, #0E1526);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    padding: 16px 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 80px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-card img {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-card:hover {
    border-color: var(--primary, #00A3FF);
    background: #ffffff; /* Schimbat în alb */
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2); /* Umbră discretă potrivită pentru fundal alb */
}

.partner-card:hover img {
    transform: scale(1.05); /* Efect fin de mărire la hover */
}
/* --- Efect de logo negru la hover, aplicat STRICT DOAR pe clasa .dark-logo-hover --- */
.partner-card.dark-logo-hover:hover img {
    filter: brightness(0);
}

/* Adaptare pe telefoane */
@media (max-width: 768px) {
    .partners-grid {
        gap: 12px;
    }
    
    .partner-card {
        padding: 12px 18px;
        min-width: 110px;
        height: 68px;
        flex: 1 1 calc(50% - 12px); /* Câte 2 logo-uri pe rând pe mobil */
        max-width: calc(50% - 12px);
    }
    
    .partner-card img {
        max-height: 32px;
        max-width: 90px;
    }
}
/* --- Card WhatsApp & Radio Chips Responsive --- */
.whatsapp-builder-card {
    background: var(--bg-surface, #0E1526);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 28px 20px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.whatsapp-builder-card h3 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    margin-bottom: 8px;
    font-size: 20px;
}

.whatsapp-builder-card p {
    color: var(--text-secondary, #94A3B8);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

#waBuilderForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group label {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-main, #060913);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    color: #FFFFFF;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: var(--primary, #00A3FF);
}

/* Grilă elastică de opțiuni (Chips) */
.services-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.chip-item {
    cursor: pointer;
    margin: 0;
}

.chip-item input[type="radio"] {
    display: none; /* Ascundem butonul radio nativ */
}

.chip-item span {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bg-main, #060913);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
    border-radius: 20px;
    color: var(--text-secondary, #94A3B8);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    user-select: none;
}

/* Stil când o opțiune este selectată */
.chip-item input[type="radio"]:checked + span {
    background: rgba(0, 163, 255, 0.15);
    border-color: var(--primary, #00A3FF);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.3);
}

.chip-item:hover span {
    border-color: var(--primary, #00A3FF);
    color: #FFFFFF;
}

/* Buton WhatsApp Verde */
.btn-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 6px;
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
/* --- Stiluri Responsives pentru Pagina de Contact --- */
.contact-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
  align-items: start;
}

.contact-form-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-side input,
.contact-form-side textarea {
  padding: 14px;
  background: var(--bg-main, #060913);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  color: #fff;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
}

.contact-form-side input:focus,
.contact-form-side textarea:focus {
  border-color: var(--primary, #00A3FF);
  outline: none;
}

.contact-footer-box {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Media query dedicat pentru mobil și tablete (sub 992px) */
@media (max-width: 992px) {
  .contact-grid-wrapper {
    grid-template-columns: 1fr; /* Transformă din 2 coloane în 1 singură coloană pe mobil */
    gap: 40px;
  }
  
  .contact-footer-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-footer-box .btn-cta {
    width: 100%;
    justify-content: center;
  }
}
/* --- Variabile Teme (Light / Dark) --- */
:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --card-bg: #f8f9fa;
  --footer-bg: #111111;
  --footer-text: #ffffff;
  --accent-color: #007bff;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --card-bg: #1e1e1e;
  --footer-bg: #0a0a0a;
  --footer-text: #e0e0e0;
}

/* Aplicare stiluri globale bazate pe temă */
body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* --- Stil Buton Toggle Day/Night --- */
.theme-toggle-btn {
  background: transparent;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Afișare iconiță în funcție de temă */
[data-theme="dark"] .sun-icon {
  display: inline-block;
  color: #f1c40f;
}
[data-theme="dark"] .moon-icon {
  display: none;
}

.sun-icon {
  display: none;
}
.moon-icon {
  display: inline-block;
  color: #f39c12;
}

/* --- Stil Iconițe Footer --- */
.footer-socials {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--footer-text);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.brand-logo span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-dropdown {
  position: relative;
}

/* Dropdown Desktop (În jos, la hover) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  list-style: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
  width: 100%;
}

.dropdown-item a, .dropdown-menu a {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 8px;
  text-align: left;
}

.dropdown-item a:hover, .dropdown-menu a:hover {
  background: rgba(0, 163, 255, 0.08);
  color: var(--primary);
}

/* Control afișare buton Solicită Ofertă pe desktop */
.desktop-only {
  display: inline-flex;
}

/* Buton Hamburger Mobil */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.mobile-toggle-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-toggle-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.btn-cta {
  background: linear-gradient(135deg, #00A3FF 0%, #0066FF 100%);
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  padding: 12px 26px;
  border-radius: 30px;
  box-shadow: 0 4px 20px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 163, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(0, 163, 255, 0.05);
}

/* Hero Section cu spațiu corect pentru header fix */
.hero-section {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.15) 0%, rgba(6, 9, 19, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 163, 255, 0.1);
  border: 1px solid rgba(0, 163, 255, 0.25);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  position: relative;
}

.hero-card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-teal));
  border-radius: 20px 20px 0 0;
}

/* Services Grid */
.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-label {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  background: var(--bg-surface-hover);
  box-shadow: 0 20px 40px rgba(0, 163, 255, 0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 163, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--primary);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  gap: 10px;
}

/* Public Sector Box */
.seap-box {
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(0, 163, 255, 0.1), rgba(0, 229, 163, 0.05));
  border: 1px solid var(--border-active);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.seap-info h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.seap-info p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 750px;
}

/* --- Stiluri Carusel Infinit Marquee pentru Parteneri --- */
.partners-marquee-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    padding: 10px 0;
}

.partners-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Dimensiuni standard pentru Desktop */
.partners-marquee-wrapper .partner-card {
    width: 170px;
    height: 85px;
    background: var(--bg-surface, #0E1526);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.partners-marquee-wrapper .partner-card img {
    max-height: 38px;
    max-width: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Stiluri hover */
.partners-marquee-wrapper .partner-card:hover {
    border-color: var(--primary, #00A3FF);
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.partners-marquee-wrapper .partner-card:hover img {
    transform: scale(1.05);
}

.partners-marquee-wrapper .partner-card.dark-logo-hover:hover img {
    filter: brightness(0);
}
/* --- Optimizare Mobil pentru Caruselul de Parteneri --- */
@media (max-width: 768px) {
    .partners-marquee-wrapper {
        padding: 5px 0;
    }

    .partners-marquee-wrapper .partner-card {
        width: 95px !important;       /* Lățime mică, perfectă pentru telefon */
        height: 48px !important;      /* Înălțime redusă considerabil */
        padding: 6px 10px !important;
        border-radius: 8px !important;
        border-width: 1px;
    }

    .partners-marquee-wrapper .partner-card img {
        max-height: 22px !important;   /* Logo mult mai mic, încadrat perfect */
        max-width: 70px !important;
    }

    .partners-track {
        gap: 8px !important;          /* Spațiere strânsă între ele */
    }
}


/* ==========================================================================
   Control și Ajustare Globală a Dimensiunilor pe Dispozitive Mobile
   ========================================================================== */

@media (max-width: 768px) {
    /* Ajustează valorile de mai jos după bunul plac */
    

    h3 {
        font-size: 19px !important;
        line-height: 1.4 !important;
    }

    h4 {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    h5 {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    h6 {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    p {
        font-size: 14px !important; /* Dimensiunea textului obișnuit pe mobil */
        line-height: 1.6 !important;
    }
}

/* Pe ecrane mici (telefoane mobile), forțăm o singură coloană și eliminăm problemele de lățime */
@media (max-width: 768px) {
    div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        margin: 20px 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* Asigurăm că fiecare card ocupă exact lățimea ecranului pe mobil */
    div[style*="grid-template-columns"] > div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* ==========================================================================
   Optimizare Mobil (Carduri mai compacte, perfect scalate)
   ========================================================================== */
@media (max-width: 768px) {
    .partners-marquee-wrapper .partner-card {
        width: 125px;       /* Redus ca lățime să încapă mai multe pe ecran mic */
        height: 65px;       /* Înălțime mai compactă */
        padding: 8px 12px;
        border-radius: 10px;
    }

    .partners-marquee-wrapper .partner-card img {
        max-height: 28px;   /* Logo-urile se micșorează proporțional */
        max-width: 85px;
    }

    .partners-track {
        gap: 12px;          /* Spațiere mai mică între ele pe telefon */
        animation-duration: 25s; /* Un ritm puțin mai fluid pe mobil */
    }
}
/* Partners Section */
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.partner-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 20px 36px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.partner-card:hover {
  color: var(--text-primary);
  border-color: var(--primary);
}

/* Inner Page Layout cu padding corect împotriva suprapunerii de header */
.page-hero {
  padding: 160px 0 60px;
  background: linear-gradient(318deg, rgb(6 9 19 / 40%) 0%, rgb(6 9 19 / 85%) 100%), 
                url('/upload/Digitaldevit-Acasa.png') center center / cover no-repeat;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 700px;
  margin: 0 auto;
}

.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px;
  margin: 50px 0;
}

.content-card h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text-primary);
}

.content-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.content-card ul {
  margin: 0 0 24px 24px;
  color: var(--text-secondary);
}

.content-card li {
  margin-bottom: 10px;
}

/* Footer */
footer.site-footer {
  background: #03050B;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* --- Scroll to top button (Modern, Colorat, Dreapta-Jos) --- */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  left: auto;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #00A3FF 0%, #00E5A3 100%);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 25px rgba(0, 163, 255, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-5px) scale(1.08);
  background: linear-gradient(135deg, #00F0FF 0%, #00A3FF 100%);
  box-shadow: 0 12px 30px rgba(0, 229, 163, 0.6);
}

/* GDPR Banner Styling */
.gdpr-banner {
  position: fixed;
  bottom: -200px;
  left: 20px;
  right: 20px;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(14, 21, 38, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-active);
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gdpr-banner.show {
  bottom: 24px;
}

.gdpr-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.gdpr-text strong {
  display: block;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.gdpr-text p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  max-width: 720px;
}

.gdpr-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-gdpr {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-gdpr-accept {
  background: linear-gradient(135deg, #00A3FF, #0066FF);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-gdpr-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 163, 255, 0.5);
}

.btn-gdpr-deny {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-gdpr-deny:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* ==========================================================================
   MEDIA QUERIES (MOBILE & TABLET RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
  /* Ascundere buton Solicită Ofertă pe mobil */
  .desktop-only {
    display: none !important;
  }

  /* Afișare buton toggle hamburger */
  .mobile-toggle-btn {
    display: flex;
  }

  /* Meniu glisant pe mobil */
  .nav-menu {
    position: fixed;
    top: 84px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 84px);
    background: var(--bg-surface, #0E1526);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
  }

  /* Pe mobil, dropdown-ul se deschide la click folosind clasa .open gestionată prin JS */
  .nav-dropdown .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    margin-top: 10px;
    width: 100%;
    padding: 10px 15px;
  }

  .nav-dropdown.open .dropdown-menu {
    display: flex;
  }

  .hero-grid { 
    grid-template-columns: 1fr; 
    text-align: center; 
  }
  
  .hero-actions { 
    justify-content: center; 
  }
  
  .services-grid { 
    grid-template-columns: 1fr; 
  }
  
  .seap-box { 
    flex-direction: column; 
    text-align: center; 
  }
  
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 36px;
    text-align: left;
  }

  .footer-col h4 {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(0, 163, 255, 0.3);
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero-section {
    padding: 130px 0 60px;
  }

  .hero-title {
    font-size: 34px;
  }

  .gdpr-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .gdpr-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 70px;
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .brand-logo {
    font-size: 22px;
  }

  .hero-title {
    font-size: 28px;
  }

  .btn-cta, .btn-outline {
    width: 100%;
  }

  .gdpr-banner {
    left: 10px;
    right: 10px;
    padding: 16px;
  }

  .gdpr-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-gdpr {
    width: 100%;
    text-align: center;
  }
}

/* --- Stiluri Fereastră Modală Modernă --- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-box {
    background: var(--bg-surface, #0E1526);
    border: 1px solid var(--border-active, rgba(0, 163, 255, 0.4));
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.custom-modal-box h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary, #FFFFFF);
    margin-bottom: 12px;
}

.custom-modal-box p {
    color: var(--text-secondary, #94A3B8);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.custom-modal-box .btn-cta {
    width: 100%;
    justify-content: center;
}
/* ==========================================================================
   Optimizare Dimensiuni Titluri (H1, H2, H3) pe Mobil și Tabletă
   ========================================================================== */

@media (max-width: 992px) {
    h1, .hero-title {
        font-size: 28px !important;
    }
    h2, .section-title {
        font-size: 18px !important;
    }
    h3 {
        font-size: 18px !important;
    }
}

@media (max-width: 768px) {
    h1, .hero-title {
        font-size: 28px !important;
    }
    h2, .section-title {
        font-size: 18px !important;
    }
    h3 {
        font-size: 17px !important;
    }
    .page-hero h1 {
        font-size: 30px !important;
    }
}

@media (max-width: 480px) {
    h1, .hero-title {
        font-size: 17px !important;
        line-height: 1.2 !important;
    }
    h2, .section-title {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    h3 {
        font-size: 12px !important;
    }
    .page-hero h1 {
        font-size: 18px !important;
    }
}
/* --- Stiluri Tabel Comparativ (Desktop & Mobil) --- */
.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    border: 1px solid var(--border-subtle);
    text-align: left;
    font-size: 15px;
}

.comparison-table thead tr {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.comparison-table th.highlight-col,
.comparison-table td.highlight-cell {
    color: var(--accent, #00F0FF);
    font-weight: 600;
    background: rgba(0, 163, 255, 0.04);
}

/* ==========================================================================
   Transformare Superbă în Carduri pe Mobil (Sub 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .comparison-table, 
    .comparison-table tbody, 
    .comparison-table tr, 
    .comparison-table td {
        display: block;
        width: 100%;
    }

    .comparison-table thead {
        display: none; /* Ascundem antetul clasic de tabel pe mobil */
    }

    .comparison-table tr {
        background: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        margin-bottom: 16px;
        padding: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .comparison-table td {
        border: none !important;
        padding: 8px 0 !important;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    /* Generăm etichete automate pentru fiecare rând pe baza atributului data-label */
    .comparison-table td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted, #64748B);
    }

    /* Stilizăm primul rând (Criteriul) să arate ca titlul cardului */
    .comparison-table td:nth-child(1) {
        font-size: 17px;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-subtle) !important;
        padding-bottom: 12px !important;
        margin-bottom: 8px;
    }
    .comparison-table td:nth-child(1)::before {
        display: none; /* Ascundem eticheta pentru titlul principal al cardului */
    }

    /* Evidențiem vizual partea de abonament DigitalDevIT pe mobil */
    .comparison-table td:nth-child(3) {
        background: rgba(0, 163, 255, 0.08);
        border-radius: 8px;
        padding: 10px 12px !important;
        margin-top: 6px;
        border: 1px solid rgba(0, 163, 255, 0.2) !important;
    }
    
    .comparison-table td:nth-child(3)::before {
        color: var(--primary, #00A3FF);
    }
}
/* --- Secțiunea Hero cu Imagine de Fundal IT & Adaptare Mobil --- */
.hero-section {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
    /* Folosim center / cover și o poziționare stabilă pentru desktop */
    background: linear-gradient(318deg, rgb(6 9 19 / 20%) 0%, rgb(6 9 19 / 75%) 100%), 
                url('/upload/Digitaldevit-Acasa.png') center center / cover no-repeat;
}

/* Adaptare dedicată pentru tablete și telefoane */
@media (max-width: 992px) {
    .hero-section {
        padding: 130px 0 60px;
        /* Pe mobil ancorăm imaginea mai spre partea superioară sau centrul ei dinamic */
        background-position: top center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 110px 0 40px;
        /* Asigură-te că imaginea își păstrează proporțiile pe ecrane foarte înguste */
        background-size: cover;
        background-position: 50% 30%;
    }
}