@font-face {
  font-family: 'Sakana';
  src: url('../fonts/Sakana.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}
:root {
  --primary: #dc0000;
  --dark: #121212;
  --dark-gray: #181818;
  --light: #ffffff;
  --light-gray: #e0e0e0;
  --text-light: var(--light);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

/* Navigation */
header {
  background-color: var(--dark-gray);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  z-index: 10;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}


.logo {
  height: 30px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  padding-top: 10px;
  color: var(--light-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 2px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Main Content */
main {
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  z-index: 2;
}

/* Hero Section */
.hero-title {
  display: block;
  font-family: 'Sakana', sans-serif;
  font-size: 4rem;
  text-align: center;
  color: #dc0000;
  margin-bottom: -1rem;
  margin-top: 4rem;
  font-weight: normal;
  letter-spacing: 1px;
}

.hero-subtitle {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--light-gray);
  margin-top: 0px;
  margin-bottom: 4rem;
  letter-spacing: normal;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Make entire card clickable */
.service-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Hover effects for linked cards */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Style for linked headings */
.service-title {
  color: var(--light);
  margin-bottom: 1rem; /* Adds space below heading */
  transition: all 0.3s ease;
}

/* Keep your existing hover effect but modify it: */
.service-card:hover .service-title {
  color: var(--light); /* Ensures it stays white on hover */
}
/* Services Section */
.services-container {
  width: 100%;
  padding: 2rem 5%;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.services-line {
  position: absolute;
  left: 50%;
  right: 50%;
  top: 50%;
  height: 2px;
  background-color: var(--primary);
  z-index: 1;
  box-shadow: 0 0 8px 2px rgba(220, 0, 0, 0.6);
  transform: translateX(-50%);
  width: 150%;
}

.services-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Ensures all cards start at same position */
  position: relative;
  z-index: 2;
  gap: 4rem;
  flex-wrap: wrap;
}

.service-card {
  width: 220px;
  min-height: 350px; /* Set a minimum height */
  display: flex;
  flex-direction: column;
  background-color: rgba(26, 26, 26, 0.65);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3), 0 0 20px rgba(220, 0, 0, 0.4);
  background-color: rgba(30, 30, 30, 0.9);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--light);
  transition: all 0.3s ease;
}

.service-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.service-card:hover .service-icon img {
  transform: scale(1.1);
}

.know-more-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--light); /* White stroke by default */
  border-radius: 25px;
  color: var(--light); /* White text by default */
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: transparent;
  margin-top: 1.5rem; /* Adds space above the button */
  margin-bottom: 0.5rem; /* Optional: adds space below */
  align-self: center;
  transition: all 0.3s ease;
  cursor: pointer;
}


/* Hover effects */
.service-card:hover .know-more-btn {
  border-color: var(--primary); /* Change to red on hover */
  color: var(--primary); /* Red text on hover */
  transform: translateY(-3px);
}

/* Light mode adjustments */
body.light-mode .know-more-btn {
  border-color: var(--light);
  color: var(--light);
}

body.light-mode .service-card:hover .know-more-btn {
  border-color: var(--primary);
  color: var(--primary);
}

/* About Section */
.about-section {
  display: flex;
  align-items: center;
  padding: 5rem;
  background-color: rgba(26, 26, 26, 0.4);
  margin: 3rem auto;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: 1400px;
  width: 90%;
}

.about-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 600;
}

.about-content {
  flex: 1;
  padding-right: 4rem;
  min-width: 400px;
}

