/* Gigglehub.digital - Cosmic Space Theme */

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

:root {
    --cosmic-purple: #6B2E8C;
    --deep-space: #0D1117;
    --nebula-blue: #4A90E2;
    --star-white: #F5F5F5;
    --galaxy-pink: #E94B8C;
    --cosmic-teal: #2DD4BF;
    --dark-matter: #1A1D29;
    --aurora-green: #34D399;
    --text-light: #E5E7EB;
    --shadow: rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Tahoma', 'Geneva', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--deep-space) 0%, var(--dark-matter) 100%);
    min-height: 100vh;
    padding-top: 100px; /* Added padding for new header */
    padding-bottom: 20px; /* Added padding for footer */
}

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

/* Header & Navigation - Modern Floating Design */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    z-index: 1000;
    
    background: rgba(13, 17, 23, 0.6); /* Semi-transparent deep-space */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    backdrop-filter: blur(10px);
    
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    padding: 10px 0;
    transition: top 0.3s ease;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--star-white);
    text-decoration: none;
    text-shadow: 2px 2px 4px var(--shadow);
    letter-spacing: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--star-white);
    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(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    color: var(--star-white);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: block;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-menu li a.active {
    background: linear-gradient(135deg, var(--galaxy-pink) 0%, var(--cosmic-teal) 100%);
    font-weight: bold;
}

/* Hero Section */
.hero {
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--nebula-blue);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.7);
    z-index: 1;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--star-white);
    text-shadow: 3px 3px 8px var(--shadow);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--galaxy-pink) 0%, var(--cosmic-purple) 100%);
    color: var(--star-white);
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--cosmic-teal);
    box-shadow: 0 6px 15px rgba(233, 75, 140, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(233, 75, 140, 0.6);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--cosmic-teal);
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--cosmic-teal);
}

.btn-secondary:hover {
    background: var(--cosmic-teal);
    color: var(--deep-space);
    transform: translateY(-2px);
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid var(--galaxy-pink);
    border-bottom: 3px solid var(--galaxy-pink);
    box-shadow: 0 4px 12px var(--shadow);
}

.disclaimer-banner .container {
    max-width: 900px;
}

.disclaimer-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.disclaimer-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--star-white);
}

.disclaimer-banner p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Game Section */
.game-section {
    padding: 60px 0;
    background: var(--dark-matter);
}

.game-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--star-white);
    text-shadow: 2px 2px 4px var(--shadow);
}

.game-content {
    margin-bottom: 35px;
}

.game-frame {
    width: 100%;
    max-width: 900px;
    height: 506px;
    border: 4px solid var(--galaxy-pink);
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--deep-space);
    box-shadow: 0 8px 25px var(--shadow);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-matter) 0%, var(--deep-space) 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--star-white);
    text-shadow: 2px 2px 4px var(--shadow);
}

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

/* Reviews Section */
.reviews-section {
    padding: 60px 0;
    background: var(--deep-space);
}

.reviews-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--star-white);
    text-shadow: 2px 2px 4px var(--shadow);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--dark-matter) 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--nebula-blue);
    box-shadow: 0 6px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-stars {
    color: var(--galaxy-pink);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.7;
}

.reviewer-name {
    font-weight: bold;
    color: var(--cosmic-teal);
    text-align: right;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--dark-matter) 100%);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--star-white);
    text-shadow: 2px 2px 4px var(--shadow);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--nebula-blue);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(5px); /* For Safari */
    backdrop-filter: blur(5px);
}

.feature-box:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--cosmic-teal);
}

.feature-box p {
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: var(--dark-matter);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--star-white);
    text-shadow: 2px 2px 4px var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--cosmic-teal);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--nebula-blue);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--star-white);
    font-size: 1rem;
    font-family: 'Tahoma', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cosmic-teal);
    background: rgba(45, 212, 191, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.checkbox-label a {
    color: var(--cosmic-teal);
    text-decoration: underline;
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.form-message.success {
    background: rgba(52, 211, 153, 0.2);
    border: 2px solid var(--aurora-green);
    color: var(--aurora-green);
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px solid var(--nebula-blue);
}

.info-icon {
    font-size: 2rem;
}

.info-item h3 {
    color: var(--cosmic-teal);
    margin-bottom: 8px;
}

/* Footer - Modern Floating Design */
.footer {
    background: rgba(13, 17, 23, 0.6); /* Semi-transparent deep-space */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    backdrop-filter: blur(10px);
    
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    padding: 40px 0 20px;
    margin: 60px auto 0;
    max-width: 1200px;
}

.footer .container {
    padding: 0 30px; /* Inner padding for content */
}

.footer-disclaimer {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(233, 75, 140, 0.1);
    border: 1px solid var(--galaxy-pink);
    border-radius: 10px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--cosmic-teal);
}

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

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

.footer-section ul li {
    margin-bottom: 10px;
}

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

.footer-section ul a:hover {
    color: var(--cosmic-teal);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--galaxy-pink) 0%, var(--cosmic-purple) 100%);
    color: var(--star-white);
    border: 2px solid var(--cosmic-teal);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(233, 75, 140, 0.5);
    z-index: 999;
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    box-shadow: 0 8px 25px rgba(233, 75, 140, 0.6);
}

/* Age Confirmation Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.popup-content {
    background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--dark-matter) 100%);
    padding: 40px;
    border-radius: 18px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    border: 4px solid var(--galaxy-pink);
    box-shadow: 0 10px 40px rgba(233, 75, 140, 0.5);
    animation: popupSlide 0.4s ease;
}

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

.popup-content h2 {
    color: var(--star-white);
    margin-bottom: 20px;
    font-size: 2rem;
    text-shadow: 2px 2px 4px var(--shadow);
}

.popup-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 5px 0;
        width: 90%;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 85px; /* Adjust based on header height */
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100% - 40px);
        
        flex-direction: column;
        background: rgba(13, 17, 23, 0.9);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        
        padding: 20px;
        gap: 15px;
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) translateX(-50%);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) translateX(-50%);
    }

    .nav-menu li a {
        padding: 12px;
        text-align: center;
        font-size: 1.1rem;
    }

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

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

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

    .about-image {
        grid-row: 1;
        height: 250px;
    }

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

    .game-frame {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 90px;
    }

    .header {
        top: 15px;
    }

    .nav-menu {
        top: 75px;
    }

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

    .btn-primary, .btn-secondary {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .popup-buttons {
        flex-direction: column;
    }
     .game-frame {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
