/* Custom Font */
@font-face {
    font-family: 'LDF Comic Sans';
    src: url('Ldfcomicsans-jj7l.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LDF Comic Sans';
    src: url('Ldfcomicsansbold-zgma.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'LDF Comic Sans';
    src: url('Ldfcomicsanslight-6dZo.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

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

body {
    font-family: 'LDF Comic Sans', 'Comic Sans MS', cursive;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-banner {
    max-width: 80%;
    width: 600px;
    height: auto;
    margin-bottom: 50px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-bar-container {
    width: 80%;
    max-width: 500px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b35 0%, #d32f2f 50%, #ff6b35 100%);
    background-size: 200% 100%;
    border-radius: 15px;
    animation: fillBar 2.5s ease-in-out forwards, fireGlow 1s linear infinite;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8), 0 0 30px rgba(211, 47, 47, 0.6);
}

@keyframes fillBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes fireGlow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.8), 0 0 30px rgba(211, 47, 47, 0.6);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 25px rgba(255, 107, 53, 1), 0 0 50px rgba(211, 47, 47, 0.8);
    }
}

.container {
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 30%, #2c2c2c 60%, #3d3d3d 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 16px 100px 16px;
    position: relative;
    clip-path: ellipse(100% 100% at 50% 0%);
}

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

.main-title {
    font-size: clamp(50px, 12vw, 100px);
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 15px;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px #d32f2f, 8px 8px 0px rgba(0,0,0,0.5);
    animation: wobble 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-2deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.02); }
    50% { transform: rotate(-1deg) scale(1); }
    75% { transform: rotate(1deg) scale(0.98); }
}

.slogan {
    font-size: clamp(20px, 4vw, 32px);
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #ff6b35;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-image {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.hero-meme {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.5);
    border: 6px solid #ff6b35;
    animation: float 6s ease-in-out infinite;
    transform-origin: center;
}

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

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #ff6b35;
    color: #1a1a1a;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.5);
}

.social-icon:hover {
    background-color: #d32f2f;
    color: #e0e0e0;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.6);
}

/* Contract Address */
.contract-address {
    margin-top: 40px;
    padding: 20px 35px;
    background: rgba(224, 224, 224, 0.95);
    border-radius: 50px;
    border: 4px solid #ff6b35;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.contract-address:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.5);
    background: rgba(255, 255, 255, 0.98);
}

.contract-address:active {
    transform: scale(0.98);
}

.ca-label {
    font-size: 14px;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.ca-text {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    letter-spacing: 1px;
    word-break: break-all;
}

.contract-address::after {
    content: 'Click to copy';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #e0e0e0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contract-address:hover::after {
    opacity: 1;
}

.contract-address.copied::before {
    content: 'Copied!';
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: bold;
    color: #ff6b35;
    animation: fadeOut 2s ease-in-out;
}

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

/* About Section */
.about {
    background: linear-gradient(180deg, #3d3d3d 0%, #4a4a4a 25%, #5a5a5a 50%, #6e6e6e 100%);
    padding: 120px 16px 120px 16px;
    position: relative;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
    margin-top: -70px;
}

.section-title {
    font-size: clamp(36px, 8vw, 60px);
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #ff6b35;
    letter-spacing: 4px;
    text-shadow: 3px 3px 0px #d32f2f, 6px 6px 0px rgba(0,0,0,0.4);
    animation: wiggle 4s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-1deg); }
    75% { transform: rotate(1deg); }
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(26, 26, 26, 0.9);
    padding: 50px 40px;
    border-radius: 30px;
    border: 5px solid #ff6b35;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

.about-content p {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 28px;
    line-height: 1.8;
    color: #e0e0e0;
    font-weight: normal;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* TikTok Section */
.tiktok-section {
    margin-top: 80px;
}

.subsection-title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b35;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0px #d32f2f;
}

.tiktok-description {
    font-size: clamp(16px, 2vw, 20px);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #e0e0e0;
    line-height: 1.7;
    background: rgba(26, 26, 26, 0.85);
    padding: 25px 30px;
    border-radius: 20px;
    border: 3px solid #ff6b35;
}

.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.tiktok-embed {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tiktok-embed blockquote {
    margin: 0;
}

/* Origins Section */
.origins {
    background: linear-gradient(180deg, #6e6e6e 0%, #8b4513 25%, #b8621b 50%, #d2691e 75%, #ff6b35 100%);
    padding: 120px 16px 100px 16px;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
    margin-top: -100px;
}

.memes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 60px;
}

.meme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }
    50% {
        transform: scale(1.05) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.meme-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border: 6px solid #fff;
    transition: all 0.4s ease;
}

.meme-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.meme-button {
    display: inline-block;
    padding: 20px 40px;
    background-color: #1a1a1a;
    color: #ff6b35;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 4px solid #ff6b35;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.meme-button:hover {
    background-color: #ff6b35;
    color: #1a1a1a;
    border-color: #d32f2f;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6);
}

/* Final Section */
.final {
    background: linear-gradient(180deg, #ff6b35 0%, #ff5722 25%, #e64a19 50%, #d32f2f 75%, #b71c1c 100%);
    padding: 140px 16px 120px 16px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    margin-top: -100px;
}

.cooked-content {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 40px;
    background: rgba(26, 26, 26, 0.95);
    padding: 60px 40px;
    border-radius: 50px;
    border: 6px solid #ff6b35;
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.5);
}

.large-text {
    font-size: clamp(20px, 3.5vw, 32px);
    margin-bottom: 30px;
    color: #e0e0e0;
    line-height: 1.6;
    font-weight: normal;
}

.emphasis-text {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: bold;
    color: #ff6b35;
    letter-spacing: 4px;
    margin-top: 20px;
    text-shadow: 3px 3px 0px #d32f2f;
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #b71c1c 0%, #8b0000 50%, #000000 100%);
    color: #fff;
    padding: 80px 16px 50px 16px;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 100%);
    margin-top: -80px;
}

.footer p {
    margin-bottom: 0;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
        padding: 40px 16px 80px 16px;
    }

    .about {
        padding: 100px 16px 100px 16px;
        margin-top: -50px;
    }

    .origins {
        padding: 100px 16px 100px 16px;
        margin-top: -80px;
    }

    .final {
        padding: 120px 16px 100px 16px;
        margin-top: -80px;
    }

    .footer {
        padding: 60px 16px 40px 16px;
        margin-top: -60px;
    }

    .memes-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .tiktok-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-meme {
        max-width: 250px;
    }

    .meme-image {
        max-width: 100%;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-icon svg {
        width: 24px;
        height: 24px;
    }

    .contract-address {
        padding: 18px 25px;
    }

    .ca-text {
        font-size: 13px;
    }

    .about-content {
        padding: 35px 25px;
    }

    .cooked-content {
        padding: 40px 30px;
    }

    .tiktok-section {
        margin-top: 60px;
    }

    .tiktok-description {
        padding: 20px 20px;
        margin-bottom: 40px;
    }
}

/* Fun decorative elements */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
