html {
    scroll-behavior: smooth;
}

/* --- Global & Background --- */

/* The blue glowing orb in the top right */
.glow-blue {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
    /* Pushes it behind the glass card */
}

::selection {
    background: #37ac14;
    /* Yellow-orange highlight */
    color: #111;
}

* {
    cursor: none !important;
    /* Hide native cursor everywhere */
}

body {
    background-color: #050505;
    color: white;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Changed from fixed height */
    overflow-x: hidden;
    /* Changed to allow vertical scrolling if needed */
    padding: 40px 0;
    /* Gives space above and below the card when scrolling */
}


.glass-card {
    width: 95%;
    max-width: 1300px;
    min-height: 90vh;
    height: auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
    z-index: 1000;
    transition: all 0.4s ease;
    pointer-events: none;
    /* Let clicks pass through empty spaces */
}

.navbar>* {
    pointer-events: auto;
    /* Re-enable clicks on children */
}

.navbar.fixed {
    top: 20px;
}

.logo {
    position: absolute;
    left: 0;
    height: 70px;
    width: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar.fixed .logo {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.nav-pill {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px 10px 6px 24px;
    gap: 24px;
    position: relative;
}

.nav-pill a.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.nav-pill a.nav-link:hover,
.nav-pill a.nav-link.active {
    color: #fff;
}

.nav-dot {
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #6ee7b7;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 0 8px #6ee7b7;
}

.nav-pill .btn-talk {
    color: #fff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #6ee7b7;
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(110, 231, 183, 0.1), inset 0 0 5px rgba(110, 231, 183, 0.05);
}

.nav-pill .btn-talk:hover {
    background: rgba(110, 231, 183, 0.15);
    box-shadow: 0 0 15px rgba(110, 231, 183, 0.5), inset 0 0 10px rgba(110, 231, 183, 0.3);
}

/* --- Hero Section --- */
.hero {
    flex-grow: 1;
    /* Takes up all the remaining space */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ── Editorial overlays ── */
.watermark {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(120px, 18vw, 220px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.028);
    line-height: 1;
    letter-spacing: -6px;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

.ann {
    position: absolute;
    z-index: 4;
    pointer-events: none;
}

.ann-label {
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 3px;
}

.ann-value {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
}

.ann-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}


.ann-rule::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.ann-num {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ann-num::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.dot-nav {
    position: absolute;
    bottom: 14%;
    left: 8%;
    display: flex;
    gap: 7px;
    align-items: center;
    z-index: 4;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.dot.on {
    background: rgba(255, 255, 255, 0.65);
    width: 16px;
    border-radius: 3px;
}

.scroll-hint {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 4;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    animation: sdrop 2s ease-in-out infinite;
}

@keyframes sdrop {

    0%,
    100% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 0.4;
    }

    50% {
        transform: scaleY(0.3);
        transform-origin: bottom;
        opacity: 0.9;
    }
}

.scroll-label {
    font-size: 8px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.15);
    writing-mode: vertical-rl;
}

.bottom-bar {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-bar p {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.14);
}

/* Using absolute positioning to push the text to the corners */
.hi-text {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 300;
    position: absolute;
    top: 15%;
    left: 8%;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -1px;
}

.name-text {
    font-family: 'Outfit', sans-serif;
    font-size: 72px;
    font-weight: 600;
    position: absolute;
    bottom: 12%;
    right: 8%;
    margin: 0;
    background: linear-gradient(90deg, #fff, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.mask-img {
    height: 20vh;
    /* Uses viewport height instead of fixed pixels */
    min-height: 250px;
    /* Prevents it from getting too small */
    max-height: 400px;
    /* Prevents it from getting too big */
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
    z-index: 2;
}




/* ── Skills Marquee ── */
.skills-section {
    width: 100%;
    padding: 70px 0;
    overflow: hidden;
}

.skills-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 40px;
}

.skills-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
    margin-bottom: 8px;
}

.skills-title {
    font-size: 28px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.track-outer {
    position: relative;
}

.track-outer::before,
.track-outer::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.track-outer::before {
    left: 0;
    background: linear-gradient(90deg, #050505, transparent);
}

.track-outer::after {
    right: 0;
    background: linear-gradient(270deg, #050505, transparent);
}

.track {
    display: flex;
    gap: 16px;
    width: max-content;
    margin-bottom: 16px;
}

.track-row1 {
    animation: scroll-left 28s linear infinite;
}

.track-row2 {
    animation: scroll-right 28s linear infinite;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.track-outer:hover .track {
    animation-play-state: paused;
}

.sk {
    flex-shrink: 0;
    height: 52px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-left: none;
    cursor: default;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.sk:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sk-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.sk-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
}

.sk-div {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sk-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* --- The Bento Grid System --- */
.projects-section {
    margin-top: 150px;
    /* Leave space between home and projects */
    padding-top: 40px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 20px;
}

.bento-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Card 1: Top Left */
.text-card {
    grid-column: span 1;
    justify-content: center;
}

.text-card h3 {
    font-size: 30px;
    line-height: 1.3;
    margin: 0;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card 2: Top Right */
.wide-card {
    grid-column: span 2;
}

.wide-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Card 3: Bottom Left */
.large-card {
    grid-column: span 2;
}

/* Card 4: Bottom Right */
.tall-card {
    grid-column: span 1;
}

/* --- Typography & Elements inside cards --- */
.bento-card h4 {
    font-size: 22px;
    margin: 0 0 10px 0;
}

.bento-card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

/* Removed obsolete mockup CSS */

/* The beautiful gradient button */
.btn-gradient {
    display: block;
    background: linear-gradient(90deg, #8A2BE2, #FF1493, #FF8C00);
    /* Purple to Pink to Orange */
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 20px;
    transition: opacity 0.3s ease;
}

.btn-gradient:hover {
    opacity: 0.8;
}

/* --- New Visit Buttons --- */
.btn-visit {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle glass background */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    /* Gives it the pill shape */
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-visit:hover {
    background: rgba(255, 255, 255, 0.15);
    /* Lights up slightly when hovered */
    transform: translateX(3px);
    /* Nudges the button slightly to the right */
}

.card {
    position: relative;
    width: 300px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(20px);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.05s linear, box-shadow 0.4s ease, border-color 0.4s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(120, 80, 255, 0.2), 0 40px 80px rgba(0, 0, 0, 0.5);
}

/* top accent line */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7c50ff, transparent);
    z-index: 3;
}

/* shine layer */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07) 0%, transparent 55%);
    pointer-events: none;
    z-index: 2;
    border-radius: 20px;
}

.car-image {
    height: 180px;
    background: linear-gradient(135deg, #0d0b1e, #1a1040, #0d0b1e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-text {
    padding: 22px;
}

.date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.card-text h2 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin: 8px 0 6px;
    letter-spacing: -0.3px;
}

.card-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.65;
    margin: 0;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat.border {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.value {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.type {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.28);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}


.app-card {
    position: relative;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(20px);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.05s linear, box-shadow 0.4s ease, border-color 0.4s ease;
}

.app-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(120, 80, 255, 0.2), 0 40px 80px rgba(0, 0, 0, 0.5);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent, #7c50ff), transparent);
    z-index: 3;
}

.app-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07) 0%, transparent 55%);
    pointer-events: none;
    z-index: 2;
    border-radius: 20px;
}

.app-banner {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.app-banner-1 {
    background: linear-gradient(135deg, #0d0b1e, #1a1040, #0d0b1e);
}

.app-banner-2 {
    background: linear-gradient(135deg, #0a1a0a, #0f2d1a, #0a1a0a);
}

.app-banner-3 {
    background: linear-gradient(135deg, #1a0a0a, #2d0f0f, #1a0a0a);
}

.app-info {
    padding: 20px;
}

.app-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid;
}

.tag-purple {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
}

.tag-green {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.08);
}

.tag-red {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
}

.app-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.92);
}

.app-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.65;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-footer span {
    font-weight: 600;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Cursor Tooltip --- */
#cursor-tip {
    position: fixed;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: white;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    transform: translate(14px, -50%) scale(0);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    opacity: 0;
    z-index: 9999;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

#cursor-tip.show {
    transform: translate(14px, -50%) scale(1);
    opacity: 1;
}

/* --- Global Golden Dot Cursor --- */
#global-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    /* Golden dot */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.8), 0 0 20px rgba(255, 183, 3, 0.4);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

/* Make dot slightly larger when interacting with links/buttons */
a:hover~#global-dot,
button:hover~#global-dot {
    width: 14px;
    height: 14px;
    background-color: #ffd166;
}

/* ── Apps Section ── */
.apps-section {
    padding: 80px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.apps-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 6px;
}

.apps-title {
    font-size: 28px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.app-card {
    position: relative;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.05s linear, box-shadow 0.4s ease, border-color 0.4s ease;
}

.app-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    z-index: 3;
}

.app-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
    border-radius: 20px;
}

