/* ===== BASE RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: #ffffff;
  color: #4b4b4b;
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ===== NAVIGATION ===== */
.stickynav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
  mix-blend-mode: difference;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(0);
}

.stickynav.nav-hidden {
  transform: translateY(-100%);
}

.stickynav.nav-visible {
  transform: translateY(0);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.imgc {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}

.imgc img {
  width: 50px;
  height: auto;
  filter: brightness(0) invert(1);
}

.logo-text h1 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.logo-text p {
  color: white;
  font-size: 0.85rem;
  font-weight: 400;
  margin: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #004aad;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #004aad;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.hero-slider .slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #222;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.section-header p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #6b6b6b;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== SERVICE CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  position: relative;
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 1rem;
  font-weight: 700;
}

.card-content p {
  font-size: 1rem;
  color: #6b6b6b;
  line-height: 1.7;
  flex: 1;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 0.5rem 0;
  color: #6b6b6b;
  font-size: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #004aad;
  font-weight: bold;
}

/* Card backgrounds */
.card-bg-1 {
  background-image: url("./Media/image_20.jpg");
}

.card-bg-2 {
  background-image: url("./Media/image_21.JPG");
}

.card-bg-3 {
  background-image: url("./Media/image_10.png");
}

.card-bg-4 {
  background-image: url("./Media/image_19.png");
}

/* ===== MISSION SECTION ===== */
.mission-section {
  background-color: #074cab;
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.mission-content {
  max-width: 900px;
  margin: 0 auto;
}

.mission-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.mission-content p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
  opacity: 0.95;
}

/* ===== FOOTER ===== */
footer {
  background-color: #ffffff;
  color: #222;
  padding: 3rem 2rem;
  border-top: 1px solid #e8e8e8;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-content p {
  margin: 0;
  font-size: 1rem;
  color: #6b6b6b;
}

.footer-content ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer-content a {
  color: #222;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #004aad;
}

/* ===== SPLASH SCREEN ===== */
#splash-screen {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity 0.7s ease, background 0.7s ease;
}

#splash-screen.splash-dark {
  background: #000000;
}

#splash-screen.hide {
  opacity: 0;
  pointer-events: none;
}

#splash-logo {
  width: 180px;
  height: auto;
  filter: none;
  transition: filter 0.7s ease;
}

#splash-logo.logo-white {
  filter: brightness(0) invert(1);
}

#splash-text {
  font-size: 2rem;
  margin-top: 30px;
  font-family: sans-serif;
  letter-spacing: 2px;
  color: #222;
}

@keyframes flipY-slowdown {
  0% {
    transform: rotateY(0deg);
  }
  80% {
    transform: rotateY(1440deg);
  }
  100% {
    transform: rotateY(1440deg);
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .services-section {
    padding: 4rem 1.5rem;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-container {
    position: relative;
  }

  .imgc {
    position: relative;
    z-index: 1002;
  }

  .hamburger {
    position: relative;
    z-index: 1002;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    z-index: 999;
  }

  .stickynav.nav-open {
    mix-blend-mode: normal;
    background-color: white;
    border: 1px solid #e8e8e8;
    transform: translateY(0) !important;
  }

  .stickynav.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    color: #222 !important;
    font-size: 1.5rem;
  }

  .nav-links a::after {
    background-color: #004aad;
  }

  .stickynav.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .stickynav.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .stickynav.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .stickynav.nav-open .hamburger span {
    background-color: #222;
  }

  .stickynav.nav-open .imgc img {
    filter: none;
  }

  .stickynav.nav-open .logo-text h1,
  .stickynav.nav-open .logo-text p {
    color: #222;
  }

  body:has(.stickynav.nav-open) {
    overflow: hidden;
  }

  .hero-section {
    height: 80vh;
    min-height: 500px;
  }

  .services-section {
    padding: 3rem 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mission-section {
    padding: 3rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .imgc img {
    width: 45px;
  }

  .logo-text h1 {
    font-size: 1.3rem;
  }

  .logo-text p {
    font-size: 0.75rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .card-content {
    padding: 1.5rem;
  }

  .imgc {
    gap: 0.75rem;
  }

  .imgc img {
    width: 40px;
  }

  .logo-text h1 {
    font-size: 1.1rem;
  }

  .logo-text p {
    font-size: 0.7rem;
  }
}
