:root {
  --primary-dark: #03256C;
  --primary-light-bg: #254E84;
  --accent-blue: #4f78ff;
  --text-light: #FFFFFF;
  --text-light-secondary: #E0EFFF;
  --text-dark: #03256C;
  --text-dark-secondary: #334155;
  --bg-light: #FFFFFF;
  --bg-off-white: #f4f7fc;
  --section-padding: 6rem 2rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-light); 
  color: var(--text-dark-secondary);
  overflow-x: hidden;
}

.section-container {
    padding: var(--section-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
}
.section-heading.dark-text { color: var(--text-dark); }
.section-heading.light-text { color: var(--text-light); }
.section-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-blue);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.dark-section {
    background-color: var(--primary-dark);
    color: var(--text-light-secondary);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up { transform: translateY(50px); }
.slide-in-left { transform: translateX(-100px); }
.slide-in-right { transform: translateX(100px); }
.is-visible {
    opacity: 1;
    transform: none;
}

/* === IMPROVED HERO SECTION ANIMATION === */
.image-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  overflow: hidden; /* Important for Ken Burns effect */
}
.image-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
/* Ken Burns Effect Animation */
@keyframes kenBurns {
    0% { transform: scale(1.1) translate(0, 0); }
    100% { transform: scale(1.2) translate(-5%, 5%); }
}
.image-container img {
  position: absolute;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.image-container.show img {
    opacity: 1;
    animation: kenBurns 20s ease-in-out infinite alternate;
}
/* Staggered Word Reveal Animation */
.overlay-text {
  position: relative;
  color: var(--text-light);
  font-size: 4rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  z-index: 10;
}
.overlay-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.8s;
    margin: 0 0.2em;
}
.overlay-text.show span {
    opacity: 1;
    transform: translateY(0);
}
/* === END OF HERO SECTION ANIMATION === */

/* About Us Section (Light) */
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; 
  gap: 4rem;
}
.about-section .text-container { flex: 1; min-width: 320px; }
.about-section .text-container h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}
.about-section .text-container p { line-height: 1.8; text-align: justify; }
.about-section .visual-container { flex: 1; min-width: 320px; }
.about-section .visual-container img {
  width: 100%;
  height: 100%; 
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(3, 37, 108, 0.15);
  object-fit: cover;
}

/* Mission, Vision, Goals Section (Dark) */
.about-sec { display: flex; flex-direction: column; gap: 5rem; }
.dark-section .content-box { display: flex; align-items: center; gap: 3rem; }
.dark-section .content-box:nth-child(even) { flex-direction: row-reverse; }
.dark-section .content-box .icon-circle {
  flex-shrink: 0;
  width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-light-bg);
  padding: 20px;
  box-shadow: 0 0 25px rgba(79, 120, 255, 0.2);
  transition: transform 0.3s ease-in-out;
}
.dark-section .content-box:hover .icon-circle { transform: scale(1.05); }
.dark-section .content-box .icon-circle img { width: 100%; height: 100%; object-fit: contain; }
.dark-section .content-box .text-content h2 { font-size: 2.5rem; color: var(--text-light); margin-bottom: 1rem; }
.dark-section .content-box .text-content p { color: var(--text-light-secondary); line-height: 1.8; text-align: justify; }

/* === NEW "Our Core Values" UI (Alternative) === */
#values .values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.value-item {
    background: transparent; /* Changed from white */
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative; /* Needed for the pseudo-element */
    border-radius: 10px; /* Softer radius */
    
    /* Animation setup */
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    cursor: pointer;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* The animated top border on hover */
.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-blue);
    border-radius: 10px 10px 0 0;
    transform: scaleX(0); /* Start scaled to 0 */
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.value-item .icon {
    font-size: 3.5rem; /* Larger icon */
    color: #03256c;
    margin-bottom: 0.5rem;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    
    /* Removed the circular background for a cleaner look */
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
}

#values .value-item h2 {
    font-size: 1.5rem; 
    color: var(--text-dark); 
    margin: 0;
    transition: color 0.4s ease;
}

#values .value-item p { 
    font-size: 1rem; 
    line-height: 1.6;
    color: var(--text-dark-secondary);
}

/* Scroll-in animation trigger */
.value-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover State Interactions */
.value-item:hover {
    transform: translateY(-12px);
    background-color: var(--bg-light);
    box-shadow: 0 25px 50px -12px rgba(3, 37, 108, 0.15);
}

.value-item:hover::before {
    transform: scaleX(1); /* Animate the border to full width */
}

.value-item:hover .icon {
    transform: scale(1.15) rotate(-10deg);
    color: var(--primary-dark);
}

.value-item:hover h2 {
    color: var(--primary-dark);
}
    
/* Staggered animation delays (same as before) */
.value-item:nth-child(1).is-visible { transition-delay: 0.1s; }
.value-item:nth-child(2).is-visible { transition-delay: 0.2s; }
.value-item:nth-child(3).is-visible { transition-delay: 0.3s; }
.value-item:nth-child(4).is-visible { transition-delay: 0.15s; }
.value-item:nth-child(5).is-visible { transition-delay: 0.25s; }
.value-item:nth-child(6).is-visible { transition-delay: 0.35s; }
/* === END OF NEW "Our Core Values" UI === */

