/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #fafafa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
nav {
    background-color: #2c3e50;
    padding: 15px 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 5px 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #f39c12;
}


/* Hero Section */
.hero {
    text-align: center;
    background-color: #d6deeb;
    padding: 40px 20px;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 10px;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
}

/* About Section */
.about-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px 20px;
    flex: 1;
}

.about-card {
    background: rgb(206, 163, 163);
    padding: 25px 20px;
    width: 300px;
    height: 50vh;
    min-height: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(63, 2, 2, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* center content horizontally */
}

.about-card h3 {
    color: #0b2947;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-card:hover {
    transform: translateY(-8px) rotateZ(1deg);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 1rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-card {
        width: 280px;
        height: 45vh;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;       /* allow items to wrap */
        justify-content: center;
        gap: 8px;              /* spacing between items */
    }

    .hero {
        padding: 30px 15px;
    }

    .about-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .about-card {
        width: 90%;
        height: auto; /* auto height for smaller content */
        padding: 20px 15px;
    }

    .about-card h3 {
        font-size: 1.5rem;
    }

    .about-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .hero {
        padding: 25px 10px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .about-card h3 {
        font-size: 1.3rem;
    }

    .about-card p {
        font-size: 0.95rem;
    }
}
