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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
.main-header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    color: #ff6b9d;
    animation: heartbeat 2s infinite;
}

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

.logo-container h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff6b9d;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b9d;
    transition: width 0.3s ease;
}

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

/* Ad Containers */
.ad-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

.ad-top, .ad-bottom {
    max-width: 728px;
    height: 90px;
    margin: 1rem auto;
}

.ad-sidebar {
    width: 300px;
    height: 250px;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    color: #ccc;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b9d, #c44569, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 107, 157, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 107, 157, 0.8); }
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Generator Section */
.generator-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.controls-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-selector, .style-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-selector label, .style-selector label {
    font-weight: 600;
    color: #ff6b9d;
}

.category-dropdown, .style-dropdown {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-dropdown:hover, .style-dropdown:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Waifu Display */
.waifu-display {
    text-align: center;
}

.waifu-container {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    width: 100%;
    margin: 0 auto 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #2c2c2c, #3a3a3a);
}

.waifu-image {
    width: 100%;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    transition: all 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: high-quality;
    filter: contrast(1.1) saturate(1.1) brightness(1.05);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 157, 0.3);
    border-top: 4px solid #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ff6b9d;
}

.loading-hearts {
    display: flex;
    gap: 0.5rem;
}

.loading-hearts i {
    color: #ff6b9d;
    animation: bounce 1.5s infinite;
}

.loading-hearts i:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-hearts i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.generate-btn, .download-btn, .share-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.generate-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.6);
}

.download-btn {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.share-btn {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

/* POD Banner Section */
.pod-banner-section {
    margin: 3rem 0;
    text-align: center;
}

.banner-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ff6b9d;
}

.pod-banner-link {
    display: inline-block;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.pod-banner-link:hover {
    transform: scale(1.05);
}

.pod-banner-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.shop-now-btn {
    display: inline-block;
    background: #ff6b9d;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-top: 0.5rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.shop-now-btn:hover {
    background: #c44569;
}

/* Donation Section */
.donation-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.donation-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #f39c12;
}

.crypto-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.crypto-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    min-width: 250px;
    transition: transform 0.3s ease;
}

.crypto-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.crypto-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #f39c12;
}

.crypto-address {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Contact Banner */
.contact-banner-section {
    margin: 3rem 0;
}

.contact-banner {
    background: linear-gradient(45deg, #667eea, #764ba2);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-btn {
    display: inline-block;
    background: #ff6b9d;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #c44569;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-link {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #ff6b9d;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-nav {
        gap: 1rem;
    }

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

    .controls-container {
        flex-direction: column;
        align-items: center;
    }

    .waifu-container {
        width: 800px;
        height: 1000px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .crypto-options {
        flex-direction: column;
        align-items: center;
    }

    .ad-sidebar {
        display: none;
    }

    .main-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .waifu-container {
        width: 700px;
        height: 900px;
    }

    .generate-btn, .download-btn, .share-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Hidden class for loading overlay */
.hidden {
    display: none !important;
}

/* Advanced UI Enhancements */
/* Floating particles background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 107, 157, 0.6);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.particle:nth-child(odd) {
    background: rgba(102, 126, 234, 0.6);
    animation-delay: -2s;
}

.particle:nth-child(3n) {
    background: rgba(196, 69, 105, 0.6);
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced button hover effects */
.generate-btn, .download-btn, .share-btn, .contact-btn {
    position: relative;
    overflow: hidden;
}

.generate-btn::before, .download-btn::before, .share-btn::before, .contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.generate-btn:hover::before, .download-btn:hover::before, .share-btn:hover::before, .contact-btn:hover::before {
    left: 100%;
}

/* Glowing text effect for hero title */
.hero-title {
    position: relative;
}

.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b9d, #c44569, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(2px);
    opacity: 0.7;
    z-index: -1;
}

/* Enhanced waifu container with 3D effect */
.waifu-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.waifu-image {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* Animated gradient borders */
.generator-section, .pod-banner-section, .donation-section, .contact-banner-section {
    position: relative;
}

.generator-section::before, .pod-banner-section::before, .donation-section::before, .contact-banner-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b9d, #667eea, #764ba2, #c44569);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: gradientShift 4s ease infinite;
    opacity: 0.8;
}

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

/* Pulsing heart animation for logo */
.logo-icon {
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.8));
}

/* Enhanced loading animation */
.loading-spinner {
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 4px solid rgba(255, 107, 157, 0.3);
    border-top: 4px solid #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-hearts i {
    animation: heartPulse 1.5s infinite ease-in-out;
}

.loading-hearts i:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-hearts i:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced nav link effects */
.nav-link {
    position: relative;
    overflow: hidden;
}

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

.nav-link:hover::before {
    left: 100%;
}

/* Floating animation for crypto options */
.crypto-option {
    animation: floatUp 3s ease-in-out infinite;
}

.crypto-option:nth-child(2) {
    animation-delay: 1s;
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced social links */
.social-link {
    position: relative;
    display: inline-block;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.social-link:hover::after {
    width: 50px;
    height: 50px;
}

/* Typewriter effect for hero subtitle */
.hero-subtitle {
    overflow: hidden;
    border-right: 2px solid rgba(255, 107, 157, 0.8);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(60, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(255, 107, 157, 0.8); }
}

/* Enhanced dropdown animations */
.category-dropdown, .style-dropdown {
    transition: all 0.3s ease;
}

.category-dropdown:focus, .style-dropdown:focus {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

/* Parallax effect for background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    z-index: -2;
    animation: parallaxMove 20s ease-in-out infinite;
}

@keyframes parallaxMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-2%, -1%) scale(1.02);
    }
    66% {
        transform: translate(2%, 1%) scale(0.98);
    }
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .particles-container {
        display: none;
    }
    
    .hero-subtitle {
        animation: none;
        border-right: none;
        white-space: normal;
    }
    
}
