@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --bg: #0e0e11;
    --bg-card: #13131a;
    --bg-card-hover: #16161f;
    --purple: #3B82F6;
    --purple-light: #22D3EE;
    --purple-dim: rgba(59, 130, 246, 0.15);
    --border: rgba(59, 130, 246, 0.2);
    --text: #ffffff;
    --text-muted: #6b7280;
    --text-sub: #9ca3af;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ─── Background Glow Blobs ─── */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
}

/* ─── Navigation ─── */
.navbar {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    z-index: 1000;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 9999px;
    background: rgba(20, 20, 28, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.logo .dot {
    color: var(--purple);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

/* ─── Page Wrapper ─── */
.page {
    position: relative;
    z-index: 1;
}

section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

/* ─── Hero Section ─── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-sub);
    margin-bottom: 2.5rem;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--purple);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.hero-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(4.5rem, 12vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-name .line1 {
    display: block;
    color: #fff;
}

.hero-name .line2 {
    display: block;
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    color: var(--text-sub);
    font-size: 1rem;
    margin-bottom: 3rem;
    min-height: 2.4em;
    line-height: 1.4;
}

.hero-sub .typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--purple);
}

@keyframes blink {

    from,
    to {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-cta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    padding: 0.9rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ─── Section Labels ─── */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--purple);
}

.section-label::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: var(--purple);
    flex-shrink: 0;
}

.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.section-heading .accent {
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── About Section ─── */
.about-section {
    padding-top: 6rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 5rem;
    align-items: center;
}

.mascot-card {
    aspect-ratio: 1;
    background: #0d0d14;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mascot-card::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    bottom: -80px;
    right: -80px;
    border-radius: 50%;
}

.mascot-inner {
    position: relative;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-svg {
    width: 100%;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(3deg);
    }
}

.speech-bubble {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--text);
    color: var(--bg);
    padding: 0.4rem 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

.mascot-card:hover .speech-bubble {
    opacity: 1;
    transform: translateY(0);
}

.year-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 0.9rem 1.25rem;
    text-align: center;
    z-index: 5;
}

.year-badge .num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.75rem;
    color: var(--text);
    display: block;
    line-height: 1;
}

.year-badge .label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: var(--border);
}

.info-card .card-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--purple-dim);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.info-card h4 {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.info-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── Skills Section ─── */
.skills-section {
    padding: 4rem 2rem;
}

.skills-header {
    text-align: center;
    margin-bottom: 4rem;
}

.skills-header p {
    color: var(--text-sub);
    max-width: 38rem;
    margin: 0 auto;
    font-size: 0.9rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

.skill-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
}

.skill-card::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
    bottom: -60px;
    right: -60px;
    border-radius: 50%;
    pointer-events: none;
}

.skill-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--purple-dim);
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.skill-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-sub);
}

.skill-list li i {
    font-size: 1.1rem;
    width: 1.2rem;
    text-align: center;
}

/* ─── Projects Section ─── */
.projects-section {
    padding: 4rem 2rem;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.projects-header .title-block .section-label {
    margin-bottom: 0.75rem;
}

.gh-link {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
    padding-bottom: 0.5rem;
}

.gh-link:hover {
    color: var(--text);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
}

.project-card.wide {
    grid-column: span 2;
}

.project-visual {
    height: 14rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Purple tinted backgrounds for project visuals */
.project-card:nth-child(1) .project-visual {
    background: #14101d;
}

.project-card:nth-child(2) .project-visual {
    background: #0f1422;
}

.project-card:nth-child(3) .project-visual {
    background: #131420;
}

.project-card .project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: opacity 0.3s;
}

.project-card:hover .project-visual img {
    opacity: 0.7;
}

.project-visual-icon {
    font-size: 4rem;
    color: rgba(59, 130, 246, 0.3);
}

.tag-row {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-sub);
}

.project-info {
    padding: 1.75rem;
}

.project-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

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

.impact-badge {
    background: var(--purple-dim);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.25rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--purple-light);
    letter-spacing: 0.03em;
}

.ext-link {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.2s, color 0.2s;
}

.ext-link:hover {
    background: var(--purple-dim);
    color: var(--purple);
}

/* ─── Contact Section ─── */
.contact-section {
    padding: 4rem 2rem 8rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    background: #0f0f18;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 2rem;
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    pointer-events: none;
}

.contact-card::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
    top: -120px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.contact-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.contact-card .sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
}

.email-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.85rem 2.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s;
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.email-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.03);
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.social-link i {
    font-size: 1.4rem;
}

.social-link:hover {
    color: var(--text);
}

.footer-copy {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

/* ─── GSAP Reveal ─── */
.reveal-up {
    will-change: transform, opacity;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mascot-card {
        max-width: 380px;
        margin: 0 auto;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.wide {
        grid-column: span 1;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 0.75rem 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .hero-name {
        font-size: clamp(3.5rem, 16vw, 5rem);
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 3rem 1.5rem;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }
}

/* ─── Project Details & Utilities ─── */
.details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.detail-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-sub);
    transition: all 0.2s ease;
}

.detail-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--purple-light);
    color: var(--text);
}

.detail-tag i {
    font-size: 0.9rem;
    color: var(--purple-light);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin: 2rem 0 1.5rem;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem 1.25rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.3);
}

.os-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.smartscreen-alert {
    background: rgba(59, 130, 246, 0.02);
    border-left: 2px solid var(--border);
    padding: 0.85rem 1.1rem;
    border-radius: 0.4rem;
    margin-top: 1.25rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.smartscreen-alert i {
    color: var(--purple-light);
    font-size: 1rem;
    margin-top: 0.15rem;
}

.smartscreen-alert p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 !important;
}

.smartscreen-alert span {
    color: var(--text-sub);
    font-weight: 600;
}

.smartscreen-alert .highlight {
    color: var(--purple-light);
}