:root {
    /* Primary Palette */
    --bs-primary: #272727; /* Dark Green */
    --secondary-green: #1f5014;
    --bs-secondary: #457d58; /* Light Green */
    --bs-dark: #f6f6e9; /* Dark Gray/Black */
    --bs-light: #f2f2f2; /* Off-White/Cream */
    --bs-bg: #a7c4a7; /* Add a general background variant if needed */

    /* Utility Colors */
    --bs-body-bg: #cbddd1; /* Page Background */
    --bs-body-color: var(--secondary-green);
    --bs-border-color: #3a5a40; /* Border default override */
}

a {
    text-decoration: none;
    cursor: pointer;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background-color: #d1e7dd;
    font-family: "Red Hat Display", serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

/* Make header fill full viewport height */
.header {
    height: 100vh;
    background-color: #d1e7dd;
    padding: 2rem 1rem;
}

.h100 {
    height: 100vh;
}

.card {
    cursor: pointer;
}

/* Branding Section */
.branding {
    font-family: "Marcellus", serif;
    color: #2e514b;
}
.branding h1 {
    font-size: 2.4rem;
    text-transform: uppercase;
    margin: 0;
}
.branding p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 15px;
    padding: 1rem;
    position: relative;
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.card-title {
    font-family: "Yatra One", serif;
    font-size: 1.2rem;
    margin: 0;
}
.icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.plus-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #2e514b;
}

/* Background Colors for Cards */
.bg-team {
    background-color: #fdfdfd;
}
.bg-problem {
    background-color: #295135;
    color: #ffffff;
}
.bg-solution {
    background-color: #1c2025;
    color: #ffffff;
}
.bg-goals {
    background-color: #232426;
    color: #ffffff;
}
.bg-milestones {
    background-color: #2d2d2d;
    color: #ffffff;
}
.bg-issues {
    background-color: #fdfdfd;
}
.bg-contact {
    background-color: #f9f9f9;
}

.profile {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

.profile-card {
    cursor: pointer !important;
}

footer {
    background-color: var(--bs-primary);
    color: var(--bs-light);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-heading {
    font-family: "Marcellus", serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--bs-dark);
    position: relative;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--bs-secondary);
}

.footer-nav-link {
    display: block;
    color: var(--bs-light);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--bs-secondary);
    transform: translateX(5px);
}

.contact-info {
    margin-bottom: 1rem;
}

.contact-info i {
    width: 25px;
    color: var(--bs-secondary);
    margin-right: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bs-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--bs-secondary);
    color: var(--bs-light);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-logo {
    font-family: "Marcellus", serif;
    font-size: 1.8rem;
    color: var(--bs-dark);
    margin-bottom: 1rem;
}

.footer-logo-tagline {
    color: var(--bs-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    margin-top: 1.5rem;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    color: var(--bs-light);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: none;
}

.subscribe-btn {
    background-color: var(--bs-secondary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-column {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .branding h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    /* Fix header on mobile */
    .header {
        height: auto;
        min-height: 100vh;
        padding-bottom: 3rem;
    }

    /* Fix section transition */
    section.about {
        margin-top: 2rem;
        height: auto;
        min-height: 100vh;
        clear: both;
        position: relative;
        z-index: 1;
    }

    /* Fix profile cards */
    .profile {
        width: 200px;
        height: 200px;
    }

    /* Ensure proper text containment */
    .text-center p {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    /* Fix branding position */
    .branding {
        position: relative;
        z-index: 10;
    }
}

/* Team section mobile fixes */
@media (max-width: 768px) {
    /* Critical fix: Remove conflicting height settings */
    .h100 {
        height: auto !important;
        min-height: auto !important;
    }

    /* Make header more compact on mobile */
    .header-small {
        padding-bottom: 1rem !important;
        min-height: auto !important;
        height: auto !important;
    }

    /* Add space between header and team section */
    .team-section {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }

    /* Fix profile card spacing */
    .profile-card {
        margin-bottom: 2.5rem !important;
        padding-top: 1.5rem !important;
    }

    /* Fix text spacing */
    .card-body {
        padding-top: 0.75rem !important;
    }

    /* Make sure header elements don't overflow */
    .header-small h1,
    .header-small p {
        padding: 0.5rem;
        border-radius: 4px;
        position: relative;
        z-index: 10;
    }
}