.app-card-bg {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: blur(8px);
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.app-card:hover .app-card-bg {
    opacity: 0.8;
    transform: scale(1.05);
}

/* ── Banner ── */
.app-banner {
    height: 150px;
    position: relative;
    overflow: hidden;
    background: rgba(12, 12, 12, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.app-banner::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    top: -60px;
    right: -40px;
}

.app-banner::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    bottom: -30px;
    left: 20px;
}

.banner-num {
    position: absolute;
    bottom: 16px;
    right: 18px;
    font-size: 52px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    letter-spacing: -2px;
    user-select: none;
}

.dot-grid {
    position: absolute;
    top: 16px;
    left: 18px;
    display: grid;
    grid-template-columns: repeat(4, 6px);
    gap: 5px;
}

.dot-grid span {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: block;
}

.banner-line {
    position: absolute;
    height: 1px;
    width: 60%;
    left: 20%;
}

/* ── Card Body ── */
.app-info {
    padding: 22px 22px 16px;
    position: relative;
    z-index: 1;
}

.app-tag {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.03);
}

.app-info h4 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: -0.2px;
}

.app-info p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.7;
    margin: 0;
}

/* ── Footer ── */
.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.footer-tech {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.footer-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    transition: border-color 0.3s, color 0.3s, transform 0.3s ease;
}

