* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-600: #9333ea;
    --purple-500: #a855f7;
    --purple-400: #c084fc;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --pink-500: #ec4899;
    --emerald-500: #10b981;
    --orange-500: #f97316;
    --slate-300: #cbd5e1;
    --bg-dark: #080810;
    --bg-darker: #0a0e27;
    --float-y: 4px;
    --float-x: 1px;
    --float-rot: 4deg;
}

html {
    height: 100%;
    background: #1a1f3a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, var(--bg-darker), #1a1f3a);
    background-attachment: fixed;
    height: 100%;
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 60px;
}

body.home-page {
    padding-top: 0 !important;
    overflow: hidden !important;
    height: 100vh;
}

body.contact-page,
body.wishlist-page,
body.profile-page,
body.resume-page {
    padding-top: 0 !important;
    /* Remove the ghost 60px gap */
    overflow-y: auto !important;
    height: 100vh;
}

body.home-page .footer,
body.contact-page .footer,
body.resume-page .footer {
    display: none;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: 95%;
    height: 4rem;
    /* Fixed height for layout stability */
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.nav-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.logo-svg {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.4s ease;
}

.logo:hover .logo-svg {
    stroke: var(--cyan-400);
    filter: drop-shadow(0 0 5px var(--cyan-400));
}

.social-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: white;
}

.social-nav-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.social-nav-btn svg {
    transition: all 0.4s ease;
}

.social-nav-btn:hover svg {
    stroke: var(--cyan-400);
    filter: drop-shadow(0 0 5px var(--cyan-400));
}

.logo::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-500), var(--cyan-400));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(8deg);
    border-color: var(--cyan-400);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4),
        0 0 40px rgba(34, 211, 238, 0.2);
    color: var(--cyan-300);
}

.logo:hover::after {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate-300);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.6rem 0;
    /* Adjusted padding since width is fixed */
    border-radius: 999px;
    position: relative;
    display: inline-block;
    width: 120px;
    text-align: center;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--cyan-400);
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.2);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

@media (max-width: 992px) {
    .hero-main-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    #home .hero-content {
        text-align: center;
    }

    #home .button-group {
        justify-content: center;
    }

    #home .hero-title {
        font-size: 2.5rem !important;
    }

    #home.hero-section {
        min-height: 90vh;
        padding-top: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 20vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 0 1.5rem;
}

#home.hero-section {
    height: 100vh;
    min-height: 100vh;
    align-items: center;
    padding-top: 0;
}

.hero-main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.floating-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 2;
}

.blob-1 {
    top: 5rem;
    left: 2.5rem;
    width: 18rem;
    height: 18rem;
    background: var(--purple-500);
    animation: float-blob-1 8s ease-in-out infinite;
}

.blob-2 {
    bottom: 5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: var(--purple-500);
    animation: float-blob-2 10s ease-in-out infinite;
    opacity: 0.12;
}

@keyframes float-blob-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

@keyframes float-blob-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-40px, 40px) scale(1.15);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
    width: 100%;
}

#home .hero-content {
    text-align: left;
    padding-top: 0;
    padding-bottom: 0;
    flex: 1;
}

#home .hero-title {
    padding-left: 0;
    font-size: 4.5rem;
}

#home .hero-description {
    margin: 0 0 2.5rem;
}

#home .button-group {
    justify-content: flex-start;
}

.hero-gaze-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    z-index: 5;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
    flex: 1.2;
}

/* Maintain center alignment for subpages */
.projects-hero .hero-content,
.about-hero .hero-content,
.contact-hero .hero-content,
.experience-section .hero-content {
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtle-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

/* Meeting Room Layout - 5 Personas in a semi-circle */
.hero-gaze-img {
    width: 175%;
    max-width: none;
    height: auto;
    position: absolute;
    bottom: -8%;
    display: block;
    object-fit: contain;
    transform-origin: center bottom;
    opacity: 0;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease, opacity 0.8s ease;
    pointer-events: none;

    /* Surgical Edge Repair Removed */
    /* filter: url(#erode-fringe); */
    /* -webkit-filter: url(#erode-fringe); */

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: none !important;

    /* Ultra-Soft Fading Mask */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);

    /* Premium Natural Rendering */
    image-rendering: auto;
    /* Reverting to browser default for softer interpolation */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, opacity;

    /* Gentle Base Polish Removed */
    /* filter: url(#erode-fringe); */
    /* -webkit-filter: url(#erode-fringe); */

    z-index: 1;
}

@keyframes gravityLift {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(1.35) translateZ(0);
        filter: brightness(0.7);
        -webkit-filter: brightness(0.7);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1.45) translateZ(0);
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
        -webkit-filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    }
}

/* The Leader - Professional Studio Lighting & HD Detail */
.hero-gaze-img.leader {
    opacity: 1;
    z-index: 20;
    pointer-events: auto;
    animation: gravityLift 0.4s ease-out 0.1s both;
}

/* Side Audience - Scaled for 1.45 composition */
.hero-gaze-img.side-L {
    opacity: 0.6;
    z-index: 15;
    transform: translateX(-65%) scale(1.05);
    /* Removed rotation */
    filter: brightness(0.6) blur(4px) grayscale(0.3);
}

.hero-gaze-img.side-R {
    opacity: 0.5;
    z-index: 18;
    /* Tucked in to avoid button clash */
    transform: translateX(25%) scale(1.15);
    /* Removed rotation */
    filter: brightness(0.5) blur(6px) grayscale(0.4);
}

