/* ============================================
   DreamTales Website Styles
   ============================================ */

/* CSS Variables */
:root {
    --navy-dark: #0E1630;
    --navy-medium: #111C3D;
    --navy-light: #1A2749;
    --gold: #F4C15D;
    --gold-light: #F8D17A;
    --gold-dark: #D4A84A;
    --text-primary: #E8E8E8;
    --text-secondary: #B8B8B8;
    --text-muted: #888888;
    --green-soft: #7FB3A8;
    --turquoise-soft: #6BC4C4;
    --rose-soft: #D4A5A5;
    --shadow-soft: rgba(0, 0, 0, 0.3);
    --shadow-glow: rgba(244, 193, 93, 0.3);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--navy-dark);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: rgba(17, 28, 61, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-nav .logo {
    animation: gentleGlow 4s ease-in-out infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
    background-color: rgba(244, 193, 93, 0.1);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark) !important;
    padding: var(--spacing-xs) var(--spacing-md) !important;
    font-weight: 600;
    border-radius: var(--border-radius-small);
    animation: buttonGlow 4s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(244, 193, 93, 0.4), 0 0 30px rgba(244, 193, 93, 0.2);
    }
    50% {
        box-shadow: 0 6px 30px rgba(244, 193, 93, 0.6), 0 0 40px rgba(244, 193, 93, 0.4), 0 0 50px rgba(244, 193, 93, 0.2);
    }
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 8px 40px rgba(244, 193, 93, 0.7), 0 0 50px rgba(244, 193, 93, 0.5);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--spacing-xl) var(--spacing-md);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 50%, var(--navy-dark) 100%);
    z-index: -2;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(244, 193, 93, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(244, 193, 93, 0.1), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(244, 193, 93, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(244, 193, 93, 0.15), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(244, 193, 93, 0.1), transparent);
    background-size: 200% 200%;
    animation: twinkle 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Sparkling Effect */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(244, 193, 93, 1) 0%, rgba(244, 193, 93, 0.7) 40%, rgba(244, 193, 93, 0.3) 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(244, 193, 93, 0.8), 0 0 20px rgba(244, 193, 93, 0.5), 0 0 30px rgba(244, 193, 93, 0.3);
    animation: floatSparkle 8s ease-in-out infinite;
    opacity: 0;
    z-index: 2;
}

.sparkle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.sparkle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 12s;
}

.sparkle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.sparkle:nth-child(4) {
    left: 40%;
    animation-delay: 0.5s;
    animation-duration: 11s;
}

.sparkle:nth-child(5) {
    left: 50%;
    animation-delay: 1.5s;
    animation-duration: 13s;
}

.sparkle:nth-child(6) {
    left: 60%;
    animation-delay: 2.5s;
    animation-duration: 10s;
}

.sparkle:nth-child(7) {
    left: 70%;
    animation-delay: 0.8s;
    animation-duration: 11s;
}

.sparkle:nth-child(8) {
    left: 80%;
    animation-delay: 1.8s;
    animation-duration: 12s;
}

.sparkle:nth-child(9) {
    left: 90%;
    animation-delay: 2.2s;
    animation-duration: 9s;
}

.sparkle:nth-child(10) {
    left: 15%;
    animation-delay: 3s;
    animation-duration: 14s;
}

.sparkle:nth-child(11) {
    left: 25%;
    animation-delay: 0.3s;
    animation-duration: 10s;
}

.sparkle:nth-child(12) {
    left: 35%;
    animation-delay: 1.3s;
    animation-duration: 11s;
}

.sparkle:nth-child(13) {
    left: 45%;
    animation-delay: 2.3s;
    animation-duration: 12s;
}

.sparkle:nth-child(14) {
    left: 55%;
    animation-delay: 0.7s;
    animation-duration: 9s;
}

.sparkle:nth-child(15) {
    left: 65%;
    animation-delay: 1.7s;
    animation-duration: 13s;
}

.sparkle:nth-child(16) {
    left: 5%;
    animation-delay: 0.2s;
    animation-duration: 11s;
}

.sparkle:nth-child(17) {
    left: 12%;
    animation-delay: 1.2s;
    animation-duration: 10s;
}

.sparkle:nth-child(18) {
    left: 18%;
    animation-delay: 2.2s;
    animation-duration: 12s;
}

.sparkle:nth-child(19) {
    left: 22%;
    animation-delay: 0.4s;
    animation-duration: 9s;
}

.sparkle:nth-child(20) {
    left: 28%;
    animation-delay: 1.4s;
    animation-duration: 13s;
}

.sparkle:nth-child(21) {
    left: 33%;
    animation-delay: 2.4s;
    animation-duration: 10s;
}

.sparkle:nth-child(22) {
    left: 38%;
    animation-delay: 0.6s;
    animation-duration: 11s;
}

