* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0f172a;
    color: #fff;
}

/* ================= NAVBAR ================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #020617;
    position: sticky;
    top: 0;
    z-index: 1000;

    overflow-x: auto;          /* 🔥 mobile scroll */
}

/* hide scrollbar */
header::-webkit-scrollbar {
    display: none;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}

nav {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
}

nav a {
    text-decoration: none;
    color: #ccc;
    font-size: 16px;
    white-space: nowrap;
    transition: 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

/* ================= HERO ================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #03031d, #1e293b);
    text-align: center;
}

.hero span {
    color: #f8eb38;
}

/* ================= SECTIONS ================= */
section {
    padding: 60px 20px;
    text-align: center;

    opacity: 0;
    transform: translateY(50px);
    transition: 0.6s;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= PROJECTS ================= */
.section-title {
    margin-bottom: 30px;
    font-size: 32px;
}

.projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* ================= COLLEGE ================= */
#college {
    text-align: center;
}

#college .card {
    margin: 20px auto;
    max-width: 400px;
}

/* ================= CARDS ================= */
.card {
    width: 300px;
    padding: 20px;
    margin: 10px;
    background: #f4f4f4;
    color: black;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
    text-align: center;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.4);
}

/* remove underline in college link */
.card h3 a {
    text-decoration: none;
    color: inherit;
}

/* ================= BUTTON ================= */
button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background: #38bdf8;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #0ea5e9;
}

/* ================= CONTACT ================= */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-box {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
}

.contact-box p {
    margin: 10px 0;
}

#contact a {
    color: inherit;
    text-decoration: none;
}

#contact a:hover {
    color: #38bdf8;
}
/* ================= RESPONSIVE ================= */
/* Base styles */
nav {
    display: flex;
    gap: 15px;
}

/* Small devices */
@media (max-width: 600px) {

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 14px;
    }

    .logo {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .card,
    .contact-box {
        width: 90%;
    }

    button {
        width: 80%;
    }
}

/* Extra small devices */
@media (max-width: 400px) {

    nav {
        gap: 5px;
    }

    nav a {
        font-size: 12px;
    }

    .logo {
        font-size: 14px;
    }
}
