/* FunPalsly.com - Modern Gaming Theme with Vibrant Gradients */

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

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-bg: #1A1A2E;
    --light-bg: #16213E;
    --text-light: #EAEAEA;
    --text-dark: #0F3460;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--dark-bg) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border-bottom: 2px solid var(--primary-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: var(--accent-color);
    background: rgba(255, 107, 107, 0.2);
}

.nav-menu a.active {
    color: var(--accent-color);
    background: rgba(255, 230, 109, 0.2);
    border-bottom: 2px solid var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: url('hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.85) 0%, 
        rgba(22, 33, 62, 0.75) 50%, 
        rgba(255, 107, 107, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 230, 109, 0.2);
    color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 2px solid var(--accent-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
    line-height: 1.2;
}

.brand-highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(78, 205, 196, 0.2);
    color: var(--secondary-color);
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--secondary-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(78, 205, 196, 0.3);
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-outline {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.floating-2 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-3 {
    bottom: 30%;
    left: 25%;
    animation-delay: 4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #FF5252;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: linear-gradient(135deg, #FF6B6B 0%, #C44569 100%);
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.disclaimer-banner h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.disclaimer-banner p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.8;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #FFD93D;
    transform: translateY(-2px);
}

/* Game Section */
.game-section {
    background: var(--light-bg);
    padding: 4rem 0;
    margin: 3rem 0;
    border-radius: 15px;
}

.game-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.game-frame {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    border: 3px solid var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
    display: block;
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
}
    /* Ensure about image fits its frame */
    .about-image img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        border-radius: 12px;
        object-fit: contain;
        display: block;
    }

/* Reviews Section */
.reviews-section {
    padding: 4rem 0;
    background: var(--light-bg);
    margin: 3rem 0;
    border-radius: 15px;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

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

.review-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.review-rating {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.review-author {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-box {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--dark-bg) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    border-color: var(--secondary-color);
}

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

.feature-box h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Content Pages */
.content-page {
    padding: 4rem 0;
    min-height: 70vh;
}

.content-page h1 {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.content-section {
    background: var(--light-bg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.9;
}

.content-section ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

.contact-info h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0A0A15 100%);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-color);
}

.footer-disclaimer {
    background: rgba(255, 107, 107, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--primary-color);
    text-align: center;
}

.footer-disclaimer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section ul {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--light-bg);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--dark-bg) 100%);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 15px 50px rgba(255, 107, 107, 0.5);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-content h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.popup-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.popup-buttons {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light-bg);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        display: none;
        border-top: 2px solid var(--primary-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .popup-content {
        width: 95%;
        padding: 2rem;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.5rem; }
}