/* Milestone & Awards Section */
.timeline { position: relative; width: 90%; max-width: 1000px; margin: 50px auto; }
.timeline::before {
  content: ''; position: absolute;
  top: 0; left: 50%;
  width: 4px; height: 100%;
  background: #dde2f1;
  transform: translateX(-50%);
}
.timeline-item {
  position: relative; width: 45%; margin-bottom: 50px;
  background: var(--bg-off-white);
  border-radius: 15px; padding: 1.5rem; border: 1px solid #e0e7ff;
  opacity: 0; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.timeline-item:nth-child(odd) { left: 0; transform: translateX(-30px); }
.timeline-item:nth-child(even) { left: 55%; transform: translateX(30px); }
.timeline-item.is-visible { opacity: 1; transform: translateX(0); }
.timeline-item::after { content: ''; position: absolute; top: 30px; width: 0; height: 0; border-style: solid; }
.timeline-item:nth-child(odd)::after { right: -15px; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent var(--bg-off-white); }
.timeline-item:nth-child(even)::after { left: -15px; border-width: 10px 15px 10px 0; border-color: transparent var(--bg-off-white) transparent transparent; }
.timeline-item img { width: 100%; border-radius: 10px; margin-bottom: 1rem; }
.timeline-item p { color: var(--text-dark-secondary); line-height: 1.6; margin: 0; }
.timeline-item .year {
  position: absolute; top: 25px; z-index: 10;
  width: 60px; height: 60px;
  background: var(--accent-blue); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; border: 3px solid var(--bg-light);
  box-shadow: 0 0 0 4px var(--accent-blue);
}
.timeline-item:nth-child(odd) .year { right: -95px; left: auto; }
.timeline-item:nth-child(even) .year { left: -95px; }

/* Reports & Tables Section */
.report-header-banner { background: linear-gradient(rgba(3, 37, 108, 0.8), rgba(3, 37, 108, 0.8)), url('img/banner.png') no-repeat center center/cover; color: var(--text-light); text-align: center; padding: 6rem 2rem; }
.report-header-banner h1 { font-size: 2.5rem; text-transform: uppercase; font-weight: 700; }
.report-section { background-color: var(--bg-light); }
.report-section h2 { font-size: 2.5rem; color: var(--text-dark); margin-bottom: 1rem; text-align: center; }
.report-section p { max-width: 800px; margin: 0 auto 3rem auto; text-align: center; line-height: 1.7; }
.table-container { max-width: 1000px; margin: 0 auto; box-shadow: 0 5px 20px rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid #ddd; }
th { background-color: var(--primary-dark); color: var(--text-light); text-transform: uppercase; font-weight: 600; }
td { background-color: var(--bg-light); color: var(--text-dark-secondary); font-weight: 500; }
tr:nth-child(even) td { background-color: var(--bg-off-white); }
.btn { display: inline-block; margin: 0.25rem; padding: 0.6rem 1.2rem; color: var(--text-light); background: var(--accent-blue); text-decoration: none; border-radius: 5px; transition: background 0.3s ease, transform 0.2s; border: none; cursor: pointer; }
.btn:hover { background: var(--primary-dark); transform: scale(1.05); }

.table-to-animate tr { opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.table-to-animate.is-visible tr { opacity: 1; transform: translateY(0); }

/* ======================================= */
/* ===      RESPONSIVE STYLES          === */
/* ======================================= */
@media (max-width: 1024px) {
    .timeline-item:nth-child(odd) .year { right: -85px; }
    .timeline-item:nth-child(even) .year { left: -85px; }
}

@media (max-width: 768px) {
    :root { --section-padding: 4rem 1.5rem; }
    .section-heading, .report-section h2, .about-section .text-container h2, .dark-section .content-box .text-content h2 { font-size: 2rem; }
    .overlay-text { font-size: 2.5rem; }

    .about-section { text-align: center; gap: 2rem; align-items: center; }
    .about-section .visual-container img { height: 300px; }
    
    .dark-section .content-box, .dark-section .content-box:nth-child(even) { flex-direction: column; text-align: center; gap: 2rem; }
    .dark-section .content-box .icon-circle { width: 150px; height: 150px; }
    
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { width: calc(100% - 30px); left: 30px; }
    .timeline-item::after { display: none; }
    .timeline-item .year, .timeline-item:nth-child(odd) .year, .timeline-item:nth-child(even) .year {
        left: 20px; top: -30px;
        transform: translateX(-50%);
        right: auto;
        width: 60px; height: 60px; font-size: 1rem;
    }
    .timeline-item { margin-top: 40px; padding: 1.5rem; }
    
    .report-header-banner { padding: 4rem 1rem; }
    .report-header-banner h1 { font-size: 2rem; }
    .table-container { box-shadow: none; border-radius: 0; }
    
    table thead { display: none; }
    table, tbody, tr, td { display: block; width: 100%; }
    tr { 
        margin-bottom: 1.5rem; 
        border: 1px solid #e0e7ff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        overflow: hidden;
    }
    td {
        text-align: right;
        border-bottom: 1px dotted #ccc;
        padding-left: 50%;
        position: relative;
        word-break: break-word;
    }
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        padding-right: 10px;
        text-align: left;
        font-weight: bold;
        color: var(--text-dark);
    }
    td:last-child { border-bottom: 0; }
}

@media (max-width: 425px) {
    .section-heading, .report-section h2, .about-section .text-container h2, .dark-section .content-box .text-content h2 { font-size: 1.8rem; }
    .overlay-text { font-size: 2rem; }

    .report-section .table-container td:last-child {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
    .report-section .table-container .btn {
        width: auto;
        min-width: 150px;
        text-align: center;
    }
    td { padding: 0.8rem; }
    td:before { left: 0.8rem; }
}

@media (max-width: 375px) {
    :root { --section-padding: 3rem 1rem; }
    .overlay-text { font-size: 1.8rem; }
}