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

:root {
    --bg: #0b0f14;
    --paper: #121922;
    --ink: #e7edf4;
    --ink-soft: #9aa9ba;
    --accent: #4ea1ff;
    --accent-dark: #79b8ff;
    --line: #263242;
    --card: #121a23;
    --radius: 14px;
    --shadow: 0 6px 16px rgba(2, 6, 12, 0.22);
    --shadow-strong: 0 10px 24px rgba(2, 6, 12, 0.3);
    --transition: all 0.28s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    color: var(--ink);
    line-height: 1.68;
    background: #0f141b;
    min-height: 100vh;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

a {
    color: inherit;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(11, 15, 20, 0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    width: min(1240px, 94vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.nav-link {
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    text-transform: none;
    font-weight: 600;
    padding: 0.4rem 0.1rem;
    border-bottom: 2px solid transparent;
    color: var(--ink-soft);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.resume-link,
.mobile-download-btn {
    background: var(--accent);
    color: #041220;
    border-radius: 999px;
    padding: 0.58rem 1rem;
    border: 1px solid var(--accent);
}

.resume-link:hover,
.mobile-download-btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #041220;
}

.mobile-download-btn {
    display: none;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.hamburger-line {
    width: 26px;
    height: 2.5px;
    background: #d6e2ef;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 7px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 99;
}

/* Shared Section Styling */
section {
    padding: 5.8rem 0;
    position: relative;
}

section h2 {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 2.9rem);
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

section h2::after {
    content: '';
    display: block;
    width: 84px;
    height: 3px;
    margin-top: 0.85rem;
    background: var(--accent);
}

/* Hero */
.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    place-items: center;
    padding: 4.5rem 0 5.6rem;
}

.hero-content {
    width: min(1120px, 94vw);
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.4rem;
    align-items: center;
    background: #121922;
    border: 1px solid #263241;
    border-radius: 14px;
    padding: 2.2rem;
    box-shadow: var(--shadow);
}

.hero-intro {
    min-width: 0;
}

.hero-kicker {
    display: block;
    margin-bottom: 0.95rem;
    padding: 0;
    border: none;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ecbff;
}

.hero-content h1 {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4.8vw, 3.55rem);
    margin-bottom: 0.75rem;
    line-height: 1.08;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.1vw, 1.2rem);
    color: var(--ink-soft);
    margin-bottom: 1.4rem;
    max-width: 62ch;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-content .profile-img {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #2a3a4d;
    box-shadow: none;
}

.hero-tag {
    font-size: 0.82rem;
    color: #a8c9eb;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.metric {
    display: flex;
    flex-direction: column;
    padding: 0;
    min-width: 0;
}

.metric + .metric {
    border-left: 1px solid #2a3a4b;
    padding-left: 1rem;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #c3e1ff;
    line-height: 1;
}

.metric-label {
    margin-top: 0.35rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #89a0b6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    padding: 0.82rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: 0.93rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
}

.cta-button:not(.secondary-btn) {
    background: var(--accent);
    color: #041220;
}

.cta-button.secondary-btn {
    background: transparent;
    color: var(--ink);
    border-color: #3a4a5e;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(2, 6, 12, 0.4);
}

.cta-button:not(.secondary-btn):hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* About */
.about {
    background: transparent;
}

.about-content {
    width: min(760px, 100%);
    font-size: 1.06rem;
    color: var(--ink-soft);
}

.about-content p + p {
    margin-top: 1rem;
}

/* Projects */
.projects {
    background: transparent;
}

.projects-intro {
    max-width: 720px;
    color: #9fb0c2;
    margin: -0.65rem 0 1.5rem;
    font-size: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.4rem;
}

.project-card {
    background: #121922;
    border: 1px solid #23303d;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 22px rgba(2, 6, 12, 0.34);
    transition: var(--transition);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #2a3a4a;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: #2d3d4d;
    box-shadow: 0 12px 24px rgba(2, 6, 12, 0.28);
}

.project-media {
    width: 100%;
    height: 164px;
    background: #18212b;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1rem 1rem 0.95rem;
    gap: 0.35rem;
}

.project-media-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9cc8f6;
    font-weight: 700;
}

.project-media-name {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    color: #ecf4ff;
}

.media-remit {
    background: #18212b;
}

.media-advanced {
    background: #18212b;
}

.media-ovoride {
    background: #18212b;
}

.media-booking {
    background: #18212b;
}

.media-viser {
    background: #18212b;
}

.media-hyip {
    background: #18212b;
}

.project-card h3 {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 1.26rem;
    margin: 1rem 1.2rem 0.55rem;
    letter-spacing: 0.01em;
}

.project-card > p:not(.project-tech) {
    margin: 0 1.2rem 0.95rem;
    color: #a4b4c4;
    font-size: 0.94rem;
    line-height: 1.65;
}

.project-tech {
    margin: auto 1.2rem 0;
    padding-top: 0.15rem;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: #8ea4b8;
}

.project-tech::before {
    content: 'Stack: ';
    color: #b8c8d9;
    font-weight: 700;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 1.2rem 1.2rem;
    padding-top: 0.5rem;
    border-top: none;
}

.project-link {
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: #9fc5ea;
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    transition: var(--transition);
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.project-link:hover {
    color: #cde7ff;
    background: transparent;
    border-color: transparent;
}

.project-link svg {
    width: 14px;
    height: 14px;
}

.project-link.disabled {
    color: #6d7e90;
    cursor: not-allowed;
    border-color: transparent;
    background: transparent;
}

/* Skills */
.skills {
    background: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.15rem;
}

.skill-item {
    border: 1px solid var(--line);
    background: #121922;
    border-radius: 14px;
    padding: 1.35rem;
    transition: var(--transition);
}

.skill-item:hover {
    border-color: #425770;
    transform: translateY(-3px);
}

.skill-item h3 {
    margin-bottom: 0.8rem;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 1.18rem;
}

.skill-item ul {
    list-style: none;
}

.skill-item li {
    position: relative;
    padding-left: 1rem;
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.skill-item li + li {
    margin-top: 0.55rem;
}

.skill-item li::before {
    content: '-';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Education + Others */
.education,
.others,
.contact {
    background: transparent;
}

.education-grid,
.others-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.15rem;
}

.education-card,
.others-card {
    background: #121922;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.education-header h3,
.others-header h3,
.research-content h4 {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

.education-institution,
.education-period,
.education-cgpa,
.research-desc,
.achievement-item p {
    color: var(--ink-soft);
}

.education-details {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.education-cgpa strong {
    color: var(--accent-dark);
}

.others-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.others-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
}

.research-icon {
    background: #234e66;
}

.achievement-icon {
    background: #355478;
}

.research-content {
    display: grid;
    gap: 0.75rem;
}

.research-link {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.research-link:hover {
    color: var(--accent);
}

.achievements-list {
    display: grid;
    gap: 0.8rem;
}

.achievement-item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.achievement-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-dark);
    margin-top: 0.42rem;
    flex-shrink: 0;
}

/* Contact */
.contact-subtitle {
    color: var(--ink-soft);
    margin-bottom: 1.4rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.contact-information,
.contact-form-wrapper {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #121922;
    padding: 1.35rem;
}

.contact-information h3,
.contact-form-wrapper h3 {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.75rem;
    border-radius: 10px;
}

.contact-item:hover {
    background: rgba(78, 161, 255, 0.08);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #203245;
    color: #fff;
    display: grid;
    place-items: center;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-detail h4 {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.contact-detail a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 700;
}

.contact-detail a:hover {
    color: var(--accent);
}

.contact-form {
    display: grid;
    gap: 0.85rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #324357;
    border-radius: 10px;
    background: #0c141d;
    color: var(--ink);
    padding: 0.8rem 0.95rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(78, 161, 255, 0.15);
}

.submit-button {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #041220;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    padding: 2.4rem 0 2rem;
    background: #0b1118;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
}

.footer p {
    color: var(--ink-soft);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
}

.social-links a:hover {
    color: var(--accent);
}

/* Reveal Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
    .nav-menu {
        gap: 0.8rem;
    }

    .nav-link {
        font-size: 0.84rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-metrics {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-download-btn {
        display: inline-block;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: min(82vw, 340px);
        height: 100vh;
        background: #0f161f;
        border-left: 1px solid #2e3f52;
        padding: 5.5rem 1.4rem 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.95rem;
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .resume-link {
        margin-top: 0.5rem;
    }

    .hero {
        min-height: auto;
        padding-top: 3.4rem;
    }

    section {
        padding: 4.2rem 0;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.2rem;
    }

    .mobile-download-btn {
        font-size: 0.74rem;
        padding: 0.5rem 0.78rem;
    }

    .hero-content {
        border-radius: 14px;
        padding: 1.35rem;
    }

    .hero-content .profile-img {
        width: 145px;
        height: 145px;
    }

    .metric {
        min-width: 100%;
    }

    section h2 {
        font-size: 1.8rem;
    }
}
