/* BIMT - Badaun Institute of Management & Technology */

:root{
  --bg: #0b1020;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.7);
  --primary: #4f46e5; /* indigo */
  --secondary: #7c3aed; /* violet */
  --gold: #fbbf24;
  --ring: rgba(251,191,36,0.35);
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --shadow-soft: 0 12px 28px rgba(0,0,0,0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1140px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(900px 500px at 10% 10%, rgba(124,58,237,0.25), transparent 55%),
              radial-gradient(700px 450px at 90% 20%, rgba(79,70,229,0.25), transparent 55%),
              radial-gradient(600px 450px at 50% 90%, rgba(251,191,36,0.14), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height:1.6;
}

img{ max-width:100%; height:auto; }

/* Loading screen */
#loader{
  position:fixed;
  inset:0;
  background: linear-gradient(135deg, rgba(79,70,229,0.25), rgba(124,58,237,0.25)), #070a14;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
}
#loader .spinner{
  width:84px; height:84px;
  border-radius:50%;
  border: 6px solid rgba(255,255,255,0.12);
  border-top-color: var(--gold);
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 0 10px rgba(251,191,36,0.08);
}
#loader .loader-text{
  margin-top:14px;
  text-align:center;
  font-weight:700;
  letter-spacing:0.4px;
  color: rgba(255,255,255,0.9);
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* Navbar */
.navbar{
  background: rgba(11,16,32,0.55) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar.scrolled{ box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.navbar-brand{
  font-weight:900;
  letter-spacing:0.6px;
  color: #E53935 !important;
}
.navbar-brand span{
  color: var(--gold);
}
.navbar .nav-link{
  color: rgba(255,255,255,0.78);
  font-weight:600;
  padding: 10px 12px;
  border-radius: 999px;
  transition: 0.25s ease;
}
.navbar .nav-link:hover{
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.08);
}
.navbar .nav-link.active{
  color: #0b1020;
  background: linear-gradient(135deg, rgba(251,191,36,0.95), rgba(255,255,255,0.85));
}

/* Hero */
.hero{
  position:relative;
  min-height: 92vh;
  display:flex;
  align-items:center;
  padding: 90px 0 60px;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, rgba(0,0,0,0.65), rgba(0,0,0,0.15)),
              url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
  filter: saturate(1.05);
  z-index:0;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(600px 320px at 20% 20%, rgba(79,70,229,0.35), transparent 60%),
              radial-gradient(540px 320px at 80% 10%, rgba(124,58,237,0.30), transparent 55%),
              radial-gradient(440px 260px at 60% 80%, rgba(251,191,36,0.18), transparent 60%);
  z-index:0;
}
.hero .container{ position:relative; z-index:1; }

.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.86);
}
.badge-soft i{ color: var(--gold); }

.hero h1{
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.6px;
}
.hero p{
  color: rgba(255,255,255,0.78);
  font-size: 1.07rem;
  max-width: 720px;
}

.hero .btn-primary{
  border:0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 35px rgba(124,58,237,0.25);
}
.hero .btn-primary:hover{ filter: brightness(1.05); transform: translateY(-1px); }

.hero .btn-outline-light{
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
}
.hero .btn-outline-light:hover{
  border-color: rgba(251,191,36,0.6);
  box-shadow: 0 0 0 4px var(--ring);
}

.glow{
  position:absolute;
  right:-120px; top: -140px;
  width: 420px; height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(251,191,36,0.28), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(124,58,237,0.28), transparent 55%);
  filter: blur(2px);
  z-index:0;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty{
  0%,100%{ transform: translate(0,0); }
  50%{ transform: translate(-18px, 16px); }
}

/* Sections */
.section-title{
  font-weight: 900;
  letter-spacing:-0.4px;
}
.section-subtitle{ color: var(--muted); }

.card-glass{
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card-glass:hover{ transform: translateY(-4px); transition: transform .25s ease; }

.feature-icon{
  width: 46px; height:46px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(79,70,229,0.35), rgba(124,58,237,0.25));
  border: 1px solid rgba(255,255,255,0.14);
}
.feature-icon i{ color: var(--gold); }

/* Gallery cards zoom */
.gal-img{ border-radius: 14px; overflow:hidden; position:relative; }
.gal-img img{ transition: transform .5s ease; }
.gal-img:hover img{ transform: scale(1.07); }

/* Counters */
.counter{
  padding: 22px 18px;
}
.counter .num{ font-size: 2.2rem; font-weight: 900; color: var(--gold); }
.counter .label{ color: rgba(139, 139, 144, 0.933); font-weight:700; }

/* Testimonials */
.testimonial-card{ padding: 26px 22px; }
.quote-icon{ color: rgba(251,191,36,0.95); }

/* Accordions */
.accordion-button{
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.92) !important;
  border-radius: var(--radius-sm) !important;
}
.accordion-item{ background: transparent !important; border-color: rgba(255,255,255,0.12) !important; }
.accordion-button:not(.collapsed)::after{ filter: brightness(2); }

/* Footer */
.footer{
  background: rgba(0,0,0,0.22);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer a{ color: rgba(255,255,255,0.8); text-decoration:none; }
.footer a:hover{ color: #fff; }

/* Back to top */
#backToTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display:none;
}

/* WhatsApp */
#whatsapp{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1000;
}

/* ===== Faculty Section - Premium Card Upgrades ===== */
/* Targets ONLY faculty cards via class combos unique to them:
   - img.rounded-circle  (placements uses <i> icons, not <img>)
   - h5.fw-bold.mt-3.mb-0 (placements h5 has no mb-0)
   - div.text-white-50.small (placements uses <p> not <div>)
*/

