:root {
    /* CSS Custom Properties for consistent theming - Blue focused */
    --primary-blue: #1e40af; /* Royal Blue */
    --secondary-blue: #3b82f6; /* Bright Blue */
    --accent-blue: #60a5fa; /* Light Blue */
    --dark-blue: #1e3a8a; /* Dark Blue */
    --light-blue: #93c5fd; /* Very Light Blue */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.2);
    --border-radius: 1vw;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --vh: 1vh; /* Custom viewport height for mobile */
}

body {
    font-family: 'Oswald', sans-serif;
    margin: 0;
    padding: 0;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Light Theme - Pure White Background */
body.light-theme {
    background: #ffffff; /* Pure White */
    color: #1a1a1a;
}

body.light-theme::before {
    opacity: 0.1;
}

/* Dark Theme - Pure Black Background */
body.dark-theme {
    background: #000000; /* Pure Black */
    color: #f0f0f0;
}

body.dark-theme::before {
    opacity: 0;
}

header {
    display: flex;
    justify-content: flex-end;
    padding: 2vw;
    position: fixed;
    z-index: 10;
    width: 100%;
    top: 0;
    right: 0;
    pointer-events: none; /* Allow clicking through header */
}

header * {
    pointer-events: auto; /* Re-enable pointer events for children */
}

/* Theme Switcher Icons */
.theme-switcher {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1vw;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.theme-switcher::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-normal);
}

.theme-switcher:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.theme-switcher:hover::before {
    opacity: 0.1;
}

.theme-icon {
    width: clamp(24px, 3vw, 50px);
    height: clamp(24px, 3vw, 50px);
    stroke: currentColor;
    transition: var(--transition-normal);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

body.dark-theme .theme-icon {
    color: #f0f0f0;
}

body.light-theme .theme-icon {
    color: #1a1a1a;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Allow main content to grow and push footer down */
    padding: 2vw;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space between main content and pixel cat animation */
    min-height: 100vh; /* Make main content at least full viewport height */
    width: 100%;
    padding-top: 0; /* Remove extra padding */
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 2vw;
    box-sizing: border-box;
    position: relative;
}

/* Base dots background */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff; /* Light background as base */
    background-image: radial-gradient(#000000 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    z-index: 0;
    pointer-events: none;
}

/* Dots background fade effect - fade from center */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.8) 70%, rgba(255,255,255,1) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2vw;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-blue);
    border-radius: 25px;
    opacity: 0;
    animation: fadeInBounce 1s ease-out 1.2s forwards, bounce 2s infinite 1.2s;
    z-index: 10;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-indicator span {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: scroll 2s infinite 1.2s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 4vw; /* Scaled with viewport width */
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4vw; /* Scaled with viewport width */
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2vw;
    box-sizing: border-box;
}

.profile-photo-container {
    width: 25vw;
    height: 25vw;
    max-width: 450px;
    max-height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--glass-border);
    opacity: 0;
    animation: fadeInScale 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-photo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-blue);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 1;
}

.profile-photo-container:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-strong);
}

.profile-photo-container:hover::before {
    opacity: 0.1;
}

.profile-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
    position: relative;
    z-index: 2;
}

.profile-photo-container:hover img {
    filter: brightness(1.1) contrast(1.05);
}

body.dark-theme .hero-section::after {
    background-color: #000000; /* Dark background as base */
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 40px 40px;
}

body.dark-theme .hero-section::before {
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,1) 100%);
}

body.light-theme .hero-section::after {
    background-color: #ffffff; /* Light background as base */
    background-image: radial-gradient(#000000 1px, transparent 1px);
    background-size: 40px 40px;
}

body.light-theme .hero-section::before {
    background: radial-gradient(ellipse at center, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.8) 70%, rgba(255,255,255,1) 100%);
}

body.light-theme .profile-photo-container {
    background: rgba(255, 255, 255, 0.8);
}

.name-and-tagline {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    min-height: 25vw; /* Match height of photo placeholder */
    max-height: 450px; /* Match max-height of photo placeholder */
    opacity: 0;
    animation: fadeInRight 0.8s ease-out 0.5s forwards;
}

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

.cat-meme-creator {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(12px, 0.75vw, 18px);
    font-weight: 200;
    margin-bottom: 0.5vw;
    color: inherit;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.cat-meme-creator::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 1px;
}

.catezila-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 7vw, 120px);
    color: var(--primary-blue);
    margin: 0;
    line-height: 0.9;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: var(--transition-normal);
}

