/* --- General Styles --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f0f4f8;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    text-align: center;
    transition: opacity 1s ease-out, transform 1s ease-out;
    opacity: 0;
    transform: translateY(20px);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section.bg-light {
    background-color: #e3eaf2;
}

h1, h2, h3, h4 {
    margin-top: 0;
    line-height: 1.2;
    color: #2c3e50;
    font-weight: 700;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #3498db;
}

p {
    margin-bottom: 1.5em;
}

.icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* --- Header & Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
    color: #fff;
    animation: scaleIn 1s ease-out;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5em;
    opacity: 0.9;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

/* NEW ADDITION: Primary Button Style */
.btn-primary {
    display: inline-block;
    background-color: #3498db; /* Blue color for action */
    color: #fff;
    padding: 12px 30px;
    margin-top: 25px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
    animation: fadeIn 1.5s ease-out 1s both; /* Delayed fade in */
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* --- About Us Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    flex-direction: row;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* --- Mission & Vision Cards --- */
.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

.card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #3498db;
}

/* --- Testimonial Card Styles --- */
.testimonial-card {
    flex-basis: 30%; /* Adjust card size for three testimonials */
    max-width: 350px;
    padding: 30px;
    text-align: center;
    font-style: italic;
}

.testimonial-card .quote {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-card .source {
    font-style: normal;
    font-weight: 600;
    color: #3498db;
    margin: 0;
}

/* --- Content Sections --- */
.section-text {
    max-width: 800px;
    margin: 0 auto 1.5em;
}

.flex-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    flex-basis: 45%;
    max-width: 500px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.grid-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.grid-item h4 {
    font-size: 1.4em;
    color: #3498db;
    margin-bottom: 10px;
}

.section ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.section li {
    background-color: #fff;
    border-left: 5px solid #3498db;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.section li:hover {
    transform: translateX(10px);
}

.section a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.section a:hover {
    text-decoration: underline;
}

/* --- CONTACT SECTION STYLES (New) --- */
#contact .container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    text-align: left;
    gap: 40px;
}

/* Contact Details Styling */
.contact-details {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 1. Social Icons Styling */
.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 2em;
    color: #2c3e50; /* Darker color for contrast */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #3498db; /* Blue on hover */
    transform: translateY(-3px);
    text-decoration: none; /* Remove underline on hover */
}

/* 2. Contact Form Styling */
.contact-form-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; /* Important for full width padding */
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.btn-submit {
    display: block;
    width: 100%;
    background-color: #3498db;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-submit:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}


/* --- Footer --- */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.7;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero {
        height: 500px; /* Reduced height for mobile */
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2em;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1em;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 1em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3, h4 {
        font-size: 1.2em;
    }

    p {
        font-size: 0.9em;
    }

    .section {
        padding: 50px 0;
    }
    
    .about-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .about-image {
        min-width: unset;
    }

    .about-content {
        min-width: unset;
    }

    .flex-container,
    .grid-container {
        flex-direction: column;
        gap: 20px;
    }

    .card {
        flex-basis: 100%;
        text-align: center;
    }
    
    .testimonial-card {
        max-width: 100%;
    }

    .card h3 {
        justify-content: center;
    }

    .grid-item {
        padding: 20px;
    }

    .section ul {
        text-align: center;
    }
    
    .section li {
        text-align: center;
        border-left: none;
        border-top: 5px solid #3498db;
    }

    .section-text {
        text-align: center;
    }

    /* Contact Section Mobile Fixes */
    #contact .container {
        flex-direction: column; /* Stack contact details and form vertically */
        align-items: center;
        text-align: center;
    }

    .contact-details,
    .contact-form-container {
        min-width: 100%;
        width: 100%;
    }

    .social-links {
        justify-content: center; /* Center social icons on mobile */
    }
}
