/* Global Styles */
:root {
    --primary-color: #3B82F6;       /* Vibrant Blue - Primary actions, buttons */
    --secondary-color: #10B981;     /* Emerald Green - Secondary actions, highlights */
    --background: #111827;          /* Dark Slate - Main background */
    --card-bg: #1F2937;             /* Slightly lighter slate - Cards, panels */
    --text-color: #F9FAFB;          /* Off-White - Main text for readability */
    --glow-intensity: 6px;          /* Strong Glow - Unchanged */
    --transition-speed: 0.3s;       /* Transition speed - Unchanged */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

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

/* Header Styles */
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.vault-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vault-ring::before {
    content: '';
    position: absolute;
    width: 80px; /* Wider for rectangular shape */
    height: 50px; /* Shorter height for rectangular aspect */
    border: 2px solid var(--primary-color);
    border-radius: 10px; /* Soft corners for a rectangular look */
    animation: ring-scan 4s infinite linear;
    box-shadow: 0 0 15px var(--primary-color);
}

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin: 0;
    padding: 10px;
    text-shadow: 0 0 10px rgba(164, 255, 0, 0.7);
}

.glow-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

@keyframes ring-scan {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 5px 10px;
    position: relative;
    overflow: hidden;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
    box-shadow: 0 0 5px var(--secondary-color);
}

nav ul li a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--background);
    background-image: url(https://i.pinimg.com/736x/aa/7d/08/aa7d08d9a48444cfaa457043d91fd866.jpg) ;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 194, 255, 0.7);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)),
        linear-gradient(90deg, rgba(164, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 194, 255, 0.1) 1px, transparent 1px);
    background-size: 100%, 20px 20px, 20px 20px;
    z-index: 1;
}

.cta-button {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 59, 130, 246), 0.2), rgba(var(--secondary-color-rgb, 16, 185, 129), 0.15)); /* Holographic gradient */
    color: var(--primary-color);
    border: 2px solid rgba(var(--primary-color-rgb, 59, 130, 246), 0.8);
    padding: 12px 30px;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 
        0 0 15px rgba(var(--primary-color-rgb, 59, 130, 246), 0.6),
        inset 0 0 20px rgba(var(--secondary-color-rgb, 16, 185, 129), 0.3); /* Holographic glow */
    transition: all var(--transition-speed, 0.3s) ease;
    animation: hologramFlicker 3s infinite ease-in-out; /* Flickering effect */
}

/* Scanning line effect */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(var(--primary-color-rgb, 59, 130, 246), 0.8), transparent);
    animation: scanLine 2s infinite linear;
}

/* Glowing particle accent */
.cta-button::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(var(--secondary-color-rgb, 16, 185, 129), 0.9), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: particleGlow 4s infinite ease-in-out;
}

/* Hover effect with 3D tilt and color shift */
.cta-button:hover {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 59, 130, 246), 0.4), rgba(var(--secondary-color-rgb, 16, 185, 129), 0.3));
    box-shadow: 
        0 0 25px rgba(var(--primary-color-rgb, 59, 130, 246), 0.8),
        inset 0 0 30px rgba(var(--secondary-color-rgb, 16, 185, 129), 0.4);
    transform: perspective(500px) rotateX(5deg) rotateY(5deg) scale(1.05); /* 3D tilt */
    color: var(--secondary-color); /* Shift to green for contrast */
}

/* Hologram flicker animation */
@keyframes hologramFlicker {
    0%, 100% {
        opacity: 0.9;
        box-shadow: 
            0 0 15px rgba(var(--primary-color-rgb, 59, 130, 246), 0.6),
            inset 0 0 20px rgba(var(--secondary-color-rgb, 16, 185, 129), 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 
            0 0 20px rgba(var(--primary-color-rgb, 59, 130, 246), 0.8),
            inset 0 0 25px rgba(var(--secondary-color-rgb, 16, 185, 129), 0.4);
    }
}

/* Scanning line animation */
@keyframes scanLine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Particle glow animation */
@keyframes particleGlow {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Age Disclaimer */
#age-disclaimer {
    padding: 40px 20px;
    background-color: rgba(30, 30, 30, 0.8);
}

.disclaimer-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--secondary-color);
    text-align: center;
}

.disclaimer-box h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 10px;
}

/* Features Section */
/* Overall section styling */
#features {
    padding: 100px 5%;
    background-color: var(--background);
    color: var(--text-color);
    overflow: hidden;
}

/* Flex container for content */
.features-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

/* Left text block */
.features-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.features-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(164, 255, 0, 0.5);
    margin-bottom: 20px;
}

.features-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

/* Right visual block */
.features-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px; /* Increased for deeper 3D effect */
}