.catezila-name:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.xrp-tagline {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(16px, 1.5vw, 24px);
    font-weight: 600;
    background: var(--primary-blue);
    color: #ffffff;
    padding: 0.7vw 1.4vw;
    display: inline-block;
    margin-top: 1.2vw;
    border-radius: 25px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.xrp-tagline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.xrp-tagline:hover::before {
    left: 100%;
}

.xrp-tagline:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--secondary-blue);
}

.collection-button {
    background: none;
    border: 0.2vw solid #1a1a1a; /* Scaled with viewport width */
    color: #1a1a1a;
    padding: 1.5vw 3vw; /* Scaled with viewport width */
    font-size: 1.2vw; /* Scaled with viewport width */
    border-radius: 1vw; /* Scaled with viewport width */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none; /* Remove underline */
}

body.dark-theme .collection-button {
    border-color: #f0f0f0; /* White border in dark theme */
    color: #f0f0f0;
}

.collection-button:hover {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-theme .collection-button:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

/* Pixel Cat Animation */
.pixel-cat-animation {
    width: 48px;
    height: 48px;
    background-image: url('https://slimy-salmon-wasp.myfilebase.com/ipfs/QmdcEGJdpx49G6eQbc6QnvhqwgdB2VXHKLji3hqY67inzq');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 10px auto 10px auto;
    animation: moveCat 10s linear infinite;
    image-rendering: pixelated;
    transition: background-image 0.3s;
    position: relative;
    z-index: 5;
    pointer-events: none; /* Prevent interaction interference */
}

body.dark-theme .pixel-cat-animation {
    background-image: url('https://slimy-salmon-wasp.myfilebase.com/ipfs/QmRSguWsxFJMTfdVrQ3BpZbFAhqpu5hx8MjeASNsGSh3QB');
}

@keyframes moveCat {
    0% {
        transform: translateX(-40vw) scaleX(1);
    }
    49% {
        transform: translateX(40vw) scaleX(1);
    }
    50% {
        transform: translateX(40vw) scaleX(-1);
    }
    99% {
        transform: translateX(-40vw) scaleX(-1);
    }
    100% {
        transform: translateX(-40vw) scaleX(1);
    }
}

footer {
    text-align: center;
    padding: 2vw;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    margin-top: auto;
    z-index: 2;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--light-blue);
    opacity: 0.3;
}

footer hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin-bottom: 1.5vw;
    position: relative;
    z-index: 2;
}

footer p {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 300;
    margin: 0;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

body.dark-theme footer p {
    color: #f0f0f0;
}

body.light-theme footer p {
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .cat-meme-creator {
        font-size: 1.5vw; /* 3vw / 2 */
    }

    .catezila-name {
        font-size: 10vw; /* Larger font for mobile */
    }

    .xrp-tagline {
        font-size: 4vw; /* Larger font for mobile */
    }

    .profile-photo-container {
        width: 50vw; /* Larger for mobile */
        height: 50vw; /* Larger for mobile */
    }

    .collection-button {
        font-size: 3vw;
        padding: 3vw 6vw;
    }
}

@media (min-width: 1200px) {
    .profile-photo-container {
        width: 450px; /* Fixed max size for very large screens */
        height: 450px;
    }

    .cat-meme-creator {
        font-size: 1.25em; /* 2.5em / 2 */
    }

    .catezila-name {
        font-size: 10em; /* Fixed max size for very large screens */
    }

    .xrp-tagline {
        font-size: 2.5em;
    }

    .collection-button {
        font-size: 2.16em;
        padding: 27px 54px;
    }
}

/* Collections Section */
#collections {
    padding: 4vw 2vw;
    text-align: center;
    margin-bottom: 20px;
    background: rgba(30, 64, 175, 0.05); /* Light blue tint */
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
    transition: var(--transition-normal);
}

#collections:hover {
    background: rgba(30, 64, 175, 0.08);
    transform: translateY(-5px);
}

#collections h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4vw;
    color: inherit;
    margin-bottom: 3vw;
    position: relative;
    display: inline-block;
}

#collections h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.collections-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3vw;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2vw;
}

.collection-card {
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 2vw);
    min-width: 250px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    position: relative;
    transform-style: preserve-3d;
    aspect-ratio: 1 / 1; /* 1:1 aspect ratio for square cards */
    margin-bottom: 2vw;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
    .collection-card::after {
        content: '';
        display: block;
        padding-bottom: 100%;
    }

    .collection-card {
        position: relative;
    }

    .collection-card > * {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .collection-card img {
        height: 90%;
    }

    .collection-card h3 {
        position: absolute;
        bottom: 0;
        height: 10%;
        flex: none;
    }
}

.collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-blue);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 1;
}

.collection-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-strong);
}

