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

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: #111827;
    overflow-x: hidden;
    color: #e9d5ff;
    font-size: 18px;
    line-height: 1.6;
}

.wrapper {
    min-height: 100vh;
    position: relative;
}

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

/* Social Links Top */
.social-links-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 1.5rem;
    z-index: 100;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.social-link img {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    border: 2px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}

.social-link span {
    color: #e9d5ff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.social-link:hover span {
    color: #c084fc;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/bg1.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(88, 28, 135, 0.3), rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(4px);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.hero-image {
    width: 256px;
    height: 256px;
    object-fit: cover;
    border-radius: 3rem;
    animation: bounce 2s infinite;
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.4);
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 8vw, 4.5rem);
    color: #e9d5ff;
    margin-top: 2rem;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.5);
}

.hero p {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: #e9d5ff;
    margin-top: 1.5rem;
    font-style: italic;
    letter-spacing: 0.15em;
}

/* Main Content */
.main-content {
    position: relative;
    background-image: url('images/bg2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.content-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

/* Instagram Section */
.instagram-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .instagram-grid {
        flex-direction: row;
        gap: 4rem;
    }
}

.instagram-image-container {
    flex: 2;
}

.instagram-text-content {
    flex: 1;
    text-align: center;
}

.instagram-image {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 4px 30px rgba(147, 51, 234, 0.3);
    transition: transform 0.5s ease;
}

.instagram-image:hover {
    transform: scale(1.02);
}

.instagram-text-content h3 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #e9d5ff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.instagram-text-content p {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: #e9d5ff;
    margin-bottom: 2rem;
}

.instagram-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(to right, #9333ea, #7e22ce);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.instagram-button:hover {
    transform: scale(1.1);
}

/* Card Styles */
.card {
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(8px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 3rem;
    box-shadow: 0 10px 30px -3px rgba(147, 51, 234, 0.2);
    margin: 2rem 0;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

/* Section Styles */
section {
    position: relative;
    z-index: 10;
    padding: clamp(3rem, 8vw, 5rem) 0;
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 3rem);
    color: #e9d5ff;
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    text-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
    letter-spacing: 0.15em;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-rows: auto auto;
    gap: 2rem;
}

.gallery-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

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

.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(88, 28, 135, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Tokenomics */
.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 1000px;
    margin: 0 auto;
}

.tokenomics-item {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    background: linear-gradient(to bottom right, rgba(147, 51, 234, 0.9), rgba(88, 28, 135, 0.9));
    box-shadow: 0 4px 30px rgba(147, 51, 234, 0.2);
}

.tokenomics-item:hover {
    transform: scale(1.05);
}

.tokenomics-item h3 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
}

.tokenomics-item p {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: rgba(255, 255, 255, 0.9);
    word-break: break-word;
    font-weight: 600;
}

/* Text Content */
.text-content {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    line-height: 1.8;
    letter-spacing: 0.02em;
}

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

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .hero-image {
        width: min(256px, 70vw);
        height: min(256px, 70vw);
    }
    
    .card {
        margin: 1rem 0;
    }
    
    .tokenomics-grid {
        grid-template-columns: 1fr;
    }

    .gallery-top,
    .gallery-bottom {
        grid-template-columns: 1fr;
    }

    .background-attachment-fixed {
        background-attachment: scroll;
    }

    .social-links-top {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Safe area for notched phones */
@supports(padding: max(0px)) {
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Prevent text from becoming too small on very small devices */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }
}