body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f0f0f0;
    transition: 0.4s;
}

/* DARK MODE */
body.dark {
    background: #121212;
    color: white;
}

/* HEADER FIX */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #dcdcdc;
    border-bottom: 2px solid black;
    flex-wrap: wrap;
}

.logo-text {
    font-size: 40px;
    color: #0b2a66;
    margin: 0;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-icons a {
    margin-left: 10px;
    font-size: 26px;
    text-decoration: none;
}

.dark-btn {
    margin-left: 10px;
    padding: 4px 8px;
    cursor: pointer;
}

/* MOBILE FIX */
@media (max-width: 768px) {

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-icons {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .logo-text {
        font-size: 28px;
    }

    .social-icons a {
        font-size: 22px;
        margin-right: 10px;
    }
}

/* LOGO */
.logo-section {
    text-align: center;
    margin: 40px 0;
}

.logo-section img {
    width: 220px;
    max-width: 80%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* PROJECTS */
.projects {
    padding: 40px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.safe-link {
    background: black;
    color: red;
    padding: 40px;
    text-align: center;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 10px;
}

.safe-link:hover {
    background: red;
    color: white;
    transform: scale(1.05);
}

.card {
    background: #87a9d6;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

/* TEAM */
.members {
    padding: 40px;
}

.member-card {
    background: #90ee90;
    padding: 25px;
    margin: 15px 0;
    border-radius: 10px;
    transition: 0.3s;
}

body.dark .member-card {
    background: #2a2a2a;
}

.member-card:hover {
    transform: translateY(-5px);
}

/* ANIMATION */
.fade-in {
    animation: fade 1s ease-in;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MOBILE */
@media (max-width: 768px) {

    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        right: 20px;
        top: 60px;
        padding: 15px;
        border-radius: 10px;
    }

    body.dark .nav-links {
        background: #1f1f1f;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* ============================= */
/* 🔥 ADDED MISSING STYLES ONLY */
/* ============================= */

/* Social + Hackathon Sections */
.social-block,
.hackathon {
    padding: 40px;
}

/* Common Grid Used in HTML */
.block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Common Card Used in HTML */
.block-card {
    background: #87a9d6;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: black;
    transition: 0.3s;
}

.block-card i {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

.block-card:hover {
    transform: translateY(-6px);
}
