
/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #fffbf7;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #100901;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}


/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: 0.3s;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .btn-getstarted {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(34, 18, 2, 0.9);
}


/*--------------------------------------------------------------
# Preloader Styles
--------------------------------------------------------------*/

#preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader img {
    width: 50%;          /* desktop default */
    max-width: 90%;
    animation: zoomPulse 1.6s ease-in-out infinite;
    background: transparent;
    filter: brightness(1.05) contrast(1.2);
}

/* Animation */
@keyframes zoomPulse {
    0%   { transform: scale(0.95); opacity: 0.8; }
    50%  { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Hide Preloader */
#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

/* 📱 MOBILE VIEW — LARGER LOGO */
@media (max-width: 768px) {
    #preloader img {
        width: 100%;        /* 👈 larger on mobile */
        max-width: 90%;
    }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate; /* IMPORTANT: keeps background inside hero only */
}



/* FIXED background that works on mobile + tablet + desktop */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;             /* Only hero area */
  background-image: url("../img/hero/maincampus.jpg");
  background-size: cover;
  background-position: center;
  /* Magic trick for fixed effect */
  background-attachment: fixed;
  z-index: -1;
}


/* Keep your overlay */
.hero .background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--background-color), transparent 30%) 0%,
    color-mix(in srgb, var(--background-color), transparent 50%) 100%
  );
  z-index: 1;
}

/* Keep your content exactly the same */
.hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 110px 0 50px;
}
@media (max-width: 575px) {
  .hero-bg {
    background-size: 100% auto;  /* prevent vertical crop */
  }
}
@media (max-width: 575px) {
  .hero-bg {
    background-size: 100% auto;  /* prevent vertical crop */
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .hero .hero-content {
    padding: 95px 30px 45px;
  }
}
@media (min-width: 992px) and (max-width: 1399px) {
  .hero .hero-content {
    padding: 110px 0 50px;
  }
}
@media (min-width: 1400px) and (max-width: 1919px) {
  .hero .hero-content {
    padding: 140px 0 70px;
  }
}
@media (min-width: 1920px) {
  .hero .hero-content {
    padding: 180px 0 90px;
    max-width: 1600px;
    margin: 0 auto;   /* keeps content centered on TV */
  }
}
.hero-logo {
  width: 20%;
  max-width: 280px;   /* prevents over-scaling on big screens */
  min-width: 140px;   /* keeps visible on small mobiles */
  height: auto;
  display: block;
  margin: 150px auto 50px; /* center + spacing */
}

/* Small mobile (≤ 360px) */
@media (max-width: 360px) {
  .hero-logo {
    width: 55%;
    margin: 110px auto 40px;
  }
}

/* Mobile (≤ 575px) */
@media (max-width: 575px) {
  .hero-logo {
    width: 50%;
    margin: 120px auto 45px;
  }
}

/* Tablet (576px – 991px) */
@media (min-width: 576px) and (max-width: 991px) {
  .hero-logo {
    width: 35%;
    margin: 140px auto 50px;
  }
}

/* Laptop / Desktop (992px – 1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
  .hero-logo {
    width: 22%;
    margin: 150px auto 50px;
  }
}

/* Large desktop (1400px – 1919px) */
@media (min-width: 1400px) {
  .hero-logo {
    width: 20%;
    margin: 160px auto 60px;
  }
}

/* Big TV / Ultra-wide (≥ 1920px) */
@media (min-width: 1920px) {
  .hero-logo {
    width: 15%;
    max-width: 360px;
    margin: 180px auto 70px;
  }
}