.sparkle:nth-child(23) {
    left: 43%;
    animation-delay: 1.6s;
    animation-duration: 12s;
}

.sparkle:nth-child(24) {
    left: 48%;
    animation-delay: 2.6s;
    animation-duration: 9s;
}

.sparkle:nth-child(25) {
    left: 52%;
    animation-delay: 0.9s;
    animation-duration: 14s;
}

@keyframes floatSparkle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) translateX(20px) scale(1.2);
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) translateX(40px) scale(0);
        opacity: 0;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 0;
}

.hero-owl {
    position: relative;
    width: 250px;
    max-width: 80%;
    margin: 0 auto var(--spacing-md);
    z-index: 0;
    opacity: 0.75;
    filter: brightness(0.95) contrast(0.9);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.owl-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--spacing-md);
    color: var(--gold);
    line-height: 1.2;
    animation: gentleGlow 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.hero-video-mobile {
    display: none;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.device-mockup {
    position: relative;
    max-width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--shadow-glow);
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-soft);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    box-shadow: 0 4px 20px var(--shadow-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 6px 30px var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(244, 193, 93, 0.2);
}

.btn-secondary:hover {
    background: rgba(244, 193, 93, 0.1);
    box-shadow: 0 6px 25px rgba(244, 193, 93, 0.3);
    transform: translateY(-2px);
}

.btn-download {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.1rem;
    box-shadow: 0 6px 30px var(--shadow-glow);
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 8px 40px var(--shadow-glow);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--gold);
}

.about-section .section-title {
    animation: gentleGlow 4s ease-in-out infinite;
}

.why-section .section-title {
    animation: gentleGlow 4s ease-in-out infinite;
}

.stories-section .section-title {
    animation: gentleGlow 4s ease-in-out infinite;
}

.download-title {
    animation: gentleGlow 4s ease-in-out infinite;
}

.section-intro {
    text-align: center;
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    color: var(--text-secondary);
}

.section-tagline {
    text-align: center;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: var(--spacing-lg);
}

