/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables for Clean Design System */
:root {
  --primary-navy-start: #081a36;
  --primary-navy-mid: #051124;
  --primary-navy-end: #02070f;
  --brand-blue: #10b981;
  --brand-blue-hover: #059669;
  --brand-green: #10b981;
  --text-dark: #0f172a;
  --text-grey: #475569;
  --text-light-grey: #94a3b8;
  --text-white-muted: #cbd5e1;
  --white: #ffffff;
  --font-sans: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  display: block;
}

body {
  font-family: var(--font-sans);
  background-color: #fafbfc;
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

/* HEADER SECTION */
.site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 90px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo Group */
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.logo-title span.brand-nine {
  color: var(--brand-blue);
}

.logo-tagline {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-grey);
  letter-spacing: 0.1px;
  margin-top: 2px;
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 0;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--brand-blue);
}

.nav-link.active {
  color: var(--brand-blue);
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--brand-blue);
  border-radius: 2px;
}

/* Dropdown Navigation Styles */
.dropdown {
  position: relative;
}

.dropdown > .nav-link {
  gap: 6px;
  cursor: pointer;
}

.dropdown-chevron {
  transition: var(--transition);
  margin-top: 1px;
}

.dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--brand-blue);
}

/* Dropdown Menu Container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 250px;
  background-color: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 150;
}

/* Arrow indicator at the top of the dropdown */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background-color: var(--white);
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(5px);
}

/* Dropdown Items */
.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 11px 20px;
  color: var(--text-grey);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: #f1f7ff;
  color: var(--brand-blue);
  padding-left: 26px; /* Smooth slide-in micro-animation */
}

/* Header Button */
.btn-get-in-touch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-blue);
  color: var(--white);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 100px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(11, 94, 215, 0.2);
}

.btn-get-in-touch:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 94, 215, 0.35);
}

.btn-get-in-touch svg {
  transition: var(--transition);
}

.btn-get-in-touch:hover svg {
  transform: rotate(15deg);
}

/* =========================================
   SITE FOOTER
========================================= */
.site-footer {
  background: #0d1b2e;
  color: #cbd5e1;
  font-family: var(--font-primary);
}

.simple-footer { display: none; }

.footer-main {
  padding: 60px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 18px;
}

.footer-logo-icon { flex-shrink: 0; }

.footer-logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-nine { color: #10b981; }

.footer-logo-tag {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 2px;
}

.footer-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0 0 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-btn:hover {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: #10b981;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #10b981;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.83rem;
  color: #64748b;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.83rem;
  color: #64748b;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #10b981;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================
   HEADER RESPONSIVENESS (Mobile Only)
========================================= */

/* Hamburger Button (Hidden on Desktop) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
  z-index: 200;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger Animation to Cross */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 992px) {
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(255, 255, 255, 0.98);
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Menu Overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Side Navigation Menu for Mobile - Standard Professional Design */
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    visibility: hidden;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    background-color: #ffffff;
    padding: 100px 30px 40px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    z-index: 150;
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
  }

  .dropdown {
    width: 100%;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 500;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 0 5px 0;
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    color: #10b981;
  }

  .nav-link.active {
    color: #10b981;
    display: inline-flex;
    width: auto;
    border-bottom: 2px solid #10b981;
  }

  .nav-link.active::after {
    display: none;
  }

  /* Mobile Dropdown */
  .dropdown .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    display: none;
    padding: 10px 0 10px 15px !important;
    border: none !important;
    border-left: 2px solid #e2e8f0 !important;
    margin-left: 10px !important;
    width: 100% !important;
    min-width: auto !important;
    animation: none !important;
    background: transparent !important;
    left: 0 !important;
  }

  .dropdown-menu::before {
    display: none !important;
  }

  .dropdown.mobile-dropdown-open .dropdown-menu {
    display: block !important;
    animation: none !important; /* Prevents transform override */
  }

  .dropdown.mobile-dropdown-open .dropdown-chevron {
    transform: rotate(180deg);
    color: #10b981;
  }
  
  .dropdown-menu a {
    padding: 8px 10px !important;
    font-size: 0.95rem !important; /* Reduced size for mobile */
    color: #475569 !important;
    transition: all 0.3s ease;
    display: block !important;
    white-space: normal !important;
    text-align: left !important;
  }

  .dropdown-menu a:hover, .dropdown-menu a.active {
    color: #10b981;
  }

  /* Prevent body scroll when menu is open */
  body.no-scroll {
    overflow: hidden;
  }

  .logo-tagline {
    display: none !important; /* Hide tagline to save space */
  }
  .logo-title {
    font-size: 24px; /* Smaller title */
  }
  .btn-get-in-touch {
    padding: 10px 18px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px; /* Reduce massive desktop padding */
  }
  .site-header {
    height: 70px; /* Reduced header height for tablets/mobile */
  }
  .logo-title {
    font-size: 20px; 
  }
  .logo-icon svg {
    width: 36px;
    height: 26px;
  }
  .btn-get-in-touch {
    padding: 8px 14px; 
    font-size: 13px;
  }
  .btn-get-in-touch svg {
    width: 14px;
    height: 14px;
  }
  .container.header-container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px; /* Even less padding for small mobile */
  }
  .site-header {
    height: 64px; /* Further reduced height for smaller phones */
  }
  .logo-title {
    font-size: 18px;
  }
  .btn-get-in-touch span {
    display: none !important; /* Hide text, show only icon on very small screens */
  }
  .btn-get-in-touch {
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .btn-get-in-touch svg {
    margin: 0;
    width: 16px;
    height: 16px;
  }
  .header-right {
    gap: 12px !important;
  }
}
