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

:root {
    --bg-main: #0f172a;
    --bg-nav: rgba(17, 24, 39, 0.85);
    --card-bg: #1e293b;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    padding: 10px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: padding 0.3s ease;
}

nav.scrolled {
    padding: 15px 10%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

nav h2 {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

nav a:hover, nav a.active {
    color: var(--accent);
}
.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-top {
    display: flex;
    align-items: center;
}


/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 10% 60px;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 70%);
}

.home-hero {
    padding-top: 130px;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent 35%),
        linear-gradient(160deg, #0f172a 0%, #111827 52%, #172033 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap-reverse;
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
    align-items: center;
    gap: 42px;
    max-width: 1220px;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-copy {
    max-width: 650px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    animation: fadeInDown 1s ease-out forwards;
}

.hero-text span {
    color: var(--accent);
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    max-width: 600px;
    margin: 25px 0;
    font-size: 1.15rem;
    color: var(--text-muted);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-text .hero-kicker {
    max-width: none;
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.82rem;
    animation: fadeInDown 1s ease-out forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn-secondary {
    background: rgba(248, 250, 252, 0.06);
    color: var(--text-main);
    border: 1px solid rgba(248, 250, 252, 0.14);
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.hero-image {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 2px solid rgba(56, 189, 248, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.hero-collage {
    position: relative;
    width: min(100%, 610px);
    min-height: 620px;
    margin-left: auto;
    animation: fadeInUp 1s ease-out forwards;
}

.collage-tile,
.hero-widget {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 22px 45px rgba(0,0,0,0.34);
}

.collage-tile {
    overflow: hidden;
    background: var(--card-bg);
}

.collage-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.collage-tile figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.collage-main {
    top: 45px;
    right: 8%;
    width: 56%;
    height: 410px;
    border-radius: 28px;
    z-index: 3;
}

.collage-project {
    top: 5px;
    left: 4%;
    width: 39%;
    height: 215px;
    border-radius: 18px;
    z-index: 2;
}

.collage-campus {
    left: 12%;
    bottom: 58px;
    width: 51%;
    height: 190px;
    border-radius: 22px;
    z-index: 4;
}

.hero-widget {
    padding: 18px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.88);
    backdrop-filter: blur(12px);
    z-index: 5;
}

.hero-widget span,
.snapshot-widget span {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-widget strong,
.snapshot-widget strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.35;
}

.widget-current {
    left: 0;
    bottom: 240px;
    width: 230px;
}

.widget-scholar {
    right: 0;
    bottom: 28px;
    width: 180px;
}

.home-snapshot {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.snapshot-copy {
    max-width: 700px;
}

.snapshot-board {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-auto-rows: minmax(150px, auto);
    gap: 18px;
}

.snapshot-widget {
    min-height: 150px;
    padding: 22px;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

a.snapshot-widget:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.snapshot-feature {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
    padding: 0;
}

.snapshot-feature img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.snapshot-feature div {
    padding: 22px;
}

.snapshot-stat {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(34, 197, 94, 0.12)), var(--card-bg);
}

.snapshot-org {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.snapshot-org-logos {
    display: flex;
    align-items: center;
}

.snapshot-org-logos img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid var(--card-bg);
    background: #f8fafc;
}

.snapshot-org-logos img + img {
    margin-left: -14px;
}

.snapshot-note {
    grid-column: 1 / -1;
    min-height: px;
    background:
        linear-gradient(135deg, rgba(129, 140, 248, 0.13), rgba(251, 191, 36, 0.10)),
        var(--card-bg);
}


.resume-widget-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* Sub-Hero for other pages */
.sub-hero {
    min-height: 40vh;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px 10% 60px;
    text-align: center;
}

.sub-hero h1 {
    font-size: 3rem;
    animation: fadeInDown 1s ease-out forwards;
}

.sub-hero span {
    color: var(--accent);
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, #38bdf8, #818cf8);
    color: #0f172a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0px 25px var(--accent-glow);
}

/* --- LAYOUT & TYPOGRAPHY --- */
section { padding: 70px 10%; }
.bg-dark { background: #0f172a; }
.bg-light { background: #111827; }

h2 {
    font-size: 2.5rem;
    margin-bottom: 28px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--accent);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 900px;
    text-align: justify;
    margin-bottom: 28px;
}

/* --- SKILLS --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.skill {
    background: var(--card-bg);
    min-height: 150px;
    padding: 30px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    color: var(--accent);
}

/* --- CARDS --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* Projects grid stacks as full-width rows instead of a multi-column grid */
#projects .grid-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-row-card {
    display: flex;
    align-items: stretch;
    gap: 32px;
    padding: 30px;
    overflow: hidden;
}

.project-row-card > .project-photo {
    flex: 0 0 320px;
    align-self: stretch;
    margin: -30px 0 -30px -30px;
    min-height: 0;
    border-radius: 15px 0 0 15px;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.project-row-card > .project-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.card:hover::before { transform: scaleY(1); }
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.project-link-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.project-link-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.card h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
    color: var(--text-main);
}

.project-row-card h3 {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}

.card h4 {
    color: var(--accent);
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1rem;
}

.card .meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
    font-style: italic;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: justify;
}

.card ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.organization-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.organization-header h3,
.organization-header h4 {
    margin-bottom: 4px;
}

.organization-logo {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
}

.organization-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-erg img {
    padding: 5px;
}

.logo-start img {
    padding: 5px;
}

.project-photo,
.education-photo {
    min-height: 200px;
    margin: -30px -30px 25px;
    background-color: #111827;
    background-image: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(129, 140, 248, 0.18));
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tech-tags {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.document-link-label {
    display: inline-block;
    width: fit-content;
    margin-top: 18px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.document-link-label::after {
    content: ' ->';
}

.document-link-label.unavailable {
    color: var(--text-muted);
}

.document-link-label.unavailable::after {
    content: '';
}

/* ===== HOBBY BENTO — 4:5 GRAPHIC DESIGN WITH EQUAL OTHER CARDS ===== */

.hobby-bento {
    display: grid;
    grid-template-columns: 420px 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    margin-top: 40px;
    min-height: 480px;
}

/* shared card base */
.hobby-card {
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    height: 100%;
    min-height: 0;
}

.hobby-card:hover {
    transform: scale(1.02);
    box-shadow: 0 24px 48px rgba(0,0,0,0.55);
    z-index: 2;
}

/* ---- Card placements ---- */
.hobby-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

.hobby-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.hobby-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.hobby-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.hobby-card:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

/* ---- Graphic Design Card - FORCE 4:5 Ratio ---- */
.graphic-design-card {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;

    aspect-ratio: 4 / 5;
    width: 100%;

    max-width: 420px;
    height: auto;

    justify-self: center;
    align-self: center;
}

/* ---- Other 4 cards - equal size, fill their cells ---- */
.hobby-card:not(.graphic-design-card) {
    aspect-ratio: auto !important;
    height: 100% !important;
    width: 100% !important;
    align-self: stretch !important;
    justify-self: stretch !important;
}

/* ---- full-bleed photo ---- */
.hobby-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s ease;
    z-index: 1;
}

.hobby-card:hover .hobby-photo {
    transform: scale(1.02);
}

/* ---- gradient + text overlay ---- */
.hobby-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 20px 16px;
    background: linear-gradient(to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.25) 65%,
        transparent 100%);
    transition: background 0.35s ease;
    z-index: 5;
}

.hobby-card:hover .hobby-content {
    background: linear-gradient(to top,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.8) 80%,
        transparent 100%);
}

.hobby-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.hobby-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    line-height: 1.4;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.hobby-card:hover .hobby-content p {
    max-height: 80px;
    opacity: 1;
}

/* ---- accent glow border on hover ---- */
.hobby-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1.5px solid rgba(56, 189, 248, 0);
    transition: border-color 0.35s ease;
    pointer-events: none;
    z-index: 6;
}

.hobby-card:hover::after {
    border-color: rgba(56, 189, 248, 0.6);
}

/* ===== SLIDESHOW ===== */

.hobby-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slideshow-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.12);
}

