/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: 100vw;
}

/* --- Lenis Recommended CSS --- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* --- COMPLETELY HIDE SCROLLBAR --- */
::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  /* Added to prevent reveal animations from causing overflow */
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  all: unset;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition:
    opacity 1.6s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition:
    opacity 1.6s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.stagger-reveal .reveal {
  transition-delay: calc(var(--order) * 0.1s);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}

.logo-img {
  width: 6rem;
  margin-top: 8px;
}

.desktop-menu {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #4b5563;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #3d4094;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  color: #4b5563;
  font-weight: 500;
  font-size: 15px;
  gap: 4px;
}

.dropdown-parent {
  position: relative;
  padding: 10px 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  min-width: 180px;
  z-index: 100;
}

.dropdown-menu.wide {
  width: 288px;
}

.dropdown-menu.medium {
  width: 240px;
}

.dropdown-menu.right-align {
  left: auto;
  right: 0;
}

.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #374151;
  margin: 4px;
  border-radius: 8px;
}

.dropdown-item:hover {
  background-color: #eef2ff;
  color: #4f46e5;
}

.mobile-menu-btn {
  color: #4b5563;
  font-size: 28px;
  display: none;
}

@media (max-width: 1199px) {
  .desktop-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (min-width: 1200px) {
  .desktop-menu {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Mobile Menu Container */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: #ffffff;
  z-index: 45;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-link {
  font-size: 1.2rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

/* --- Scroll To Top Button Fixed --- */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #3d4094;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(61, 64, 148, 0.3);
  z-index: 999;
  /* Higher z-index to stay on top */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: #ed3338;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(237, 51, 56, 0.4);
}

@media (max-width: 768px) {
  .scroll-top-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
    bottom: 20px;
    right: 25px;
    /* Adjusted slightly inward to prevent cut-off */
  }
}

/* --- Video Header --- */
.video-header {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.video-header video {
  object-fit: cover;
  object-position: top center;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.header-content h1 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- About Section --- */
.about {
  padding: 80px 20px;
  background: #fff;
}

.about-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
}

.image-box {
  position: relative;
  flex-shrink: 0;
}

.img-placeholder {
  width: 300px;
  height: 380px;
  background: #f7f7d9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}

.img-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.corner {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 2;
}

.top-left {
  top: -10px;
  left: -10px;
  border-top: 4px solid #ff8a00;
  border-left: 4px solid #ff8a00;
}

.bottom-right {
  bottom: -10px;
  right: -10px;
  border-bottom: 4px solid #00aaff;
  border-right: 4px solid #00aaff;
}

.about-content {
  text-align: left;
}

.about-content h2 {
  font-size: 36px;
  color: #3f3fa0;
  line-height: 1.3;
  margin-bottom: 20px;
  font-family: "Fredoka", sans-serif;
}

.about-content p {
  color: #4b5563;
  margin-bottom: 15px;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.industry-tag {
  background: #eef2ff;
  color: #3d4094;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #d1dcfc;
  transition: 0.3s;
}

/* --- Attributes Grid (Balanced/Centered) --- */
.attributes-section {
  padding: 60px 20px;
  background: #f9fafb;
  text-align: center;
}

.attributes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.attribute-card {
  flex: 0 1 170px;
  padding: 25px 15px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: 0.4s ease;
  min-width: 150px;
}

.attribute-card:hover {
  transform: translateY(-8px);
  border-color: #3d4094;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.attribute-card i {
  font-size: 2.2rem;
  color: #ff8a00;
  margin-bottom: 12px;
  display: block;
}

.attribute-card h4 {
  font-family: "Fredoka", sans-serif;
  color: #3d4094;
  font-size: 1.1rem;
}

@media (max-width: 500px) {
  .attribute-card {
    flex: 0 1 calc(50% - 10px);
    min-width: 0;
    padding: 20px 10px;
  }

  .attributes-grid {
    gap: 20px;
  }
}

/* --- Mission/Vision --- */
.mv-section {
  padding: 80px 20px;
  background: #fff;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

@media (min-width: 768px) {
  .mv-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mv-card {
  border: 2px solid #111;
  border-radius: 18px;
  padding: 40px;
  transition: 0.3s;
  background: #fff;
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mv-icon {
  font-size: 2.5rem;
  color: #3d4094;
  margin-bottom: 20px;
}

.mv-card h3 {
  font-family: "Fredoka", sans-serif;
  margin-bottom: 15px;
  color: #3d4094;
}

/* --- Director Section --- */
.director-section {
  background: linear-gradient(120deg, #0b2540 60%, #0f3b66 40%);
  padding: 90px 0;
  color: #fff;
}

.director-overlay {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.label {
  color: #ff8a00;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.director-overlay h2 {
  font-size: 42px;
  margin-bottom: 40px;
}

.director-card {
  max-width: 500px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  padding: 30px;
}

.message {
  font-style: italic;
  line-height: 1.7;
  color: #e5e5e5;
}

.divider {
  height: 2px;
  background: #7a8a9a;
  margin: 25px 0 15px;
}

.name {
  font-weight: 600;
  font-size: 18px;
}

.designation {
  color: #ff8a00;
  font-size: 14px;
  margin-top: 5px;
}

/* --- Footer --- */
.footer-section {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 80px 0 30px 0;
  font-family: "Roboto", sans-serif;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: #ffffff;
  font-family: "Fredoka", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #ed3338;
  border-radius: 2px;
}

.footer-logo img {
  width: 6rem;
}

.footer-about-text {
  color: #9ca3af;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 300px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ed3338;
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: #d1d5db;
  align-items: flex-start;
}

.footer-contact i {
  color: #ed3338;
  font-size: 1.5rem;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .director-overlay h2 {
    font-size: 32px;
  }

  body {
    padding-top: 70px;
  }
}
