/* ==========================================
   1. GLOBAL & UTILITIES
   ========================================== */
/* Note: :root variables are inherited from navbar.css 
   We don't need to redeclare them if navbar.css is loaded first. */

body {
    background-color: #ffffff;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.tagline {
    display: inline-block;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary-green);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

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

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ==========================================
   2. HERO / LANDING SECTION
   ========================================== */
.landing {
    min-height: 90vh; /* Takes up most of the screen */
    width: 100%;
    background-image: linear-gradient(rgba(26, 32, 44, 0.75), rgba(26, 32, 44, 0.75)), url('https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?q=80&w=2174&auto=format&fit=crop');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center; /* Vertically center content */
}

.landing-content {
    width: 90%;
    max-width: 800px;
    margin-left: 8%; /* Offset from left */
    color: white;
}

.landing-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.landing-content h1 span {
    color: var(--accent-green);
}

.landing-content p {
    color: #e2e8f0;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 300;
    max-width: 600px;
}

.btn-hero {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--accent-green);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    background-color: var(--sky-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* ==========================================
   3. ABOUT INTRO SECTION
   ========================================== */
.about-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.about-media {
    flex: 1;
}

.about-media img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
    object-fit: cover;
}

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

/* ==========================================
   4. OBJECTIVES SECTION
   ========================================== */
.objectives-section {
    padding: 100px 20px;
    background: var(--light-bg);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animation Keyframes */
@keyframes fadeInUpCard {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.obj-card {
    background: #fff;
    padding: 40px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: 0.3s;
    border-bottom: 4px solid transparent;
    opacity: 0; /* Hidden initially for JS animation */
}

.obj-card.active {
    animation: fadeInUpCard 0.8s forwards;
}

.obj-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--sky-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--sky-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    transition: 0.4s;
}

.obj-card:hover .icon-box {
    background: var(--sky-blue);
    color: white;
    transform: rotateY(180deg);
}

.obj-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.obj-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ==========================================
   5. METHODOLOGY (TIMELINE)
   ========================================== */
.methodology-section {
    padding: 100px 20px;
    background: #ffffff;
    overflow: hidden;
}

.container-timeline {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e2e8f0;
    transform: translateX(-50%);
    border-radius: 4px;
}

.line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--primary-green);
    transition: height 0.1s linear;
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 50px;
    opacity: 0;
    transition: all 0.8s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0) !important;
}

.timeline-item.left {
    left: 0;
    text-align: right;
    transform: translateX(-50px);
}

.timeline-item.right {
    left: 50%;
    text-align: left;
    transform: translateX(50px);
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid var(--primary-green);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item.left .timeline-dot { right: -12px; }
.timeline-item.right .timeline-dot { left: -12px; }

.timeline-content {
    background: var(--card-white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: 0.3s;
}

.timeline-item.left .timeline-content {
    flex-direction: row-reverse;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.15);
}

.icon-holder {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-green), var(--sky-blue));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sky-blue);
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-gray);
    margin: 0;
}

/* ==========================================
   6. RESPONSIVE QUERIES
   ========================================== */

/* Tablet (General) */
@media (max-width: 991px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .landing-content h1 {
        font-size: 3rem;
    }
}

/* Mobile (Timeline Adjustments) */
@media (max-width: 850px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left {
        text-align: left;
    }

    /* Force left items to look like right items */
    .timeline-item.left .timeline-content {
        flex-direction: row; 
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 18px;
        right: auto;
    }
}

/* Small Mobile */
@media (max-width: 500px) {
    .landing-content h1 {
        font-size: 2.2rem;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
    }
}