:root {
  --bg: #ffffff;
  --panel: #f8fafc;
  --text: #111827;
  --muted: #475569;
  --accent: #2563eb;
  --accent-2: #9333ea;
  --border: rgba(15,23,42,0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

.container { 
  width: min(1120px, 92%); 
  margin: 0 auto; 
  padding: 0 1rem;
}

.page-content { 
  padding: 3rem 0; 
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #07111f;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header nav {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 0.9rem 0 0.6rem;
  min-height: 72px;
}

.brand { 
  font-weight: 700; 
  letter-spacing: 0.04em; 
  font-size: 1.05rem; 
}

img.brand {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  margin: 0;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Mobile Menu Toggle Button */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #2563eb;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links-wrapper {
  position: sticky;
  top: 72px;
  z-index: 99;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
  background: transparent;
  width: 100%;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.nav-links-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

.nav-links-wrapper .container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-links { 
  display: flex; 
  gap: 2rem; 
  align-items: center; 
  font-weight: 700; 
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-size: 1.45rem;
  padding: 0.6rem 1.2rem;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.85rem;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-links a + a {
  margin-left: 0.5rem;
}

.nav-links a:hover {
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
  transform: translateY(-2px);
}

.nav-links a[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.nav-links-wrapper:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 5rem 0 3.5rem;
  display: grid; 
  grid-template-columns: 1.2fr 0.8fr; 
  gap: 2rem; 
  align-items: center;
}

.hero h1 { 
  font-size: clamp(2rem, 4vw, 3.4rem); 
  line-height: 1.1; 
  margin: 0 0 1rem; 
}

.hero p { 
  color: var(--muted); 
  font-size: clamp(1rem, 2vw, 1.05rem); 
  margin-bottom: 1.5rem; 
}

.hero-buttons { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap; 
}

.btn {
  display: inline-block; 
  padding: 0.85rem 1.2rem; 
  border-radius: 999px; 
  font-weight: 600; 
  transition: transform 0.2s ease;
  font-size: clamp(0.9rem, 1vw, 1rem);
  cursor: pointer;
  border: none;
}

.btn:hover { 
  transform: translateY(-2px); 
}

.btn-primary { 
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); 
  color: white; 
}

.btn-secondary { 
  border: 1px solid var(--border); 
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); 
  color: white; 
}

.hero-slider {
  position: relative;
  min-height: 280px;
}

.hero-slide {
  display: none;
  animation: fadeIn 0.4s ease;
}

.hero-slide.active {
  display: block;
}

.hero-card {
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); 
  color: white; 
  border: 1px solid var(--border); 
  border-radius: 1.25rem; 
  padding: 1.2rem; 
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.hero-card h3 { 
  margin-top: 0; 
  margin-bottom: 0.55rem; 
}

.hero-card p { 
  margin: 0; 
  color: white; 
}

.hero-card ul { 
  padding-left: 1rem; 
  color: white; 
  margin: 0.5rem 0;
}

.hero-card li { 
  margin-bottom: 0.45rem; 
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(8px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* ===== SECTIONS & CARDS ===== */
section { 
  padding: 2rem 0 3rem; 
}

.page-view[hidden] {
  display: none !important;
}

.section-title { 
  font-size: clamp(1.5rem, 3vw, 1.8rem); 
  margin-bottom: 0.5rem; 
}

.section-copy { 
  color: var(--muted); 
  margin-bottom: 1.25rem; 
}

.grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 1rem; 
}

.card {
  background: #07111f; 
  color: white; 
  border: 1px solid var(--border); 
  border-radius: 1rem; 
  padding: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

article.card {
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); 
  color: white;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

article.card p {
  background: transparent;
  color: white;
}

.card h3 { 
  margin-top: 0; 
  margin-bottom: 0.4rem; 
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.card p { 
  background: #07111f; 
  color: white; 
  margin: 0; 
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.profile-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-top: 1rem;
  background: #07111f;
  color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
}

.profile-details h3 { 
  margin-top: 0; 
  margin-bottom: 0.5rem; 
}

.profile-details p { 
  margin: 0.25rem 0; 
  color: white; 
  background: transparent; 
}

.profile-details a { 
  color: #93c5fd; 
}

/* ===== STATS ===== */
.stats { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 1rem; 
  margin-top: 1rem; 
}

.stat { 
  background: #07111f; 
  color: white; 
  border: 1px solid var(--border); 
  border-radius: 1rem; 
  padding: 1rem; 
  text-align: center;
}

.stat strong { 
  display: block; 
  font-size: clamp(1.1rem, 2vw, 1.35rem); 
}

.stat span {
  display: block;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: var(--muted);
}

/* ===== CTA & FORMS ===== */
.cta {
  background: #07111f; 
  color: white;
  border: 1px solid var(--border); 
  border-radius: 1.25rem; 
  padding: 3rem 2rem; 
  text-align: center;
  margin: 2rem 0;
}

.cta h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

footer {
  padding: 0.9rem 0 1rem;
  color: var(--muted);
  text-align: center;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

footer p {
  margin: 0.2rem 0;
}

footer .contact-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

footer .contact-icon {
  font-size: 0.95rem;
  line-height: 1;
}

footer .container {
  margin-top: 0.25rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  max-width: 620px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.contact-form label {
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0.75rem;
  font: inherit;
  background: #fff;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: fit-content;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  transition: transform 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: #25d366;
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.2);
  cursor: pointer;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  transition: background 0.2s ease;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
}

/* ===== SERVICES PAGE ===== */
.services-hero {
  padding: 4rem 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
}

.services-hero h1,
.services-hero h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  margin: 0 0 0.8rem;
}

.services-hero-copy p:last-of-type { 
  color: var(--muted); 
}

.services-hero-panel,
.service-card {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border-radius: 1.25rem;
  padding: 1.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.services-hero-panel ul { 
  padding-left: 1rem; 
}

.services-section { 
  padding-top: 1rem; 
}

.section-heading { 
  margin-bottom: 1.2rem; 
}

.section-heading h2 { 
  margin-bottom: 0.35rem; 
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.section-heading p { 
  color: var(--muted); 
  margin: 0; 
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  color: black;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.service-card .service-tag {
  color: black;
}

.service-card p { 
  color: white; 
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.service-card ul { 
  padding-left: 1rem; 
}

/* ===== TABLET DEVICES (768px - 1024px) ===== */
@media (max-width: 1024px) {
  .container {
    width: 95%;
  }

  .hero,
  .services-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== MOBILE DEVICES (640px - 768px) ===== */
@media (max-width: 768px) {
  header nav {
    padding: 1rem 0;
  }

  .hamburger {
    display: flex;
  }

  .brand {
    margin: 0 auto;
    flex: 1;
    text-align: center;
  }

  .nav-links-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links-wrapper.mobile-open {
    max-height: 500px;
    padding: 1rem 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 0 1rem;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  .nav-links a + a {
    margin-left: 0;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero h1 {
    margin: 0 0 0.8rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-slider {
    min-height: 220px;
  }

  section {
    padding: 1.5rem 0 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    margin: 1.5rem 0;
    padding: 1rem;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .profile-photo {
    width: 90px;
    height: 90px;
  }

  .cta {
    padding: 1.5rem;
  }

  footer {
    padding: 1rem 0;
  }
}

/* ===== SMALL MOBILE DEVICES (320px - 640px) ===== */
@media (max-width: 640px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }

  header nav {
    min-height: 60px;
  }

  img.brand {
    height: 40px;
  }

  .hero {
    padding: 1.5rem 0 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .hero-slider {
    min-height: 180px;
  }

  .hero-card {
    padding: 1rem;
  }

  .hero-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .hero-card ul {
    padding-left: 1.2rem;
    font-size: 0.9rem;
  }

  .hero-card li {
    margin-bottom: 0.35rem;
  }

  section {
    padding: 1rem 0 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .card {
    padding: 1rem;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .nav-links-wrapper.mobile-open {
    max-height: 400px;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }

  .contact-form {
    margin: 1rem 0;
    padding: 0.75rem;
  }

  .contact-form label {
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
  }

  .contact-form textarea {
    min-height: 100px;
  }

  .contact-form button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .whatsapp-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .stats {
    gap: 0.75rem;
  }

  .stat {
    padding: 0.75rem;
  }

  .stat strong {
    font-size: 1rem;
  }

  .stat span {
    font-size: 0.75rem;
  }

  .profile-photo {
    width: 80px;
    height: 80px;
  }

  .profile-details h3 {
    font-size: 1rem;
  }

  .profile-details p {
    font-size: 0.85rem;
  }

  .eyebrow {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }

  .cta {
    padding: 1.2rem;
  }

  footer {
    font-size: 0.8rem;
  }
}

/* ===== EXTRA SMALL DEVICES (< 320px) ===== */
@media (max-width: 320px) {
  .container {
    padding: 0 0.75rem;
  }

  img.brand {
    height: 32px;
  }

  .hero h1 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .card {
    padding: 0.75rem;
  }

  .contact-form {
    padding: 0.5rem;
    gap: 0.5rem;
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 600px) and (orientation: landscape) {
  header nav {
    min-height: 50px;
  }

  img.brand {
    height: 36px;
  }

  .hero {
    padding: 1rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
  }

  .hero-slider {
    min-height: 150px;
  }

  section {
    padding: 1rem 0;
  }
}

/* ===== HIGH DPI SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --panel: #1a1f28;
    --text: #f0f4f8;
  }
}
