/* ==========================================================================
   DESIGN SYSTEM - CYBER-TECH DARK & NEON TURQUOISE
   Brand: Web Development, Digital Marketing & Email Marketing
   Founder: Gheorghe Andrei Mihai | Phone: 0733166339
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Variables & Root Settings
   -------------------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-main: #1a1a1a;
  --bg-surface: #282828;
  --bg-surface-hover: #333333;

  /* Accents */
  --accent-neon: #00f5d4;
  --accent-glow: rgba(0, 245, 212, 0.25);
  --accent-glow-strong: rgba(0, 245, 212, 0.5);
  --accent-glow-soft: rgba(0, 245, 212, 0.08);

  /* Typography */
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-dark: #1a1a1a;

  /* UI Borders & Radii */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 245, 212, 0.4);
  --border-hover: rgba(0, 245, 212, 0.7);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Layout & Spacing */
  --container-max: 1320px;
  --header-height: 80px;
  --touch-target-min: 44px;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-neon-sm: 0 0 15px rgba(0, 245, 212, 0.15);
  --shadow-neon-md: 0 0 25px rgba(0, 245, 212, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   2. Reset & General Typography Rules
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-main);
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: transparent;
}

button {
  cursor: pointer;
}

/* Fluid Typography */
h1, .h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
}

h4, .h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p, .p-large {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.text-neon {
  color: var(--accent-neon);
}

.bg-neon {
  background-color: var(--accent-neon);
}

/* --------------------------------------------------------------------------
   3. Layout Grid & Containment
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section-padding {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   4. UI Components: Buttons, Cards, Badges, Accordions
   -------------------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  min-height: var(--touch-target-min);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-neon);
  color: var(--text-dark) !important;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-neon);
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-neon) !important;
  border: 1.5px solid var(--accent-neon);
}

.btn-secondary:hover {
  background-color: var(--accent-glow-soft);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon-sm), var(--shadow-card);
}

.card-header-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 245, 212, 0.1);
  color: var(--accent-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 245, 212, 0.2);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.badge-neon {
  background-color: rgba(0, 245, 212, 0.1);
  border-color: var(--border-accent);
  color: var(--accent-neon);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-neon);
  box-shadow: 0 0 10px var(--accent-neon);
}

/* --------------------------------------------------------------------------
   5. Header & Navigation (Responsive Navbar)
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent-neon);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-neon);
  box-shadow: 0 0 8px var(--accent-neon);
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  z-index: 1100;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
}

/* Mobile Drawer Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-accent);
  z-index: 1050;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: right var(--transition-normal);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
}

.mobile-nav.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 992px) {
  .nav-desktop { display: flex; }
  .hamburger-btn { display: none; }
  .mobile-nav { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero Sections & Mockups
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(26, 26, 26, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* Realistic Cyber-Tech Window Mockup */
.mockup-window {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), var(--shadow-neon-sm);
  overflow: hidden;
}

.mockup-header {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
}

.mockup-dot.active {
  background-color: var(--accent-neon);
  box-shadow: 0 0 6px var(--accent-neon);
}

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.mockup-body {
  padding: 1.5rem;
  font-family: 'Fira Code', monospace, sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. Specific Feature Grids, Methodologies & Accordions
   -------------------------------------------------------------------------- */
.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-neon);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Accordion */
.accordion-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item:hover {
  border-color: var(--border-accent);
}

.accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.accordion-icon {
  color: var(--accent-neon);
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.5rem;
}

.accordion-item.active .accordion-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 300px;
}

/* --------------------------------------------------------------------------
   8. Interactive Modals & Calculator
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-neon-md);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.5rem;
}

.modal-close:hover {
  color: var(--accent-neon);
}

/* AI Modal Desktop & Mobile Grid */
.ai-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.25rem !important;
  margin-bottom: 1.75rem !important;
  text-align: left !important;
}

@media (max-width: 640px) {
  .ai-modal-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    margin-bottom: 1.25rem !important;
  }
  .modal-content {
    padding: 1.5rem 1.25rem !important;
    max-height: 88vh !important;
    border-radius: 14px !important;
  }
  .modal-close {
    top: 0.75rem !important;
    right: 0.75rem !important;
    font-size: 1.75rem !important;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-neon);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

/* --------------------------------------------------------------------------
   9. Footer & Quick Contact Bar
   -------------------------------------------------------------------------- */
.footer {
  background-color: #121212;
  border-top: 1px solid var(--border-subtle);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Icon Utilities */
.icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.125em;
  fill: currentColor;
}