.app-card:hover .footer-arrow {
    transform: rotate(-45deg);
}

/* --- Certifications Section --- */
.certifications-section {
    padding: 100px 40px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.stacked-cards-container {
    position: relative;
    height: 700vh;
    margin-top: 40px;
}

.stacked-stage {
    position: sticky;
    top: 15vh;
    height: 70vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.cert-card {
    position: absolute;
    width: 100%;
    max-width: 360px;
    min-height: 280px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* Super smooth, responsive transition */
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.15s ease-out;
    transform-origin: bottom center;
}

/* Add a subtle glow at the top edge */
.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    z-index: 3;
}

.cert-header {
    margin-bottom: 20px;
}

.cert-year {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.5px;
}

.cert-body {
    flex-grow: 1;
}

.cert-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-badge {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
}

.btn-visit {
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
}

.btn-visit:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Base transforms to create the deck look */
#cert-1 {
    transform: translateY(-70px) scale(0.88);
    z-index: 10;
    opacity: 1;
}

#cert-2 {
    transform: translateY(-35px) scale(0.94);
    z-index: 20;
    opacity: 1;
}

#cert-3 {
    transform: translateY(0) scale(1);
    z-index: 30;
    opacity: 1;
}

/* --- Certification Scroll Indicators --- */
.cert-scroll-left {
    left: 20px;
    right: auto;
}

.cert-scroll-right {
    right: 20px;
    left: auto;
}

/* Base background for cards is overridden by JS */
.cert-card {
    background: rgba(5, 5, 5, 1);
}

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500&display=swap");

/* --- Contact Section --- */
.contact-section {
    padding: 100px 40px 40px 40px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card {
    width: 100%;
    max-width: 1200px;
    min-height: 400px;
    padding: 80px 40px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    cursor: none;
    /* Hide default cursor so custom cursor shows */
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    margin-bottom: 40px;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(0.99);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

.contact-label {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.contact-headline {
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1.1;
    font-weight: 600;
    color: #e6e0cc;
    text-align: center;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.contact-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.footer-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

.footer-middle {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    height: 200px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #e8c37d;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

/* =========================================
   Responsive Media Queries
   ========================================= */

/* Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .bento-grid, .apps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .wide-card, .large-card {
        grid-column: span 2 !important;
    }
    .text-card, .tall-card {
        grid-column: span 1 !important;
    }
    .hi-text { font-size: 48px; }
    .name-text { font-size: 56px; }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    body { padding: 0; }
    .glass-card {
        width: 100%;
        border-radius: 0;
        border: none;
        padding: 20px;
        min-height: 100vh;
    }
    
    /* Navbar stack */
    .navbar {
        flex-direction: column;
        top: 15px;
        gap: 15px;
    }
    .navbar.fixed {
        top: 10px;
    }
    .logo {
        position: relative;
        left: auto;
        height: 80px;
    }
    .nav-pill {
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 16px;
        gap: 12px;
    }
    .nav-pill a.nav-link { font-size: 14px; }
    
    /* Hero adjustments */
    .hi-text {
        font-size: 32px;
        top: 5%;
        left: 5%;
    }
    .name-text {
        font-size: 40px;
        bottom: 5%;
        right: 5%;
    }
    .watermark {
        font-size: 80px;
        letter-spacing: 0;
    }
    .mask-img { min-height: 200px; }
    
    /* Grids to single column */
    .bento-grid, .apps-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto;
    }
    .bento-card, .app-card, .wide-card, .large-card {
        grid-column: span 1 !important;
    }
    
    /* Spacing and sections */
    .apps-section { padding: 60px 0; }
    .projects-section { margin-top: 60px; padding-top: 20px; }
    .contact-card { padding: 40px 20px; border-radius: 24px; }
    .contact-headline { font-size: 32px; }
    .skills-section { padding: 40px 0; }
    .certifications-section { padding: 60px 10px; }
    
    /* Footer */
    .contact-footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    .footer-left,
    .footer-middle,
    .footer-right {
        justify-content: center;
        text-align: center;
    }
    .footer-logo {
        height: 120px;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .nav-pill {
        gap: 8px;
        padding: 6px 12px;
    }
    .nav-pill a.nav-link { font-size: 12px; }
    .nav-pill .btn-talk { font-size: 11px; padding: 6px 12px; }
    
    .hi-text { font-size: 28px; }
    .name-text { font-size: 32px; }
    .bento-card { padding: 20px; }
    .app-banner { height: 120px; }
    .app-info { padding: 16px 16px 10px; }
}

/* Hide custom cursor and restore native cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    #global-dot, #cursor-tip {
        display: none !important;
    }
    * {
        cursor: auto !important;
    }
    a, button, .app-card, .card, .bento-card, .contact-card, .nav-link, .btn-talk, .btn-visit {
        cursor: pointer !important;
    }
}

/* Hide the static radial gradients (shaders) on mobile view */
@media (max-width: 1024px) {
    .bento-card::before,
    .app-card::after,
    .card::after {
        display: none !important;
    }
}