/* CSS Variables & Theme Reset */
:root {
  --bg-dark: #080a0f;
  --bg-card: #0f141c;
  --bg-card-hover: #161e2b;
  --primary: #00f2fe;
  --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --accent: #00e676;
  --primary-glow: rgba(0, 242, 254, 0.25);
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 650px;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #080a0f;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  margin-left: 16px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* HEADER & NAVIGATION */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  width: 10px;
  height: 10px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* MOBILE TOGGLE BUTTON */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* HAMBURGER TO 'X' ANIMATION */
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO SECTION */
.hero {
  padding: 180px 0 100px;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(0, 242, 254, 0.12) 0%, rgba(8, 10, 15, 1) 70%);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 40px;
}

/* SOLUTIONS / SERVICE CARDS */
.solutions {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-gradient);
  color: #080a0f;
  font-weight: 700;
  border-color: var(--primary);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.12);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: var(--primary-gradient);
  color: #080a0f;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* INDUSTRIES */
.industries {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border-color);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 10px;
}

.industry-card span {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.industry-card h4 {
  font-size: 1.2rem;
  color: #ffffff;
}

/* MARQUEE TECH STACK */
.tech-stack {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
}

.marquee-container {
  margin-top: 40px;
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
}

.marquee-track {
  display: flex;
  gap: 16px;
  animation: scroll 25s linear infinite;
  white-space: nowrap;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

/* ABOUT & QUOTE */
.about {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.quote-box {
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(15, 20, 28, 1) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 48px;
  border-radius: 16px;
  text-align: center;
}

.quote-box p {
  font-size: 1.4rem;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.5;
}

.quote-author {
  font-weight: 700;
  color: var(--primary);
}

.quote-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CONTACT SECTION & FORMS */
.contact-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.06) 0%, transparent 70%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  display: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 16px;
}

.form-status.success {
  display: block;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--accent);
}

/* FORM VALIDATION STYLING */
.form-control.invalid {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.05) !important;
}

.error-text {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.error-text.active {
  display: block;
}

/* LEGAL PAGES SPECIFIC */
.legal-content {
  padding: 160px 0 80px;
}

.legal-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 32px;
  margin-bottom: 40px;
}

.legal-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.last-updated {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 700;
}

.legal-section p, .legal-section ul {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
}

.legal-section ul {
  padding-left: 20px;
}

.legal-section li {
  margin-bottom: 8px;
}

.address-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 12px;
  margin-top: 16px;
  color: var(--text-main);
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  border-radius: 16px;
  position: relative;
}

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

/* COMMON FOOTER */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  background: #050608;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h5 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

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

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 850px) {
  .hero h1 { font-size: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .btn-secondary { margin-left: 0; margin-top: 12px; width: 100%; }
  .btn-primary { width: 100%; }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(8, 10, 15, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 16px;
    font-size: 1.1rem;
    width: 100%;
  }

  .nav-wrapper .btn-primary {
    display: none;
  }
}