/* ========================================================
   Cloud 9 — Styles
   ======================================================== */

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

:root {
  --primary: #0f4c81;
  --primary-light: #1a6fb5;
  --primary-dark: #0a3560;
  --accent: #00c2ff;
  --accent-glow: rgba(0, 194, 255, 0.25);
  --dark: #0b1120;
  --dark-card: #111827;
  --dark-surface: #1a2236;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --white: #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.3s ease;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}
.btn-primary:hover {
  background: #33cfff;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 128px;
  transition: var(--transition);
}

#navbar.scrolled .nav-logo img {
  height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--accent);
  color: var(--dark) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-nav::after {
  display: none !important;
}
.btn-nav:hover {
  background: #33cfff;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ---------- Mega Dropdown ---------- */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-trigger i {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-trigger i,
.nav-dropdown.open .dropdown-trigger i {
  transform: rotate(180deg);
}

.mega-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 720px;
  background: rgba(11, 17, 32, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 194, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.mega-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .mega-dropdown,
.nav-dropdown.open .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-col h4 i {
  font-size: 0.8rem;
}

.mega-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  padding: 4px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: block;
}

.mega-col ul li a::after {
  display: none !important;
}

.mega-col ul li a:hover {
  color: var(--white);
  padding-left: 6px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, #0a1628 100%);
  overflow: hidden;
}

/* Animated grid background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 194, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, var(--accent-glow) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.hero-scroll a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Section Shared ---------- */
section {
  padding: 100px 0;
}

/* ---------- Tech Logo Ticker ---------- */
.ticker-wrap {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0 24px;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: tickerScroll 60s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.ticker-item:hover {
  opacity: 1;
}

.ticker-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.ticker-item:hover img {
  filter: none;
}

.ticker-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.tag {
  display: inline-block;
  background: rgba(0, 194, 255, 0.1);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- About ---------- */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ---------- Services ---------- */
#services {
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.12), rgba(15, 76, 129, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.service-card .tech-detail {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-200);
  line-height: 1.6;
  font-style: italic;
}

/* ---------- Our Promise ---------- */
#promise {
  background: linear-gradient(135deg, #0a1628 0%, #0f2440 50%, #0a1628 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#promise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 194, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

#promise .section-header h2 {
  color: var(--white);
}

#promise .section-sub {
  color: var(--gray-400);
}

#promise .tag {
  background: rgba(0, 194, 255, 0.15);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.promise-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(0, 194, 255, 0.12);
  transition: var(--transition);
  position: relative;
}

.promise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: var(--transition);
}

.promise-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 194, 255, 0.3);
  transform: translateY(-4px);
}

.promise-card:hover::before {
  opacity: 1;
}

.promise-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 194, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.promise-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.promise-card p {
  font-size: 0.95rem;
  color: var(--gray-300);
  line-height: 1.7;
}

/* ---------- Why Us ---------- */
#why-us {
  background: var(--dark);
  color: var(--white);
}

#why-us .section-header h2 {
  color: var(--white);
}

#why-us .tag {
  background: rgba(0, 194, 255, 0.15);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}

.why-card {
  background: var(--dark-surface);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}
.why-card:hover {
  border-color: rgba(0, 194, 255, 0.2);
  transform: translateY(-4px);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 194, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ---------- Process ---------- */
#process {
  background: var(--white);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 220px;
  padding: 0 12px;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.step p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--gray-300);
  margin-top: 32px;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
#contact {
  background: var(--gray-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
}

/* Contact info row */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.info-card i {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 2px;
}

.info-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
#footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  height: 44px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.7;
}

.footer-links h4,
.footer-services h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links a,
.footer-services a {
  display: block;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-links a:hover,
.footer-services a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-disclaimer {
  max-width: 760px;
  margin: 12px auto 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.3);
}

/* ========================================================
   Responsive
   ======================================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  /* Navbar mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.1rem; }

  /* Mega dropdown mobile */
  .nav-dropdown { width: 100%; }
  .mega-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s, padding 0.3s;
    padding: 0 16px;
  }
  .mega-dropdown::before { display: none; }
  .nav-dropdown.open .mega-dropdown {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 16px;
    transform: none;
  }
  .nav-dropdown:hover .mega-dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    padding: 0 16px;
  }
  .nav-dropdown.open:hover .mega-dropdown {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 16px;
  }

  /* Hero */
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Stats */
  .about-stats { flex-direction: column; gap: 20px; align-items: flex-start; }

  /* Process */
  .process-steps { flex-direction: column; align-items: center; }
  .step-line { width: 2px; height: 40px; margin: 0; }

  /* Contact */
  .contact-info { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Animations (reveal on scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 40px;
}
.form-success i {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 16px;
}
.form-success h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-success p {
  color: var(--gray-600);
}
