@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    /* --bg: #08080F; */
    --bg: #000000;

    --primary: #F25912;
    --primary-rgb: 242, 89, 18;
    --secondary: #F59E0B;
    --secondary-rgb: 245, 158, 11;
    --tertiary: #FB7185;
    --tertiary-rgb: 251, 113, 133;
    --accent-warm: #FBBF24;
    --accent-warm-rgb: 251, 191, 36;
    --accent-soft: #FCA5A5;
    --accent-soft-rgb: 252, 165, 165;
    --text-primary: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.4);
    --text-faint: #555;

    --card-bg: linear-gradient(135deg, rgba(18, 14, 12, 0.95) 0%, rgba(10, 8, 8, 0.98) 100%);
    --card-bg-warm: linear-gradient(135deg, rgba(25, 16, 10, 0.95) 0%, rgba(10, 8, 6, 0.98) 100%);
    --card-bg-dark: linear-gradient(135deg, rgba(15, 10, 8, 0.98) 0%, rgba(5, 5, 5, 1) 100%);
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    width: 100%;
    padding: 30px;
    align-items: center;
    justify-content: center;
    background-color: var(--bg);
    margin: 0;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

.welcome {
    min-height: 100vh;
    width: 100vw;
    margin-left: -30px;
    margin-top: -30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    z-index: 1;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: blobDrift1 20s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    bottom: -5%;
    left: -5%;
    animation: blobDrift2 25s ease-in-out infinite;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobDrift3 18s ease-in-out infinite;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.particle {
    position: absolute;
    border-radius: 50%;
    z-index: 3;
}

.particle-1 {
    width: 4px;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    top: 20%;
    left: 15%;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle-2 {
    width: 3px;
    height: 3px;
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    top: 70%;
    right: 20%;
    animation: particleFloat 11s ease-in-out infinite reverse;
}

.particle-3 {
    width: 5px;
    height: 5px;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    top: 35%;
    right: 30%;
    animation: particleFloat 9s ease-in-out infinite 2s;
}

.particle-4 {
    width: 3px;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    bottom: 30%;
    left: 25%;
    animation: particleFloat 13s ease-in-out infinite 1s;
}

.particle-5 {
    width: 4px;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    top: 50%;
    left: 60%;
    animation: particleFloat 10s ease-in-out infinite 3s;
}

.particle-6 {
    width: 2px;
    height: 2px;
    background: var(--accent-soft);
    box-shadow: 0 0 6px var(--accent-soft);
    top: 15%;
    right: 40%;
    animation: particleFloat 7s ease-in-out infinite 0.5s;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 6rem;
    font-weight: 700;
    margin: 0 auto;
    letter-spacing: .15em;
    border-right: .1em solid var(--primary);
    white-space: nowrap;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.25));
    line-height: 1;
    /* animation: typing 2s steps(23, end), blink-caret .8s step-end infinite; */
    animation: typewriter 2s steps(23) 1s 1 normal both,
        blinkTextCursor 500ms steps(23) infinite normal;
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 8.3em;
    }
}

@keyframes blinkTextCursor {
    from {
        border-right-color: var(--primary);
    }

    to {
        border-right-color: transparent;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: 16px;
    animation: heroReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-decoration: none;
    animation: heroReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary);
    }
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes blobDrift1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, 30px) scale(1.1);
    }

    66% {
        transform: translate(20px, -20px) scale(0.95);
    }
}

@keyframes blobDrift2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(1.1);
    }
}

@keyframes blobDrift3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.55;
    }
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }

    25% {
        transform: translate(15px, -25px);
        opacity: 1;
    }

    50% {
        transform: translate(-10px, -40px);
        opacity: 0.4;
    }

    75% {
        transform: translate(20px, -15px);
        opacity: 0.8;
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        height: 40px;
    }

    50% {
        opacity: 0.8;
        height: 55px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(6px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.bento-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0 40px;
    background: var(--bg);
    width: 100vw;
    margin-left: -30px;
}

.bento-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.bento-blob-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: 10%;
    left: -8%;
    animation: blobDrift2 22s ease-in-out infinite;
}

