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

/* Variables */
:root {
  /* Colors */
  --primary-color: #164b93; /* Main blue */
  --primary-light: #5db4ef; /* Light blue */
  --primary-dark: #0d2b5a; /* Dark blue */
  --secondary-color: #f6f8fa; /* Light background */
  --accent-color: #1a64c5; /* Accent blue */
  --text-color: #333333; /* Main text */
  --text-light: #6c757d; /* Light text */
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Container Width */
  --container-width: 1200px;
}

/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-md);
}

/* Button Styles */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  padding: var(--spacing-md) 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
}

.logo img {
  height: 50px;
  margin-right: var(--spacing-md);
}

.logo span {
  font-weight: 700;
  font-size: 1.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-links a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: transform 0.3s ease;
}

/* Footer Styles */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xxl);
}

.footer-content {
  display: block;
}

.footer-logo {
  display: flex;
  flex: 1;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: var(--spacing-md);
  margin-right: 10px;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h4 {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--white);
}

.footer-column ul {
  margin-top: var(--spacing-lg);
}

.footer-column li {
  margin-bottom: var(--spacing-sm);
}

.footer-column a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-column a:hover {
  opacity: 1;
}

.footer address {
  font-style: normal;
}

.footer address p {
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
}

.footer address i {
  margin-right: var(--spacing-sm);
}

.footer-bottom {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* Sections */
section {
  padding: var(--spacing-xxl) 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .nav-links {
    gap: var(--spacing-md);
  }

  .logo span {
    font-size: 1rem;
  }

  .footer-logo {
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: height 0.5s ease;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    height: 300px;
    padding: var(--spacing-md) 0;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .footer-logo {
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .logo img {
    height: 40px;
  }

  .footer-links {
    flex-direction: column;
  }

  .footer-logo {
    align-items: center;
    justify-content: center;
  }
}

/* Custom Icon Fonts for Footer */
.icon-location, .icon-email, .icon-phone, .icon-time {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.icon-location {
  background-image: url('../icons/location.svg');
}
.icon-email {
  background-image: url('../icons/emails.svg');
}
.icon-phone {
  background-image: url('../icons/phone.svg');
}
.icon-time {
  background-image: url('../icons/clock.svg');
}

.license-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
}

.license-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 30px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 1;
}


.license-modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  margin: 2% auto;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers the images horizontally */
  justify-content: flex-start;
}

.license-img {
    width: 100%;
    max-width: 50vw;
    margin-bottom: 1rem;
    user-select: none;
    pointer-events: none;
    display: block;
}


.license-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 50vw;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.license-loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  position: absolute;
  z-index: 2;
}

/* .license-img {
  display: none;
  width: 100%;
  user-select: none;
  pointer-events: none;
  z-index: 1;
} */

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