/* About Section */
.about-section {
    background-color: var(--navy-medium);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.about-text {
    max-width: 100%;
    margin-bottom: 0;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-text {
    animation: fadeInUpText 0.8s ease-out forwards;
}

.fade-in-text:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in-text:nth-child(2) {
    animation-delay: 0.3s;
}

.fade-in-text:nth-child(3) {
    animation-delay: 0.5s;
}

.fade-in-text:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes fadeInUpText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.feature-card {
    background: rgba(26, 39, 73, 0.5);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid rgba(244, 193, 93, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.fade-in-card {
    animation: fadeInRightCard 0.8s ease-out forwards;
}

.fade-in-card:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in-card:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInRightCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    background: rgba(26, 39, 73, 0.7);
    border-color: rgba(244, 193, 93, 0.3);
    transform: translateY(-5px) translateX(0);
    box-shadow: 0 10px 30px var(--shadow-soft), 0 0 20px rgba(244, 193, 93, 0.1);
}

.feature-card h3 {
    color: var(--gold);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Stories Section */
.stories-section {
    background-color: var(--navy-dark);
}

/* Categories Carousel */
.categories-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: var(--spacing-lg) auto;
    padding: 0 var(--spacing-md);
    background-color: #0A1633;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
}

.categories-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-md);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.category-card {
    flex: 0 0 calc(33.333% - var(--spacing-md) * 2 / 3);
    min-width: 0;
    border-radius: var(--border-radius-small);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 130px;
    margin: 0 auto;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.category-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-small);
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(244, 193, 93, 0.2);
    border: 2px solid rgba(244, 193, 93, 0.4);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(244, 193, 93, 0.3);
    border-color: rgba(244, 193, 93, 0.6);
    box-shadow: 0 0 20px rgba(244, 193, 93, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: var(--spacing-sm);
}

.carousel-btn-next {
    right: var(--spacing-sm);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Example Stories Section */
.example-stories {
    margin-top: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.example-story {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: start;
    background: var(--navy-medium);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    border: 1px solid rgba(244, 193, 93, 0.1);
    transition: all 0.3s ease;
}

.example-story:hover {
    border-color: rgba(244, 193, 93, 0.3);
    box-shadow: 0 10px 30px var(--shadow-soft);
}

.example-story-image {
    position: sticky;
    top: 100px;
    border-radius: var(--border-radius-small);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.example-story-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-small);
}

.example-story-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.example-story-header {
    margin-bottom: var(--spacing-sm);
}

.example-story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.example-story-title {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.example-story-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.example-story-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.example-story-text {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
}

.example-story-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.story-intro {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
}

.story-chapter {
    font-size: 1.4rem;
    color: var(--gold);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(244, 193, 93, 0.1);
}

.story-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.story-card {
    background: var(--navy-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(244, 193, 93, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.story-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-soft), 0 0 30px rgba(244, 193, 93, 0.1);
    border-color: rgba(244, 193, 93, 0.3);
}

.story-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--navy-light);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease;
}

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

.story-content {
    padding: var(--spacing-md);
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(244, 193, 93, 0.15);
    color: var(--gold);
    border: 1px solid rgba(244, 193, 93, 0.3);
}

.tag-finance {
    background: rgba(212, 168, 74, 0.2);
    color: var(--gold-dark);
}

.tag-economy {
    background: rgba(127, 179, 168, 0.2);
    color: var(--green-soft);
}

.tag-medicine {
    background: rgba(107, 196, 196, 0.2);
    color: var(--turquoise-soft);
}

.tag-health {
    background: rgba(212, 165, 165, 0.2);
    color: var(--rose-soft);
}

.tag-history {
    background: rgba(244, 193, 93, 0.2);
    color: var(--gold);
}

.tag-politics {
    background: rgba(127, 179, 168, 0.2);
    color: var(--green-soft);
}

.tag-family {
    background: rgba(212, 165, 165, 0.2);
    color: var(--rose-soft);
}

.story-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.story-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.story-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stories-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Why Section */
.why-section {
    background-color: var(--navy-medium);
}

.why-content {
    max-width: 1000px;
    margin: 0 auto;
}

.why-text {
    margin-bottom: var(--spacing-lg);
}

.why-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.why-feature {
    background: rgba(26, 39, 73, 0.5);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid rgba(244, 193, 93, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.why-feature:hover {
    background: rgba(26, 39, 73, 0.7);
    border-color: rgba(244, 193, 93, 0.3);
    transform: translateY(-5px) translateX(0);
    box-shadow: 0 10px 30px var(--shadow-soft), 0 0 20px rgba(244, 193, 93, 0.1);
}

.why-feature h3 {
    color: var(--gold);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.why-feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Parents Section */
.parents-section {
    background-color: var(--navy-dark);
}

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

.parents-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--navy-medium) 0%, var(--navy-dark) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(3px 3px at 30% 40%, rgba(244, 193, 93, 0.2), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(244, 193, 93, 0.15), transparent);
    background-size: 200% 200%;
    animation: twinkle 15s ease-in-out infinite;
    z-index: 0;
}

.download-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
}

.download-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.download-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.download-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* Footer */
.footer {
    background-color: var(--navy-dark);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid rgba(244, 193, 93, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-xs);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav ul,
.footer-legal ul {
    list-style: none;
}

.footer-nav a,
.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(244, 193, 93, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gentleGlow {
    0%, 100% {
        color: var(--gold);
        text-shadow: 0 0 10px rgba(244, 193, 93, 0.3), 0 0 20px rgba(244, 193, 93, 0.2);
    }
    50% {
        color: var(--gold-light);
        text-shadow: 0 0 20px rgba(244, 193, 93, 0.6), 0 0 30px rgba(244, 193, 93, 0.4), 0 0 40px rgba(244, 193, 93, 0.2);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Text (Wissen wird zur Magie, etc.) above screenshot in mobile/short view */
    .hero-text {
        order: -1;
    }

    .hero-image {
        display: none;
    }

    .hero-video-mobile {
        display: block;
        margin-top: var(--spacing-lg);
        width: 100%;
    }
    .hero-mobile-video {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: var(--border-radius);
        display: block;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Section order: Geschichten above Über DreamTales, then Über DreamTales one more down (after Why) */
    body {
        display: flex;
        flex-direction: column;
    }
    #hero { order: 0; }
    #stories { order: 1; }
    #why { order: 2; }
    #about { order: 3; display: none; }
    #download { order: 4; }
    .footer { order: 5; }

    .nav-item-about {
        display: none;
    }

    /* Geschichten section: left-align title and intro on mobile */
    .stories-section .section-title,
    .stories-section .section-intro,
    .stories-section .section-tagline {
        text-align: left;
    }
    .stories-section .section-intro {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .category-card {
        flex: 0 0 calc(50% - var(--spacing-md) / 2);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .carousel-btn-prev {
        left: 5px;
    }

    .carousel-btn-next {
        right: 5px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--navy-medium);
        flex-direction: column;
        padding: var(--spacing-md);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: var(--spacing-sm);
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-section {
        min-height: auto;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .hero-description {
        max-width: 100%;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .example-story {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .example-story-image {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    .example-story-title {
        font-size: 1.75rem;
    }

    .story-gallery {
        grid-template-columns: 1fr;
    }

    .why-features {
        grid-template-columns: 1fr;
    }

    .category-card {
        flex: 0 0 calc(100% - var(--spacing-md));
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .main-nav {
        padding: var(--spacing-sm);
    }

    .hero-owl {
        width: 200px;
        margin-bottom: var(--spacing-sm);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .footer,
    .hero-buttons,
    .download-buttons {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

