* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

/* ===== NAVBAR ===== */
.header {
    position: fixed;
    width: 100%;
    background: rgba(2,6,23,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1e293b;
    z-index: 1000;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 15px 20px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #38bdf8;
    font-weight: bold;
    font-size: 1.2rem;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #e5e7eb;
}

nav a:hover {
    color: #38bdf8;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at top, #020617, #0f172a);
}

.hero-content h1 {
    font-size: 3.5rem;
}

.hero-content h2 {
    font-weight: 400;
    color: #94a3b8;
}

.hero-content p {
    margin: 20px 0;
    color: #38bdf8;
}

.hero-btns .btn {
    margin: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
}

.btn.primary {
    background: #38bdf8;
    color: #020617;
}

.btn.secondary {
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

/* ===== SECTIONS ===== */
.section {
    padding: 120px 20px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.section.dark {
    background: #020617;
}

.section-title {
    color: #38bdf8;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* ===== SKILLS ===== */
.skills-grid span {
    display: inline-block;
    margin: 10px;
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid #38bdf8;
    font-size: 0.85rem;
}

/* ===== PROJECTS ===== */
.project-card {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    max-width: 700px;
    transition: transform 0.3s;
}

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

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ===== SCROLL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 65px;
        right: 0;
        background: #020617;
        width: 100%;
        display: none;
        flex-direction: column;
        text-align: center;
    }

    nav a {
        margin: 15px 0;
        display: block;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: #e5e7eb;
    }
}
