*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #099cf4;
  --blue-dark: #0778c2;
  --gray: #3a3f4d;
  --gray-light: #6b7280;
  --bg-light: #f8fafc;
  --text: #1e293b;
  --white: #fff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ── */
.topbar {
  background: #0a1525;
  color: rgba(255,255,255,0.55);
  font-size: 0.73rem;
  letter-spacing: 0.03em;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-contact { display: flex; align-items: center; gap: 16px; }
.topbar-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.2s;
}
.topbar-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.topbar-link:hover { color: var(--blue); }
.topbar-sep { color: rgba(255,255,255,0.2); font-size: 0.65rem; }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social-link {
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.topbar-social-link svg { width: 13px; height: 13px; }
.topbar-social-link:hover { color: var(--blue); }
@media (max-width: 640px) { .topbar { display: none; } }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links .btn-nav {
  background: var(--blue);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-links .btn-nav:hover { background: var(--blue-dark); }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── CONTAINERS ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-alt { background: var(--bg-light); }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--gray-light);
  font-size: 1.05rem;
  max-width: 560px;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }
.tag {
  display: inline-block;
  background: rgba(9,156,244,0.1);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(9,156,244,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-dark { background: var(--gray); color: var(--white); }
.btn-dark:hover { background: #2e3240; transform: translateY(-1px); }

/* ── HERO SLIDER ── */
.hero-slider {
  position: relative;
  background: #09142a;
  color: var(--white);
  overflow: hidden;
}
/* Dot grid */
.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(9,156,244,0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
/* Drifting glow orb */
.hero-slider::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: -230px; right: -160px;
  background: radial-gradient(circle, rgba(9,156,244,0.22) 0%, transparent 58%);
  pointer-events: none;
  animation: glow-drift 10s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes glow-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 44px) scale(1.22); }
}
.slides-wrapper {
  position: relative;
  min-height: 600px;
  z-index: 1;
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 110px 80px 90px;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: all; }

/* Staggered text entrance */
.slide-text .tag,
.slide-text h1,
.slide-text p,
.slide-text .hero-btns {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0s, transform 0s;
}
.slide.active .slide-text .tag {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.55s ease 0.15s, transform 0.55s cubic-bezier(0.22,1,0.36,1) 0.15s;
}
.slide.active .slide-text h1 {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s ease 0.28s, transform 0.6s cubic-bezier(0.22,1,0.36,1) 0.28s;
}
.slide.active .slide-text p {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.55s ease 0.42s, transform 0.55s cubic-bezier(0.22,1,0.36,1) 0.42s;
}
.slide.active .slide-text .hero-btns {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.55s ease 0.56s, transform 0.55s cubic-bezier(0.22,1,0.36,1) 0.56s;
}
.slide-text {
  flex: 1 1 52%;
  max-width: 580px;
}
.slide-text .tag { display: inline-flex; margin-bottom: 20px; }
.slide-text h1 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}
.slide-text h1 span { color: var(--blue); }
.slide-text p {
  font-size: clamp(0.93rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.65);
  margin-bottom: 52px;
  font-weight: 300;
  line-height: 1.75;
  max-width: 460px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Visual panel */
.slide-visual {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0s, transform 0s;
}
.slide.active .slide-visual {
  opacity: 1; transform: translateX(0);
  transition: opacity 0.7s ease 0.2s, transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.slide-visual img {
  width: 100%;
  max-width: 420px;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(9,156,244,0.25);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05);
}


/* Progress bar */
.slider-progress {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.07);
  z-index: 3;
}
.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #099cf4, #7dcef8);
  width: 0%;
}

