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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e9ecef;
    background-color: #121212;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.logo {
    max-width: 600px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero {
    padding: 60px 0;
    text-align: center;
    background: #1e1e1e;
}

.tagline {
    font-size: 1.5rem;
    color: #e9ecef;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.4;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.hero p {
    font-size: 1.1rem;
    color: #b0b0b0;
}

.hero h2 a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero h2 a:hover {
    color: #764ba2;
}

.downbad-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-top: 20px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.downbad-logo:hover {
    transform: scale(1.1);
}

.token-announcement {
    padding: 40px 0;
    background: #2a2a2a;
    border-top: 3px solid #667eea;
    border-bottom: 3px solid #667eea;
    text-align: center;
    color: white;
}

.token-announcement h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.token-announcement p {
    font-size: 1.1rem;
    margin: 8px 0;
    opacity: 0.95;
}

.token-announcement a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.token-announcement a:hover {
    opacity: 0.8;
}

.collection {
    padding: 60px 0;
    background-color: #181818;
}

.collection h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #ffffff;
    font-weight: 700;
}

.collection-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.collection-tile {
    background: #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #404040;
    text-decoration: none;
    color: inherit;
}

.collection-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.tile-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #3a3a3a;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-tile:hover .tile-image img {
    transform: scale(1.1);
}

.tile-content {
    padding: 30px;
}

.tile-content h4 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.tile-content p {
    color: #b0b0b0;
    margin: 0 0 20px 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.tile-cta {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.collection-tile:hover .tile-cta {
    color: #764ba2;
}

.back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #764ba2;
}

.collection-page {
    padding: 60px 0;
    background-color: #181818;
    min-height: 80vh;
}

.collection-info {
    text-align: center;
    margin-bottom: 60px;
}

.collection-info h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.collection-info p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.nft-card {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #404040;
    cursor: pointer;
}

.nft-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.nft-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #3a3a3a;
}

.nft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.nft-info h5 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.nft-info p {
    color: #b0b0b0;
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.trait {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 2px 4px 2px 0;
    font-weight: 500;
}

.trait.rarity {
    background: #764ba2;
}

.loading {
    text-align: center;
    color: #667eea;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px;
    font-size: 1.1rem;
}

.error {
    text-align: center;
    color: #ff6b6b;
    grid-column: 1 / -1;
    padding: 40px;
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    color: #b0b0b0;
    grid-column: 1 / -1;
    padding: 40px;
    font-size: 1.1rem;
}

.filters-section {
    margin-bottom: 40px;
}

.filters-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: center;
}

.filters button {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 200px;
}

.filters select {
    background: #2a2a2a;
    border: 1px solid #404040;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
}

.filters select:focus {
    outline: none;
    border-color: #667eea;
}

.filters button {
    background: #667eea;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.filters button:hover {
    background: #764ba2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #2a2a2a;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.8);
}

.modal-nft {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.modal-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #3a3a3a;
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.modal-info h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-info .unit-name {
    color: #667eea;
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.traits-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.trait-item {
    background: #3a3a3a;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #404040;
}

.trait-label {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 600;
}

.trait-value {
    color: #ffffff;
    font-size: 0.95rem;
    margin-left: 8px;
}

.description {
    color: #b0b0b0;
    line-height: 1.5;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .modal-nft {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
}

.info {
    padding: 60px 0;
    background: #1e1e1e;
    text-align: center;
}

.info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.info p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.social-icon:hover {
    transform: scale(1.2);
}

footer {
    background: #0a0a0a;
    color: white;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #333;
}

footer p {
    opacity: 0.8;
}

.puffin-popup {
    position: absolute;
    bottom: -100px;
    width: 150px;
    height: auto;
    z-index: 10;
}

.puffin1 {
    right: 10%;
    animation: popUp 2s ease-out 1s forwards;
}

.puffin2 {
    right: 25%;
    animation: popUp 2s ease-out 1.5s forwards;
}

.puffin3 {
    left: 25%;
    animation: popUp 2s ease-out 2s forwards;
}

.puffin4 {
    left: 10%;
    animation: popUp 2s ease-out 2.5s forwards;
}

@keyframes popUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    100% {
        transform: translateY(-100px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .logo {
        max-width: 300px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    
    .container {
        padding: 0 15px;
    }
    
    .puffin-popup {
        width: 100px;
    }
    
    .puffin1 {
        right: 2%;
    }
    
    .puffin2 {
        right: 27%;
    }
    
    .puffin3 {
        left: 27%;
    }
    
    .puffin4 {
        left: 2%;
    }
}