/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Cursor hiding is enforced via inline important tag in HTML to override all child elements */
}

:root {
    /* Color Palette */
    --bg-base: #0a0a0a;
    --bg-surface: #111111;
    --bg-surface-light: rgba(255, 255, 255, 0.05);

    --accent-primary: #FF5722;
    /* Bright Orange */
    --accent-hover: #FF7043;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

    /* Spacing & Layout */
    --section-padding: 100px 5%;
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* Background Grid Array */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
    /* Fading effect: solid black at top, transparent at bottom (stays put while the dots move) */
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

/* The dots themselves: one tile taller than the screen so app.js can slide them (--grid-shift) for scroll parallax */
.bg-grid::before {
    content: '';
    position: absolute;
    inset: 0 0 -40px 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 40px 40px;
    transform: translate3d(0, var(--grid-shift, 0px), 0);
    will-change: transform;
}

#bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- Modern Fluid & Magnetic Cursor --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #FFFFFF;
    border-radius: 50%;
    z-index: 10001;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border 0.3s, background-color 0.3s;
}

.cursor-dot.active {
    width: 4px;
    height: 4px;
    background-color: var(--accent-primary);
}

.cursor-ring.active {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cursor-hidden {
    opacity: 0;
}

/* Specific Card Spotlights */
.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 80%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.bento-card:hover::after {
    opacity: 1;
}


/* Typography elements */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.accent {
    color: var(--accent-primary);
}

/* Shared Components */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Mouse tracking light glow for all buttons */
.btn::before {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
    /* mix-blend-mode: screen; */
}

.btn:hover::before {
    opacity: 1;
}

.btn span {
    position: relative;
    z-index: 1;
    /* keep text above the glow */
}

.btn-primary {
    background-color: rgba(255, 87, 34, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
    color: #fff;
    background-color: rgba(255, 87, 34, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Navigation Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    z-index: 1000;
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.lang-switch {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: none;
    /* keep uniform with rest */
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* Hamburger button: only shown on small screens (see the 768px media query) */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    margin-left: 12px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: none;
    /* keep uniform with rest */
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Bars turn into an X while the menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@keyframes navDropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-primary);
}


/* --- Premium Global Bento Grid Layout --- */

/* Typography Overrides for Top-Tier Look */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

p {
    color: #A1A1AA;
    /* Muted zinc for secondary text */
    line-height: 1.6;
    font-size: 1.05rem;
}

.bento-global-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 24px;
    padding: 120px 0 60px 0;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    background: rgba(24, 24, 27, 0.4);
    /* Zinc 900 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    overflow: hidden;
    cursor: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    /* Premium 1px inner border matching Linear/Vercel */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.2);
    scroll-margin-top: 100px;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.03), transparent 40%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-content {
    padding: 48px;
    position: relative;
    z-index: 2;
    height: 100%;
}

/* Specific Spans */
.bento-hero {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-about {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-projects {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-contact {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-blog {
    grid-column: span 3;
    grid-row: span 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Hero Content Styling */
.hero-bento-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10B981;
    /* Emerald green */
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #E4E4E7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #D4D4D8;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 480px;
    margin-bottom: 40px;
}

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

.btn-premium {
    background: #FFFFFF;
    color: #000000;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: none;
}

.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #A1A1AA;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* Optical Alignment for SVGs */
.icon-github {
    transform: translateY(-1px);
}

.icon-douyin {
    transform: translate(-1px, 1px);
}

.icon-podcast {
    transform: translateY(-1px);
}

/* Premium Avatar Ring */
.premium-avatar-container {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring-1 {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-primary), transparent 60%, var(--accent-primary));
    animation: spinRotate 8s linear infinite;
    mask-image: radial-gradient(circle, transparent 65%, black 66%);
    -webkit-mask-image: radial-gradient(circle, transparent 65%, black 66%);
    opacity: 0.8;
}

.avatar-ring-2 {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    animation: spinRotate 16s linear infinite reverse;
}

@keyframes spinRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.premium-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.8);
    z-index: 2;
    position: relative;
}

/* About Content */
.bento-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.bento-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

/* Cyber Radar Animation */
.spin-slow {
    transform-origin: center;
    animation: spinRotate 12s linear infinite;
}

.about-radar-icon {
    flex-shrink: 0;
}

.skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.skill-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #E4E4E7;
    transition: all 0.3s ease;
}

.skill-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Projects Content */
.bento-projects .bento-content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.bento-projects-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 40px 40px 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex: 1;
}

.bento-projects-scroll::-webkit-scrollbar {
    display: none;
}