.about-text {
  color: var(--light-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.about-image {
  flex: 1;
  height: 370px;
  min-height: 30px;
  border-radius: 12px;
  min-width: 500px;
}

.image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.carousel-image.active {
  opacity: 1;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(220, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-button:hover {
  background-color: rgba(220, 0, 0, 0.9);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

/* Vision Section */
.vision-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 5rem;
  background-color: rgba(26, 26, 26, 0.4);
  margin: 3rem auto;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: 1400px;
  width: 90%;
}

.vision-image {
  flex: 1;
  height: 370px;
  min-height: 30px;
  border-radius: 12px;
  min-width: 500px;
}

.vision-content {
  flex: 1;
  padding-left: 4rem;
  min-width: 400px;
}

.vision-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 600;
}

.vision-text {
  color: var(--light-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Reuse carousel styles for vision */
.vision-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.vision-carousel .carousel-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.vision-carousel .carousel-image.active {
  opacity: 1;
}

.vision-carousel .carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(220, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vision-carousel .carousel-button:hover {
  background-color: rgba(220, 0, 0, 0.9);
}

.vision-carousel .carousel-button.prev {
  left: 10px;
}

.vision-carousel .carousel-button.next {
  right: 10px;
}

body.light-mode .vision-section {
  background-color: var(--dark-gray);
  color: var(--light);
}

/* Mission Section */
.mission-section {
  display: flex;
  align-items: center;
  padding: 5rem;
  background-color: rgba(26, 26, 26, 0.4);
  margin: 3rem auto;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: 1400px;
  width: 90%;
}

.mission-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 600;
}

.mission-content {
  flex: 1;
  padding-right: 4rem;
  min-width: 400px;
}

.mission-text {
  color: var(--light-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.mission-image {
  flex: 1;
  height: 370px;
  min-height: 30px;
  border-radius: 12px;
  min-width: 500px;
}

.mission-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.mission-carousel-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mission-carousel-image.active {
  opacity: 1;
}

body.light-mode .mission-section {
  background-color: var(--dark-gray);
  color: var(--light);
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  padding: 3rem 5%;
  text-align: center;
  border-top: -40px solid #333;
  position: relative;
  z-index: 3;
  box-shadow: 0 0px 5px rgba(0, 0, 0, 0.3); /* Shadow on top */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 4;
}

.footer-contact {
  margin-bottom: 2rem;
}

.footer-contact h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--light-gray);
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-icons a {
  color: var(--light-gray);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

body.light-mode .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.2); /* Darker border for light mode */
}

.footer-logo {
  height: 60px;
  margin: 0.5rem auto;
}

.copyright {
  color: var(--light-gray);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Contact Box Styles */
.contact-box {
  display: inline-block;
  background-color: rgba(220, 0, 0, 0.1);
  color: var(--light-gray);
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  border-radius: 30px;
  border: 1px solid rgba(220, 0, 0, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.contact-box:hover {
  background-color: rgba(220, 0, 0, 0.2);
  transform: translateY(-2px);
}

.contact-box i {
  margin-right: 8px;
  color: var(--primary);
}

/* Light mode contact box styles */
body.light-mode .contact-box {
  background-color: rgba(220, 0, 0, 0.05);
  color: var(--light);
  border-color: rgba(220, 0, 0, 0.2);
}

body.light-mode .contact-box:hover {
  background-color: rgba(220, 0, 0, 0.1);
}

/* Light mode footer styles */
body.light-mode footer,
body.light-mode .footer-bottom {
  background-color: var(--dark-gray);
  color: var(--light);
}

body.light-mode .contact-info p,
body.light-mode .copyright {
  color: var(--light);
}

body.light-mode .social-icons a {
  color: var(--light);
}


/* Cursor Light */
.cursor-light {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,0,0,0.8) 0%, rgba(220,0,0,0) 75%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(10px);
  opacity: 0.7;
  transition: transform 0.1s ease;
}

/* Theme Toggle */
.theme-toggle {
  margin-top: 1.22px; /* or 10px, adjust as needed */
  background: transparent;
  border: none;
  color: var(--light-gray);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.theme-toggle:hover {
  color: var(--primary);
  background: rgba(220, 0, 0, 0.1);
}

/* Light mode styles */
body.light-mode {
  --dark: #fafafa;
  --dark-gray: #ffffff;
  --light: #121212;
  --light-gray: #333;
  background-color: var(--dark);
  color: var(--light);
}

body.light-mode header,
body.light-mode footer,
body.light-mode .service-card,
body.light-mode .about-section {
  background-color: var(--dark-gray);
  color: var(--light);
}

body.light-mode nav a,
body.light-mode .copyright,
body.light-mode .about-text,
body.light-mode .hero-subtitle {
  color: var(--light);
}

body.light-mode .theme-toggle {
  color: var(--light);
}

body.light-mode .cursor-light {
  display: none;
}

/* Hamburger Styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1000;
  backdrop-filter: none !important;
}

.hamburger span {
  height: 3px;
  background: var(--light-gray);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.light-mode header,
body.light-mode .hamburger {
  backdrop-filter: none !important;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .services-grid {
    justify-content: center;
  }
}


/* ========== MOBILE RESPONSIVE STYLES (768px and below) ========== */
@media (max-width: 768px) {
  /* Global Mobile Adjustments */
  body > *:not(header):not(nav) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Header & Navigation */
  header {
    padding: 1rem;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 70px;
    right: -100%;
    background-color: var(--dark-gray);
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    width: 80%;
    max-width: 300px;
    transition: right 0.3s ease;
    z-index: 100;
  }

  nav.show {
    right: 0;
  }

  nav a {
    padding: 0.75rem 0;
  }

  .logo {
    filter: none !important;
  }

  /* Hero Section */
  .hero-title {
    font-size: 2.5rem;
    margin: 2rem 0 0.5rem;
    line-height: 1.2;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    padding: 0 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Services Section */
  .services-container {
    padding: 2rem 1rem;
  }

  .services-line {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
  }

  /* About/Vision/Mission Sections - Combined Styles */
  .about-section,
  .vision-section,
  .mission-section {
    flex-direction: column;
    padding: 2rem 1rem;
    width: calc(100% - 2rem);
    margin: 2rem auto;
  }

  .about-content,
  .vision-content,
  .mission-content {
    padding: 0;
    margin-bottom: 2rem;
    min-width: unset;
  }

  .vision-content {
    order: 1;
    padding-left: 0;
  }

  .vision-image {
    order: 2;
  }

  .about-title,
  .vision-title,
  .mission-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .about-text,
  .vision-text,
  .mission-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  /* Carousel Fixes - Combined Styles */
  .image-carousel,
  .vision-carousel,
  .mission-carousel {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .carousel-image,
  .vision-carousel .carousel-image,
  .mission-carousel-image {
    position: relative !important;
    opacity: 1 !important;
    display: block !important;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 15px;
  }

  .carousel-button,
  .vision-carousel .carousel-button,
  .mission-carousel .carousel-button {
    display: none !important;
  }

  /* Image Containers */
  .about-image,
  .vision-image,
  .mission-image {
    width: 100%;
    min-width: unset;
    height: auto;
    margin-top: 10px;
  }

  /* Footer */
  footer {
    padding: 2rem 1rem;
  }

  .contact-box {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    margin: 0.3rem;
  }

  .social-icons {
    gap: 1rem;
  }

  .footer-logo {
    height: 45px;
  }
}


@media (max-width: 480px) {
  /* Extra small devices */
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .about-title,
  .vision-title,
  .mission-title {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 1.25rem;
  }
}


