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

html,
body {
    font-family: "Poppins", sans-serif;
    background: #020512;
    color: #f5f7ff;
    scroll-behavior: smooth;
}

/* Background cyber orbits */
.bg-orbit {
    position: fixed;
    inset: -100px;
    background:
        radial-gradient(circle at 10% 20%, rgba(122, 184, 255, 0.21), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(0, 219, 222, 0.18), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(162, 0, 255, 0.18), transparent 60%);
    filter: blur(16px);
    opacity: 0.9;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% -20%, rgba(0, 255, 255, 0.14), transparent 60%);
    opacity: 0.7;
    z-index: -3;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 7%;
    background: rgba(2, 5, 18, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(116, 155, 255, 0.2);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: radial-gradient(circle at 20% 0%, #3af7ff, #4b63ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #050816;
    box-shadow: 0 0 18px rgba(80, 128, 255, 0.9);
}

.brand-text {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

.brand-text span {
    color: #7ea2ff;
}

.nav-links a {
    margin-left: 1.4rem;
    font-size: 0.92rem;
    text-decoration: none;
    color: #c8d3ff;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4b63ff, #00e0ff);
    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Layout */
main {
    padding-inline: 7%;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.8fr);
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
    align-items: center;
}

.hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #9cb4ff;
    margin-bottom: 0.7rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 0.9rem;
}

.hero h1 span {
    background: linear-gradient(90deg, #4b63ff, #00e0ff);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-summary {
    font-size: 0.98rem;
    max-width: 34rem;
    color: #d8e0ff;
    line-height: 1.7;
    margin-bottom: 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4b63ff, #00e0ff);
    color: #050816;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.btn-outline {
    background: transparent;
    border-color: rgba(131, 153, 255, 0.7);
    color: #dde4ff;
}

.btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span {
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(10, 16, 40, 0.95);
    border: 1px solid rgba(133, 165, 255, 0.5);
}

/* Panels */
.panel {
    background: radial-gradient(circle at 0 0, rgba(75, 99, 255, 0.35), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(0, 224, 255, 0.28), transparent 55%),
                rgba(4, 8, 30, 0.96);
    border-radius: 1.1rem;
    border: 1px solid rgba(133, 165, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    padding: 1.4rem 1.3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(18px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.panel::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(0, 255, 255, 0.1), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.panel:hover {
    transform: translateY(-4px);
    border-color: rgba(122, 186, 255, 0.75);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
}

.panel:hover::before {
    opacity: 1;
}

.main-panel {
    margin-bottom: 1rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.panel-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #a8c0ff;
}

.status-chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 255, 204, 0.12);
    border: 1px solid rgba(0, 224, 255, 0.7);
    color: #b9fff6;
}

.profile-list {
    list-style: none;
    font-size: 0.9rem;
}

.profile-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.35rem;
}

.profile-list .label {
    color: #aab9ff;
    font-size: 0.82rem;
}

.profile-list .value a {
    color: #e1f0ff;
    text-decoration: none;
}

.profile-list .value a:hover {
    text-decoration: underline;
}

.mini-panel {
    padding: 1rem 1rem;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1.4rem;
    font-size: 0.85rem;
}

.mini-label {
    color: #9eb1ff;
    font-size: 0.78rem;
}

.mini-value {
    font-weight: 600;
}

/* Sections */
.section {
    padding-block: 2.7rem;
}

.section-header {
    margin-bottom: 1.7rem;
}

.section-header h2 {
    font-size: 1.6rem;
}

.section-header p {
    font-size: 0.95rem;
    color: #c0ccff;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

/* Lists */
.bullet-list {
    margin-top: 0.6rem;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: #e2e6ff;
    line-height: 1.7;
}

.bullet-list.small {
    font-size: 0.85rem;
}

.bullet-list li {
    margin-bottom: 0.25rem;
}

/* Timeline */
.timeline {
    position: relative;
    margin-top: 0.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4b63ff, #00e0ff);
    opacity: 0.6;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.9rem;
}

.timeline-marker {
    position: absolute;
    left: 9px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #4b63ff;
    box-shadow: 0 0 15px rgba(75, 99, 255, 0.9);
}

.timeline-panel {
    background: rgba(3, 8, 33, 0.97);
    border-radius: 1rem;
    border: 1px solid rgba(124, 150, 255, 0.45);
    padding: 1rem 1rem;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.9);
}

.timeline-panel h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.org {
    font-size: 0.9rem;
    color: #a5b3ff;
}

.date {
    font-size: 0.8rem;
    color: #93a0e5;
    margin-bottom: 0.5rem;
}

/* Projects */
.project-card {
    position: relative;
}

.project-tag {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 224, 255, 0.18);
    border: 1px solid rgba(0, 224, 255, 0.7);
    color: #cbfdff;
}

.project-card h3 {
    margin-top: 0.1rem;
}

.project-card p {
    font-size: 0.9rem;
    margin-top: 0.6rem;
}

.project-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
    margin-bottom: 0.7rem;
    padding-left: 0;
}

.project-meta li {
    font-size: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(10, 16, 40, 0.96);
    border: 1px solid rgba(152, 180, 255, 0.6);
}

.project-link {
    font-size: 0.85rem;
    color: #9ad8ff;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

/* Research / Education */
.edu-list {
    list-style: none;
    font-size: 0.9rem;
    color: #e4e7ff;
    line-height: 1.7;
}

.edu-list li {
    margin-bottom: 0.65rem;
}

/* Skills */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.chip {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(7, 13, 38, 0.98);
    border: 1px solid rgba(152, 180, 255, 0.6);
    backdrop-filter: blur(12px);
}

/* Contact */
.contact-panel {
    max-width: 480px;
}

.contact-panel p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.contact-panel .label {
    display: inline-block;
    min-width: 80px;
    color: #a8b7ff;
    font-size: 0.85rem;
}

.contact-panel a {
    color: #d5e6ff;
    text-decoration: none;
}

.contact-panel a:hover {
    text-decoration: underline;
}

.contact-panel .note {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #c3cfff;
}

/* Footer */
.footer {
    padding: 1.4rem 7%;
    font-size: 0.8rem;
    color: #9fa8e0;
    text-align: center;
}

/* Responsive */
@media (max-width: 980px) {
    main {
        padding-inline: 5%;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-right {
        order: -1;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .nav-links a {
        margin-left: 0;
        margin-right: 1rem;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding-block: 2.2rem;
    }
}
