/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */
:root {
  --primary: #004d99;
  --primary-hover: #003366;
  --secondary: #e59400;

  --text-dark: #1f2937;
  --text-light: #4b5563;

  --border: #e5e7eb;
  --card-bg: #fff;
  --bg-light: #f9fafb;

  --section-alt-a: linear-gradient(135deg, #6fb8f8, #62e7db);
  --section-alt-b: linear-gradient(135deg, #6fb8f8, #e3f2fd);

  --block-bg-color: #a2c4eb;
  --success-color: #059669;
  --error-color: #000000;

  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-deep: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   2. RESET & BASE TYPOGRAPHY
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}


p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
}

/* =========================================================
   3. GLOBAL LAYOUT & SECTIONS
   ========================================================= */
.container {
  width: min(1100px, 100%);
  margin: auto;
  /* padding: 0 px; */
}

section {
  padding: 75px 5%;
  margin-bottom: 40px;
  text-align: center;
  border-radius: 12px;
  transition: opacity .5s ease, transform .5s ease;
}

.about-hero,
.contact-hero {
  border-radius: 0 !important;
}


/* Default Alternating Section Backgrounds */
section:nth-child(odd) { background: var(--section-alt-a); }
section:nth-child(even) { background: var(--section-alt-b); }

/* Grids */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* =========================================================
   4. UI COMPONENTS (Buttons, Cards, Inputs)
   ========================================================= */

/* --- Buttons --- */
.btn, button {
  background: linear-gradient(45deg, var(--primary), #00b4d8);
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  transition: transform .2s, box-shadow .3s;
}

.btn:hover, button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 123, 255, .3);
}

/* --- Cards --- */
.card {
  background: var(--block-bg-color) !important;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: var(--shadow-light);
  transition: transform .3s, box-shadow .3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 77, 153, .15);
}


/* =========================================================
   5. HEADER & NAVIGATION
   ========================================================= */
.site-header {
  background: var(--primary-hover);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-deep);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  gap: 20px;
}

.brand h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 60px;
  height: 50px;
  border-radius: 20%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand .tag {
  font-size: .8rem;
  margin-top: 4px;
 /* margin-left:40px; */
  color: #c9d8e7;
}

/* Nav Links */
.nav {
  display: flex;
  gap: 14px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .95rem;
  color: #c9d8e7;
  transition: background .25s ease, color .25s ease, transform .25s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-hover);
  background: var(--secondary);
}

/* Mobile Menu Toggle (Burger) */
.menu-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

/* Burger Animation */
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* =========================================================
   6. HERO SECTIONS
   ========================================================= */

