/* ===========================================
   HOME.CSS - Homepage Specific Styles
   =========================================== */

/* ===========================================
   HERO SECTION
   =========================================== */

.hero {
    min-height: 100vh;
    padding-bottom: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 75, 90, 0.7), rgba(42, 107, 122, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out 0.3s both;
}

.hero-logo-img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.hero-logo-img:hover {
    transform: scale(1.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    background: linear-gradient(-45deg, #094d6b, #2A6B7A, #D4AF37, #F5E6B8);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #F5E6B8;
    animation: fadeInUp 1s ease-out 0.9s both;
    overflow: hidden;
    border-right: 2px solid #F5E6B8;
    white-space: nowrap;
    animation: typewriter 3s steps(40) 1s both, blink 1s infinite;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.5s both;
    position: relative;
    z-index: 3;
    margin-top: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Hero text styles for video background */
.hero-text {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    top: 40%;
    transform: translateY(-50%);
    margin-top: 100px;
}

.hero-text h1 {
    font-size: 6em;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Oswald', sans-serif;
}

.ncss {
    font-size: 4em;
}

.ncss, .h1-hero {
    font-size: 100px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2px #F7F1C5;
    text-align: center;
}

/* Particle background effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* ===========================================
   ABOUT SECTION
   =========================================== */

.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #094d6b;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #094d6b;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

/* ===========================================
   CAMPUS SECTION (Staff on Homepage)
   =========================================== */

.campus {
    padding: 100px 0;
    background: white;
}

.campus-gallery {
    display: flex;
    
    justify-items: center;
}

.gallery-item {
    display: flex;
    align-items: center;
    vertical-align: center;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 480px;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 360px;
    height: 480px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(27, 75, 90, 0.9));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

#see-more {
    display: block;
    margin: 25px 15px 25px 15px;
    width: 135px;
    height:5px;
}

#btn-see-more {
    width: auto;
    margin: auto;
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;     /* vertical center */
}

/* ===========================================
   ADMISSIONS SECTION
   =========================================== */

.admissions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0;
    background: #f8f9fa;
}

.admissions-content {
    display: grid;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.admissions-info {
    display: flex;
    justify-content: center;
}

.admissions-info h3 {
    font-size: 2rem;
    color: #094d6b;
    margin-bottom: 1.5rem;
}

.admissions-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

#admissions-btn {
    background-color: white;
    border: 2px solid #094d6b;
    height: 50px;
    border-radius: 0px;
    width: 250px;
    cursor: pointer;
    color: #094d6b;
    font-size: 16px;
    background-image: linear-gradient(135deg, #094d6b, #2A6B7A);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left;
    transition: background-size 0.5s ease, color 0.5s ease;
}

#admissions-btn:hover {
    background-size: 100% 100%;
    color: white;
}

/* ===========================================
   SLIDESHOW
   =========================================== */

.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 100%;
    transition: left 1s ease-in-out;
}

.slideshow img.active {
    left: 0;
    z-index: 2;
}

.slideshow img.prev {
    left: -100%;
    z-index: 1;
}

/* ===========================================
   ANIMATIONS
   =========================================== */

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(27, 75, 90, 0.9));
    color: white;
    padding: 2rem;

    transition: transform 0.3s ease;
}

    .hero {
        min-height: 100vh;
        padding: var(--hero-padding-mobile);
    }
    
    .hero-content {
        padding: 0 var(--tablet-padding);
    }
    
    .hero-logo-img {
        height: 100px;
        width: 100px;
        animation: float 3s ease-in-out infinite;
    }
    
    .hero-title {
        font-size: 2.5rem;
        animation: mobileSlideIn 1s ease-out;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        animation: mobileSlideIn 1s ease-out 0.2s both;
    }
    
    .hero-buttons {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        animation: mobileSlideIn 1s ease-out 0.4s both;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding-bottom: 0;
    }
    
    .stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .campus-gallery {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
    .gallery-item{
        width: 270px;
        height: 360px;
    }
    .gallery-item img{
        width: 270px;
        height: 360px ;
    }
    .admissions-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--hero-padding-small);
    }
    
    .hero-content {
        padding: 0 var(--mobile-padding);
    }
    
    .hero-logo-img {
        height: 80px;
        width: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

container {
  width: 95%;
  max-width: 900px;
  padding: 20px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.map-container {
  width: 100%;
  height: 500px;
  border: 3px solid #094d6b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile optimization */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .map-container {
    height: 300px;
  }
}