/* Arrow buttons */
.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.slider-arrow:hover { background: rgba(9,156,244,0.22); border-color: rgba(9,156,244,0.5); }
.slider-arrow svg { width: 18px; height: 18px; }
.slider-prev { left: 26px; }
.slider-next { right: 26px; }
@media (max-width: 900px) {
  .slide { padding: 100px 36px 80px; gap: 24px; }
  .slide-visual { flex: 0 0 260px; }
}
@media (max-width: 680px) {
  .slider-arrow { display: none; }
  .slide { flex-direction: column; padding: 86px 24px 80px; gap: 24px; text-align: center; }
  .slides-wrapper { min-height: 700px; }
  .slide-visual { flex: 0 0 auto; width: 100%; }
  .slide-visual img { max-width: 100%; height: 200px; }
  .slide-text .tag { justify-content: center; }
  .hero-btns { justify-content: center; }
  .slide-text p { max-width: 100%; }
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: linear-gradient(135deg, #0d1b2e 0%, #0f2545 100%);
  color: var(--white);
  padding: 80px 24px 70px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.page-header p { color: rgba(255,255,255,0.65); font-size: 1.05rem; }

/* ── ABOUT SECTION ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p { color: var(--gray-light); margin-bottom: 16px; font-size: 1rem; }
.about-stats { display: flex; gap: 32px; margin-top: 32px; }
.stat strong { display: block; font-size: 2rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat span { font-size: 0.85rem; color: var(--gray-light); }
.about-img {
  background: linear-gradient(135deg, #099cf4 0%, #0778c2 100%);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  color: white;
}
.about-img-icon { font-size: 5rem; margin-bottom: 16px; opacity: 0.9; }
.about-img h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.about-img p { opacity: 0.85; font-size: 0.95rem; }

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 30px;
  border: 1px solid #e8edf4;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform 0.25s;
  transform-origin: bottom;
}
.service-card:hover { box-shadow: 0 12px 40px rgba(9,156,244,0.12); transform: translateY(-3px); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 58px; height: 58px; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray); margin-bottom: 10px; }
.service-card p { color: var(--gray-light); font-size: 0.93rem; line-height: 1.7; }

/* ── PROJECTS GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8edf4;
  transition: all 0.25s;
}
.project-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-3px); }
.project-thumb {
  height: 210px;
  overflow: hidden;
  position: relative;
  background: #f0f4f8;
}
/* Browser chrome bar */
.project-thumb::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 24px;
  background: #e4eaf2;
  border-bottom: 1px solid #d1d9e6;
  z-index: 1;
}
/* Three window dots */
.project-thumb::after {
  content: '';
  position: absolute;
  top: 8px; left: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 14px 0 0 #fbbf24, 28px 0 0 #4ade80;
  z-index: 2;
}
.project-thumb img {
  width: 100%;
  height: calc(100% - 24px);
  margin-top: 24px;
  object-fit: contain;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.03); }
.project-body { padding: 24px; }
.project-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.project-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray); margin-bottom: 6px; }
.project-body p { font-size: 0.88rem; color: var(--gray-light); margin-bottom: 18px; }
.project-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.project-link:hover { text-decoration: underline; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, #099cf4 0%, #0778c2 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 12px; }
.cta-banner p { opacity: 0.85; margin-bottom: 32px; font-size: 1.05rem; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--gray); margin-bottom: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(9,156,244,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray); margin-bottom: 2px; }
.contact-item-text span { font-size: 0.92rem; color: var(--gray-light); }
.contact-item-text a { color: var(--blue); text-decoration: none; }
.contact-item-text a:hover { text-decoration: underline; }

/* ── FORM ── */
.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: 1px solid #e8edf4;
}
.contact-form-wrap h3 { font-size: 1.3rem; font-weight: 700; color: var(--gray); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #dde3ec;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(9,156,244,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }
.recaptcha-note {
  background: var(--bg-light);
  border: 1.5px dashed #dde3ec;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--gray-light);
  margin-bottom: 18px;
  text-align: center;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
}
.form-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 18px;
  display: none;
}
.form-status.success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.form-status.error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* ── FOOTER ── */
footer {
  background: #0d1b2e;
  color: rgba(255,255,255,0.65);
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.footer-logo img { height: 32px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 20px 24px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid #f1f5f9; padding: 10px 0; }
  .nav-links li:last-child { border: none; }
  .nav-links .btn-nav { margin-top: 8px; text-align: center; }
  nav { position: sticky; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .hero { padding: 90px 24px 80px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .about-stats { flex-wrap: wrap; gap: 20px; }
  footer { padding: 36px 24px 20px; }
  .projects-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-thumb { height: 220px; }
  .project-body { padding: 18px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
}
