/* --- Reset & Base Styles --- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

html {
    scroll-behavior: smooth; /* For smoother #link scrolling */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0D0C1D; /* Even darker, richer background */
    color: #E0E0E0;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: #BF55EC; /* Brighter Purple */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px; /* Slightly larger radius for images */
    display: block; /* Prevents bottom space */
}

h1, h2, h3, h4 {
    margin-bottom: 0.8em;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3); /* Subtle text shadow for depth */
}

h1 { font-size: clamp(2.5em, 5vw, 3.8em); } /* Responsive font size */
h2 { font-size: clamp(2em, 4vw, 3em); }
h3 { font-size: clamp(1.5em, 3vw, 2.2em); }

section {
    padding: 80px 0; /* Increased padding */
    text-align: center;
    overflow: hidden; /* For scroll animations */
}

.logoTitle {
    display: block;
    margin: 0 auto;
    height: 80px;
    width: auto;
}

/* NEW: Animation utility classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(19, 18, 29, 0.85); /* Slightly transparent */
    padding: 15px 0;
    border-bottom: 1px solid #2a2640; /* Adjusted border color */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px); /* Frosted glass effect */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: inline-block; /* Ensures proper block behavior for the link */
    text-shadow: none; /* Remove text-specific shadow if it was there */
}

header .logo img {
    height: 50px; /* Adjust this value to your logo's desired height */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Removes any extra space below the image */
    transition: transform 0.3s ease; /* Optional: for hover effect */
}

header .logo:hover img {
    transform: scale(1.05); /* Optional: slight zoom on hover */
}

header nav ul {
    display: flex;
    align-items: center;
}

header nav ul li {
    margin-left: 30px; /* Increased spacing */
}

header nav ul li a {
    color: #E0E0E0;
    font-weight: 600; /* Slightly bolder */
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 8px 0;
    position: relative; /* For underline animation */
}
header nav ul li a::after { /* Underline animation */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4FD1C5; /* Teal accent */
    transition: width 0.3s ease-in-out;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #FFFFFF;
    text-shadow: 0 0 5px #4FD1C5; /* Teal glow on hover/active */
}

/* --- Buttons (Inspired by Screenshot) --- */
.btn {
    display: inline-block;
    padding: 14px 32px; /* Slightly larger */
    letter-spacing: 1px; /* More spacing */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden; /* For ripple/shine effect */
    z-index: 1;
}

.btn-primary {
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.05); /* More interactive hover */
}

.btn-secondary {
}
.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
}

/* NEW: Button shine effect */
.btn::before {
}
.btn:hover::before {
    left: 100%;
}


/* --- Hero Section --- */
.hero {
    /* Using a darker overlay, consider adding game art here */
    background: linear-gradient(rgba(13, 12, 29, 0.9), rgba(13, 12, 29, 0.95)), url('images/hero-bg-stylized.jpg') no-repeat center center/cover;
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Account for fixed header */
    color: #FFFFFF;
    position: relative; /* For potential pseudo-elements or overlays */
}
/* Optional: subtle particle/animated background effect (can be complex) */
/* .hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('images/particles.png') repeat; // a subtle repeating pattern
    opacity: 0.05;
    animation: moveParticles 60s linear infinite;
}
@keyframes moveParticles {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 500px; }
} */

.hero-content {
    max-width: 800px; /* Wider content for hero */
}

.hero-content h1 {
    font-size: clamp(2.8em, 6vw, 4.5em); /* Even larger hero title */
    margin-bottom: 0.4em;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(191, 85, 236, 0.7), 0 0 20px rgba(191, 85, 236, 0.5); /* Purple glow */
    animation: fadeInDown 1s ease-out; /* NEW: Animation */
}

.hero-content .subtitle {
    font-size: clamp(1.1em, 2.5vw, 1.5em);
    margin-bottom: 2em; /* More space before buttons */
    color: #C0C0C0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.3s; /* NEW: Animation (delayed) */
    animation-fill-mode: backwards; /* Apply styles before animation starts */
}

.hero-content .btn { /* Animate buttons */
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: backwards;
}

.hero-content .btn.btn-secondary img {
    height: 48px;
    width: auto;
    display: block;
    border-radius: 7px;
}

.hero-content .btn.btn-primary img {
    height: 52px;
    width: auto;
    display: block;
    border-radius: 7px;
}

/* NEW: Keyframe animations for hero text */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Content Blocks (like app sections) --- */
.content-block {
    background-color: rgba(26, 26, 36, 0.7); /* Slightly transparent cards */
    padding: 35px;
    border-radius: 20px; /* More rounded */
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3); /* Softer, deeper shadow */
    text-align: left;
    border: 1px solid rgba(138, 43, 226, 0.2); /* Subtle purple border */
    backdrop-filter: blur(5px); /* Frosted glass for content blocks */
}

.content-block h3 {
    color: #BF55EC;
    margin-top: 0;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(191, 85, 236, 0.5);
}