/* Back Audience - Background depth */
.hero-gaze-img.back-L {
    opacity: 0.35;
    z-index: 5;
    transform: translateX(-105%) scale(0.8);
    /* Removed rotation */
    filter: brightness(0.4) blur(8px) grayscale(0.5);
}

.hero-gaze-img.back-R {
    opacity: 0.25;
    z-index: 8;
    /* Significantly tucked in to avoid text overlap */
    transform: translateX(55%) scale(0.85);
    /* Removed rotation */
    filter: brightness(0.4) blur(10px) grayscale(0.6);
}

.profile-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Atmospheric Glow / Keylight (Behind Leader, Ahead of Audience) */
.profile-stack::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    /* Muted Nebula Purple for high-end depth separation */
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(147, 51, 234, 0.05) 30%, transparent 70%);
    z-index: 19;
    pointer-events: none;
    border-radius: 50%;
}



#profile-switcher:hover .hero-gaze-img.active {
    filter: brightness(1) contrast(1.1);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.4s ease-out 0.1s backwards;
    padding: 0 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple-500), var(--cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--slate-300);
}

.btn-view {
    display: block;
    width: 60%;
    margin: 1.5rem auto 0;
    text-align: center;
    padding: 0.5rem 0;
    background: transparent;
    color: var(--cyan-400);
    border: 1px solid var(--cyan-400);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.project-card:hover .btn-view {
    background: var(--cyan-400);
    color: #080810;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
    transform: translateY(-2px);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--slate-300);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.4s ease-out 0.1s backwards;
}

.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.4s ease-out 0.2s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    padding: 0.8rem 1.8rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--cyan-500);
    color: #080810;
    /* Darker text for high contrast on solid cyan */
    border: 1px solid var(--cyan-400);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3), 0 10px 30px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--cyan-400);
    /* Solid pop to match project button */
    color: #080810;
    /* Black text */
    border-color: var(--cyan-400);
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.6);
    transform: translateY(-4px) scale(1.05);
}

.btn-project-view {
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    vertical-align: middle;
    margin-left: 0.75rem;
    transform: translateY(-2px);
    letter-spacing: 0.03em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-project-view:hover {
    background: var(--cyan-400);
    border-color: var(--cyan-400);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.6);
    transform: translateY(-4px) scale(1.05);
    color: #0a0e27 !important;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    /* Pure liquid glass */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.btn-outline span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-outline:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: var(--cyan-400);
    transform: translateY(-4px) scale(1.05);
    /* Match project button pop */
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
    color: white;
}

/* Page Specific Heroes */
.about-hero,
.projects-hero,
.contact-hero {
    min-height: 60vh !important;
    padding-top: 120px;
}

/* Stable Layout for Subpages (Profile, Wishlist, Contact) */
.projects-section,
.contact-section {
    padding-top: 0 !important;
    /* Managed by spacer for 100% precision */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* Bulletproof Spacer for Subpages - Never shifts */
/* Profile Page compact spacer synchronized with default */
.profile-page .subpage-header-spacer {
    height: 8.5rem;
}

.subpage-header-spacer {
    width: 100%;
    height: 8.5rem;
    /* Navbar ends at 5.5rem + 1.75rem visual gap */
    flex-shrink: 0;
}

.subpage-header-spacer+.subtle-fade-in,
.subpage-header-spacer+.subtle-fade-in h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.1;
    /* Tighter line-height for visual precision */
}

.profile-page .projects-section,
.wishlist-page .projects-section {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 5rem;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* About Page Specifics */
.about-hero {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
}

.skills-section {
    padding: 6rem 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.skill-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(100, 200, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(100, 200, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--cyan-400);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.85;
    filter: drop-shadow(0 0 8px rgba(100, 200, 255, 0.2));
}

.skill-name {
    font-weight: 600;
    color: var(--slate-300);
}

.about-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 10;
}

.about-card {
    max-width: 44rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 3.75rem;
    border-radius: 1.25rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 200, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: float-card 8s ease-in-out infinite;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotateX(0) rotateY(0);
    }

    25% {
        transform: translateY(calc(var(--float-y) * -1)) translateX(var(--float-x)) rotateX(var(--float-rot)) rotateY(calc(var(--float-rot) * -1));
    }

    50% {
        transform: translateY(calc(var(--float-y) * -0.5)) translateX(calc(var(--float-x) * -0.5)) rotateX(0) rotateY(0);
    }

    75% {
        transform: translateY(calc(var(--float-y) * -0.6)) translateX(calc(var(--float-x) * 0.7)) rotateX(calc(var(--float-rot) * -1)) rotateY(var(--float-rot));
    }
}

@keyframes float-card-alt {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotateX(0) rotateY(0);
    }

    25% {
        transform: translateY(var(--float-y)) translateX(calc(var(--float-x) * -1)) rotateX(calc(var(--float-rot) * -1)) rotateY(var(--float-rot));
    }

    50% {
        transform: translateY(calc(var(--float-y) * 0.5)) translateX(calc(var(--float-x) * 0.6)) rotateX(0) rotateY(0);
    }

    75% {
        transform: translateY(calc(var(--float-y) * 0.6)) translateX(calc(var(--float-x) * -0.8)) rotateX(var(--float-rot)) rotateY(calc(var(--float-rot) * -1));
    }
}

.about-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--cyan-400);
    text-shadow: 0 0 15px rgba(100, 200, 255, 0.4);
}

.about-card p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #d0d0ff;
    font-weight: 300;
}

/* Standard Projects Section (Internal Page Style) */
.projects-section {
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5rem;
    color: var(--cyan-400);
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.4);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.wishlist-page .projects-grid {
    max-width: 1600px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
    display: grid;
}

