@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #ffffff;   /* White */
  --secondary-color: #000000; /* Black */
  --accent-color: #777777;    /* A mid-tone gray for contrast */
  --text-light: #000000;      /* Black text for light backgrounds */
  --text-muted: #444444;      /* Darker gray for secondary text */
  --bg-dark: #ffffff;         /* Pure white background */
}


body {
  background: linear-gradient(-45deg, var(--accent-color), var(--primary-color));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  cursor: none;
  margin: 0;
  padding: 0;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navbar Styling */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-brand img {
  height: 40px;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.1);
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background-color: var(--accent-color)!important;
}
.nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--accent-color) !important;
}

.dropdown-menu {
  background: var(--bg-dark);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 0.9rem;

}

.dropdown-item:hover {
  color: var(--primary-color) !important;
  background-color: var(--accent-color)!important;
}

/* Hero Section */
.hero-diagonal-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.diagonal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  opacity: 0.5;
  transition: opacity 1s ease-in-out;
}

.diagonal-image.active {
  opacity: 0.9;
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
  max-width: 850px;
  background: linear-gradient(-45deg, rgba(159, 165, 175, 0.5), rgba(180, 189, 204, 0.5), rgba(133, 140, 153, 0.5), rgba(142, 158, 161, 0.5));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(181, 196, 199, 0.062);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-text h2 {
  font-size: 1.90rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Divisions Section */
.divisions-section {
  padding: 50px 20px;
  max-width: 1280px;
  margin: 0 auto;
  background: transparent;
}

.divisions-section h2 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.division-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
  border: 3px solid transparent;
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeIn 0.6s ease forwards;
  display: flex; /* Added to control layout */
  flex-direction: column; /* Stack elements vertically */
  min-height: 300px; /* Ensure consistent card height */
}

.division-card:nth-child(2) { animation-delay: 0.2s; }
.division-card:nth-child(3) { animation-delay: 0.4s; }
.division-card:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.division-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.card-icon {
  margin: 0 auto 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.division-card:hover .card-icon {
  transform: rotate(360deg);
}

.division-card h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.division-card p {
  color: #000000;
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.8;
  flex-grow: 2; /* Allow paragraphs to take available space */
}

.division-card a.hover-effect {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.division-card a.hover-effect:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.btn-learn-more {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  margin-top: auto; /* Push button to the bottom */
  align-self: center; /* Ensure horizontal centering */
}

.btn-learn-more:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(41, 70, 126, 0.664);;
}

.btn-learn-more:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 768px) {
  .divisions-grid {
    grid-template-columns: 1fr;
  }

  .divisions-section h2 {
    font-size: 1.8rem;
  }

  .division-card {
    padding: 20px;
  }
}

/* Experience Section */
.experience-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
}

.experience-section h2 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.experience-section h2::after {
  content: '';
  display: block;
  width: 17%;
  height: 3px;
  background: rgba(41, 70, 126, 0.664);
  margin: 10px auto;
  border-radius: 2px;
}

.experience-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  text-align: left;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  border-radius: 20px 0 0 20px;
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.experience-card h4 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.experience-card p {
  color: #000000;
  font-size: 0.95rem;
  line-height: 1.6;
  
}

/* Contact Section */
.contact-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-section p {
  color: #000000;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.contact-section .btn {
  display: inline-block;
  background: transparent;
  border: 2px solid Black;
  /*color: var(--primary-color);*/
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.contact-section .btn:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(41, 70, 126, 0.664);;
}

/* Footer Section */
footer {
  background: var(--bg-dark);
  backdrop-filter: blur(8px);
  padding: 3rem 0;
}

footer h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

footer p, footer a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

footer .hover-effect:hover {
  color: #000000;
}


/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.custom-cursor:hover-state {
  background: var(--secondary-color);
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1.5);
}

/* Responsive Design */
@media (max-width: 992px) {
  .navbar-nav {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 0.5rem;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
  }

  .dropdown-menu {
    background: rgba(255, 255, 255, 0.1);
    border: none;
  }

  .section-cards, .experience-section {
    grid-template-columns: 1fr;
  }

  .card-custom.center-card {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .navbar-brand img {
    height: 30px;
  }

  .hero-diagonal-section {
    padding: 80px 20px;
  }

  .hero-text h2 {
    font-size: 1.3rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .section-cards, .experience-section {
    padding: 20px;
  }

  .card-custom, .experience-card {
    padding: 1.5rem;
  }

  .section-cards h2, .experience-section h2 {
    font-size: 1.8rem;
  }

  .btn-learn-more, .contact-section .btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
  }

  footer {
    text-align: center;
  }

  footer .col-md-4 {
    margin-bottom: 2rem;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .card-custom h4, .experience-card h4 {
    font-size: 1.2rem;
  }

  .card-custom p, .experience-card p {
    font-size: 0.9rem;
  }

  .btn-learn-more, .contact-section .btn {
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
  }
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }
}