/* ==========================================================================
   1. GLOBAL STYLES & RESET
   ========================================================================== */
body, html {
    margin: 0;
    padding: 0;
    font-family: "Urbanist", sans-serif;
    color: #333333;
    background-color: #ffffff;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    font-family: "Urbanist", sans-serif;
}

/* ==========================================================================
   2. PRELOADER LOADING SCREEN (CENTER ALIGNED FIXED)
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                visibility 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#preloader .loader-logo {
    width: 200px;
    height: auto;
    display: block;
    margin: auto;
    animation: logoPulse 1.8s ease-in-out infinite;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

@keyframes logoPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   3. NAVIGATION BAR (MODIFIED FOR TRANSPARENCY & TRANSITIONS)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    box-shadow: none;
    padding: 0 80px;
    z-index: 1000;
    transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Solid white display triggers instantly when scrolled container intercepts logic threshold */
.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
}

#colab-logo {
    width: 150px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff; 
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

/* Changes textual targets safely back to corporate brand blue once backdrop is solid white */
.navbar.scrolled .nav-links a {
    color: #2b4c7e;
}

.nav-links a:hover {
    color: #7ca852 !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff; /* Initial crisp white mobile links layout */
    margin: 3px 0;
    transition: 0.3s;
}

.navbar.scrolled .hamburger span {
    background-color: #333333;
}

/* ==========================================================================
   4. HERO SECTION (MODIFIED FOR SCROLL REVEAL EFFECT)
   ========================================================================== */
.hero-section {
    position: fixed; /* Pins page1 in place so page2 can slide over it */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100vh; 
    padding: 100px 150px 0 150px;
    background-image: linear-gradient(rgba(43, 76, 126, 0.4), rgba(43, 76, 126, 0.4)), url('../UpdatePhotos/Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    z-index: 1; /* Sits underneath page2 */
}

.hero-title {
    color: #ffffff !important;
    font-size: 64px !important;
    font-weight: 800 !important;
    font-style: italic !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 10px 0 !important;
    display: block !important;
}

.hero-title+.hero-title {
    margin-bottom: 35px !important;
}

.BOOK a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background-color: #7ca852;
    padding: 8px 28px 8px 10px;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

.BOOK a:hover {
    background-color: #6b9444;
    transform: translateY(-2px);
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    color: #7ca852;
    font-size: 18px;
    margin-right: 15px;
}

.BOOK h3 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   5. MIDDLE CONTENT (MODIFIED FOR SCROLL REVEAL EFFECT)
   ========================================================================== */
#page2 {
    position: relative;
    z-index: 2; /* Sits on top of page1 */
    margin-top: 100vh; /* Pushes page2 exactly below the browser screen window line on load */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 40px;
    background-color: #ffffff;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1); /* Adds a premium subtle shadow edge as it cuts over page1 */
}

.section-title {
    font-size: 36px;
    color: #1d4477;
    font-weight: 700;
    margin: 0 0 30px 0;
}

.section-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #555555;
    max-width: 1050px;
    margin: 0;
}

/* ==========================================================================
   6. FOOTER & SUB-FOOTER
   ========================================================================== */
.sub-footer {
    position: relative;
    z-index: 2; /* Keeps footer layers grouped over fixed hero container */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    padding: 80px 40px;
    gap: 50px;
}

.footer-logo-side img {
    width: 240px;
    height: auto;
}

.footer-divider {
    width: 1px;
    height: 140px;
    background-color: #dddddd;
}

.foot-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 650px;
}

.info-row {
    display: flex;
    align-items: center;
    color: #444444;
}

.info-row p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.address-row {
    align-items: flex-start;
    gap: 12px;
}

.icon-marker {
    color: #333333;
    font-size: 20px;
    margin-top: 2px;
}

.connect-row {
    gap: 40px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 24px;
    color: #111111;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #1d4477;
}

.mail-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-mail {
    color: #555555;
    font-size: 18px;
}

.phones-row {
    gap: 30px;
}

.phones-row p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-phone, .icon-globe {
    color: #2b4c7e;
    font-size: 16px;
}

footer {
    position: relative;
    z-index: 2; /* Keeps final block wrapper grouped correctly */
    background-color: #1a4273;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   7. ANIMATION PROPERTIES & CONFIGURATION
   ========================================================================== */
.animated {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1);
    animation-duration: 0.9s;
}

.fade-in-up { transform: translateY(30px); animation-name: fadeInUp; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(80px); 
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-desc.scroll-reveal.visible {
    transition-delay: 0.15s;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (TABLET & MOBILE AUTO-CENTER)
   ========================================================================== */
@media (max-width: 1024px) {
    .navbar { padding: 0 40px; }
    .hero-section { padding: 100px 60px 0 60px; }
    .hero-title { font-size: 52px !important; }
    #page2 { padding: 90px 40px; }
}

@media (max-width: 768px) {
    .navbar { height: 80px; padding: 0 20px; }
    #colab-logo { width: 120px; }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        gap: 30px;
        padding-top: 60px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 10px rgba(0,0,0,0.05);
    }
    
    .nav-links a {
        color: #2b4c7e !important;
    }
    
    .nav-links.active { right: 0; }
    .hamburger { display: flex; }
    
    .hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    
    .hero-section {
        padding: 80px 24px 0 24px;
        align-items: center;
        text-align: center;
    }
    
    .hero-title { font-size: 40px !important; text-align: center; }
    
    #page2 { padding: 70px 24px; }
    .section-title { font-size: 30px; }
    .section-desc { font-size: 16px; }
    
    .sub-footer {
        flex-direction: column;
        text-align: center;
        padding: 50px 24px;
        gap: 30px;
    }
    
    .footer-divider { display: none; }
    .foot-info-side { align-items: center; }
    
    .info-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .connect-row { gap: 20px; }
    .phones-row { gap: 15px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px !important; }
    .section-title { font-size: 24px; }
    .footer-logo-side img { width: 180px; }
    .connect-row { flex-direction: column; gap: 20px; }
}