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

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --dark: #0f0d2e;
  --dark-2: #1e1b4b;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ===== Typography ===== */
h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--dark-2); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .3s ease;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all .3s ease;
}

.header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  padding: 10px 0;
}

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

.logo { height: 38px; }
.header.scrolled .logo { height: 34px; }

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

.nav a {
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.nav a:hover { color: var(--white); }

.header.scrolled .nav a { color: var(--gray-600); }
.header.scrolled .nav a:hover { color: var(--primary); }

.nav-cta {
  padding: 10px 24px !important;
  background: var(--gradient) !important;
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600 !important;
}

.mobile-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,13,46,.88), rgba(6,182,212,.35));
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-content { max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 { color: var(--white); margin-bottom: 24px; }

.hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.hero-stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}

/* ===== Sections ===== */
section { padding: 100px 0; }

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(99,102,241,.08);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body { padding: 28px; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.3rem;
}

.service-card h3 { margin-bottom: 12px; }

.service-card p {
  color: var(--gray-600);
  font-size: .95rem;
}

/* ===== About / Why Us ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

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

.features-list { display: flex; flex-direction: column; gap: 20px; }

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99,102,241,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.feature-item h4 {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark-2);
}

.feature-item p {
  font-size: .9rem;
  color: var(--gray-600);
}

/* ===== Numbers / Stats ===== */
.stats-section {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item-number {
  font-size: 2.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-item-label {
  font-size: .95rem;
  color: var(--gray-400);
}

/* ===== Team ===== */
.team-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.team-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.team-content h2 { margin-bottom: 20px; }

.team-content > p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.team-values { display: flex; flex-direction: column; gap: 16px; }

.value-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--gray-100);
  border-radius: 12px;
  font-weight: 500;
  color: var(--dark-2);
  font-size: .95rem;
}

.value-tag span { font-size: 1.2rem; }

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

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

.contact-info h2 { margin-bottom: 16px; }

.contact-info > p {
  color: var(--gray-600);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.contact-details { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  margin-bottom: 2px;
  color: var(--dark-2);
}

.contact-item-text span {
  color: var(--gray-600);
  font-size: .95rem;
}

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

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.1);
}

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

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

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-logo {
  height: 34px;
  filter: brightness(0) invert(1);
}

.footer h4 {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 20px;
}

.footer ul { list-style: none; }

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

.footer ul a {
  font-size: .9rem;
  transition: color .2s;
}
.footer ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}


/* ===== Success Popup ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 13, 46, 0);
  backdrop-filter: blur(0);
  pointer-events: none;
  transition: background .4s ease, backdrop-filter .4s ease;
}

.popup-overlay.active {
  background: rgba(15, 13, 46, .45);
  backdrop-filter: blur(8px);
  pointer-events: all;
}

.popup {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
  transform: scale(.85) translateY(30px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .35s ease;
}

.popup-overlay.active .popup {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.popup-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.popup-icon svg {
  width: 100%;
  height: 100%;
}

.popup-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  fill: none;
}

.popup-overlay.active .popup-circle {
  animation: circleDraw .6s .3s ease forwards;
}

@keyframes circleDraw {
  to { stroke-dashoffset: 0; }
}

.popup-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  fill: none;
}

.popup-overlay.active .popup-check {
  animation: checkDraw .4s .7s ease forwards;
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.popup-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--dark-2);
}

.popup-text {
  color: var(--gray-600);
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.popup-close {
  min-width: 160px;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about-grid,
  .team-showcase,
  .contact-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: .2s;
  }
  .header.scrolled .mobile-toggle span { background: var(--dark-2); }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .nav.open a { color: var(--gray-800) !important; }
  .hero-stats { gap: 24px; }
  .hero h1 { font-size: 2rem; }
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
