:root {
    --bg: #081120;
    --bg-soft: rgba(15, 23, 42, 0.72);
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.12);
    --text: #eff6ff;
    --muted: rgba(226, 232, 240, 0.76);
    --accent: #60a5fa;
    --accent-strong: #7dd3fc;
    --shadow: 0 24px 60px rgba(2, 6, 23, 0.36);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 34%),
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.18), transparent 28%),
        linear-gradient(160deg, #06101f 0%, #0b1730 42%, #101a36 100%);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

body.page-loading {
    opacity: 0;
    transform: translateY(14px);
}

.reveal-on-load {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal-on-load.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 92%);
    pointer-events: none;
    opacity: 0.25;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 24px;
    background: rgba(7, 13, 25, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav a {
    color: var(--text);
    text-decoration: none;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 48px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 88px 24px 72px;
}

.hero-copy {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.14);
    border: 1px solid rgba(125, 211, 252, 0.22);
    color: #dbeafe;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero h3 {
    display: inline-flex;
    margin: 18px 0 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent-strong);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero span {
    color: var(--accent-strong);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero img {
    width: min(100%, 340px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: var(--shadow), 0 0 0 12px rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.04);
}

.hero img.reveal-on-load {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    filter: blur(12px);
}

.hero img.reveal-on-load.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.buttons {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: white;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.btn-outline {
    border: 1px solid rgba(125, 211, 252, 0.34);
    color: var(--accent-strong);
    background: rgba(255,255,255,0.04);
}

.btn:hover,
.btn-outline:hover,
.project-link:hover {
    transform: translateY(-2px);
}

.socials a {
    margin-right: 15px;
    color: #94a3b8;
}

section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 24px;
    text-align: center;
}

section h2 {
    margin: 0 0 18px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -0.04em;
}

.section-copy {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.grid div {
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.card {
    background: var(--surface);
    padding: 24px;
    margin: 20px auto;
    width: min(100%, 760px);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.card:hover {
    transform: translateY(-4px);
    background: var(--surface-strong);
    border-color: rgba(96, 165, 250, 0.28);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    width: min(1100px, 100%);
    margin: 0 auto;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: min(980px, 100%);
    margin: 0 auto;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: min(1100px, 100%);
    margin: 0 auto;
}

.section-lead {
    max-width: 720px;
    margin: -10px auto 28px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.about-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 24px;
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 28px;
    text-align: left;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transition: 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    background: rgba(59,130,246,0.16);
}

.about-intro h3 {
    margin: 6px 0 12px;
    font-size: 1.6rem;
    font-family: 'Space Grotesk', sans-serif;
    color: #f8fbff;
}

.about-copy {
    margin: 0;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    gap: 14px;
    align-content: start;
}

.about-item {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-item span {
    display: inline-block;
    margin-bottom: 8px;
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.about-item p {
    margin: 0;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.65;
}

.project-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    text-align: left;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transition: 0.3s ease;
}

.experience-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    text-align: left;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transition: 0.3s ease;
}

.education-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    text-align: left;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    background: rgba(59,130,246,0.16);
}

.experience-card:hover {
    transform: translateY(-6px);
    background: rgba(59,130,246,0.16);
}

.education-card:hover {
    transform: translateY(-6px);
    background: rgba(59,130,246,0.16);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.project-header h3 {
    margin: 4px 0 0;
    font-size: 1.35rem;
    font-family: 'Space Grotesk', sans-serif;
}

.experience-card h3 {
    margin: 6px 0 12px;
    font-size: 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
}

.education-card h3 {
    margin: 6px 0 12px;
    font-size: 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
}

.project-kicker {
    margin: 0;
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.project-link {
    flex-shrink: 0;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    transition: 0.25s ease;
}

.project-link:hover {
    border-color: #60a5fa;
    background: rgba(96,165,250,0.16);
}

.project-summary {
    margin: 0 0 16px;
    color: #e5eefc;
    line-height: 1.7;
}

.experience-meta {
    margin: 0 0 14px;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.7;
}

.education-meta {
    margin: 0 0 14px;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.project-tags span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #dbeafe;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.project-actions .project-link {
    padding: 8px 13px;
}

.project-card ul {
    margin: 0;
    padding-left: 18px;
    color: #f8fbff;
}

.experience-card ul {
    margin: 0;
    padding-left: 18px;
    color: #f8fbff;
}

.education-card ul {
    margin: 0;
    padding-left: 18px;
    color: #f8fbff;
}

.project-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.experience-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.education-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

footer {
    padding: 20px;
    text-align: center;
    background: #020617;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-box {
    background: var(--surface);
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--border);
    text-align: left;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

.skill-box:hover {
    background: rgba(96, 165, 250, 0.14);
    transform: translateY(-5px);
}

.skill-box h3 {
    margin-bottom: 12px;
    color: var(--accent-strong);
}

.skill-box ul {
    list-style: none;
    padding: 0;
}

.skill-box li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Logo + Icons */
.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-section h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.04em;
}

/* Social Icons */
.nav-socials a {
    color: white;
    margin-right: 10px;
    font-size: 18px;
    transition: 0.3s;
}

/* Hover Effects (Premium Look) */
.nav-socials a:hover {
    transform: scale(1.2);
}

.nav-socials a:nth-child(1):hover {
    color: #0077b5; /* LinkedIn */
}

.nav-socials a:nth-child(2):hover {
    color: #e1306c; /* Instagram */
}

.nav-socials a:nth-child(3):hover {
    color: #1877f2; /* Facebook */
}

section {
    background: transparent;
}

#certifications a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}


#certifications a:hover {
    color: #fde68a;
    text-shadow: 0 0 8px #facc15;
}

#certifications .card {
    text-align: left;
}

#about, #education, #experience, #skills, #projects, #certifications, #contact {
    scroll-margin-top: 110px;
}

footer {
    margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body,
    .reveal-on-load,
    .btn,
    .btn-outline,
    .project-link,
    .card,
    .project-card,
    .experience-card,
    .education-card,
    .about-card,
    .skill-box {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
        padding: 72px 24px 56px;
    }

    .hero-copy {
        max-width: 760px;
        margin: 0 auto;
    }

    .hero-visual {
        order: -1;
    }

    .hero img {
        width: min(100%, 300px);
    }

    .buttons {
        justify-content: center;
    }

    section {
        padding: 62px 24px;
    }

    .projects-grid,
    .education-grid,
    .experience-grid {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    nav {
        gap: 12px;
    }

    .logo-section {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .nav-socials {
        justify-content: center;
    }

    .card,
    .project-card,
    .experience-card,
    .education-card,
    .skill-box {
        border-radius: 18px;
    }

    .about-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }
}

@media (max-width: 768px) {

    /* NAVBAR */
    nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    nav ul {
        flex-direction: column;
        padding-top: 10px;
    }

    nav ul li {
        margin: 8px 0;
    }

    /* HERO SECTION */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 48px 18px 52px;
        gap: 28px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero img {
        width: min(100%, 260px);
        margin-top: 10px;
    }

    .buttons {
        justify-content: center;
        flex-direction: column;
    }

    .btn,
    .btn-outline {
        width: 100%;
        box-sizing: border-box;
    }

    /* SOCIAL ICONS */
    .nav-socials {
        margin-top: 5px;
    }

    /* SECTIONS */
    section {
        padding: 42px 18px;
    }

    /* SKILLS GRID */
    .skills-container {
        grid-template-columns: 1fr;
    }

    /* CARDS */
    .card {
        width: 100%;
    }

    .about-card {
        width: 100%;
    }

    .project-header {
        flex-direction: column;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-actions .project-link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .experience-card {
        padding: 22px;
    }

    .education-card {
        padding: 22px;
    }

    .project-link,
    .btn,
    .btn-outline {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    p {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 14px 16px;
    }

    .nav-top {
        width: 100%;
    }

    .logo-section h2 {
        font-size: 1.35rem;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 12vw, 3.4rem);
    }

    .hero h3 {
        font-size: 0.85rem;
        padding: 9px 14px;
    }

    .hero p,
    .section-copy,
    .section-lead {
        font-size: 0.98rem;
    }

    .project-card,
    .experience-card,
    .education-card,
    .about-card,
    .skill-box,
    .card {
        padding: 20px;
    }

    .project-card ul,
    .experience-card ul,
    .education-card ul {
        padding-left: 16px;
    }

    .project-tags {
        gap: 8px;
    }

    .project-tags span {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* NAV TOP */
.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* DEFAULT MENU */
#nav-menu {
    display: flex;
    list-style: none;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: rgba(0,0,0,0.9);
        margin-top: 10px;
        border-radius: 10px;
    }

    #nav-menu.active {
        display: flex;
    }

    #nav-menu li {
        padding: 10px 0;
    }
}

/* ===== NAVBAR BASE ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* NAV LINKS */
nav ul li a {
    position: relative;
    padding: 5px;
}

/* UNDERLINE ANIMATION */
nav ul li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: 0;
    background: #facc15;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ===== HAMBURGER ===== */
.menu-toggle {
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
}

/* Lines */
.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
    transition: 0.4s;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 9px;
}

.menu-toggle span:nth-child(3) {
    top: 18px;
}

/* ANIMATION TO CROSS */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* ===== MOBILE MENU ===== */
#nav-menu {
    transition: all 0.4s ease;
}

/* MOBILE STYLE */

.btn:hover {
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
}

.btn-outline:hover {
    border-color: rgba(125, 211, 252, 0.65);
    background: rgba(125, 211, 252, 0.1);
}

.card h3,
.skill-box h3,
.project-header h3 {
    color: #f8fbff;
}

.card p,
.card li,
.skill-box li,
.project-summary,
.section-copy {
    color: rgba(226, 232, 240, 0.88);
}

.card strong {
    color: #fff;
}

.card ul {
    text-align: left;
}

.hero,
section,
header {
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {

    #nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        transform: translateY(-200%);
        opacity: 0;
    }

    #nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .card {
        width: 100%;
    }
}