.wishlist-page .project-card {
    padding: 0.9rem;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Category Hover Effects for Wishlist */
.wishlist-page .project-card[data-category="tech"]:hover {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.2);
}

.wishlist-page .project-card[data-category="food"]:hover {
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.2);
}

.wishlist-page .project-card[data-category="style"]:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.wishlist-page .project-card[data-category="books"]:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
}

.wishlist-page .project-card[data-category="other"]:hover {
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 10px 40px rgba(148, 163, 184, 0.2);
}

.wishlist-page .project-card p {
    display: none;
}

.wishlist-page .project-card h3 {
    font-size: 1rem;
    line-height: 1.25;
}

.wishlist-page .card-header-row {
    margin-bottom: 0;
}

.wishlist-page .project-icon {
    font-size: 1.2rem;
    width: 48px;
    height: 48px;
    margin-bottom: 0.25rem;
}

.wishlist-page .project-tech {
    margin-top: auto;
    gap: 0.5rem;
    margin-bottom: 0;
    align-items: center;
}

.wishlist-page .btn-view-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    color: white;
    z-index: 10;
    position: relative;
    pointer-events: auto;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.wishlist-page .btn-view-circle:hover {
    background: white;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Category-specific button hovers with depth - UPDATED for better distinction */
.wishlist-page .project-card[data-category="tech"]:hover .btn-view-circle {
    background: #0ea5e9;
    /* Sky Blue */
    border-color: #0ea5e9;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 15px rgba(14, 165, 233, 0.6);
}

.wishlist-page .project-card[data-category="food"]:hover .btn-view-circle {
    background: #ef4444;
    /* Red */
    border-color: #ef4444;
    color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 15px rgba(239, 68, 68, 0.6);
}

.wishlist-page .project-card[data-category="style"]:hover .btn-view-circle {
    background: #ec4899;
    /* Pink */
    border-color: #ec4899;
    color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 15px rgba(236, 72, 153, 0.6);
}

.wishlist-page .project-card[data-category="books"]:hover .btn-view-circle {
    background: #eab308;
    /* Yellow/Gold */
    border-color: #eab308;
    color: black;
    /* Dark text on yellow */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 15px rgba(234, 179, 8, 0.6);
}

.wishlist-page .project-card[data-category="other"]:hover .btn-view-circle {
    background: #6366f1;
    /* Indigo */
    border-color: #6366f1;
    color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 15px rgba(99, 102, 241, 0.6);
}

/* Wishlist Category Tag Overrides - Matching Button Colors */
.wishlist-page .project-card[data-category="tech"] .tech-tag:first-child {
    background: rgba(14, 165, 233, 0.25);
    color: #e0f2fe;
    border-color: rgba(14, 165, 233, 0.4);
}

.wishlist-page .project-card[data-category="food"] .tech-tag:first-child {
    background: rgba(239, 68, 68, 0.25);
    color: #fee2e2;
    border-color: rgba(239, 68, 68, 0.4);
}

.wishlist-page .project-card[data-category="style"] .tech-tag:first-child {
    background: rgba(217, 70, 239, 0.25);
    color: #fdf4ff;
    border-color: rgba(217, 70, 239, 0.4);
}

.wishlist-page .project-card[data-category="books"] .tech-tag:first-child {
    background: rgba(234, 179, 8, 0.25);
    color: #fef08a;
    border-color: rgba(234, 179, 8, 0.4);
}

.wishlist-page .project-card[data-category="other"] .tech-tag:first-child {
    background: rgba(99, 102, 241, 0.25);
    color: #e0e7ff;
    border-color: rgba(99, 102, 241, 0.4);
}

/* Synchronized tag hover animations for Wishlist categories */
.wishlist-page .project-card:hover .tech-tag {
    background: rgba(15, 23, 42, 0.85);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.wishlist-page .project-card[data-category="tech"]:hover .tech-tag:first-child {
    background: rgba(14, 165, 233, 0.6);
    color: white;
    border-color: rgba(14, 165, 233, 0.8);
}

.wishlist-page .project-card[data-category="food"]:hover .tech-tag:first-child {
    background: rgba(239, 68, 68, 0.6);
    color: white;
    border-color: rgba(239, 68, 68, 0.8);
}

.wishlist-page .project-card[data-category="style"]:hover .tech-tag:first-child {
    background: rgba(217, 70, 239, 0.6);
    color: white;
    border-color: rgba(217, 70, 239, 0.8);
}

.wishlist-page .project-card[data-category="books"]:hover .tech-tag:first-child {
    background: rgba(234, 179, 8, 0.6);
    color: white;
    border-color: rgba(234, 179, 8, 0.8);
}

.wishlist-page .project-card[data-category="other"]:hover .tech-tag:first-child {
    background: rgba(99, 102, 241, 0.6);
    color: white;
    border-color: rgba(99, 102, 241, 0.8);
}

/* Owned Item Styling */
.wishlist-page .project-card.owned {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    opacity: 0.7;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.wishlist-page .project-card.owned h3,
.wishlist-page .project-card.owned .tech-tag,
.wishlist-page .project-card.owned .project-icon {
    filter: grayscale(1) blur(4px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.wishlist-page .project-card.owned:hover {
    filter: grayscale(0) contrast(1);
    opacity: 1;
    transform: translateY(-8px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.wishlist-page .project-card.owned:hover h3,
.wishlist-page .project-card.owned:hover .tech-tag {
    filter: none;
    transition: filter 0.4s ease;
}

.wishlist-page .project-card.owned .project-icon {
    filter: grayscale(1);
    opacity: 0.4;
    transition: all 0.6s ease;
}

.wishlist-page .project-card.owned:hover .project-icon {
    filter: grayscale(0);
    opacity: 1;
}

/* Centered 'OWNED' Badge - Dark theme with white text */
.owned-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 20;
    pointer-events: none;
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.wishlist-page .project-card.owned:hover .owned-badge {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none;
}

.wishlist-page .project-card.owned .btn-view-circle {
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
    background: transparent;
}

/* Quantum Dock Pagination (Option 1) - Liquid Glass Edition */
.pagination-dock {
    position: fixed;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;

    /* Liquid Glass Aesthetic */
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(40px) saturate(120%);
    -webkit-backdrop-filter: blur(40px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;

    /* Subtle Depth */
    min-width: 200px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    z-index: 2000;

    /* Entrance Physics */
    animation: quantumEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes quantumEntrance {
    from {
        opacity: 0;
        transform: translate(-50%, 40px) scale(0.9);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
        filter: blur(0);
    }
}

.page-nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--slate-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-nav-btn:hover:not(:disabled) {
    color: white;
    border-color: rgba(34, 211, 238, 0.4);
    transform: scale(1.1);
}

.page-nav-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.page-nav-btn:disabled {
    opacity: 0.1;
    cursor: not-allowed;
    filter: saturate(0);
}

.page-numbers {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0 0.25rem;
}

.page-number {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--slate-300);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-number:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.page-number.active {
    color: white;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* The Quantum Pulse - Softened */
.page-number.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(34, 211, 238, 0.12);
    border-radius: 50%;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.75;
}

/* Magnetic Highlight Underlay - Refined */
.page-number.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyan-400), var(--purple-500));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.18;
    border: 1.2px solid rgba(34, 211, 238, 0.5);
    box-shadow:
        0 0 15px rgba(34, 211, 238, 0.3),
        inset 0 0 8px rgba(255, 255, 255, 0.1);
}


/* Ensure Row transitions are smooth */
.grid-fade-out {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
    filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page switch animation - Floating cards into view */
@keyframes cardFloatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: var(--target-opacity, 1);
        transform: translateY(0) scale(1);
    }
}

.card-fade-float {
    animation: cardFloatIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.wishlist-page .project-card.owned:hover .btn-view-circle {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: #10b981;
    transform: scale(1.1);
}

.wishlist-page .btn-view-circle svg {
    width: 16px;
    height: 16px;
}

.hidden {
    display: none !important;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none !important;
    color: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    cursor: pointer;
    overflow: hidden;

    /* Base floating animation - All start at translateY(0) */
    animation: float-card 10s ease-in-out infinite;
    animation-fill-mode: backwards;
}

/* Alternate direction for even cards */
.project-card:nth-child(even) {
    animation-name: float-card-alt;
}

/* Varied durations so they drift apart naturally without jumping on load */
.project-card:nth-child(4n) {
    animation-duration: 12s;
}

.project-card:nth-child(4n+1) {
    animation-duration: 9s;
}

.project-card:nth-child(4n+2) {
    animation-duration: 11s;
}

.project-card:nth-child(4n+3) {
    animation-duration: 13s;
}

/* Category Aura Glows */
.project-card[data-category="work"] {
    --category-color: #f8fafc;
    /* Arctic White */
}

.project-card[data-category="project"] {
    --category-color: var(--cyan-400);
}

.project-card[data-category="education"] {
    --category-color: #6366f1;
    /* Royal Indigo */
}

.project-card[data-category="skill"] {
    --category-color: var(--orange-500);
}

.project-card[data-category="other"] {
    --category-color: #94a3b8;
}

/* Wishlist Categories */
.project-card[data-category="tech"] {
    --category-color: #0ea5e9;
}

.project-card[data-category="food"] {
    --category-color: #ef4444;
}

.project-card[data-category="style"] {
    --category-color: #d946ef;
}

.project-card[data-category="books"] {
    --category-color: #eab308;
}

.project-card[data-category="work"]:hover {
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.25),
        0 0 80px rgba(255, 255, 255, 0.2);
    /* Arctic White Outer Glow */
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.02) translateY(-10px);
}

/* Differentiated Category Idle States */
.project-card[data-category="work"] {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.project-card[data-category="project"] {
    background: rgba(34, 211, 238, 0.04);
    border-color: rgba(34, 211, 238, 0.25);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.05);
}

.project-card[data-category="education"] {
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

.project-card[data-category="skill"] {
    background: rgba(249, 115, 22, 0.04);
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.05);
}

/* Persistent Aura increased for differentiation */
.project-card[data-category="work"]::before,
.project-card[data-category="project"]::before,
.project-card[data-category="education"]::before,
.project-card[data-category="skill"]::before {
    opacity: 0.18;
}

.project-card[data-category="work"]::before {
    opacity: 0.1;
    filter: blur(12px);
    /* Arctic White Aurora: Pure Snow and Crystalline Silver shimmer */
    background: linear-gradient(135deg,
            #f8fafc,
            #ffffff,
            #e2e8f0,
            #f8fafc,
            #ffffff,
            #e2e8f0);
    background-size: 600% 600%;
    animation: gradientShift 15s ease-in-out infinite;
    /* Even slower for elegance */
}

.project-card[data-category="work"]:hover::before {
    opacity: 0.9;
    filter: blur(20px);
    animation-duration: 8s;
}

.project-card[data-category="work"] .project-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.project-card[data-category="project"]:hover {
    box-shadow: 0 30px 70px rgba(34, 211, 238, 0.25);
    border-color: rgba(34, 211, 238, 0.4);
}

.project-card[data-category="education"]:hover {
    box-shadow: 0 30px 70px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
    transform: scale(1.02) translateY(-10px);
}

/* Education Cards specific variable */
.project-card[data-category="education"] {
    --category-color: #6366f1;
}

.project-card[data-category="education"]:hover::before {
    opacity: 1;
    filter: blur(12px);
}

.project-card[data-category="education"] .project-icon {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

.project-card[data-category="skill"]:hover {
    box-shadow: 0 30px 70px rgba(249, 115, 22, 0.25);
    border-color: rgba(249, 115, 22, 0.4);
}

/* Specific Wishlist Category Glow Overrides (to match tag colors) */
.wishlist-page .project-card:hover {
    box-shadow: 0 30px 70px var(--category-color);
    border-color: var(--category-color);
    filter: drop-shadow(0 0 15px var(--category-color));
}

.wishlist-page .project-card[data-category="food"]:hover {
    box-shadow: 0 30px 70px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
}

.wishlist-page .project-card[data-category="tech"]:hover {
    box-shadow: 0 30px 70px rgba(14, 165, 233, 0.4);
    border-color: rgba(14, 165, 233, 0.6);
}

.wishlist-page .project-card[data-category="style"]:hover {
    box-shadow: 0 30px 70px rgba(217, 70, 239, 0.4);
    border-color: rgba(217, 70, 239, 0.6);
}

.wishlist-page .project-card[data-category="books"]:not(.owned):hover {
    box-shadow: 0 30px 70px rgba(234, 179, 8, 0.4);
    border-color: rgba(234, 179, 8, 0.6);
}

.wishlist-page .project-card[data-category="other"]:not(.owned):hover {
    box-shadow: 0 30px 70px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.6);
}

.project-card[data-category="other"]:hover {
    box-shadow: 0 30px 70px rgba(148, 163, 184, 0.25);
    border-color: rgba(148, 163, 184, 0.4);
}

/* Removed Shine/Reflection Effect per user request */

/* Interactive Drift - Disabled per user request for solid feel */
.project-card .project-icon,
.project-card h3,
.project-card p,
.project-card .project-tech,
.project-card .btn-view {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover h3 {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.project-card:hover p {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: rgba(100, 200, 255, 0.1);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(4px);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(100, 200, 255, 0.2));
}

.project-card:nth-child(2) {
    animation-delay: 0.1s;
}

.project-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Animated gradient border (Focused Glow) */
.project-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg,
            var(--category-color, var(--purple-500)),
            var(--cyan-400),
            var(--category-color, var(--purple-500)));
    background-size: 200% 200%;
    border-radius: 1.35rem;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease, filter 0.5s ease;
    filter: blur(6px);
    /* Precision set to 6px */
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}


.project-card:not(.no-tilt):hover::before {
    opacity: 0.8;
}

.project-card.no-tilt {
    overflow: visible !important;
}

.project-card:not(.no-tilt):hover {
    border-color: transparent;
    background: rgba(8, 8, 16, 0.98);
    /* Near solid dark background for max text clarity */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.project-card.no-tilt:hover {
    border-color: var(--cyan-400);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-category {
    font-size: 0.875rem;
    color: var(--slate-300);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.project-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e8f0;
    /* Brighter slate for better idle readability */
    margin-bottom: 1.5rem;
    min-height: 3.2em;
    /* Ensure minimum height for alignment */
    /* overflow: hidden; Removed to show full text */
    /* display: -webkit-box; Removed */
    /* -webkit-line-clamp: 2; Removed */
    /* line-clamp: 2; Removed */
    /* -webkit-box-orient: vertical; Removed */
}

.project-link {
    color: var(--cyan-400);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.project-link:hover {
    color: var(--cyan-300);
    transform: translateX(5px);
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-right: 1rem;
}

.card-header-row h3 {
    margin-bottom: 0 !important;
    font-size: 1.25rem;
    line-height: 1.2;
    padding-top: 0.6rem;
}

.card-header-row .project-icon {
    margin-bottom: 0 !important;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.project-tech {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--slate-300);
}

.tech-tag.work {
    background: rgba(225, 29, 72, 0.4);
    /* Increased to 40% Ruby Red */
    border-color: rgba(225, 29, 72, 0.5);
    color: #fff1f2;
    /* Brighter rose for better contrast */
}

/* Secondary tags specifically inside Arctic White Work cards */
.project-card[data-category="work"] .tech-tag:not(.work) {
    background: rgba(255, 255, 255, 0.15);
    /* More visible on white shimmer */
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Ensure readability on platinum hover */
.project-card[data-category="work"]:hover .tech-tag {
    background: rgba(15, 23, 42, 0.85);
    /* Darker background to pop against platinum aura */
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.project-card[data-category="work"]:hover .tech-tag.work {
    background: rgba(225, 29, 72, 0.6);
    /* Intense Ruby on hover */
    color: white;
    border-color: rgba(225, 29, 72, 0.8);
}

.tech-tag.education {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
    color: #eef2ff;
    /* Brighter indigo/academic text */
}

.tech-tag.project {
    background: rgba(34, 211, 238, 0.3);
    border-color: rgba(34, 211, 238, 0.4);
    color: #e0faff;
    /* Brighter cyan text */
}

.tech-tag.skill {
    background: rgba(249, 115, 22, 0.3);
    border-color: rgba(249, 115, 22, 0.4);
    color: #fffaf0;
    /* Brighter orange/sand text */
}

.tech-tag.style {
    background: rgba(217, 70, 239, 0.2);
    /* 20% Magenta */
    border-color: rgba(217, 70, 239, 0.3);
    color: #d946ef;
}

.tech-tag.books {
    background: rgba(234, 179, 8, 0.2);
    /* 20% Yellow */
    border-color: rgba(234, 179, 8, 0.3);
    color: #eab308;
}

/* Synchronized tag hover animations for Education, Project, and Skill categories */
.project-card[data-category="education"]:hover .tech-tag,
.project-card[data-category="project"]:hover .tech-tag,
.project-card[data-category="skill"]:hover .tech-tag,
.project-card[data-category="style"]:hover .tech-tag,
.project-card[data-category="books"]:hover .tech-tag {
    background: rgba(15, 23, 42, 0.85);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.project-card[data-category="education"]:hover .tech-tag.education {
    background: rgba(16, 185, 129, 0.6);
    color: white;
    border-color: rgba(16, 185, 129, 0.8);
}

.project-card[data-category="project"]:hover .tech-tag.project {
    background: rgba(34, 211, 238, 0.6);
    color: white;
    border-color: rgba(34, 211, 238, 0.8);
}

.project-card[data-category="skill"]:hover .tech-tag.skill {
    background: rgba(249, 115, 22, 0.6);
    color: white;
    border-color: rgba(249, 115, 22, 0.8);
}

.project-card[data-category="style"]:hover .tech-tag.style {
    background: rgba(217, 70, 239, 0.6);
    color: white;
    border-color: rgba(217, 70, 239, 0.8);
}

.project-card[data-category="books"]:hover .tech-tag.books {
    background: rgba(234, 179, 8, 0.6);
    color: white;
    border-color: rgba(234, 179, 8, 0.8);
}

/* Contact Section */
/* Removed conflicting centering rules to ensure Say HELLO matches PROFILE exactly */
/* 
.contact-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 10;
}
*/

/* Completed / Purchased Item Style */
.project-card.completed {
    opacity: 0.6;
    filter: grayscale(0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

.project-card.completed:hover {
    opacity: 0.9;
    filter: grayscale(0);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Add a checkmark or label for completed items */
/* Removed floating badge as requested */


.contact-card {
    max-width: 37.5rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    padding: 3.75rem;
    border-radius: 1.25rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 200, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: float-card 9s ease-in-out infinite;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--cyan-400);
    text-shadow: 0 0 15px rgba(100, 200, 255, 0.4);
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    animation: float 8s ease-in-out infinite;
}

.form-group:nth-child(2) {
    animation-delay: 0.3s;
}

.form-group:nth-child(3) {
    animation-delay: 0.6s;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 0.625rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-400);
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: block;
    width: 60%;
    margin: 1.5rem auto 0;
    padding: 0.5rem 0;
    background: transparent;
    border: 1px solid var(--cyan-400);
    border-radius: 999px;
    color: var(--cyan-400);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(135deg,
            var(--purple-500),
            var(--cyan-400),
            var(--purple-500));
    background-size: 200% 200%;
    border-radius: 999px;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: all 0.5s ease;
    animation: gradientShift 3s ease infinite;
}

.project-card:hover .submit-btn::before {
    opacity: 0.8;
}

.submit-btn:hover::before {
    opacity: 1;
    filter: blur(25px);
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

.submit-btn:hover {
    background: var(--cyan-400);
    color: #080810;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
    transform: translateZ(60px) translateY(-2px);
}

.project-card:hover .submit-btn {
    background: var(--cyan-400);
    color: #080810;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
    transform: translateZ(60px) translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--cyan-400);
    font-size: 0.875rem;
    opacity: 0.7;
    position: relative;
    z-index: 10;
}

/* Responsive Design */
@media (min-width: 640px) {
    .button-group {
        flex-direction: row;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-description {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .welcome-text {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}


/* Floating Back Button */
.floating-back {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1100;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-back:hover {
    transform: scale(1.05) translateX(-5px);
    background: rgba(34, 211, 238, 0.1);
    color: var(--cyan-400);
    border-color: var(--cyan-400);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.coming-soon-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #22d3ee, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

.coming-soon-btn {
    padding: 0.8rem 2.5rem;
    background: transparent;
    border: 2px solid;
    border-image: linear-gradient(to right, #a855f7, #22d3ee) 1;
    border-radius: 999px;
    /* This won't work with border-image, need workaround */
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Better workaround for gradient border with radius */
.btn-coming-soon {
    position: relative;
    padding: 0.8rem 2.5rem;
    background: var(--bg-darker);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
    display: inline-block;
    z-index: 1;
}

.btn-coming-soon::before {
    content: '';
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -2px;
    right: -2px;
    background: linear-gradient(to right, #a855f7, #22d3ee);
    border-radius: 999px;
    z-index: -1;
}

.btn-coming-soon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.3);
}

@media (max-width: 768px) {
    .floating-back {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Elite Phone Frame Component (Combined Options 1-4) */
.phone-frame {
    position: relative;
    width: 100%;
    max-width: 310px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(168, 85, 247, 0.2);
    /* Thinner Glassy Bezel */
    border-radius: 40px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: frameGlow 4s infinite ease-in-out;
}

@keyframes frameGlow {

    0%,
    100% {
        border-color: #a855f7;
        /* Purple */
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.3), 0 20px 50px rgba(0, 0, 0, 0.5);
    }

    50% {
        border-color: #22d3ee;
        /* Blueish Cyan */
        box-shadow: 0 0 25px rgba(34, 211, 238, 0.4), 0 20px 50px rgba(0, 0, 0, 0.5);
    }
}

.phone-frame:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: #a855f7;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(168, 85, 247, 0.6);
}

/* Refined Minimalist Scroll Indicator */
.scroll-indicator.refined-line {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom,
            rgba(34, 211, 238, 0),
            rgba(34, 211, 238, 0.4),
            rgba(34, 211, 238, 0));
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent,
            var(--cyan-400),
            transparent);
    animation: scroll-line-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-indicator.refined-line .scroll-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--slate-400);
    font-weight: 600;
    margin-right: -0.5em;
    /* Offset for tracking */
    opacity: 0.6;
}

@keyframes scroll-line-pulse {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.hero-drifting-item {
    position: absolute;
    z-index: 20;
    /* Ensure it stays above profile pic (z:1) and content (z:10) */
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.item-rocket {
    top: 20%;
    left: 80%;
    font-size: 3.5rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.4));
}

.item-satellite {
    top: 15%;
    left: 10%;
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.3));
}

.item-astronaut {
    top: 40%;
    left: 15%;
    font-size: 2.8rem;
}

.item-saturn {
    top: 70%;
    left: 5%;
    font-size: 4rem;
    opacity: 0.6;
    filter: drop-shadow(0 0 25px rgba(34, 211, 238, 0.2));
}

.item-ufo {
    top: 10%;
    left: 85%;
    font-size: 2.5rem;
    filter: drop-shadow(0 0 20px rgba(100, 255, 100, 0.3));
}

.item-comet {
    top: 50%;
    left: 90%;
    font-size: 2rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.item-alien {
    top: 80%;
    left: 75%;
    font-size: 2.2rem;
    opacity: 0.7;
}

@keyframes weightless-float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(15px, -20px) rotate(8deg);
    }

    66% {
        transform: translate(-10px, -15px) rotate(-5deg);
    }
}

/* Fix TikTok height to match vertical phone profile */
.phone-frame blockquote {
    min-height: 550px;
    margin: -1px !important;
}

/* Showcase Filters & Badges */
/* Multi-Layer Filter Deck */
.filter-deck-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 5rem;
    /* Equalized vertical spacing to 5rem */
    width: 95%;
    max-width: 1300px;
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
}

.filter-reset-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.8);
}

.filter-reset-btn.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.filter-reset-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.filter-group {
    display: flex;
    align-items: center;
}

/* Price Slider Component */
/* Price label and values restored/repositioned per request */
.price-val-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    width: 68px;
    /* Fixed width to prevent slider jumping */
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    display: inline-block;
}

.slider-dots {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    pointer-events: none;
    z-index: 1;
}

.slider-dots span {
    width: 3px;
    height: 3px;
    background: rgba(34, 211, 238, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

#range1 {
    margin-right: -0.25rem;
}

#range2 {
    margin-left: -0.25rem;
}

.price-filter-group {
    min-width: 320px;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
}

.price-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.dual-range-container {
    position: relative;
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    margin: 0;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.dual-range-container input[type="range"] {
    position: absolute;
    width: 100%;
    appearance: none;
    background: none;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 2;
}

.dual-range-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--cyan-400);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    transition: all 0.2s ease;
}

.dual-range-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.8);
}

.dual-range-container input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--cyan-400);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.filter-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(34, 211, 238, 0.4),
            transparent);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 0.85rem;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--slate-300);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.05em;
    position: relative;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
    background: rgba(34, 211, 238, 0.15);
    border-color: var(--cyan-400);
    color: var(--cyan-400);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.filter-btn.active:not([data-filter="all"])::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 8px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.1);
}