.bento-project-item {
    min-width: 320px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.bento-project-item:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.project-img-wrapper {
    height: 180px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-project-item:hover .project-img {
    transform: scale(1.08);
}

.text-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #27272a, #18181b);
    color: rgba(255, 255, 255, 0.1);
    font-weight: 800;
    font-size: 1.5rem;
}

.project-info {
    padding: 24px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #FAFAFA;
}

.project-info p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.project-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-project-item:hover .project-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* Contact Content */
.bento-contact .bento-content {
    align-items: flex-start;
    text-align: left;
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: #FAFAFA;
}

/* HexData Node Pulse */
.hex-pulse {
    animation: hexPulseAnim 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes hexPulseAnim {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.bento-contact h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.bento-contact p {
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Blog Content */
.bento-blog-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.bento-blog .bento-content {
    max-width: 540px;
}

.bento-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: #FFFFFF;
}

.bento-blog h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.bento-blog p {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #FFFFFF;
}

.bento-link svg {
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-link svg {
    transform: translateX(4px);
}

.bento-visual {
    padding: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.premium-blogger-logo {
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-card:hover .premium-blogger-logo {
    transform: scale(1.1) rotate(5deg);
}

/* Base Responsive rules */
@media (max-width: 1024px) {
    .bento-global-grid {
        grid-template-columns: 1fr;
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Every card fills the single column (the desktop spans would otherwise add extra, squeezed columns) */
    .bento-hero,
    .bento-about,
    .bento-projects,
    .bento-contact,
    .bento-blog {
        grid-column: 1 / -1;
    }

    .hero-bento-split {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-actions,
    .hero-socials {
        justify-content: center;
    }

    /* On narrow screens the social icons drop below the button instead of squeezing it */
    .hero-actions {
        flex-wrap: wrap;
        row-gap: 16px;
    }

    .hero-actions .btn-premium {
        white-space: nowrap;
    }

    .bento-blog {
        flex-direction: column;
        align-items: flex-start;
    }

    .bento-content {
        padding: 32px;
    }

    .bento-blog .bento-visual {
        width: 100%;
        justify-content: center;
        padding-top: 0;
    }

    .bento-projects .bento-header {
        padding: 32px 32px 10px 32px;
    }

    .bento-projects-scroll {
        padding: 0 32px 32px 32px;
    }
}

/* --- SVG Geek Theme Abstract Backgrounds --- */
.hero-node-bg {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 60%;
    height: auto;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.node-pulse {
    transform-origin: center;
    animation: hexPulseAnim 2s ease-in-out infinite alternate;
}

.bento-hero .bento-content {
    /* Ensures hero text stays above the node graph */
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    padding: 30px 5%;
    border-top: 1px solid var(--glass-border);
    background-color: var(--bg-base);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-container p {
    margin: 0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* Scroll Animations (Apple Style) */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(10px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
}

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

/* --- Interactive Click Effects --- */

/* Ripple Effect */
.effect-ripple {
    position: relative;
    overflow: hidden;
}

.ripple-element {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Pop Effect */
.effect-pop {
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.effect-pop.pop-active {
    transform: scale(0.85);
}

/* Spin Click Effect */
.effect-spin-click {
    transition: transform 0.5s ease-in-out;
}

.effect-spin-click.spin-active {
    transform: rotate(180deg) scale(0.9);
}

/* Slide Click Effect */
.effect-slide {
    display: inline-block;
    transition: transform 0.2s ease;
}

.effect-slide.slide-active {
    transform: translateX(10px);
}

/* Bounce Click Effect */
.effect-bounce {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.effect-bounce.bounce-active {
    transform: translateY(-8px) scale(1.1);
}

/* Responsive Design */

/* Tablet & iPad (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-title {
        font-size: clamp(3rem, 8vw, 4.5rem);
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .avatar-container {
        width: 320px;
        height: 320px;
        margin: 40px auto 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .skills-list {
        justify-content: center !important;
    }

    .bento-large {
        flex-direction: column;
        align-items: flex-start;
    }

    .bento-content {
        padding: 40px;
    }

    .bento-visual {
        width: 100%;
        padding-top: 0;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 5%;
    }

    .navbar {
        padding: 15px 5%;
    }

    .nav-links {
        display: none;
    }

    /* Hamburger menu: the links drop down in a glass panel under the navbar */
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links.open {
        display: flex;
        position: absolute;
        top: calc(100% + 8px);
        left: 5%;
        right: 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px;
        background: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        animation: navDropIn 0.25s ease;
    }

    .nav-links.open .nav-link {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .nav-links.open .nav-link::after {
        display: none;
    }

    .nav-links.open .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .hero-section {
        padding-top: 120px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .avatar-container {
        width: 250px;
        height: 250px;
    }

    .hero-bg-glow {
        width: 300px;
        height: 300px;
    }

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

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}