/* ===== CSS Reset & Variables ===== */
:root {
    --primary-color: #32bdea;
    --secondary-color: #c850c0;
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --dark-color: #1a2a3a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-color: #444444;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(50, 189, 234, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 58, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: var(--header-height) 20px 80px; /* Increased bottom padding to create space for scroll button */
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-height: 120px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: backwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: backwards;
}

.hero-motto {
    font-size: 1.25rem;
    font-style: italic;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: backwards;
}

.hero-partners {
    display: flex;
    justify-content: center;
    gap: 30px;
    animation: fadeInUp 1s ease 0.8s;
    animation-fill-mode: backwards;
}

.partner-logo {
    height: 60px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 24px;
    animation: bounce 2s infinite;
    z-index: 10; /* Ensure it's below staff portal button */
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
    position: relative;
}

.section.bg-light {
    background-color: var(--light-bg);
}

.section.bg-primary {
    background: var(--primary-gradient);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-title.text-white {
    color: var(--white);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.section-divider.bg-white {
    background: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Vision & Mission ===== */
.vision-box, .mission-box {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.vision-box:hover, .mission-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.section-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
    margin-bottom: 30px;
}

.vision-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.mission-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

/* ===== Client Charter ===== */
.charter-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.charter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.charter-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
    margin: 0 auto 20px;
}

.charter-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.charter-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== Journey Timeline (New Design) ===== */
.journey-timeline {
    position: relative;
    padding: 40px 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    width: 3px;
    background: var(--primary-gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-block {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-block:nth-child(even) {
    justify-content: flex-start;
}

.timeline-block:nth-child(odd) {
    justify-content: flex-end;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    width: 45%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.timeline-date {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===== Services ===== */
.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    height: 100%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
    margin: 0 auto 25px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== Team Section ===== */
.org-structure {
    max-width: 800px;
    margin: 0 auto;
}

.org-director {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.org-departments {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}

.team-card h3, .team-card h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.team-card p {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== Impact Section ===== */
.impact-box {
    padding: 20px;
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.impact-box p {
    font-size: 1.1rem;
    margin: 0;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: var(--white);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .timeline-content {
        width: 90%;
    }
    
    .timeline-block:nth-child(even),
    .timeline-block:nth-child(odd) {
        justify-content: center;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .org-departments {
        flex-direction: column;
        align-items: center;
    }
}