/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #020617;
    color: white;
}

/* FIX OVERFLOW SAFELY */
img, video {
    max-width: 100%;
    height: auto;
}

/* FLOATING BACKGROUND BLOBS */
body::before, body::after {
    content: "";
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}

body::before {
    background: #38bdf8;
    top: -100px;
    left: -100px;
}

body::after {
    background: #6366f1;
    bottom: -100px;
    right: -100px;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    background: rgba(2,6,23,0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav h2 {
    color: #38bdf8;
}

nav div {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* IMPORTANT */
}

nav a {
    color: white;
    text-decoration: none;
}

nav a.active {
    color: #38bdf8;
}

/* HERO */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 90vh; /* FIXED */
    padding: 20px;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    font-size: 45px;
}

.hero p {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 18px;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #38bdf8;
    color: black;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
}

/* SECTIONS */
section {
    max-width: 900px;
    margin: auto;
    padding: 60px 20px;
    opacity: 0;
    transform: translateX(-50px);
    transition: 0.6s;
}

section.show {
    opacity: 1;
    transform: translateX(0);
}

h2 {
    color: #38bdf8;
    margin-bottom: 10px;
}

/* CARDS */
.card {
    background: #0f172a;
    padding: 15px;
    margin: 20px auto;
    border-radius: 10px;
    max-width: 600px;
    width: 100%; /* IMPORTANT */
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* SKILLS */
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skills span {
    background: #1e293b;
    margin: 5px;
    padding: 8px 12px;
    border-radius: 5px;
}

/* COLLEGE LINK */
.college-link {
    display: block;
    text-align: center;
    padding: 10px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    word-break: break-word;
}

/* SOCIAL */
.social-links {
    text-align: center;
}

.social-links a {
    display: inline-block;
    margin: 10px;
    padding: 10px 15px;
    background: #38bdf8;
    color: black;
    text-decoration: none;
    border-radius: 5px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    nav {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    nav div {
        justify-content: center;
        gap: 10px;
    }

    .hero {
        min-height: auto;
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    section {
        padding: 40px 15px;
        text-align: center;
    }

    .card {
        max-width: 100%;
    }

    .social-links a {
        display: block;
        margin: 10px auto;
    }
}