.filter-btn.active:not([data-filter="all"]):hover::after {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    transform: translateY(-50%) scale(1.1);
}

/* Option 2: Sliding Segmented Control */
.owned-segmented-control {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 3px;
    width: 154px;
    height: 38px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.owned-segmented-control:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.segment-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.owned-segmented-control.active .segment-slider {
    transform: translateX(100%);
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.segment-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--slate-400);
    transition: all 0.4s ease;
    text-transform: none;
    letter-spacing: 0.02em;
}

.owned-segmented-control:not(.active) .segment-item:first-of-type,
.owned-segmented-control.active .segment-item:last-of-type {
    color: white;
}

@media (max-width: 992px) {
    .filter-deck-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .filter-divider {
        width: 80%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
        align-self: center;
        margin-bottom: 0;
    }

    .filter-group {
        align-items: center;
        width: 100%;
    }

    .owned-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 5;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-badge.work {
    background: rgba(168, 85, 247, 0.25);
    color: #f3e8ff;
    border-color: rgba(168, 85, 247, 0.4);
}

.card-badge.project {
    background: rgba(34, 211, 238, 0.25);
    color: #ecfeff;
    border-color: rgba(34, 211, 238, 0.4);
}

.card-badge.education {
    background: rgba(16, 185, 129, 0.25);
    /* Emerald/Green */
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.4);
}