/* --- Features Section --- */
#features h2, #about h2, #gallery h2, .stats-section h2 { /* Section titles styling */
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(191, 85, 236, 0.6);
    margin-bottom: 50px; /* More space below section titles */
}

#features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Slightly larger cards */
    gap: 35px; /* Increased gap */
    margin-top: 40px;
}

.feature-card {
    background-color: #1A1A2C; /* Darker card, closer to screenshot */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #302a4d; /* Darker purple border */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03); /* More pronounced hover */
    box-shadow: 0 12px 35px rgba(138, 43, 226, 0.3), 0 0 15px rgba(79, 209, 197, 0.2); /* Dual color glow */
}

.feature-card .icon {
    font-size: 3em; /* Larger icons */
    color: #4FD1C5;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(79, 209, 197, 0.5); /* Teal glow for icons */
    transition: transform 0.3s ease;
}
.feature-card:hover .icon {
    transform: scale(1.1) rotate(-5deg); /* Icon animation on card hover */
}

.feature-card h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.feature-card p {
    font-size: 0.95em;
    color: #A0A0C0; /* Slightly bluer grey */
}

/* --- Stats Section (Inspired by screenshot) --- */
.stats-section {
    background-color: rgba(26, 26, 36, 0.7); /* Consistent with content blocks */
    padding: 40px;
    border-radius: 20px;
    margin: 60px auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(5px);
}

.stats-section h2 {
    color: #fff;
    margin-bottom: 40px;
}

.stat-item {
    margin-bottom: 30px;
}

.stat-item .stat-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1em; /* Slightly larger label */
    font-weight: 600;
    color: #D0D0FF; /* Lighter, slightly bluer */
}
.stat-item .stat-label .fas { /* Icon color in label */
    margin-right: 8px;
    transition: transform 0.3s ease;
}
.stat-item:hover .stat-label .fas {
    transform: scale(1.2);
}

.stat-bar-container {
    width: 100%;
    background-color: #302a4d; /* Darker purple base */
    border-radius: 25px;
    height: 22px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4); /* Inner shadow for depth */
}

.stat-bar {
    height: 100%;
    border-radius: 25px; /* Fully rounded to match container */
    color: #0D0C1D;
    font-weight: bold;
    font-size: 0.8em;
    transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother animation */
    display: flex; /* For aligning text inside */
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

/* Setting initial width to 0 for animation on reveal */
.stat-bar.popularity, .stat-bar.inspiration, .stat-bar.reputation {
    width: 0;
}

.stat-bar.popularity.visible { background: linear-gradient(to right, #39FF14, #29C70A); } /* Neon Green gradient */
.stat-bar.inspiration.visible { background: linear-gradient(to right, #39FF14, #29C70A); }
.stat-bar.reputation.visible { background: linear-gradient(to right, #FFFF33, #E6E600); } /* Neon Yellow gradient */

/* --- NEW: Screenshot Gallery Section --- */
#gallery {
    background-color: #121023; /* Slightly different dark shade for variety */
}

#gallery h2 {
    margin-bottom: 50px;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the container */
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(138, 43, 226, 0.4);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay { /* Optional: Overlay for text or icons on hover */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 12, 29, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    padding: 20px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}
.gallery-item .overlay h4 {
    margin-bottom: 10px;
    font-size: 1.5em;
}
.gallery-item .overlay p {
    font-size: 0.9em;
}


/* --- Footer --- */
footer {
    background-color: #0A0916; /* Even darker footer */
    color: #888899; /* Bluer grey */
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #2a2640;
    margin-top: 60px;
}

footer ul {
    margin-top: 15px;
}

footer ul li {
    display: inline-block;
    margin: 0 15px;
}

footer ul li a {
    color: #A0A0B0;
    font-size: 0.95em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer ul li a:hover {
    color: #BF55EC;
    text-shadow: 0 0 5px #BF55EC;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content h1 { font-size: clamp(2.5em, 7vw, 3.5em); }
    .hero-content .subtitle { font-size: clamp(1em, 3vw, 1.3em); }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center;
    }
    header nav ul li {
        margin: 5px 10px; /* Adjust spacing for wrapped items */
    }
    .features-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    section {
        padding: 60px 0;
    }
    .hero { min-height: 80vh; }
}

/* --- Specific Page Styles (Privacy/TOS) --- */
.legal-content {
    padding-top: 120px;
    min-height: 70vh;
}
.legal-content .content-block {
    margin-top: 30px;
    background-color: rgba(20, 18, 30, 0.8); /* Slightly different for legal pages */
}
.legal-content h1 {
    text-align: center;
    color: #BF55EC;
    text-shadow: 0 0 8px rgba(191, 85, 236, 0.6);
}
.legal-content p, .legal-content ul li {
    color: #C0C0D0;
    margin-bottom: 1em;
    line-height: 1.8;
}
.legal-content h2, .legal-content h3 {
    color: #FFFFFF;
    margin-top: 1.5em;
}

.ch-img {
    height: 700px; /* Adjust this value to your logo's desired height */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Removes any extra space below the image */
    transition: transform 0.3s ease; /* Optional: for hover effect */
}