/* --------------------------
   Global Styles
--------------------------- */
:root {
  --primary: #0B5FFF; /* richer blue */
  --primary-600: #0847c4;
  --accent: #FFB703; /* warm accent */
  --dark: #0f172a;
  --light: #F8FAFC;
  --text: #1f2937;
  --muted: #6b7280;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  --shadow-sm: 0 4px 14px rgba(2, 6, 23, 0.08);
  --glass: rgba(255, 255, 255, 0.08);
  --transition: all 0.25s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #e6eeff 0%, transparent 60%),
              radial-gradient(1200px 600px at 110% 10%, #fff2cc 0%, transparent 50%),
              var(--light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Global link styling */
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Visually hidden, accessible-only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* Fade-in Animation Base */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------
   Container
--------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --------------------------
   Header
--------------------------- */
.header {
  background: rgba(255,255,255,0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(180%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  height: 54px;
  object-fit: contain;
}

.navbar {
  display: flex;
  gap: 2rem;
}

.navbar a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.navbar a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}

/* --------------------------
   Hero Section
--------------------------- */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.6));
  z-index: -1;
}

.hero-content {
  color: white;
  max-width: 700px;
  padding: 1rem;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #e5e7eb;
}

/* Breadcrumbs */
.breadcrumbs {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 0;
  font-size: 0.9rem;
}
.breadcrumbs li+li:before {
  content: "/";
  color: var(--muted);
  margin-right: 0.5rem;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--primary);
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(11, 95, 255, 0.25);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 95, 255, 0.3);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* --------------------------
   Services
--------------------------- */
.services-section {
  padding: 5rem 0;
  background: white;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 2rem;
  color: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid rgba(2,6,23,0.06);
}

.service-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
}

.service-card img {
  width: 100%;
  height: 220px; /* Uniform height */
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Restore legacy card title/link look (no underline, inherit color) */
.service-card a {
  text-decoration: none;
  color: inherit;
}
.service-card a:hover {
  color: var(--primary);
}

/* --------------------------
   About Section
--------------------------- */
.about-section {
  padding: 5rem 0;
}

.about-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.why-choose-list {
  list-style: none;
  padding: 0;
}

.why-choose-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-weight: 500;
  color: var(--text);
}

.why-choose-list img {
  width: 20px;
  height: 20px;
}

.about-image img {
  width: 100%;
  height: auto;
  max-width: 600px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* --------------------------
   Contact Section
--------------------------- */
.contact-section {
  padding: 5rem 0;
  background: var(--light);
  text-align: center;
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--dark);
  font-weight: 500;
}

.contact-item img {
  width: 22px;
  height: 22px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  margin-top: 1rem; /* extra spacing from description */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
  background: white;
}
.contact-form select {
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  background-color: #ffffff;
  /* Reset native styles and add custom arrow for cross-browser consistency */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px 14px;
  padding-right: 2.5rem; /* space for arrow */
  line-height: 1.2;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.12);
}

.contact-form button {
  padding: 0.9rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover {
  background: #0f5bc4;
}

.contact-form .hidden-field {
  display: none;
}

/* --- Success Message --- */
.form-success {
  margin-top: 1.5rem;
  background: #e6ffed;
  border: 1px solid #2ecc71;
  color: #1a5d35;
  padding: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.form-success.error {
  background: #ffe6e6;
  border-color: #e03131;
  color: #7d1a1a;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  display: none;
}

.form-success.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* --- Button disabled state --- */
.btn-primary:disabled {
  background: #9e9e9e !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* --- Smooth form hide animation --- */
.contact-form.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  display: none;
}


/* --------------------------
   Footer
--------------------------- */
.footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* --------------------------
   Responsive Navigation
--------------------------- */
@media (max-width: 768px) {
  .navbar {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    width: 220px;
    padding: 1rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .navbar.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .about-inner {
    text-align: center;
  }

  .about-image img {
    max-width: 100%;
  }
}

/* --- HERO MOBILE TWEAKS --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-top: 2rem;
  }
  .hero-content p {
    line-height: 1.4;
    margin-top: 0.7rem;
    margin-bottom: 1.2rem;
  }
  .btn-primary {
    margin-bottom: 1.5rem;
  }

  /* reduce section spacing on mobile */
  section {
    padding: 3rem 0 !important;
  }

  /* prettier list alignment */
  .why-choose-list {
    margin-left: 1.2rem;
  }
}

/* --- Decorative Divider between sections --- */
.section-divider {
  height: 60px;
  background: linear-gradient(to bottom, rgba(240,240,240,0.8), white);
}