.hologram {
    position: relative;
    width: 220px; /* Adjusted for prism proportions */
    height: 300px; /* Taller for a sleek prism look */
    transform-style: preserve-3d;
    animation: rotatePrism 12s ease-in-out infinite; /* Smoother, longer animation */
}

.hologram .face {
    position: absolute;
    width: 220px;
    height: 300px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 59, 130, 246), 0.25), rgba(var(--secondary-color-rgb, 16, 185, 129), 0.15));
    box-shadow:
        0 0 40px rgba(var(--primary-color-rgb, 59, 130, 246), 0.4),
        inset 0 0 50px rgba(var(--secondary-color-rgb, 16, 185, 129), 0.3),
        0 0 80px rgba(var(--primary-color-rgb, 59, 130, 246), 0.2);
    border: 1px solid rgba(var(--primary-color-rgb, 59, 130, 246), 0.5); /* Subtle border for definition */
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%); /* Triangular face for prism */
}

/* Position faces for triangular prism */
.hologram .face.front  { transform: translateZ(110px); } /* Adjusted for prism depth */
.hologram .face.right  { transform: rotateY(120deg) translateZ(110px); } /* 120° for triangular prism */
.hologram .face.left   { transform: rotateY(-120deg) translateZ(110px); } /* 120° for triangular prism */

@keyframes rotatePrism {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(90deg); /* Midpoint with slight tilt */
    }
    100% {
        transform: rotateY(360deg) rotateX(0deg); /* Full rotation */
    }
}

/* Games Section */
#games {
    padding: 100px 5%;
    background-color: rgba(30, 30, 30, 0.3);
}

#games h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 194, 255, 0.5);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-speed) ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 194, 255, 0.3);
    padding-bottom: 20px;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.5);
}

.game-image {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(30, 30, 30, 1) 0%, rgba(30, 30, 30, 0) 20%);
    z-index: 1;
    pointer-events: none;
}

.game-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-speed) ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-card h3 {
    padding: 20px 20px 15px;
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-color);
}

.game-button {
    display: block;
    width: 60%;
    margin: 0 auto;
    padding: 10px;
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 0 5px var(--secondary-color);
}

.game-button:hover {
    background-color: rgba(0, 194, 255, 0.1);
    color: var(--text-color);
    box-shadow: 0 0 15px var(--secondary-color);
    transform: scale(1.05);
}

/* Disclaimer Section */
#disclaimer {
    padding: 80px 5% 40px;
    background-color: var(--background);
}

.disclaimer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    text-align: center;
}

.disclaimer-container h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: rgba(18, 18, 18, 0.9);
    padding: 40px 5% 20px;
    border-top: 1px solid rgba(164, 255, 0, 0.3);
}

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

.footer-logo h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    padding: 5px 10px;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

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

/* Game Page Styles */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.game-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(164, 255, 0, 0.5);
}

.game-frame-container {
    width: 100%;
    padding: 10px;
    background-color: var(--card-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.5);
}

.game-frame {
    width: 100%;
    height: 700px;
    border: none;
}

.back-to-games {
    display: inline-block;
    margin: 30px 0;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--secondary-color);
    transition: all var(--transition-speed) ease;
}

.back-to-games:hover {
    background-color: rgba(0, 194, 255, 0.1);
    box-shadow: 0 0 15px var(--secondary-color);
    transform: scale(1.05);
}

/* Contact Page Styles */
.contact-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.contact-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(164, 255, 0, 0.5);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(18, 18, 18, 0.8);
    border: 1px solid var(--secondary-color);
    color: var(--text-color);
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
    box-shadow: 0 0 5px var(--secondary-color);
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

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

.submit-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-color);
    transition: all var(--transition-speed) ease;
    display: block;
    margin: 0 auto;
}

.submit-button:hover {
    background-color: rgba(164, 255, 0, 0.1);
    box-shadow: 0 0 20px var(--primary-color);
    transform: scale(1.05);
}

/* Terms and Privacy Pages */
.legal-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.legal-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(164, 255, 0, 0.5);
}

.legal-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.3);
}

.legal-content h2 {
    color: var(--secondary-color);
    margin: 25px 0 15px;
    border-bottom: 1px solid rgba(0, 194, 255, 0.3);
    padding-bottom: 10px;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    max-width: 400px;
    text-align: center;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 20px;
}

.close-button {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 10px 20px;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 0 5px var(--secondary-color);
    transition: all var(--transition-speed) ease;
}

.close-button:hover {
    background-color: rgba(0, 194, 255, 0.1);
    box-shadow: 0 0 15px var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 5%;
    }
    
    nav ul {
        margin-top: 15px;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features-container {
        flex-direction: column;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .game-card {
        min-width: 100%;
    }
}