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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1f2937;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 1000;
  height: 64px;
}

.navbar .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.logo svg {
  width: 32px;
  height: 32px;
  color: #4f46e5;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.5rem;
  transition: all 0.15s;
}

.nav-item > a:hover {
  color: #4f46e5;
  background: #eef2ff;
}

.nav-item > a .chevron-down {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.nav-item:hover > a .chevron-down {
  transform: rotate(180deg);
}

/* Dropdown Level 1 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 100;
}

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

.dropdown-menu {
  min-width: 14rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid #f3f4f6;
  padding: 0.5rem 0;
}

.dropdown-item {
  position: relative;
}

.dropdown-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.15s;
}

.dropdown-item > a:hover {
  background: #eef2ff;
  color: #4338ca;
}

.dropdown-item > a .chevron-right {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

/* Dropdown Level 2+ (submenu) */
.dropdown-item > .dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  padding-top: 0;
  padding-left: 0.25rem;
}

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

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #4f46e5;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cta:hover {
  background: #4338ca;
}

.btn-cta svg {
  width: 16px;
  height: 16px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #374151;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  overflow-y: auto;
  padding: 1rem 1.5rem 2rem;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-item > a .chevron-down {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
  color: #9ca3af;
}

.mobile-nav-item.open > a .chevron-down {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  padding-left: 1rem;
}

.mobile-nav-item.open > .mobile-submenu {
  display: block;
}

.mobile-submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.mobile-submenu a:hover {
  color: #4f46e5;
}

.mobile-submenu .mobile-nav-item {
  padding-left: 0;
}

.mobile-submenu .mobile-nav-item > a {
  font-weight: 400;
  font-size: 0.875rem;
  color: #6b7280;
  border-bottom: none;
}

.mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.75rem;
  background: #4f46e5;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30, 27, 75, 0.92), rgba(67, 56, 202, 0.72));
}

.hero .container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 1.5rem 8rem;
}

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

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.hero h1 span {
  color: #a5b4fc;
}

.hero p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: #c7d2fe;
  line-height: 1.7;
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #fff;
  color: #4338ca;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #eef2ff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 1.5rem;
}

.section .container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #6b7280;
}

.bg-gray {
  background: #f9fafb;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: #c7d2fe;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: #4f46e5;
  color: #fff;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.service-card p {
  margin-top: 0.75rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.about-text > p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.7;
}

.stats {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.stat-number {
  width: 4rem;
  height: 4rem;
  background: #eef2ff;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #4f46e5;
  flex-shrink: 0;
}

.stat span:last-child {
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  object-fit: cover;
  aspect-ratio: 1;
}

.experience-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: #4f46e5;
  color: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(79,70,229,0.3);
}

.experience-badge .number {
  font-size: 1.875rem;
  font-weight: 700;
}

.experience-badge .label {
  font-size: 0.875rem;
  color: #c7d2fe;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 5rem 1.5rem;
  background: #4f46e5;
  text-align: center;
}

.cta-section .container {
  max-width: 1280px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.cta-section p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #c7d2fe;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  margin-top: 2.5rem;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.contact-info > p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #6b7280;
}

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item .icon {
  width: 3rem;
  height: 3rem;
  background: #eef2ff;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item .icon svg {
  width: 24px;
  height: 24px;
  color: #4f46e5;
}

.contact-item .label {
  font-size: 0.875rem;
  color: #9ca3af;
}

.contact-item .value {
  font-weight: 500;
  color: #1f2937;
}

/* Contact Form */
.contact-form {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #1f2937;
  font-family: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

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

.btn-submit {
  width: 100%;
  padding: 0.875rem;
  background: #4f46e5;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #4338ca;
}

/* ===== FOOTER ===== */
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 4rem 1.5rem;
}

.footer .container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo span {
  color: #fff;
}

.footer-brand .logo svg {
  color: #818cf8;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: #9ca3af;
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1f2937;
  text-align: center;
  font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links,
  .navbar .btn-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .container {
    padding: 5rem 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }

  .hero .container {
    padding: 11rem 1.5rem;
  }

  .section {
    padding: 7rem 1.5rem;
  }
}