.bento-blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: 5%;
    right: -5%;
    animation: blobDrift1 26s ease-in-out infinite;
}

.bento-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
}

.bento-grid {
    border: 1px solid rgba(255, 255, 255, 0);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 350px 450px 350px 250px 250px;
    gap: 15px;
    width: 70%;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.1),
        0 0 0 1px rgba(var(--primary-rgb), 0.08);
}

.icon-arrow {
    cursor: pointer;
    position: absolute;
    bottom: 25px;
    right: 25px;
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.icon-arrow:hover {
    transform: translate(5px, -5px) rotate(-45deg);
    color: var(--primary);
}

.profile-card {
    grid-column: span 5;
    grid-row: span 1;
    align-items: flex;
    justify-content: center;
    background: var(--card-bg-warm);
    border-color: rgba(var(--primary-rgb), 0.1);
}

.profile-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 12px 50px rgba(var(--primary-rgb), 0.12);
}

.profile-inner {
    display: flex;
    gap: 20px;
    height: 100%;
    width: 100%;
}

.profile-img {
    width: 282px;
    height: 282px;
    object-fit: cover;
    border-radius: 16px;
    opacity: 0.9;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.sub-text {
    font-size: 1rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.greeting-text {
    font-size: 0.85rem;
    color: rgba(var(--primary-rgb), 0.7);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sub-text-faint {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-top: 5px;
    display: block;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 500;
    margin: 10px 0;
    color: var(--text-primary);
}

/* Projects card — carousel */
.projects-card {
    grid-column: span 3;
    background: var(--card-bg-dark);
    display: flex;
    flex-direction: column;
    padding: 30px;
    position: relative;
}

.projects-header h1 {
    margin: 0 0 5px 0;
}

.projects-carousel {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.project-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.project-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.project-thumbnail {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projects-card:hover .project-slide.active .project-thumbnail img {
    transform: scale(1.05);
}

.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.project-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.project-arrows {
    display: flex;
    gap: 8px;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.arrow-btn:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.my-stack {
    grid-column: span 2;
    background: var(--card-bg-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stack-header h1 {
    margin: 0 0 4px 0;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex: 1;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.stack-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.12);
    transform: translateY(-3px);
}

.stack-icon {
    width: 2rem;
    height: 2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-item:hover .stack-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.35));
    transform: scale(1.15);
}

.stack-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.stack-item:hover .stack-label {
    color: rgba(255, 255, 255, 0.85);
}


/* CTA card */
.cta-card {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: span 5;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.cta-card .cta-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cta-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--primary), transparent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s ease, box-shadow 0.4s ease, width 0.4s ease;
    box-shadow: 0 0 0px transparent;
}

.cta-card:hover::after {
    opacity: 1;
    width: 80%;
    box-shadow:
        0 0 15px rgba(var(--primary-rgb), 0.6),
        0 0 40px rgba(var(--primary-rgb), 0.3),
        0 -5px 30px rgba(var(--primary-rgb), 0.15);
}

.cta-card:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
}

.learning-card {
    grid-column: span 5;
    background: var(--card-bg-dark);
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.learning-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.learning-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.learning-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.learning-item:hover {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.learning-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

.learning-item:nth-child(2) .learning-dot {
    animation-delay: 0.5s;
}

.learning-item:nth-child(3) .learning-dot {
    animation-delay: 1s;
}

.learning-item:nth-child(4) .learning-dot {
    animation-delay: 1.5s;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

.learning-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 8px;
}

.learning-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.learning-tag {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(var(--primary-rgb), 0.8);
    background: rgba(var(--primary-rgb), 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.thanks {
    grid-column: span 5;
    background-color: rgba(0, 0, 0, 0);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.thanks .visualizer {
    padding-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.thanks .bar {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: barPulse 2s ease-in-out infinite;
}

.thanks .bar:nth-child(2) {
    animation-delay: 0.5s;
}

.thanks .bar:nth-child(3) {
    animation-delay: 1s;
}

.thanks .bar:nth-child(4) {
    animation-delay: 1.5s;
}

.thanks .bar:nth-child(5) {
    animation-delay: 2s;
}

.thanks .bar:nth-child(6) {
    animation-delay: 2.5s;
}

.thanks .bar:nth-child(7) {
    animation-delay: 3s;
}

.thanks .bar:nth-child(8) {
    animation-delay: 3.5s;
}

.thanks .bar:nth-child(9) {
    animation-delay: 4s;
}

.thanks .bar:nth-child(10) {
    animation-delay: 4.5s;
}

@keyframes barPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

/* Socials card */
.socials-card {
    grid-column: span 5;
    background: linear-gradient(135deg, rgba(10, 6, 2, 0.98) 0%, rgba(0, 0, 0, 1) 100%);
    display: flex;
    flex-direction: column;
    padding: 28px;
    gap: 20px;
    border-color: rgba(var(--primary-rgb), 0.15);
}

.socials-header h1 {
    margin: 0 0 4px 0;
}

.socials-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 24px;
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    flex: 1;
    min-width: 100px;
}

.social-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 6px 28px rgba(var(--primary-rgb), 0.2),
        0 0 0 1px rgba(var(--primary-rgb), 0.1);
    transform: translateY(-4px);
}

.social-icon {
    width: 32px;
    height: 32px;
    color: rgba(var(--primary-rgb), 0.65);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-item:hover .social-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.5));
    transform: scale(1.12);
}

.social-label {
    font-size: 0.7rem;
    color: rgba(var(--primary-rgb), 0.5);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.social-item:hover .social-label {
    color: var(--primary);
}

footer {
    color: rgba(255, 255, 255, 0.45);
    padding: 20px 20px;
    font-family: "Inter", sans-serif;
}

.footer-container {
    width: 70%;
    margin: 0 auto;
    padding: 30px 0;
    border-top: 1px solid rgba(var(--primary-rgb), 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== RESPONSIVE ========== */

/* Tablet / Small laptop — max 1024px */
@media (max-width: 1024px) {

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 6px;
    }

    h1 {
        font-size: 2rem;
    }

    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: auto;
        gap: 15px;
        width: 90%;
    }

    .card {
        padding: 26px;
    }

    /* Profile card */
    .profile-card {
        grid-column: span 4;
    }

    .profile-img {
        width: 220px;
        height: 220px;
    }

    .profile-text h1 {
        font-size: 1.8rem;
    }

    .sub-text {
        font-size: 0.92rem;
    }

    /* Projects card */
    .projects-card {
        grid-column: span 4;
        padding: 26px;
    }

    .project-slide {
        gap: 16px;
    }

    .project-thumbnail {
        width: 160px;
        height: 160px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    /* My Stack card */
    .my-stack {
        grid-column: span 4;
    }

    .stack-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .stack-item {
        padding: 14px 8px;
        gap: 6px;
    }

    .stack-icon {
        width: 1.8rem;
        height: 1.8rem;
    }

    .stack-label {
        font-size: 0.65rem;
    }

    /* Learning card */
    .learning-card {
        grid-column: span 4;
        padding: 26px;
    }

    .learning-name {
        font-size: 0.82rem;
    }

    /* CTA card */
    .cta-card {
        grid-column: span 4;
    }

    .cta-card h1 {
        font-size: 1.8rem;
    }

    /* Socials card */
    .socials-card {
        grid-column: span 4;
        padding: 26px;
    }

    .social-item {
        padding: 18px 20px;
    }

    /* Thanks */
    .thanks {
        grid-column: span 4;
    }

    /* Footer */
    .footer-container {
        width: 85%;
    }
}

/* Tablet / Small screen — max 768px */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .welcome {
        margin-left: -15px;
        margin-top: -15px;
    }

    .bento-section {
        margin-left: -15px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        position: relative;
        z-index: 5;
        text-align: center;
    }

    @keyframes typewriter {
        from {
            width: 0;
        }

        to {
            width: 5em;
        }
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 5px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        width: 90%;
        gap: 15px;
    }

    .card {
        padding: 24px;
    }

    .profile-card {
        grid-column: span 1;
    }

    .profile-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .profile-text h1 {
        font-size: 1.6rem;
    }

    .sub-text {
        font-size: 0.9rem;
    }

    .projects-card {
        grid-column: span 1;
        padding: 24px;
    }

    .project-slide {
        flex-direction: column;
        gap: 16px;
    }

    .project-thumbnail {
        width: 100%;
        height: 160px;
        order: -1;
    }

    .project-title {
        font-size: 1.15rem;
    }

    .my-stack {
        grid-column: span 1;
    }

    .stack-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .stack-item {
        padding: 12px 8px;
        gap: 6px;
    }

    .learning-card {
        grid-column: span 1;
        padding: 24px;
    }

    .learning-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cta-card {
        grid-column: span 1;
    }

    .cta-card h1 {
        font-size: 1.5rem;
    }

    .socials-card {
        grid-column: span 1;
        padding: 24px;
    }

    .socials-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .social-item {
        min-width: unset;
        padding: 16px 12px;
    }

    .thanks {
        grid-column: span 1;
        height: 30vh;
    }

    .thanks .visualizer {
        display: none;
    }

    .footer-container {
        width: 90%;
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 20px 0;
    }
}

/* Mobile — max 480px */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .welcome {
        margin-left: -10px;
        margin-top: -10px;
    }

    .bento-section {
        margin-left: -10px;
        padding: 30px 0 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    @keyframes typewriter {
        from {
            width: 0;
        }

        to {
            width: 5em;
        }
    }

    .hero-subtitle {
        font-size: 0.6rem;
        letter-spacing: 4px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .bento-grid {
        width: 95%;
        gap: 12px;
    }

    .card {
        padding: 20px;
        border-radius: 18px;
    }

    .profile-img {
        display: none;
        width: 100px;
        height: 100px;
        border-radius: 12px;
    }

    .profile-text h1 {
        font-size: 1.3rem;
    }

    .greeting-text {
        font-size: 0.75rem;
    }

    .sub-text {
        font-size: 0.82rem;
    }

    .projects-card {
        padding: 20px;
    }

    .project-thumbnail {
        height: 140px;
    }

    .project-title {
        font-size: 1.05rem;
    }

    .stack-grid {
        gap: 6px;
    }

    .stack-item {
        padding: 10px 6px;
        gap: 5px;
        border-radius: 12px;
    }

    .stack-icon {
        width: 1.6rem;
        height: 1.6rem;
    }

    .stack-label {
        font-size: 0.6rem;
    }

    .learning-card {
        padding: 20px;
    }

    .learning-item {
        padding: 8px 10px;
        gap: 10px;
    }

    .learning-name {
        font-size: 0.78rem;
    }

    .learning-tag {
        font-size: 0.55rem;
        padding: 2px 6px;
    }

    .cta-card h1 {
        font-size: 1.3rem;
    }

    .socials-card {
        padding: 20px;
        gap: 14px;
    }

    .socials-grid {
        gap: 10px;
    }

    .social-item {
        padding: 14px 10px;
        gap: 8px;
        border-radius: 12px;
    }

    .social-icon {
        width: 26px;
        height: 26px;
    }

    .social-label {
        font-size: 0.62rem;
    }

    .footer-container {
        width: 95%;
        padding: 15px 0;
        font-size: 0.8rem;
    }
}