/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Scheme */
    --primary-color: #6366f1;
    --primary-hover: #5855eb;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --toilet-brown: #8b4513;
    --toilet-blue: #4f46e5;
    --gold: #fbbf24;
    --legendary: #f59e0b;
    --epic: #8b5cf6;
    --rare: #06b6d4;
    --common: #6b7280;
    
    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 4rem 0;
    
    /* Typography */
    --font-primary: 'Fredoka', cursive;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.btn: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;
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-steam {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    color: white;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    border-radius: 1rem;
}

.btn-steam:hover {
    background: linear-gradient(135deg, #2a475e, #1b2838);
    transform: translateY(-3px);
}

.btn-discord {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
}

.btn-discord:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a5);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.btn-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-platform {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    padding-top: 80px; /* Account for fixed navbar */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: url('assets/toilettossbackground.png') center/cover;
}

.toilet-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="20">🚽</text></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    opacity: 0.05;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-toilet {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.3));
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-toilet:hover {
    transform: scale(1.1) rotate(5deg);
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
    line-height: 1.1;
    text-align: center;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    text-align: center;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.6;
    padding: 0 1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 3rem);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.stat-item {
    text-align: center;
    min-width: 120px;
    flex: 1;
    max-width: 200px;
}

.stat-number {
    display: block;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-prompt 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
}

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

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-text h4 {
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feature-list strong {
    color: var(--text-primary);
}

.game-info {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-weight: 600;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toilet-showcase {
    position: relative;
    padding: 2rem;
}

.showcase-toilet {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.4));
    animation: showcase-float 3s ease-in-out infinite;
}

@keyframes showcase-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(-5px) rotate(-2deg); }
}

.floating-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-item {
    position: absolute;
    font-size: 2rem;
    animation: float-item 4s ease-in-out infinite;
    opacity: 0.7;
}

.floating-item:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-item:nth-child(2) { top: 20%; right: 10%; animation-delay: 1s; }
.floating-item:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 2s; }
.floating-item:nth-child(4) { bottom: 10%; right: 20%; animation-delay: 3s; }
.floating-item:nth-child(5) { top: 50%; left: 5%; animation-delay: 1.5s; }

@keyframes float-item {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover:before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.gallery-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Download Section */
.download {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.download-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.download-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.download-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.download-feature .feature-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Community Section */
.community {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.community-card {
    background: var(--bg-secondary);
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.community-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.community-icon {
    margin-bottom: 2rem;
}

.discord-icon {
    width: 80px;
    height: 80px;
}

.community-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.community-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.community-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.community-stats .stat-item {
    text-align: center;
}

.community-stats .stat-number {
    font-size: 2rem;
    color: var(--primary-color);
}

.community-features h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.community-list {
    list-style: none;
    text-align: left;
}

.community-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.community-list li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-link img {
    width: 20px;
    height: 20px;
}

.footer-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.soundtrack-section {
    margin-top: 1rem;
}

.soundtrack-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.music-player {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.track-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.track-btn.playing {
    background: var(--accent-color);
    border-color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-stats {
    color: var(--accent-color);
    font-weight: 500;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    .hero {
        padding: 100px 0 2rem 0; /* Extra top padding for tablet navbar */
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-toilet {
        width: 120px;
        height: 120px;
        margin-top: 1.5rem;
    }
    
    .about-content,
    .download-content,
    .community-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Tablets and medium devices */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 3rem 0;
    }
    
    /* Improved Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0.75rem var(--container-padding);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        display: block;
        margin: 0.25rem 0;
        border-radius: 0.5rem;
        font-size: 1.1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero Section Improvements */
    .hero {
        min-height: 100vh;
        padding: 90px 0 1rem 0; /* Top padding for mobile navbar */
    }
    
    .hero-content {
        padding: 1rem;
        margin-top: 0; /* Remove extra margin since we have padding now */
    }
    
    .hero-logo {
        margin-bottom: 1.5rem;
    }
    
    .hero-toilet {
        width: 100px;
        height: 100px;
        margin-top: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Section Improvements */
    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .download-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Scroll indicator adjustment */
    .scroll-indicator {
        bottom: 1rem;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
        --section-padding: 2rem 0;
    }
    
    /* Mobile Navigation */
    .nav-container {
        padding: 0.5rem var(--container-padding);
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .nav-menu {
        top: 60px;
        padding: 1.5rem 0;
    }
    
    /* Mobile Hero */
    .hero {
        min-height: 100vh;
        padding: 80px 0 0 0; /* Top padding for small mobile navbar */
    }
    
    .hero-content {
        padding: 0.75rem;
        margin-top: 0; /* Remove extra margin since we have padding now */
    }
    
    .hero-logo {
        margin-bottom: 1rem;
    }
    
    .hero-toilet {
        width: 80px;
        height: 80px;
        margin-top: 0.5rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .hero-buttons {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        max-width: 260px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Mobile Sections */
    .section-header {
        margin-bottom: 2rem;
        padding: 0 0.75rem;
    }
    
    .about-text {
        padding: 0 0.5rem;
    }
    
    .about-text h3,
    .about-text h4 {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
    
    .feature-list {
        padding-left: 0;
    }
    
    .feature-list li {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .gallery-item {
        margin: 0 0.25rem;
    }
    
    .community-card {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .community-features {
        padding: 0 0.5rem;
    }
    
    /* Mobile Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo-text {
        font-size: 1.25rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link img {
        width: 18px;
        height: 18px;
    }
    
    /* About section mobile improvements */
    .showcase-toilet {
        width: 180px;
        height: 180px;
    }
    
    .floating-item {
        font-size: 1.5rem;
    }
    
    /* Download section mobile */
    .download-content {
        text-align: center;
        gap: 2rem;
    }
    
    .download-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
    
    .download-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Scroll indicator mobile */
    .scroll-indicator {
        bottom: 0.5rem;
    }
    
    .scroll-arrow {
        width: 25px;
        height: 25px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1000px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about-content,
    .download-content,
    .community-content {
        gap: 5rem;
    }
}

/* Very small screens (landscape phones) */
@media (max-width: 400px) {
    .hero-toilet {
        width: 70px;
        height: 70px;
        margin-top: 0.5rem;
    }
    
    .stat-item {
        min-width: 90px;
    }
    
    .btn {
        max-width: 240px;
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .feature-card {
        padding: 1.25rem 0.75rem;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
}

/* High DPI screens optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-toilet,
    .showcase-toilet,
    .logo-img,
    .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .download-buttons,
    .footer-social,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-title,
    .section-title {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

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

/* Interactive Elements */
.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable:hover {
    transform: scale(1.05);
}

.clickable:active {
    transform: scale(0.95);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Image optimization for all screens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-toilet,
.showcase-toilet,
.gallery-img {
    object-fit: contain;
    object-position: center;
}

.logo-img,
.footer-logo-img,
.modal-icon {
    flex-shrink: 0;
}

/* Prevent layout shift */
.hero-toilet,
.showcase-toilet {
    aspect-ratio: 1;
}

.gallery-img {
    aspect-ratio: 16/10;
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px; /* iOS/Android minimum touch target */
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
    
    .hero-toilet {
        min-width: 60px;
        min-height: 60px;
    }
}

/* Reduce animations on low-power devices */
@media (prefers-reduced-motion: reduce) {
    .hero-toilet {
        animation: none !important;
    }
    
    .toilet-particles,
    .floating-items,
    .scroll-indicator {
        animation: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    .feature-card:hover {
        transform: none !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hero-toilet:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 50%;
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .download-buttons,
    .footer-social {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}