.card-badge.skill {
    background: rgba(249, 115, 22, 0.25);
    /* Orange */
    color: #ffedd5;
    border-color: rgba(249, 115, 22, 0.4);
}

.project-card.hidden {
    display: none;
}

.project-card.fade-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

#showcase-grid {
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.grid-fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Category Tags (Inline) */
.tech-tag.work {
    background: rgba(225, 29, 72, 0.4);
    color: #fff1f2;
    border-color: rgba(225, 29, 72, 0.5);
}

.tech-tag.project {
    background: rgba(34, 211, 238, 0.25);
    color: #ecfeff;
    border-color: rgba(34, 211, 238, 0.4);
}

.tech-tag.education {
    background: rgba(16, 185, 129, 0.25);
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.4);
}

.tech-tag.skill {
    background: rgba(249, 115, 22, 0.25);
    color: #ffedd5;
    border-color: rgba(249, 115, 22, 0.4);
}

.tech-tag.style {
    background: rgba(217, 70, 239, 0.25);
    color: #fdf4ff;
    border-color: rgba(217, 70, 239, 0.4);
}

.tech-tag.other {
    background: rgba(148, 163, 184, 0.25);
    color: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.4);
}

.tech-tag.owned {
    background: rgba(16, 185, 129, 0.25);
    /* Emerald/Green */
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.4);
}

