@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Outfit:wght@400;500;700&display=swap');

:root {
    --bg: #10201A;
    --surface: #1B3328;
    --dino-green: #5DD46B;
    --jungle-green: #3FA05A;
    --volcano-orange: #FF8745;
    --amber-gold: #F3C95D;
    --sky-blue: #69C8FF;
    --text-primary: #F8FFF8;
    --text-secondary: #D7E7D7;
    
    --footer-bg: #172B22;
    --bottom-bg: #0B1511;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--dino-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--amber-gold);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--amber-gold);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    color: var(--dino-green);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Header */
header {
    background-color: rgba(16, 32, 26, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--surface);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dino-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--amber-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--volcano-orange);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--volcano-orange), #ff5e00);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 135, 69, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 135, 69, 0.6);
    color: #fff;
}

.btn-secondary {
    background: var(--surface);
    color: var(--dino-green);
    border: 2px solid var(--dino-green);
}

.btn-secondary:hover {
    background: var(--dino-green);
    color: var(--bg);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(63, 160, 90, 0.1) 0%, transparent 50%);
    z-index: -1;
}

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

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

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

.hero-image-wrapper {
    position: relative;
    border-radius: 30px;
    padding: 10px;
    background: linear-gradient(135deg, var(--dino-green), var(--amber-gold));
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: rotate(2deg);
}

.hero-image {
    border-radius: 20px;
    width: 100%;
    height: auto;
    display: block;
}

/* Game Section */
.game-section {
    padding: 4rem 0;
    background-color: var(--surface);
    position: relative;
}

.game-wrapper {
    width: 75%;
    margin: 0 auto;
    background: var(--bg);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 3px solid var(--amber-gold);
}

.game-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

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

.feature-card {
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(93, 212, 107, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--dino-green);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.feature-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.feature-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-img-container img {
    transform: scale(1.05);
}

.feature-content {
    padding: 2rem;
}

.feature-content h3 {
    color: var(--sky-blue);
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--surface);
    text-align: center;
}

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

/* FAQ Section */
.faq {
    padding: 6rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

details {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

summary {
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    color: var(--amber-gold);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

/* Footer completely redesigned to DINO STYLE */
footer {
    margin-top: 6rem;
    position: relative;
}

.footer-top-banner {
    background: url('images/dino-scales-texture-bg.jpg') center/cover, linear-gradient(135deg, var(--jungle-green), var(--volcano-orange));
    background-blend-mode: soft-light;
    text-align: center;
    padding: 3rem 1rem;
    border-top: 10px solid var(--amber-gold);
    border-bottom: 5px dashed var(--bg);
    position: relative;
}

.footer-top-banner h2 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-shadow: 4px 4px 0px var(--jungle-green), -2px -2px 0px var(--volcano-orange);
    letter-spacing: 3px;
    transform: rotate(-1deg);
    display: inline-block;
}

.footer-top-banner p {
    color: var(--amber-gold);
    font-weight: 700;
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    margin: 0;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.main-footer {
    background-color: var(--footer-bg);
    background-image: url('images/dinosaur-footprints-pattern.png');
    background-size: 150px;
    padding: 6rem 0 4rem 0;
    position: relative;
}

.footer-mascot {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
    border-radius: 50%;
    background: var(--bg);
    border: 5px solid var(--amber-gold);
    padding: 10px;
}

.footer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.footer-card {
    background-color: var(--surface);
    background-image: linear-gradient(180deg, rgba(93, 212, 107, 0.05) 0%, transparent 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 3px solid var(--jungle-green);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), inset 0 0 20px rgba(93, 212, 107, 0.1);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.footer-card:hover {
    transform: translateY(-10px);
    border-color: var(--amber-gold);
}

.footer-card::before {
    content: '🍃';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 2.5rem;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
}

.footer-card:nth-child(2)::before {
    content: '🐾';
}

.footer-card:nth-child(3)::before {
    content: '🌋';
}

.footer-card h3 {
    color: var(--amber-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.footer-card ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-card a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    display: inline-block;
}

.footer-card a:hover {
    color: var(--dino-green);
    padding-left: 10px;
}

.footer-support {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--jungle-green);
}

.footer-support p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: bold;
}

.footer-bottom {
    background-color: var(--bottom-bg);
    background-image: url('images/dark-jungle-leaves-texture.png');
    background-blend-mode: overlay;
    border-top: 3px solid var(--jungle-green);
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* Legal Pages Standard Layout */
.page-header {
    background: linear-gradient(rgba(16, 32, 26, 0.8), rgba(27, 51, 40, 0.9)), url('images/prehistoric-jungle-bg.jpg') center/cover;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 4px solid var(--dino-green);
}

.page-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    text-align: left;
    margin-top: 2rem;
    color: var(--sky-blue);
}

/* Responsive */
@media (max-width: 1024px) {
    .game-wrapper {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        transform: rotate(0);
        max-width: 500px;
        margin: 0 auto;
    }

    .nav-links {
        display: none; /* simple mobile behavior */
    }

    .game-wrapper {
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    h1 {
        font-size: 2.5rem;
    }
}