:root {
    --primary-color: #FF6B9C;
    --secondary-color: #FFB6C1;
    --accent-color: #FFD700;
    --text-color: #333;
    --background-color: #FFF5F7;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glow-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 182, 193, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.main-container {
    position: relative;
    z-index: 1;
}

.logo-container {
    position: relative;
    padding: 2rem;
}

.game-title {
    font-family: 'Righteous', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-top: 1rem;
}

.countdown-container {
    margin: 2rem 0;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.countdown-label {
    font-size: 1rem;
    color: var(--text-color);
}

.cta-section {
    margin: 2rem 0;
}

.cta-text {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    animation: float 6s infinite ease-in-out;
}

.element-1 { top: 10%; left: 10%; animation-delay: 0s; }
.element-2 { top: 20%; right: 15%; animation-delay: 1s; }
.element-3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.element-4 { bottom: 20%; right: 25%; animation-delay: 3s; }
.element-5 { top: 40%; left: 50%; animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .game-title {
        font-size: 2.5rem;
    }
    
    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
}

/* Page Header */
.page-header {
    margin-bottom: 3rem;
    opacity: 1;
    transform: none;
}

.page-header h1 {
    font-family: 'Fredoka One', cursive;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.page-header p {
    font-family: 'Poppins', sans-serif;
    color: var(--accent-color);
}

/* Page Title */
.page-title {
    font-family: 'Righteous', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Close Button */
.close-button {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.close-button:hover {
    transform: rotate(90deg);
    color: var(--secondary-color);
}

/* Privacy and Terms Sections */
.privacy-section, .terms-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.privacy-section:hover, .terms-section:hover {
    transform: translateY(-5px);
}

.privacy-section h2, .terms-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.privacy-section p, .terms-section p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-section ul, .terms-section ul {
    list-style-type: none;
    padding-left: 0;
}

.privacy-section ul li, .terms-section ul li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.privacy-section ul li:before, .terms-section ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Contact Form Styles */
.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form-container .input-group {
    background: #ffffff !important;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-form-container .input-group:focus-within {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.contact-form-container .input-group-text {
    background: #ff6b6b !important;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
}

.contact-form-container .form-control {
    background: #ffffff !important;
    border: none;
    color: #2c3e50 !important;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.contact-form-container .form-control:focus {
    background: #ffffff !important;
    color: #2c3e50 !important;
    box-shadow: none;
}

.contact-form-container .form-control::placeholder {
    color: #95a5a6 !important;
    font-weight: 400;
    opacity: 1 !important;
}

.contact-form-container textarea.form-control {
    background: #ffffff !important;
    color: #2c3e50 !important;
    min-height: 120px;
    resize: vertical;
}

.contact-form-container textarea.form-control::placeholder {
    color: #95a5a6 !important;
    font-weight: 400;
    opacity: 1 !important;
}

.submit-button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-radius: 15px;
    padding: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .privacy-section, .terms-section, .contact-form-container {
        padding: 1.5rem;
    }
    
    .privacy-section h2, .terms-section h2 {
        font-size: 1.5rem;
    }
}

/* Contact Page Styles */
.contact-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.contact-info-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00ffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    contain: layout;
    will-change: transform;
}

.contact-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.form-wrapper {
    padding: 1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.input-icon {
    padding: 0.75rem 1rem;
    color: #00ffff;
    font-size: 1.2rem;
}

.form-control {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.75rem 1rem;
    width: 100%;
}

.form-control:focus {
    background: transparent;
    box-shadow: none;
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.submit-button {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    contain: layout;
    will-change: transform;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-button:hover::before {
    transform: translateX(100%);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.submit-button:disabled {
    background: linear-gradient(45deg, #666, #999);
    transform: none;
    box-shadow: none;
}

.success-message {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.success-content i {
    font-size: 2rem;
    color: #28a745;
}

.success-text h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.success-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-info-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .form-wrapper {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .contact-info-card,
    .contact-form-container {
        padding: 1rem;
    }

    .submit-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* Performance Optimizations */
.privacy-content, .terms-content {
    contain: content;
    will-change: transform;
    opacity: 1;
}

.privacy-section, .terms-section {
    contain: content;
    will-change: transform;
    opacity: 1;
}

/* Optimize Background */
body {
    contain: layout;
    will-change: transform;
    opacity: 1;
}

.particles-container {
    contain: layout;
    will-change: transform;
}

/* Optimize Content Loading */
.privacy-section, .terms-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.privacy-section.visible, .terms-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optimize Images and Icons */
.contact-icon {
    contain: layout;
    will-change: transform;
}

/* Optimize Lists */
ul {
    contain: content;
    opacity: 1;
}

/* Optimize Buttons */
.submit-button {
    contain: layout;
    will-change: transform;
}

/* Optimize Contact Card */
.contact-card {
    contain: layout;
    will-change: transform;
    opacity: 1;
}

/* Ensure content visibility */
.page-header {
    opacity: 1;
    transform: none;
}

.game-title, .tagline {
    opacity: 1;
    transform: none;
}

/* Optimize animations */
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Ensure content is visible during loading */
.privacy-section h2,
.privacy-section p,
.privacy-section ul,
.terms-section h2,
.terms-section p,
.terms-section ul {
    opacity: 1;
    transform: none;
}

/* Contact Info Styles */
.contact-info {
    margin-top: 3rem;
    text-align: center;
}

.contact-info p {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-card i {
    color: #ff6b6b;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.email-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #ff6b6b;
} 