/* No change needed here, moving to wishlist.html edit */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 700px;
    height: auto;
    max-height: 90vh;
    overflow-y: visible;
    /* Changed from auto to visible to prevent cropping */
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Removed close-modal-btn styles */

.modal-body {
    flex: 1;
    width: 100%;
    /* transparent because modal-content has background */
    background: transparent;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f1f5f9;
}

.modal-image-container {
    width: 100%;
    height: 350px;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image-placeholder {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Optional: if we wanted to show the icon inside the placeholder */
.modal-image-placeholder::after {
    content: "Image Placeholder";
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-icon-wrapper {
    display: none;
    /* Hidden as requested */
}

#modal-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
    color: #fff;
}

/* Make Contact, Wishlist, and Profile pages non-scrollable as requested */
body.contact-page,
body.wishlist-page,
body.profile-page {
    overflow: hidden !important;
    height: 100vh;
    margin: 0;
}

/* Profile Page Customizations (Flex-based for perfect centering and 20% wider math) */
.profile-page .projects-grid {
    max-width: 1600px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 1rem;
    margin: 0 auto;
}

.profile-page .project-card {
    /* Standard Width: 1/6th of container minus gaps */
    width: calc((100% - (5 * 1.5rem)) / 6);
    flex-shrink: 0;
    padding: 1rem;
    gap: 0.5rem;
}

.profile-page .project-card[data-category="work"] {
    /* Work Width: 20% wider than standard */
    width: calc(1.2 * (100% - (5 * 1.5rem)) / 6);
    padding: 1.25rem;
}

/* Ensure Row 1 (Work) stays together and centered */
.profile-page .project-card[data-category="work"]:nth-child(3)+.grid-divider {
    width: 100%;
    order: 0;
}

.grid-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(34, 211, 238, 0.05) 15%,
            rgba(34, 211, 238, 0.2) 50%,
            rgba(34, 211, 238, 0.05) 85%,
            transparent 100%);
    margin: 1rem 0;
    border: none;
    position: relative;
    flex-shrink: 0;
}