.hobby-card:hover .slide-btn {
    opacity: 1;
}

.slide-btn:hover {
    background: rgba(56, 189, 248, 0.5);
}

.slide-btn.prev { left: 6px; }
.slide-btn.next { right: 6px; }

.slide-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slide-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slide-dots span.active {
    background: var(--accent);
    transform: scale(1.25);
}

/* ===== EXPERIENCES BENTO - ORIGINAL SHAPE ===== */

.hobby-bento-3col {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    height: 60vh;
    min-height: 380px;
    max-height: 560px;
    width: 100%;
}

.hobby-bento-3col .hobby-card {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.hobby-bento-3col .hobby-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
    border-radius: 16px;
}

.hobby-bento-3col .hobby-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    border-radius: 16px;
}

.hobby-bento-3col .hobby-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    border-radius: 16px;
}
/* --- CONTACT SECTION --- */
.contact-container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-container p {
    margin: 15px 0;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 190px;
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-size: 1.4rem;
    font-weight: 700;
}

.contact-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.contact-label {
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-detail {
    color: var(--text-muted);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px;
    background: #0b1120;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- ANIMATIONS --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);

}
@media (max-width: 1000px) {
    .home-hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-collage {
        margin: 0 auto;
        min-height: 590px;
    }


    .home-hero {
        padding-top: 220px;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero-collage {
        min-height: 540px;
    }

    .collage-main {
        top: 54px;
        right: 0;
        width: 62%;
        height: 330px;
        border-radius: 22px;
    }

    .collage-project {
        top: 0;
        left: 0;
        width: 45%;
        height: 165px;
    }

    .collage-campus {
        left: 0;
        bottom: 72px;
        width: 62%;
        height: 155px;
    }

    .hero-widget {
        padding: 14px;
        border-radius: 15px;
    }

    .hero-widget strong,
    .snapshot-widget strong {
        font-size: 0.92rem;
    }

    .widget-current {
        left: 0;
        bottom: 240px;
        width: 190px;
    }

    .widget-scholar {
        right: 0;
        bottom: 18px;
        width: 155px;
    }

    .snapshot-board {
        grid-template-columns: 1fr;
    }

    .snapshot-feature,
    .snapshot-note {
        grid-column: auto;
        grid-row: auto;
    }

    .snapshot-feature {
        min-height: 330px;
    }

    .snapshot-feature img {
        height: 220px;
    }

    .sub-hero {
        padding-top: 205px;
    }

    .sub-hero h1 {
        font-size: 2.3rem;
    }

    .project-photo,
    .education-photo {
        min-height: 170px;
    }

    .organization-header {
        align-items: flex-start;
    }

    .organization-logo {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        font-size: 0.72rem;
    }
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {

    .hero-text h1 {
        font-size: 2rem;
    }

    .sub-hero h1 {
        font-size: 1.8rem;
    }

    nav h2 {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 10px;
    }

    nav a {
        font-size: 0.8rem;
    }

    .collage-main,
    .collage-project,
    .collage-campus {
        height: 180px;
    }

    .snapshot-feature img {
        height: 180px;
    }
}

/* ==========================================
   HAMBURGER MENU
========================================== */

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    .hobby-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
        max-height: none;
        min-height: auto;
        gap: 12px;
    }

    .hobby-card {
        height: auto;
        min-height: 180px;
    }

    .graphic-design-card {
    grid-column: 1 / 3 !important;
    grid-row: auto !important;

    aspect-ratio: 4 / 5;
    width: 100%;

    min-height: unset;
    max-height: unset;
    height: auto;
}

    .hobby-card:not(.graphic-design-card) {
        grid-column: auto;
        grid-row: auto;
        min-height: 160px;
        max-height: 220px;
    }

    .hobby-bento-3col {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
        max-height: none;
        min-height: auto;
        gap: 12px;
    }

    .hobby-bento-3col .hobby-card {
        height: auto;
        min-height: 160px;
    }

    .hobby-bento-3col .hobby-card:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 220px;
        max-height: 320px;
    }

    .hobby-bento-3col .hobby-card:nth-child(2) {
        grid-column: 1;
        grid-row: auto;
    }

    .hobby-bento-3col .hobby-card:nth-child(3) {
        grid-column: 2;
        grid-row: auto;
    }

    .nav-logo img {
        height: 40px;
    }

    .hobby-bento {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .graphic-design-card {
    grid-column: 1 !important;

    aspect-ratio: 4 / 5;
    width: 100%;

    min-height: unset;
    max-height: unset;
    height: auto;
}

    .hobby-card:not(.graphic-design-card) {
        grid-column: 1;
        min-height: 160px;
        max-height: 220px;
    }

    .hobby-bento-3col {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hobby-bento-3col .hobby-card {
        min-height: 160px;
        max-height: 220px;
    }

    .hobby-bento-3col .hobby-card:nth-child(1) {
        grid-column: 1;
        min-height: 200px;
        max-height: 280px;
    }

    .hobby-bento-3col .hobby-card:nth-child(2) {
        grid-column: 1;
    }

    .hobby-bento-3col .hobby-card:nth-child(3) {
        grid-column: 1;
    }
    /* NAVBAR */
    nav {
    padding: 12px 20px;
    flex-wrap: wrap;
}

.nav-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav a {
        font-size: 0.9rem;
    }

    /* HERO */
    .hero,
    .home-hero {
        padding: 140px 20px 60px;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* SNAPSHOT SECTION */
    .snapshot-board {
        grid-template-columns: 1fr;
    }

    .snapshot-feature {
        min-height: auto;
    }

    .snapshot-feature img {
        height: 220px;
    }

    .snapshot-note {
        grid-column: auto;
    }

    /* GENERAL SECTIONS */
    section {
        padding: 60px 20px;
    }

    h2 {
        font-size: 2rem;
    }

    .sub-hero h1 {
        font-size: 2.2rem;
    }

    /* PROJECTS / EDUCATION */
    .grid-container {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px;
    }

    .project-photo,
    .education-photo {
        margin: -24px -24px 20px;
    }

    .project-row-card {
        display: flex;
        flex-direction: column;
        padding: 24px;
    }

    .project-row-card > .project-photo {
        flex: none;
        width: auto;
        height: auto;
        margin: -24px -24px 20px;
        min-height: 180px;
        border-radius: 15px 15px 0 0;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* ORGANIZATION HEADER */
    .organization-header {
        flex-direction: column;
        text-align: center;
    }

    /* PDF VIEWER */
    .pdf-viewer-header {
        flex-direction: column;
    }

    .pdf-frame-wrap {
        min-height: 400px;
        height: 60vh;
    }

    /* CONTACT */
    .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .contact-container p {
        font-size: 1rem;
    }

    /* BUTTONS */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
        width: 100%;
    }
    #hobbies-experience .hobby-content p {
        max-height: 0;
        opacity: 0;
    }

    #hobbies-experience .hobby-card.active .hobby-content p {
        background: linear-gradient(to top,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.8) 80%,
        transparent 100%);
    }

    #hobbies-experience .hobby-card.active .hobby-photo {
        transform: scale(1.07);
    }

    #hobbies-experience .hobby-card.active::after {
        border-color: rgba(56, 189, 248, 0.6);
    }
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .nav-logo {
        display: flex;
        align-items: center;
    }

    .hamburger {
        display: block;
        margin-left: auto;
    }

    nav ul {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin-top: 15px;
        padding: 20px 0;
        background: rgba(17, 24, 39, 0.98);
        border-radius: 12px;
    }

    nav ul.show {
        display: flex;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        }
    }
}