.collection-card:hover::before {
    opacity: 0.1;
}

.collection-card img {
    width: 100%;
    height: 85%; /* Take up 85% of the card height */
    object-fit: cover;
    transition: var(--transition-normal);
    position: relative;
    z-index: 2;
}

.collection-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
}

.collection-card h3 {
    flex: 1; /* Take remaining space */
    padding: 1.5vw;
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 700;
    background: var(--primary-blue);
    color: #ffffff;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.collection-card:hover h3 {
    background: var(--secondary-blue);
    transform: translateY(-3px);
}

body.dark-theme .collection-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .collection-card h3 {
    background: var(--dark-blue);
    color: #ffffff;
}

body.dark-theme #collections {
    background: rgba(30, 58, 138, 0.1); /* Dark blue tint */
}

body.dark-theme #collections:hover {
    background: rgba(30, 58, 138, 0.15);
}

/* Responsive for Collections */
@media (max-width: 768px) {
    #collections h2 {
        font-size: 6vw;
    }

    .collection-card {
        width: 100%;
        margin-bottom: 2vw;
    }

    .collection-card h3 {
        font-size: 3vw;
    }
}

@media (min-width: 1200px) {
    #collections h2 {
        font-size: 3em;
    }

    .collection-card h3 {
        font-size: 1.5em;
    }
}

@media (min-width: 769px) {
    .collections-container {
        flex-wrap: nowrap;
        gap: 2vw;
    }
    
    .collection-card {
        width: calc(33.333% - 1.333vw);
        flex-shrink: 0;
    }
}

/* Smooth Animations and Micro-interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Page load animations */
.content-wrapper {
    animation: fadeInUp 0.8s ease-out;
}

.profile-section {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#collections {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.collection-card {
    opacity: 0;
    animation: slideUp 0.6s ease-out 0.6s both;
}

.collection-card:nth-child(2) {
    animation-delay: 0.8s;
}

.collection-card:nth-child(3) {
    animation-delay: 1s;
}

footer {
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

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

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

/* Button hover effects */
button, .collection-card {
    position: relative;
    overflow: hidden;
}

button::before, .collection-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, transparent 1px, rgba(255, 255, 255, 0.3) 1px);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

button:active::before {
    width: 300px;
    height: 300px;
}

/* Ensure pixel cat animation works properly */
.pixel-cat-animation {
    animation: moveCat 10s linear infinite;
}

/* Override for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .pixel-cat-animation {
        animation: none; /* Disable movement but keep visible */
    }
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

/* Focus states for accessibility */
.theme-switcher:focus,
.collection-card:focus {
    outline: 2px solid var(--accent-gradient);
    outline-offset: 2px;
}

/* Enhanced mobile touch interactions */
@media (hover: none) and (pointer: coarse) {
    .theme-switcher {
        min-width: 48px;
        min-height: 48px;
    }

    .collection-card {
        min-height: 120px;
    }
}

/* Ultra-small mobile screens (320px and below) */
@media (max-width: 320px) {
    .theme-switcher {
        min-width: 56px;
        min-height: 56px;
        top: 2vw;
        right: 2vw;
        padding: 2vw;
    }

    .theme-icon {
        width: 24px;
        height: 24px;
    }
}

