﻿/* --- Color Variables based on the Uploaded Image --- */
:root {
    --primary-dark: #0a1142; /* Dark blue from header */
    --primary-pink: #e3004f; /* Magenta from Get Career Guidance button */
    --text-dark: #333333;
    --text-light: #f4f5f9;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fc;
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 80px 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

    section.visible {
        opacity: 1;
        transform: translateY(0);
    }

h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: center;
}

.section-title span {
    color: var(--primary-pink);
}

/* --- 1. Hero Section --- */
#hero {
    background: linear-gradient(135deg, var(--primary-dark) 60%, #1a2565 100%);
    color: var(--text-light);
    text-align: center;
    padding: 120px 10% 100px;
    position: relative;
    overflow: hidden;
    opacity: 1; /* Hero should be visible immediately */
    transform: translateY(0);
    /* --- ADD THESE 5 LINES --- */
    width: 100vw; /* Force the width to match the viewport window */
    position: relative;
    left: 50%; /* Push it halfway across the container */
    right: 50%;
    margin-left: -50vw; /* Pull it back exactly half the screen width */
    margin-right: -50vw;
}

    #hero h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
        animation: slideDown 1s ease-out;
    }

    #hero p {
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto 30px;
        animation: fadeIn 1.5s ease-in;
    }

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-pink);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s, background-color 0.3s;
}

    .btn:hover {
        background-color: #c20043;
        transform: translateY(-3px);
    }

/* --- 2. Overview Section --- */
#overview {
    background-color: var(--bg-gray);
    text-align: center;
}

.overview-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- 3. What You'll Learn (Highlights) --- */
.highlights-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.highlight-item {
    background: white;
    padding: 30px;
    border-top: 4px solid var(--primary-pink);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    width: 30%;
    min-width: 250px;
    text-align: center;
    transition: transform 0.3s;
}

    .highlight-item:hover {
        transform: translateY(-10px);
    }

/* --- 4. Syllabus Section (Interactive Hover Cards) --- */
#syllabus {
    background-color: var(--bg-light);
}

.syllabus-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
}

/* Non-rectangular card style (Teardrop/Leaf shape) */
.syllabus-card {
    background: linear-gradient(to right, #ffffff, var(--bg-gray));
    border-radius: 40px 10px 40px 10px; /* Non-rectangular */
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    border-left: 8px solid var(--primary-dark);
    padding: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .syllabus-card:hover {
        border-left-color: var(--primary-pink);
        box-shadow: 0 15px 30px rgba(227, 0, 79, 0.15);
        transform: scale(1.02);
    }

.card-header h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.syllabus-card:hover .card-header h3 {
    color: var(--primary-pink);
}

/* Hover Animation using CSS Grid for smooth height expansion */
.modules-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-in-out;
}

.syllabus-card:hover .modules-wrapper {
    grid-template-rows: 1fr;
}

.modules-inner {
    overflow: hidden;
}

.module-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

    .module-block h4 {
        color: var(--primary-dark);
        margin-bottom: 10px;
    }

    .module-block ul {
        list-style-type: none;
        padding-left: 10px;
    }

        .module-block ul li {
            position: relative;
            padding-left: 20px;
            margin-bottom: 8px;
            font-size: 0.95rem;
        }

            .module-block ul li::before {
                content: '▹';
                position: absolute;
                left: 0;
                color: var(--primary-pink);
                font-weight: bold;
            }

/* --- 5. Tech Stack Section --- */
#tech-stack {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    /* --- ADD THESE 5 LINES --- */
    width: 100vw; /* Force the width to match the viewport window */
    position: relative;
    left: 50%; /* Push it halfway across the container */
    right: 50%;
    margin-left: -50vw; /* Pull it back exactly half the screen width */
    margin-right: -50vw;
}

    #tech-stack h2 {
        color: white;
    }

.tech-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.tech-tag {
    background: rgba(255,255,255,0.1);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* --- 6. Prerequisites Section --- */
#prerequisites {
    background-color: var(--bg-gray);
    text-align: center;
}

/* --- 7. Placements Section --- */
#placements {
    background-color: var(--bg-light);
    text-align: center;
}

/* --- 8. CTA / Footer Section --- */
#cta-section {
    background: linear-gradient(135deg, var(--primary-pink) 0%, #a8003a 100%);
    color: white;
    text-align: center;
}

    #cta-section h2 {
        color: white;
    }

    #cta-section .btn {
        background-color: var(--primary-dark);
        margin-top: 20px;
    }

        #cta-section .btn:hover {
            background-color: #050a29;
        }

/* Keyframes for initial load */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
