/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

/* BODY */
body {
    background: #f5f5f5;
    margin: 0;
}

.logo img {
    width: 150px;
    height: auto;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    background: #004080;
    color: white;
    position: relative;
}

/* LOGO */
.logo h2 {
    font-size: 24px;
}

/* ================= DESKTOP NAV ================= */
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    position: static; /* 🔥 FIX */
    background: none;
    width: auto;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ffd700;
}

/* DROPDOWN DESKTOP */
.dropdown-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background: white;
    list-style: none;
    width: 180px;
    border-radius: 5px;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    z-index: 999;
}

.dropdown-menu li {
    padding: 10px;
}

.dropdown-menu li a {
    color: black;
    display: block;
}

.dropdown-menu li:hover {
    background: #f0f0f0;
}

/* SHOW DROPDOWN (DESKTOP) */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================= RIGHT BUTTONS ================= */
.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
}

/* CAREER BUTTON */
.career {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.career:hover {
    background: white;
    color: #004080;
}

/* ADMISSION BUTTON */
.admission {
    background: #ffd700;
    color: black;
    font-weight: bold;
}

.admission:hover {
    background: #ffcc00;
    transform: scale(1.05);
}

/* MENU TOGGLE */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #004080;

        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 15px;

        display: none; /* hidden by default */
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* MOBILE DROPDOWN */
    .dropdown-menu {
        position: static;
        background: #003060;
        color: white;

        opacity: 1;
        visibility: visible;
        transform: none;

        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: white;
    }
 
}



/* FOOTER */
.footer {
    background: linear-gradient(135deg, #0a3d62, #1e5f9e);
    color: white;
    padding: 50px 60px 20px;
}

/* CONTAINER */
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* SECTIONS */
.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h2 {
    margin-bottom: 15px;
    font-size: 22px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p {
    margin: 8px 0;
    font-size: 14px;
}

/* LINKS */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: #00c3ff;
}

/* BRANCH */
.branch {
    margin-top: 15px;
}

.branch h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
}


.footer {
    background: #004080;
    color: #fff;
    text-align: center;
    padding: 15px;
}




section {
    padding: 60px 10%;
}

h1,
h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* HERO */
.hero {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 perfect fit */
    display: block;
}

/* ✅ Mobile Fix */
@media (max-width: 768px) {
    .hero {
        height: 40vh; /* adjust for mobile */
    }
}









/* SECTION */
.cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #004080, #0073e6);
    color: white;
}

/* TITLE */
.cta-title {
    font-size: 34px;
    margin-bottom: 40px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* BUTTON CONTAINER */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* BASE BUTTON */
.cta-btn {
    padding: 15px 40px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

/* CAREER BUTTON */
.career-btn {
    background: transparent;
    border: 2px solid #fff;
    color: white;
}

/* ADMISSION BUTTON */
.admission-btn {
    background: #ffd700;
    color: #000;
}

/* HOVER EFFECT COMMON */
.cta-btn::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.2);
    transition: 0.4s;
    z-index: -1;
}

.cta-btn:hover::before {
    width: 100%;
}

/* CAREER HOVER */
.career-btn:hover {
    background: white;
    color: #004080;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ADMISSION HOVER */
.admission-btn:hover {
    background: #ffcc00;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* CLICK EFFECT */
.cta-btn:active {
    transform: scale(0.95);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .cta-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .cta-btn {
        width: 80%;
        margin: auto;
    }
}




/* SECTION */
.hero-two-section {
    padding: 40px 40px;
    background: #f5f7fb;
}

/* CONTAINER */
.hero-two-container {
    display: flex;
    gap: 30px;
    /* max-width: 1200px; */
    margin: auto;
}

/* BOX */
.hero-box {
    flex: 1;
    height: 350px; /* fixed height */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

/* IMAGE */
.hero-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* no distortion */
    transition: 0.5s ease;
}

/* HOVER EFFECT */
.hero-box:hover img {
    transform: scale(1.08);
}

/* OVERLAY EFFECT */
.hero-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 64, 128, 0.2);
    opacity: 0;
    transition: 0.4s;
}

.hero-box:hover::after {
    opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-two-container {
        flex-direction: column;
    }

    .hero-box {
        height: 250px;
    }
}


.cards {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    width: 400px;
    height: 300px;
    perspective: 1200px; /* 👈 better 3D depth */
    transition: transform 0.3s ease;
}

.card-inner {
    width: 100%;
    height: 100%;
    transition: transform 1.3s ease-in-out; /* 👈 slower & smooth flip */
    transform-style: preserve-3d;
    position: relative;
}

/* Flip on scroll */
.card.flip .card-inner {
    transform: rotateY(180deg);
}

/* Flip on hover */
.card:hover .card-inner {
    transform: rotateY(180deg) scale(1.03); /* flip + zoom */
}

/* Lift effect */
.card:hover {
    transform: translateY(-8px);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    backface-visibility: hidden;

    display: flex;
    align-items: flex-end; /* text bottom */
    justify-content: center;

    padding-bottom: 25px;

    color: white;
    font-size: 18px;
    font-weight: bold;

    background-size: cover;
    background-position: center;

    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Back side */
.card-back {
    transform: rotateY(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        width: 90%;
    }
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.box:hover {
    transform: translateY(-10px);
}

/* STATS */
.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat h2 {
    font-size: 40px;
    color: #2196f3;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: auto;
}

input,
textarea {
    padding: 10px;
    border: 1px solid #ccc;
}

button {
    background: #2196f3;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* ANIMATION */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* SECTION */
.about-section {
  padding: 60px 50px;
  background: #f5f7fa;
}

/* ROW */
.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 60px;
}

/* REVERSE */
.about-row.reverse {
  flex-direction: row-reverse;
}

/* IMAGE */
.about-img {
  flex: 1;
  overflow: hidden;
  border-radius: 15px;
}

.about-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: 0.5s ease;
  border-radius: 15px;
}

/* 🔥 HOVER EFFECT */
.about-img:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* TEXT */
.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #004080;
}

.about-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {

  .about-row {
    flex-direction: column;
    text-align: center;
  }

  .about-row.reverse {
    flex-direction: column;
  }

  .about-img img {
    height: 220px;
  }
}


/* SECTION */
.facilities {
  padding: 60px 40px;
  background: #f5f7fa;
  text-align: center;
}

.fac-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #004080;
}

/* GRID */
.fac-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* CARD */
.fac-card {
  perspective: 1000px;
}

/* INNER */
.fac-inner {
  position: relative;
  width: 100%;
  height: 260px;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

/* FLIP EFFECT */
.fac-card:hover .fac-inner {
  transform: rotateY(180deg);
}

/* FRONT & BACK */
.fac-front,
.fac-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  padding: 20px;
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ICON */
.fac-front img {
  width: 60px;
  margin-bottom: 15px;
  transition: 0.3s;
}

/* TEXT */
.fac-front h3,
.fac-back h3 {
  margin-bottom: 10px;
  color: #333;
}

.fac-front p,
.fac-back p {
  font-size: 14px;
  color: #666;
}

/* BACK SIDE */
.fac-back {
  transform: rotateY(180deg);
  background: #004080;
  color: white;
}

.fac-back h3,
.fac-back p {
  color: white;
}

/* 🔥 HOVER EFFECTS */
.fac-card:hover {
  transform: scale(1.05);
  transition: 0.3s;
}

.fac-card:hover img {
  transform: scale(1.2) rotate(5deg);
}

/* 📱 RESPONSIVE */
@media (max-width: 992px) {
  .fac-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fac-container {
    grid-template-columns: 1fr;
  }
}