.grid-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 4px;
    background: var(--cyan-400);
    filter: blur(6px);
    opacity: 0.3;
}

.profile-page .project-card p {
    display: none;
}

.profile-page .project-card h3 {
    font-size: 0.9rem;
    line-height: 1.1;
}

.profile-page .project-icon {
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    margin-bottom: 0.15rem;
}

.profile-page .filter-btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

#modal-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    /* Reduced from 2rem */
    padding: 0.5rem;
    /* Add padding to prevent cropping of shadows/outlines */
    /* Override mask from .project-tech class to prevent fading on right */
    mask-image: none !important;
    -webkit-mask-image: none !important;
    overflow: visible !important;
}

.modal-action-btn {
    display: block;
    width: 180px;
    /* Fixed width to match visual size of card button */
    margin: 0.5rem auto 0;
    /* Reduced top margin */
    padding: 0.5rem 0;
    background: transparent;
    color: var(--cyan-400);
    border: 1px solid var(--cyan-400);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.modal-action-btn:hover {
    background: var(--cyan-400);
    color: #080810;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
    transform: translateY(-2px);
}

/* Hide footer globally for all pages as requested */
footer,
.footer {
    display: none !important;
}

/* Owned Item Card - Holographic Reveal */

/* Owned Item Card - Refined Holographic Reveal */
.project-card.owned {
    position: relative;
    overflow: hidden;
    /* Darkened Idle State */
    box-shadow: inset 0 0 0 200px rgba(0, 0, 0, 0.3);
    /* Overlay via shadow to save an element */
}

/* The Holographic Overlay - Default State */
/* The Holographic Overlay - Default State */
/* The Holographic Overlay - Removed for Option 1 */
.project-card.owned::after {
    display: none;
}

/* Category-Specific Hover Borders & Glitch Colors */
.project-card.owned[data-category="tech"]:hover {
    border-color: #22d3ee;
    /* Cyan */
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.25);
}

.project-card.owned[data-category="fashion"]:hover {
    border-color: #a855f7;
    /* Purple */
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.25);
}

.project-card.owned[data-category="food"]:hover {
    border-color: #f97316;
    /* Orange */
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.25);
}

.project-card.owned[data-category="books"]:hover {
    border-color: #eab308;
    /* Yellow/Gold */
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.25);
}

.project-card.owned[data-category="other"]:hover {
    border-color: #10b981;
    /* Emerald/Other */
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
}

/* Hover Content Sharpening */
.project-card.owned:hover {
    transform: translateY(-4px);
}

.project-card.owned .card-header-row,
.project-card.owned .project-tech {
    transition: all 0.6s ease;
    opacity: 0.6;
    /* Muted in archival mode */
}

.project-card.owned:hover .card-header-row,
.project-card.owned:hover .project-tech {
    opacity: 1;
    filter: none;
}

/* End of Owned Item Styles */