/* Home Hero (keeps left-aligned layout and card look via the .card class) */
.hero {
  padding: 120px 20px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  background: linear-gradient(to right, #12152a, #74c5ee) !important;
  color: var(--text-light);
}
.hero h2 { font-size: 3rem; color: var(--primary-hover); }

.about-hero,
.contact-hero {
  background: linear-gradient(to right, #12152a, #74c5ee) !important;
  padding: 120px 0;
  margin-bottom: 40px;
}

.about-hero .container,
.contact-hero .container {
  background: transparent !important;
  box-shadow: none;
  padding: 0 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}


/* Secondary Pages Hero Typography */
.services-hero h1,
.contact-hero h1,
.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #80aadb;
}

.services-hero p,
.contact-hero p,
.about-hero p {
  max-width: 600px;
  margin: 15px auto 0;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Hero Color Overrides */
.services-hero *,
.contact-hero *,
.about-hero *,
.hero * {
  color: #fff !important;
}

.about-hero p {
  color: #0066ff;
}

.hero-visual img {
  border-radius: 12px;
  animation: pulseShadow 2.5s infinite alternate;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================================================
   7. PAGE SPECIFIC LAYOUTS
   ========================================================= */

/* --- Services Page --- */
.service-list {
  display: grid;
  grid-template-columns: 1fr; /* ONE card per row */
  gap: 1.5rem;
  margin-top: 1.5rem;
}



.services__item, 
.feature {
  background: var(--block-bg-color) !important;
  border: 1px solid var(--border);
  min-height: 110px;
  transition: border-color .3s ease;
}

.services__item:hover,
.feature:hover {
  border-color: var(--primary);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

/* --- Team Section (About Page) --- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 2rem;
}

.team-member {
  width: 500px;
  padding: 25px 20px;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.team-photo {
  width: 120px;
  height: 150px;
  border-radius: 60%;
  object-fit: cover;

}

/* --- Contact Page --- */
/* .contact-wrapper {
  /* display: grid;
   grid-template-columns: 1fr 1fr;
} */

.contact-card {
  background: var(--section-alt-a) !important;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-light);
  text-align: left;
}

.contact-section {
  background: var(--section-alt-a) !important;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-light);
  width: 100%;
}

.contact-details {
  padding:25px 25px;  
  text-align: left;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

.contact-map-wrapper {
  position: relative;
  z-index: 1;
}

.contact-map-wrapper .map {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.contact-inner {
  display: grid;
  grid-template-rows: auto auto;
  gap: 2rem;
}

.contact-phones {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.contact-phones li {
  margin: 4px 0;
}


/* =========================================================
   8. PAGE SPECIFIC OVERRIDES (THEME LOGIC)
   ========================================================= */

/* ABOUT PAGE: Ensure sections follow global gradients */
body.about-page section:nth-child(odd) { background: var(--section-alt-a); }
body.about-page section:nth-child(even) { background: var(--section-alt-b); }

/* ABOUT PAGE: Match global text colors */
body.about-page section h2,
body.about-page section h3 { color: var(--text-dark); }
body.about-page section p, li { color: var(--text-light); }

/* ABOUT PAGE: Match Services Card Background */
body.about-page main section.card {
  background: var(--section-alt-a) !important;
}

/* HOME & CONTACT: Force Services-like background */
body:not(.about-page):not(.contact-page) .features,
body:not(.about-page):not(.contact-page) .testimonials {
  background: var(--section-alt-a) !important;
}

body.contact-page .contact-card {
  background: var(--block-bg-color) !important;
}

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer {
  background: var(--primary-hover);
  color: #c9d8e7;
  padding: 40px 0;
  margin-top: 60px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
}

.footer-inner {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-footer a {
  color: #fff;
  opacity: .8;
  text-decoration: none;
  transition: opacity .3s;
}

.site-footer a:hover { opacity: 1; }

/* =========================================================
   10. FLOATING UTILITIES (Social, ScrollTop)
   ========================================================= */

/* Floating Social Icons */
.floating-social {
  position: fixed;
  bottom: 100px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.social-btn {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  color: #fff;
  opacity: .9;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .2);
  transition: transform .3s, opacity .3s;
}

.social-btn:hover {
  transform: translateX(-6px) scale(1.05);
  opacity: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}

.linkedin { background: #0a66c2; }
.whatsapp { background: #25D366; }

/* Scroll To Top Button */
#scrollTop {
  width: 45px;
  height: 45px;
  position: fixed;
  bottom: 25px;
  right: 85px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  transition: transform .2s;
  z-index: 1100;
}

#scrollTop:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

/* =========================================================
   11. ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseShadow {
  from { box-shadow: 0 0 0 0 rgba(0, 77, 153, .4); }
  to   { box-shadow: 0 0 0 10px rgba(0, 77, 153, 0); }
}

.visible { animation: fadeInUp .6s ease forwards; }

/* =========================================================
   12. MEDIA QUERIES (RESPONSIVE)
   ========================================================= */
/* HEADER MUST BE ON TOP */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: var(--primary);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {

  /* HERO */
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 80px 20px;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .hero-visual img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
  }

  /* NAV */
  .menu-toggle {
    display: flex;
    z-index: 10001;
  }

  .header-inner {
    position: relative;
  }

  .nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;        /* FIXED */
    background: #003366;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 10002;
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    color: #fff !important;
    padding: 14px;
    font-size: 18px;
    width: 100%;
    text-align: center;
  }
}
