/* ==========================================================================
   AIRBRUSH TECH - MASTER STYLESHEET (CONVERTA REPLICATION)
   Domain: airbrushtechnology.org
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Grotesk:wght@300..700&display=swap');

/* --- Root Design System Tokens --- */
:root {
  --primary: #4C6FFF;
  --primary-hover: #3A5CE0;
  --primary-light: #EEF2FF;
  --secondary: #321370;
  --secondary-hover: #250D57;
  --accent-pink: #FFC0EC;
  --accent-cyan: #00D2FF;
  --accent-amber: #FFB800;
  
  --bg-dark: #12022F;
  --bg-dark-alt: #1B0642;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;

  --text-heading: #2D3958;
  --text-body: #7B88A8;
  --text-light: #FFFFFF;
  --text-muted: #94A3B8;
  
  --border-color: #E7E5EA;
  --border-light: #F1F5F9;
  --border-dark: #2A1754;

  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'DM Sans', sans-serif;
  --font-code: 'Space Grotesk', monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(45, 57, 88, 0.08);
  --shadow-lg: 0 16px 40px rgba(18, 2, 47, 0.12);
  --shadow-glow: 0 10px 30px rgba(76, 111, 255, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-width: 1200px;
}

/* --- Reset & Global --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-hover);
}

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1, .h1 {
  font-size: 3.25rem;
  letter-spacing: -2px;
  line-height: 1.15;
}

h2, .h2 {
  font-size: 2.25rem;
  letter-spacing: -1px;
}

h3, .h3 {
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

h4, .h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-white { color: var(--text-light) !important; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }

/* --- Dynamic Typing Cursor --- */
.cl-write-effect {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 2px;
  position: relative;
}

.cl-write-effect::after {
  content: '|';
  position: absolute;
  right: -8px;
  animation: blink 0.75s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-sm {
  padding: 3.5rem 0;
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--text-light);
}

.bg-dark p {
  color: var(--text-muted);
}

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

.bg-alt {
  background-color: var(--secondary);
  color: var(--text-light);
}

/* --- Grid Systems --- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.header.transparent {
  background: transparent;
}

.header.scrolled {
  background: rgba(18, 2, 47, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.85rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-light-mode.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-light-mode .nav-link {
  color: var(--text-heading);
}

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

.nav-item {
  position: relative;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1100;
  border: 1px solid var(--border-light);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  color: var(--text-heading);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.badge-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

.badge-hot { background: #FFE5E5; color: #FF4D4D; }
.badge-new { background: #E6F9F0; color: #00C853; }

/* Header Tools / Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.header-light-mode .icon-btn {
  background: var(--bg-light);
  color: var(--text-heading);
}

.icon-btn:hover {
  background: var(--primary);
  color: var(--text-light);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

.header-light-mode .mobile-toggle {
  color: var(--text-heading);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  color: var(--text-light);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-light);
}

.header-light-mode .btn-outline, .bg-light .btn-outline {
  border-color: var(--border-color);
  color: var(--text-heading);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--text-light);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* --- Hero Banner Section --- */
.hero {
  padding: 10rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

/* Floating Hero Graphic Box */
.hero-graphic-box {
  margin-top: 4rem;
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

/* --- Feature Cards & Service Blocks --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(76, 111, 255, 0.3);
}

.bg-dark .card {
  background: var(--bg-dark-alt);
  border-color: var(--border-dark);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* --- Stats & Counter Section --- */
.stat-box {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-code);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
}

.bg-dark .stat-label {
  color: var(--text-light);
}

/* --- Pricing Cards & Matrix --- */
.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 2rem;
  background: var(--primary);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  margin: 1.5rem 0 0.5rem 0;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-body);
}

.pricing-features {
  margin: 2rem 0;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.pricing-features li {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- Toggle Switch --- */
.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* --- Accordion FAQ --- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-body);
  display: none;
  line-height: 1.6;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-item.active .accordion-header {
  color: var(--primary);
}

/* --- Testimonials & Client Quotes --- */
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid var(--border-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.25rem;
  max-width: 300px;
  font-size: 0.95rem;
}

.footer-title {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* --- Mobile Drawer Overlay --- */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  background: var(--bg-dark);
  z-index: 2000;
  padding: 2.5rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  cursor: pointer;
}

.mobile-nav-links {
  margin-top: 3rem;
}

.mobile-nav-links li {
  margin-bottom: 1.25rem;
}

.mobile-nav-links a {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
}

.overlay-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  h1, .h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 7rem 0 4rem 0; }
  .hero-btns { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .pricing-card.featured { transform: none; }
}