/* Clean & Symmetric Mobile Layout */
@media (max-width: 480px) {
    /* Hide most particles for cleaner mobile look */
    .particle:nth-child(n+16) {
        display: none;
    }

    /* Clean, centered layout */
    body {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    main {
        padding: 4vw;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding-top: 80px;
    }

    .content-wrapper {
        gap: 5vw;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .profile-section {
        flex-direction: column;
        gap: 4vw;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    /* Perfectly centered profile photo */
    .profile-photo-container {
        width: 55vw;
        height: 55vw;
        max-width: 280px;
        max-height: 280px;
        margin: 0 auto;
        box-shadow: 0 8px 24px rgba(30, 64, 175, 0.2);
    }

    /* Clean, symmetric name section */
    .name-and-tagline {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3vw;
        width: 100%;
        margin-top: 2vw;
        text-align: center;
    }

    .cat-meme-creator {
        font-size: 16px;
        font-weight: 300;
        opacity: 0.8;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .catezila-name {
        font-size: clamp(42px, 14vw, 72px);
        line-height: 0.9;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .xrp-tagline {
        font-size: 16px;
        padding: 2vw 4vw;
        margin: 0;
        border-radius: 25px;
        text-align: center;
        width: auto;
        align-self: center;
    }

    /* Collections section - clean and symmetric */
    #collections {
        padding: 6vw 4vw;
        text-align: center;
        width: 100%;
    }

    #collections h2 {
        font-size: 8vw;
        margin-bottom: 5vw;
        text-align: center;
        width: 100%;
    }

    #collections h2::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }

    .collections-container {
        display: flex;
        flex-direction: column;
        gap: 5vw;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    .collection-card {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
        min-height: 140px;
        text-align: center;
        margin-bottom: 3vw;
        opacity: 0;
        animation: slideUpMobile 0.6s ease-out forwards;
    }

    .collection-card:nth-child(1) {
        animation-delay: 0.6s;
    }

    .collection-card:nth-child(2) {
        animation-delay: 0.8s;
    }

    .collection-card:nth-child(3) {
        animation-delay: 1s;
    }

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

    .collection-card h3 {
        text-align: center;
        justify-content: center;
    }

    /* Clean footer */
    footer {
        padding: 4vw;
        text-align: center;
        position: relative;
        margin-top: auto;
        width: 100%;
    }

    footer p {
        font-size: 14px;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    /* Remove particle background pattern for cleaner look */
    .particle-bg::before {
        display: none;
    }

    /* Subtle theme switcher */
    .theme-switcher {
        min-width: 56px;
        min-height: 56px;
        padding: 1.5vw;
        position: fixed;
        top: 4vw;
        right: 4vw;
        z-index: 1000;
        border-radius: 50%;
        background: rgba(30, 64, 175, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid rgba(30, 64, 175, 0.4);
        box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
        transition: all 0.3s ease;
    }

    .theme-switcher:hover {
        transform: scale(1.05);
        background: rgba(30, 64, 175, 0.25);
    }

    .theme-switcher:active {
        transform: scale(0.98);
    }

    .theme-icon {
        width: 28px;
        height: 28px;
        filter: drop-shadow(0 2px 4px rgba(30, 64, 175, 0.3));
    }

    /* Slower, more subtle particle animations */
    .particle {
        animation-duration: 25s;
        opacity: 0.1;
    }

    /* Ensure proper stacking and no overflow */
    * {
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .particle:nth-child(n+26) {
        display: none;
    }

    .profile-photo-container {
        width: 55vw;
        height: 55vw;
        max-width: 350px;
        max-height: 350px;
    }

    /* Tablet name-and-tagline fixes */
    .name-and-tagline {
        text-align: center;
        min-height: auto;
        margin-top: 3vw;
        gap: 2vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .cat-meme-creator {
        font-size: clamp(16px, 3vw, 20px);
        margin-bottom: 1.5vw;
    }

    .catezila-name {
        font-size: clamp(42px, 10vw, 90px);
        line-height: 0.85;
    }

    .xrp-tagline {
        font-size: clamp(16px, 4vw, 22px);
        padding: 1.2vw 2.5vw;
        margin-top: 2.5vw;
    }

    /* Enhanced theme switcher for tablets */
    .theme-switcher {
        min-width: 58px;
        min-height: 58px;
        padding: 1.5vw;
        top: 2.5vw;
        right: 2.5vw;
        background: rgba(30, 64, 175, 0.12);
        border: 2px solid rgba(30, 64, 175, 0.25);
        box-shadow: 0 5px 18px rgba(30, 64, 175, 0.2);
    }

    .theme-icon {
        width: clamp(26px, 5vw, 30px);
        height: clamp(26px, 5vw, 30px);
    }
    
    /* Collections section - clean and symmetric */
    #collections {
        padding: 6vw 4vw;
        text-align: center;
        width: 100%;
    }

    #collections h2 {
        font-size: 8vw;
        margin-bottom: 5vw;
        text-align: center;
        width: 100%;
    }

    #collections h2::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }

    .collections-container {
        display: flex;
        flex-direction: column;
        gap: 5vw;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    .collection-card {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
        min-height: 140px;
        text-align: center;
        margin-bottom: 3vw;
        opacity: 0;
        animation: slideUpMobile 0.6s ease-out forwards;
    }

    .collection-card:nth-child(1) {
        animation-delay: 0.6s;
    }

    .collection-card:nth-child(2) {
        animation-delay: 0.8s;
    }

    .collection-card:nth-child(3) {
        animation-delay: 1s;
    }

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

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fade-in animation for lazy loaded images */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading state styles */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.95);
        --glass-border: rgba(0, 0, 0, 0.8);
    }

    body.light-theme .profile-photo-container {
        border: 2px solid #000;
    }

    body.dark-theme .profile-photo-container {
        border: 2px solid #fff;
    }
}

/* Print styles */
@media print {
    .theme-switcher {
        display: none;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .pixel-cat-animation {
        display: none;
    }
}
