/* ========== Global Styles ========== */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

/* ========== Header ========== */
.main-header {
    height: 60px;
    background: linear-gradient(135deg, #003366, #005580);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 30px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-title h1 {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding-bottom: 5px;
}

.logo-title h1 span {
    color: #00bcd4;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: white;
    font-weight: 510;
    transition: color 0.3s, border-bottom 0.3s;
    position: relative;
}

.nav-links a::after {
    content: "";
    display: block;
    height: 2px;
    width: 0%;
    background: #00bcd4;
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00bcd4;
}
.nav-links a:hover::after {
    width: 100%;
}

/* ========== Responsive Header ========== */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .nav-links a {
        margin: 10px 15px 0 0;
    }
}

/* ========== Contact Section ========== */
.contact-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #0d1b2a;
    color: #fff;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00bcd4;
}

.contact-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: #1b263b;
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.contact-card i {
    font-size: 2.5rem;
    color: #00bcd4;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-card p {
    font-size: 1rem;
    margin: 0;
}

/* ========== Footer ========== */
.footer {
    background-color: #002244;
    color: white;
    padding: 20px 20px 10px;
}

.footer-flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: left;
    margin-bottom: 20px;
}

.footer-block {
    max-width: 255px;
}

.footer-contact-heading,
.footer-mathverse-heading,
.footer-nav-heading {
    color: #00bcd4;
}

.footer-block a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 5px 0;
}

.footer-block a:hover {
    color: #00bcd4;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}