.card-glass.h-100.text-center img.rounded-circle {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  margin-bottom: 0;
}

.card-glass.h-100.text-center h5.fw-bold.mt-3.mb-0 {
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  margin-top: 1rem !important;
  margin-bottom: 0.35rem !important;
}

.card-glass.h-100.text-center div.text-white-50.small {
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0;
}

/* Image hover: subtle scale-up + deeper shadow — only for faculty cards (have img.rounded-circle) */
.card-glass.h-100.text-center:hover img.rounded-circle {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

/* ===== Director Message - Premium Executive Profile ===== */
/* Targets ONLY the Director card via unique parent chain:
   .row.g-4.mt-5 appears exactly once (second row on about.html)
   [data-aos-delay="120"] only exists on the Director's col wrapper
   Goals card in same row has data-aos="fade-up" WITHOUT data-aos-delay */

/* === Card: increased premium padding === */
.row.g-4.mt-5 [data-aos-delay="120"] .card-glass {
  padding: 2rem !important;
  overflow: hidden;
}

/* === d-flex row: full width inside card with generous gap === */
.row.g-4.mt-5 [data-aos-delay="120"] .card-glass > .d-flex {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* === PHOTO: Large portrait occupying ~45% of card width === */
.row.g-4.mt-5 [data-aos-delay="120"] .card-glass img.rounded-circle {
  width: 45% !important;
  max-width: 250px !important;
  height: auto !important;
  aspect-ratio: 3 / 4;
  object-fit: cover !important;
  border-radius: 16px !important;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px var(--ring), 0 12px 32px rgba(0,0,0,0.4) !important;
  flex-shrink: 0 !important;
}

/* === Photo wrapper: subtle glass accent behind image === */
.row.g-4.mt-5 [data-aos-delay="120"] .card-glass > .d-flex > img.rounded-circle {
  position: relative;
}

/* === NAME: Much larger and bolder === */
.row.g-4.mt-5 [data-aos-delay="120"] .card-glass h3.h5.fw-bold.mb-1 {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.6px;
  margin-bottom: 0.3rem !important;
  line-height: 1.2;
}

/* === DESIGNATION: Premium gold styling === */
.row.g-4.mt-5 [data-aos-delay="120"] .card-glass div.text-white-50.small {
  color: var(--gold) !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.85rem !important;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

/* === QUOTE: Elegant italic with large decorative quote mark === */
.row.g-4.mt-5 [data-aos-delay="120"] .card-glass p.text-white-50.small {
  font-style: italic;
  font-size: 0.95rem !important;
  line-height: 1.9;
  position: relative;
  margin-top: 0;
  padding-left: 0;
}

/* Large decorative quotation mark — CSS only */
.row.g-4.mt-5 [data-aos-delay="120"] .card-glass p.text-white-50.small::before {
  content: "\201C";
  position: absolute;
  left: -6px;
  top: -14px;
  font-size: 3.4rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  opacity: 0.55;
  pointer-events: none;
}

/* === HOVER: Very subtle lift effect === */
.row.g-4.mt-5 [data-aos-delay="120"] .card-glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.38) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== DESKTOP: Image left, text right alignment ===== */
@media (min-width: 768px) {
  /* Align quote text with name text (right of image) */
  .row.g-4.mt-5 [data-aos-delay="120"] .card-glass p.text-white-50.small {
    padding-left: calc(45% + 1.5rem);
  }
}

/* ===== LARGE DESKTOP: Cap image at 250px ===== */
@media (min-width: 1200px) {
  .row.g-4.mt-5 [data-aos-delay="120"] .card-glass img.rounded-circle {
    max-width: 250px !important;
  }
}

/* ===== TABLET: Slightly smaller image ===== */
@media (max-width: 991px) and (min-width: 768px) {
  .row.g-4.mt-5 [data-aos-delay="120"] .card-glass img.rounded-circle {
    width: 40% !important;
    max-width: 200px !important;
  }
  .row.g-4.mt-5 [data-aos-delay="120"] .card-glass p.text-white-50.small {
    padding-left: calc(40% + 1.5rem);
  }
  .row.g-4.mt-5 [data-aos-delay="120"] .card-glass h3.h5.fw-bold.mb-1 {
    font-size: 1.35rem !important;
  }
}

/* ===== MOBILE: Image above text, centered ===== */
@media (max-width: 767px) {
  .row.g-4.mt-5 [data-aos-delay="120"] .card-glass > .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 1rem;
  }

  .row.g-4.mt-5 [data-aos-delay="120"] .card-glass img.rounded-circle {
    width: 70% !important;
    max-width: 240px !important;
  }

  .row.g-4.mt-5 [data-aos-delay="120"] .card-glass h3.h5.fw-bold.mb-1 {
    font-size: 1.35rem !important;
  }

  .row.g-4.mt-5 [data-aos-delay="120"] .card-glass p.text-white-50.small {
    text-align: center;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 0.9rem !important;
  }

  .row.g-4.mt-5 [data-aos-delay="120"] .card-glass p.text-white-50.small::before {
    left: 0.5rem;
  }

  .row.g-4.mt-5 [data-aos-delay="120"] .card-glass > .d-flex {
    margin-bottom: 1rem;
  }
}

/* Responsive */
@media (max-width: 991px){
  .glow{ display:none; }
}

