/* Dino Candy World - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Boogaloo&family=Quicksand:wght@400;600&display=swap');

:root {
    --green-jungle: #2D6A4F;
    --green-lime: #95D5B2;
    --orange-fossil: #F4A261;
    --parchment: #FFF8F0;
    --white: #ffffff;
    --black: #1B4332;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--parchment);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .dino-font {
    font-family: 'Boogaloo', cursive;
    color: var(--green-jungle);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--parchment);
}
::-webkit-scrollbar-thumb {
    background: var(--green-jungle);
    border-radius: 5px;
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.8rem;
}

.logo svg {
    width: 50px;
    height: 50px;
}

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

nav a {
    text-decoration: none;
    color: var(--green-jungle);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--orange-fossil);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem 5%;
    background: linear-gradient(135deg, var(--parchment) 0%, #f0ece2 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--green-jungle);
    text-shadow: 2px 2px 0px var(--green-lime);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--black);
}

.btn-explore {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--orange-fossil);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Boogaloo', cursive;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(244, 162, 97, 0.4);
}

.btn-explore:hover {
    transform: scale(1.05) rotate(-2deg);
    background: #e76f51;
}

.hero-image {
    width: 400px;
    animation: float 6s ease-in-out infinite;
}

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

/* Video Section */
.video-section {
    padding: 5rem 5%;
    background: var(--green-jungle);
    color: var(--white);
    text-align: center;
    position: relative;
}

.video-section h2 {
    color: var(--green-lime);
    font-size: 3rem;
    margin-bottom: 3rem;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 8px solid var(--green-lime);
}

video {
    width: 100%;
    display: block;
}

/* Product Grid */
.products-section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3rem;
}

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

.product-card {
    background: var(--white);
    border-radius: 25px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    cursor: pointer;
    perspective: 1000px;
}

.product-card:hover {
    border-color: var(--green-lime);
    box-shadow: 0 15px 30px rgba(45, 106, 79, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 15px;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--orange-fossil);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--green-jungle);
}

/* About Section & Countdown */
.about-section {
    padding: 5rem 5%;
    display: flex;
    gap: 4rem;
    align-items: center;
    background: #f9f6f0;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    display: block;
}

.countdown-container {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--green-jungle);
    color: var(--white);
    border-radius: 20px;
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
}

.time-val {
    font-family: 'Boogaloo', cursive;
    font-size: 2.5rem;
    line-height: 1;
}

.time-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--green-jungle);
    color: var(--white);
    padding: 4rem 5% 2rem;
    position: relative;
    margin-top: 100px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
}

.footer-links h4 {
    color: var(--green-lime);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--orange-fossil);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Dino Sprite Animation */
.dino-sprite-container {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    overflow: hidden;
}

.walking-dino {
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 60px;
    animation: walk 20s linear infinite;
}

@keyframes walk {
    0% { left: -100px; transform: scaleX(1); }
    48% { transform: scaleX(1); }
    50% { left: calc(100% + 100px); transform: scaleX(-1); }
    98% { transform: scaleX(-1); }
    100% { left: -100px; transform: scaleX(1); }
}

.footprint-divider {
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30,50 Q25,30 40,20 Q55,10 70,30 Q80,50 60,70 Q40,90 30,50' fill='%23F4A261' opacity='0.2'/%3E%3C/svg%3E");
    background-size: 80px;
    margin: 3rem 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 3.5rem; }
    .hero-image { width: 300px; margin-top: 3rem; }
    .about-section { flex-direction: column; }
}

@media (max-width: 600px) {
    header { flex-direction: column; gap: 1rem; }
    nav ul { gap: 1rem; font-size: 0.9rem; }
    .hero h1 { font-size: 2.8rem; }
}
