* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --accent: #38bdf8;
    --accent2: #818cf8;
    --text: #e2e8f0;
    --muted: #94a3b8;
}
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }

/* Navbar */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    min-height: 64px;
}
nav .container {
    max-width: 1100px; margin: 0 auto; padding: 0 10px;
    display: flex; align-items: center; height: 64px;
}
nav .logo {
    font-size: 1.25rem; font-weight: 700; color: var(--accent);
    margin-right: 40px; line-height: 64px; white-space: nowrap;
}
nav .logo span { color: var(--text); }
nav ul { list-style: none; display: flex; margin: 0; padding: 0; margin-left: auto; }
nav ul > li { position: relative; }
nav ul > li > a {
    display: block; padding: 0 24px; line-height: 64px; min-height: 64px;
    color: #ffffff; font-size: 16px; font-weight: 500; text-transform: uppercase;
    text-decoration: none; text-align: center; letter-spacing: .5px;
}
nav ul > li > a:hover { background: rgba(56, 189, 248, 0.15); color: #ffffff; }
nav ul > li.selected > a { background: rgba(0, 0, 0, 0.5); color: var(--accent); }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; margin-left: auto; }

/* Dropdown */
.dropdown-toggle { cursor: pointer; user-select: none; }
.dropdown-toggle::after { content: ' \25BE'; font-size: .7rem; }
.dropdown-menu {
    position: absolute; top: 64px; left: 0;
    display: none; z-index: 200; min-width: 180px;
}
.dropdown-menu-inner {
    background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(56, 189, 248, 0.15);
    border-top: 2px solid var(--accent);
}
.dropdown:hover > a { background: rgba(56, 189, 248, 0.15); }
.dropdown-menu a {
    display: block; padding: 0 20px; line-height: 50px; min-height: 50px;
    color: #ffffff; font-size: 14px; text-transform: uppercase; letter-spacing: .5px;
    text-decoration: none; border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}
.dropdown-menu a:hover { background: rgba(56, 189, 248, 0.15); color: var(--accent); }
.dropdown-menu a:last-child { border-bottom: none; }

/* Page content */
.page { max-width: 1100px; margin: 0 auto; padding: 7rem 2rem 4rem; min-height: calc(100vh - 60px); }
.page-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 2rem; }
.page-title span { color: var(--accent); }

/* Hero / About */
.hero { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 { font-size: 3rem; line-height: 1.2; }
.hero-text h1 span { color: var(--accent); }
.hero-text .tagline { font-size: 1.25rem; color: var(--muted); margin: 1rem 0 1.5rem; }
.hero-text p { color: var(--muted); max-width: 520px; margin-bottom: 1rem; }
.hero-avatar {
    width: 220px; height: 220px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem; color: var(--bg); font-weight: 700; flex-shrink: 0;
}
.skills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.skills span {
    background: rgba(56, 189, 248, 0.1); color: var(--accent);
    padding: .35rem .85rem; border-radius: 999px; font-size: .85rem; border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Experience */
.experience { margin-top: 3rem; }
.experience h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text); }
.timeline { border-left: 2px solid rgba(56, 189, 248, 0.3); padding-left: 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
.timeline-item h3 { font-size: 1.1rem; }
.timeline-item .period { font-size: .85rem; color: var(--accent); margin-bottom: .25rem; }
.timeline-item p { color: var(--muted); font-size: .95rem; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.card {
    background: var(--surface); border-radius: 12px; padding: 1.75rem;
    border: 1px solid rgba(255,255,255,.06); transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.3); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card .meta { font-size: .8rem; color: var(--muted); margin-bottom: .75rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.card .tags span {
    background: rgba(129, 140, 248, 0.1); color: var(--accent2);
    padding: .2rem .6rem; border-radius: 6px; font-size: .75rem;
}
.card .read-more { display: inline-block; margin-top: 1rem; font-size: .9rem; color: var(--accent); font-weight: 500; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
form { display: flex; flex-direction: column; gap: 1rem; }
input, textarea {
    background: var(--surface); border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px; padding: .75rem 1rem; color: var(--text); font-size: 1rem;
    font-family: inherit; outline: none; transition: border-color .2s;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
button[type="submit"] {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg); border: none; padding: .85rem 2rem; border-radius: 8px;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: opacity .2s;
}
button[type="submit"]:hover { opacity: .9; }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; justify-content: center; }
.contact-info div { display: flex; align-items: center; gap: 1rem; }
.contact-info .icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(56, 189, 248, 0.1); display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}

/* Footer */
footer { text-align: center; padding: 2rem; color: var(--muted); font-size: .85rem; border-top: 1px solid rgba(255,255,255,.06); margin-top: 2rem; }

/* Mobile */
@media (max-width: 768px) {
    .hamburger { display: block; }
    nav .container { justify-content: space-between; }
    nav ul {
        display: none; flex-direction: column; position: absolute; top: 64px; right: 3%; left: 3%;
        background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(56, 189, 248, 0.15);
        z-index: 1000;
    }
    nav ul.open { display: flex; }
    nav ul > li { float: none; width: 100%; border-top: 1px solid rgba(56, 189, 248, 0.1); }
    nav ul > li:first-child { border-top: none; }
    nav ul > li > a { text-align: left; padding: 0 16px; line-height: 50px; min-height: 50px; }
    nav ul > li > a:hover { background: rgba(56, 189, 248, 0.1); }
    .dropdown-menu { position: static; min-width: 100%; }
    .dropdown-menu-inner { border: none; border-top: 1px solid rgba(56, 189, 248, 0.08); background: rgba(10, 15, 30, 0.9); }
    .dropdown-menu a { padding: 0 32px; line-height: 46px; min-height: 46px; }
    .mobile-expand {
        position: absolute; right: 0; top: 0; width: 50px; height: 50px;
        background: none; border: none; border-left: 1px solid rgba(56, 189, 248, 0.1);
        color: var(--text); font-size: 1.2rem; cursor: pointer; display: flex;
        align-items: center; justify-content: center;
    }
    .hero { flex-direction: column-reverse; text-align: center; }
    .hero-text h1 { font-size: 2rem; }
    .skills { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
}
