* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 25%, #a855f7 50%, #d8b4fe 100%);
    color: #1e293b;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-text {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    opacity: 0.1;
}

.floating-paw {
    position: absolute;
    font-size: 2rem;
    opacity: 0.2;
    animation: floatAround 20s linear infinite;
}

.floating-paw:nth-child(2n) { 
    animation-duration: 25s; 
    animation-delay: -5s; 
}

.floating-paw:nth-child(3n) { 
    animation-duration: 30s; 
    animation-delay: -10s; 
}

@keyframes floatAround {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

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

/* Navigation - FIXED RESPONSIVE DESIGN */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(99, 102, 241, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 4px 20px;
    background: rgba(255, 255, 255, 0.98);
}

nav .logo img {
    height: 70px;
    transition: transform 0.3s ease;
}

nav .logo img:hover {
    transform: scale(1.02);
}

/* Desktop Navigation */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-menu li a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 25px;
}

.nav-menu li a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
}

.nav-overlay.active {
    transform: translateX(0);
}

.nav-overlay ul {
    list-style: none;
    text-align: center;
}

.nav-overlay ul li {
    margin: 20px 0;
}

.nav-overlay ul li a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 15px 30px;
    border-radius: 25px;
    display: block;
}

.nav-overlay ul li a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 50px 50px;
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
}

.hero .subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    background: #ffffff;
    color: #6366f1;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    background: #6366f1;
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    padding: 18px 40px;
    border: 3px solid #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-left: 140px;
}

.hero-image-container {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: perspective(600px) rotateY(5deg);
}

.carousel-item img {
    width: 100%;
    max-width: 250px;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #a855f7;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
}

.carousel-controls button {
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.carousel-controls button:hover {
    background: #6366f1;
    color: #ffffff;
}

/* About Section */
.about {
    padding: 120px 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #a855f7;
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
    text-align: left;
    padding-left: 30px;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #6366f1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(99, 102, 241, 0.1);
}

.faq .section-title {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.7;
}

.faq .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* NFT Collection Section - UPDATED WITH FIXED ANIMATIONS */
.collection {
    padding: 120px 50px;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: white;
    position: relative;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat, linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    background-blend-mode: overlay;
}

.collection-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.collection-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.nft-grid {
    display: grid;
    grid-template-rows: repeat(2, auto);
    gap: 30px;
    margin-top: 60px;
}

.nft-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch;
}

.nft-card {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid #a855f7;
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
    min-width: 200px;
    max-width: 220px;
    height: 300px;
    opacity: 0;
    transform: perspective(1000px);
    will-change: transform, opacity;
    justify-self: center;
}

.nft-card:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.nft-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.nft-card:hover img {
    transform: scale(1.02);
}

.nft-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6366f1, #a855f7, #d8b4fe, #6366f1);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.nft-card:hover::before {
    opacity: 0.7;
}

/* Animation helper classes */
.nft-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nft-card.animate-hover {
    transform: translateY(-10px) scale(1.05) perspective(1000px) rotateY(5deg);
}

/* Roadmap Section */
.roadmap {
    padding: 120px 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: relative;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat, rgba(255, 255, 255, 0.95);
    background-blend-mode: overlay;
}

.roadmap-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
}

.roadmap-item {
    background: #ffffff;
    border: 3px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.roadmap-item:hover {
    transform: translateY(-5px);
    border-color: #6366f1;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.roadmap-phase {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    color: #6366f1;
    margin-bottom: 10px;
}

.roadmap-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 120px 50px;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat, linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    background-blend-mode: overlay;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 60px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.faq-question {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.faq-answer {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Community Section */
.community {
    padding: 120px 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: relative;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat, rgba(255, 255, 255, 0.95);
    background-blend-mode: overlay;
}

.community-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.social-card {
    background: #ffffff;
    border: 3px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: #6366f1;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.social-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.social-name {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    color: #6366f1;
    margin-bottom: 10px;
}

.social-description {
    color: #64748b;
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 80px 50px 40px;
    background: #1e293b;
    color: #94a3b8;
    position: relative;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat, #1e293b;
    background-blend-mode: overlay;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-emoji {
    font-size: 3rem;
    margin-bottom: 30px;
    display: inline-block;
}

.footer-text {
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #6366f1;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        gap: 60px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero-visual {
        margin-left: 0;
    }
    
    .nft-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .nft-card {
        min-width: 180px;
        max-width: 200px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    nav .logo img {
        height: 50px;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 120px 20px 50px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .hero-visual {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .carousel-item img {
        max-width: 200px;
        height: 280px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2.8rem;
    }
    
    .collection-title {
        font-size: 2.8rem;
    }
    
    /* Sections Padding */
    .about, .collection, .roadmap, .faq, .community {
        padding: 80px 20px;
    }
    
    /* About Section Mobile */
    .about-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .card {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text {
        padding-left: 0;
        padding-top: 20px;
    }
    
    /* IMPROVED NFT Collection Mobile */
    .nft-grid {
        gap: 25px;
        margin-top: 40px;
    }
    
    .nft-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .nft-card {
        flex: 0 0 auto;
        min-width: 160px;
        max-width: 160px;
        height: 220px;
        margin: 0;
    }
    
    .nft-card img {
        height: 180px;
        width: 100%;
    }
    
    /* Footer Mobile */
    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title, .collection-title {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .carousel-item img {
        max-width: 180px;
        height: 240px;
    }
    
    /* BETTER Small Mobile NFT Layout */
    .collection {
        padding: 60px 15px;
    }
    
    .nft-grid {
        gap: 20px;
        margin-top: 30px;
    }
    
    .nft-row {
        gap: 15px;
    }
    
    .nft-card {
        min-width: 140px;
        max-width: 140px;
        height: 200px;
        padding: 15px;
    }
    
    .nft-card img {
        height: 160px;
        border-radius: 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 400px) {
    /* Extra Small Mobile - Single Column NFTs */
    .nft-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .nft-card {
        min-width: 250px;
        max-width: 250px;
        height: 300px;
        padding: 20px;
    }
    
    .nft-card img {
        height: 240px;
        border-radius: 15px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .section-title, .collection-title {
        font-size: 2rem;
    }
    
    nav {
        padding: 6px 15px;
    }
    
    .hero, .about, .collection, .roadmap, .faq, .community {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Very Small Screen NFT Layout */
    .nft-card {
        min-width: 220px;
        max-width: 220px;
        height: 280px;
    }
    
    .nft-card img {
        height: 220px;
    }
}