:root {
  --primary-color: #000000;
  --secondary-color: #e5fb1a;
  /* Yellow/Neon green color seen in images */
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --bg-color: #ffffff;

  --font-heading: 'Anton', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --transition: all 0.3s ease-in-out;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Tilted Grid Background for specific pages/sections */
.grid-bg {
  position: relative;
  z-index: 1;
}

.grid-bg::before {
  content: "";
  position: fixed;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background-image:
    linear-gradient(0deg, #e5e5e5 1px, transparent 1px),
    linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
  background-size: 80px 80px;
  transform: rotate(-10deg);
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

/* Header & Navigation */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  padding: 20px 0;
}

/* For pages where header is over dark background */
.site-header.dark-header {
  color: var(--text-light);
}

/* For pages where header needs solid background on scoll - although not strictly asked, standard practice, but images show header on empty space */

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

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1001;
  /* Above mobile menu */
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.logo span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--secondary-color);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(50, 50, 50, 0.9);
  backdrop-filter: blur(10px);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 10px 0;
  border-radius: 0;
  /* Boxy as per images */
}

/* Custom dark dropdown for 'About Us' as seen in the dark transparent image */
.dropdown-menu.dark {
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu li {
  padding: 8px 20px;
}

.dropdown-menu a {
  color: #fff;
  font-size: 0.9rem;
  display: block;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  padding-left: 5px;
  /* Subtle movement */
  color: var(--secondary-color);
}

/* Dropdown active state via class */
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  background-color: var(--text-dark);
  width: 25px;
  height: 2px;
  transition: var(--transition);
  position: relative;
}

.site-header.dark-header .hamburger,
.site-header.dark-header .hamburger::before,
.site-header.dark-header .hamburger::after {
  background-color: var(--text-light);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* Open State Hamburger */
.mobile-menu-toggle.open .hamburger {
  background-color: transparent !important;
}

.mobile-menu-toggle.open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--text-dark);
}

.mobile-menu-toggle.open .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
  background-color: var(--text-dark);
}

/* Footer Section */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 40px 0 20px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.footer-top span {
  font-size: 0.9rem;
  color: #ccc;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 40px;
}

.footer-social-link {
  color: #888;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-social-link:hover {
  color: var(--text-light);
}

.footer-contact-info {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-contact-info a {
  color: #888;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-contact-info a:hover {
  color: var(--text-light);
}

/* Utilities */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.social-btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-yellow {
  color: var(--secondary-color);
}

/* Animation Utilities */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  /* Reset link colors for mobile menu regardless of header class */
  .nav-link {
    color: var(--text-dark);
    font-size: 1.2rem;
    display: block; /* Ensures links take full width for centering */
    text-align: center;
  }
  
  .dropdown-toggle {
    justify-content: center; /* Center "About Us" and arrow icon */
  }

  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: none;
    background-color: rgba(50, 50, 50, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: none;
    display: flex; /* keep flex, but hide overflow/max-height for smooth transition */
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.4s ease, padding 0.4s ease;
  }

  .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    padding: 10px 0;
    margin-top: 10px;
  }

  .dropdown-menu a {
    color: var(--text-light);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact-info {
    text-align: center;
    margin-top: 20px;
  }
}

/* Mobile Menu Close Button */
.close-menu-btn {
  display: none;
}

@media screen and (max-width: 768px) {
  .close-menu-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 1002;
  }
}