@keyframes storm-drift-slow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { opacity: 0; }
}

body::after {
    content: none;
}

.cloud-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -0.5;
    object-fit: cover;
    opacity: 0.8;
    pointer-events: none;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body::before {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 30%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 20%, #2a2a2a 50%, #1a1a1a 80%, #0a0a0a 100%) !important;
    background-attachment: fixed !important;
    box-shadow: inset -40px -40px 80px rgba(255, 255, 255, 0.1), inset 40px 40px 80px rgba(0, 0, 0, 0.5);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: #d4af37;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
}

.hero-content p {
    font-size: 1.5rem;
    color: #f5f5f5;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #d4af37;
    margin-bottom: 2rem;
    font-style: italic;
}

.cta-button {
    margin-top: 1rem;
}

/* Flip Card Animation */
@keyframes flipCard {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(180deg);
    }
}

.flip-card {
    perspective: 1000px;
    margin: 1rem auto 0;
    cursor: pointer;
    display: inline-block;
}

.flip-card-inner {
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateX(180deg);
}

.flip-card-front, .flip-card-back {
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-front {
    color: #000;
    padding: 1rem 6rem;
    background: linear-gradient(135deg, #d4af37 0%, #a8860f 100%);
    border: 2px solid #d4af37;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    font-weight: bold;
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 30%),
                linear-gradient(225deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
                linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 20%, #0a0a0a 50%, #1a1a1a 80%, #2a2a2a 100%);
    color: #d4af37;
    transform: rotateX(180deg);
    padding: 1rem 6rem;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Intro Section */
.intro {
    padding: 4rem 2rem;
    background: #1a1a1a;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" result="noise" seed="2" /></filter><rect width="100" height="100" fill="%231a1a1a" filter="url(%23noise)" opacity="0.08"/></svg>');
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    position: relative;
    z-index: 1;
}

.intro h2 {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.intro p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #ddd;
    position: relative;
    z-index: 1;
}

/* Creator Code Banner */
.creator-code-banner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    padding: 12px 24px;
    margin-top: 1.5rem;
    animation: pulse-glow 3s ease-in-out infinite;
}

.creator-code-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.creator-code-banner p {
    margin: 0;
    font-size: 1.1rem;
    color: #f5f5f5;
    max-width: none;
}

.creator-code-banner strong {
    color: var(--primary-gold);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.clickable-code {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.clickable-code:hover {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    transform: scale(1.05);
}

.clickable-code:active {
    transform: scale(0.95);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: linear-gradient(135deg, #d4af37, #c5a028);
    color: #1a1a1a;
    padding: 12px 30px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
    z-index: 99;
    opacity: 1;
    transition: transform 0.4s ease;
    pointer-events: none;
    --navbar-height: 70px;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(var(--navbar-height));
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
        transform: scale(1.02);
    }
}

/* Civilizations Preview */
.civilizations-preview {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.civilizations-preview .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.civ-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(26, 26, 26, 0.8) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.civ-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    transition: all 0.6s ease;
}

.civ-card:hover {
    border-color: #d4af37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
}

.civ-card:hover::before {
    right: 0;
    top: 0;
}

.civ-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.civ-card h3 {
    margin-bottom: 0.5rem;
}

.civ-card p {
    color: #ddd;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.civ-card a {
    display: inline-block;
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.civ-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.civ-card a:hover::after {
    width: 100%;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: #1a1a1a;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" result="noise" seed="2" /></filter><rect width="100" height="100" fill="%231a1a1a" filter="url(%23noise)" opacity="0.08"/></svg>');
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid #d4af37;
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.feature h3 {
    margin-bottom: 1rem;
}

.feature p {
    color: #ddd;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}
