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

:root {
    --primary-gold: #D4A574;
    --secondary-gold: #B8935F;
    --dark-brown: #8B6F47;
    --darker-brown: #6B5637;
    --darkest-brown: #4A3A25;
    --accent-red: #FF6B6B;
    --accent-blue: #4ECDC4;
    --accent-yellow: #FFD93D;
    --text-dark: #2C1810;
    --text-light: #F5F5F5;
    --bg-light: #FFF9F0;
    --bg-cream: #F0E6D2;
    --shadow-color: rgba(44, 24, 16, 0.1);
    --shadow-dark: rgba(44, 24, 16, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-paw {
    animation: pawBounce 1s infinite alternate ease-in-out;
}

.loading-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--dark-brown);
    font-weight: 500;
}

@keyframes pawBounce {
    0% { transform: translateY(0) rotate(-10deg); }
    100% { transform: translateY(-20px) rotate(10deg); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(255, 249, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px var(--shadow-color);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 5%;
    box-shadow: 0 4px 40px var(--shadow-dark);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-brown);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.logo-svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-red));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(255, 249, 240, 0.4) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
    z-index: 1;
}

.hero-text-content {
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line-1 {
    display: block;
    font-size: 0.5em;
    color: var(--secondary-gold);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.title-line-2 {
    display: block;
    color: var(--dark-brown);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.title-line-3 {
    display: block;
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--darker-brown);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

/* Hero CTA Section */
.hero-cta-section {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.hero-cta-button.primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #654321;
}

.hero-cta-button.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255,215,0,0.4);
}

.hero-cta-button.secondary {
    background: white;
    color: var(--dark-brown);
    border: 2px solid #D4A574;
}

.hero-cta-button.secondary:hover {
    background: #F5E6D3;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212,165,116,0.3);
}

.cta-icon {
    font-size: 1.5rem;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Mission Banner */
.hero-mission-banner {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.9);
    border-radius: 50px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out 1.5s both;
}

.mission-icon {
    font-size: 1.5rem;
}

.mission-text {
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 1.125rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-red);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--darker-brown);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shep-portrait-container {
    position: relative;
    animation: fadeInRight 1s ease;
}

.portrait-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulse 4s infinite ease-in-out;
}

.shep-image-wrapper {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.shep-photo {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    filter: sepia(0.2) contrast(1.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.shep-photo:hover {
    transform: scale(1.02) rotate(1deg);
    filter: sepia(0) contrast(1.2) brightness(1.1);
    box-shadow: 0 30px 60px rgba(212, 165, 116, 0.4);
}

/* Interactive photo effects */
.shep-image-wrapper {
    position: relative;
    overflow: visible;
}

.shep-image-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFA500);
    background-size: 400% 400%;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: shimmer 3s ease infinite;
}

.shep-image-wrapper:hover::before {
    opacity: 0.6;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.heart-emoji {
    position: absolute;
    font-size: 24px;
    pointer-events: none;
    animation: heartFloat 3s ease-out forwards;
    z-index: 10;
}

@keyframes heartFloat {
    0% {
        transform: translateY(0) scale(0) rotate(0deg);
        opacity: 0;
    }
    15% {
        transform: translateY(-20px) scale(1) rotate(-5deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-150px) scale(0.3) rotate(15deg);
        opacity: 0;
    }
}

.woof-text {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: bold;
    color: #D4A574;
    pointer-events: none;
    animation: woofPop 1.5s ease-out forwards;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes woofPop {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) rotate(0deg) translateY(-30px);
        opacity: 0;
    }
}

.paw-particle {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
    animation: pawFloat 2s ease-out forwards;
    opacity: 0.8;
}

@keyframes pawFloat {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes specialWiggle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.05) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-3deg); }
}

.shep-caption {
    margin-top: 30px;
    color: var(--darker-brown);
}

.shep-caption p {
    margin: 8px 0;
}

.caption-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.caption-small {
    font-size: 0.95rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

.caption-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-top: 10px;
    font-weight: 500;
}

.dog-body {
    animation: breathe 3s infinite ease-in-out;
}

.dog-head {
    animation: subtleNod 6s infinite ease-in-out;
}

.dog-ear-left {
    animation: earTwitchLeft 4s infinite ease-in-out;
    transform-origin: bottom right;
}

.dog-ear-right {
    animation: earTwitchRight 4s infinite ease-in-out 0.5s;
    transform-origin: bottom left;
}

.dog-tail {
    animation: gentleWag 1s infinite alternate ease-in-out;
    transform-origin: left center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
}

.scroll-indicator p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--darker-brown);
}

.scroll-dot {
    animation: scrollBounce 2s infinite ease-in-out;
}

/* Journey Section */
.journey-section {
    position: relative;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    padding: 8rem 0;
}

.journey-intro {
    text-align: center;
    margin-bottom: 6rem;
}

.journey-title {
    font-size: 3.5rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.journey-subtitle {
    font-size: 1.2rem;
    color: var(--darker-brown);
    font-style: italic;
}

/* Scene Container Styling */
.scene-container {
    text-align: center;
    position: relative;
}

.scene-caption {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--darker-brown);
    font-style: italic;
    opacity: 0.9;
}

/* Background Scenes */
.background-scene {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.montana-hills {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(144, 238, 144, 0.2));
}

.sheep-flock::before,
.sheep-flock::after {
    content: '🐑';
    position: absolute;
    font-size: 20px;
    opacity: 0.3;
    animation: graze 30s infinite;
}

.sheep-flock::before {
    bottom: 40%;
    left: 20%;
}

.sheep-flock::after {
    bottom: 35%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes graze {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(50px); }
}

.railway-tracks {
    position: absolute;
    bottom: 30%;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #696969,
        #696969 10px,
        #8B7355 10px,
        #8B7355 30px
    );
    opacity: 0.3;
}

.steam-clouds::before,
.steam-clouds::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatClouds 20s infinite;
}

.steam-clouds::before {
    top: 20%;
    left: 10%;
}

.steam-clouds::after {
    top: 30%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes floatClouds {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(100px, -20px) scale(1.5); opacity: 0.3; }
}

.passing-seasons {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 182, 193, 0.2) 0%,
        rgba(255, 218, 185, 0.2) 25%,
        rgba(144, 238, 144, 0.2) 50%,
        rgba(173, 216, 230, 0.2) 75%,
        rgba(255, 182, 193, 0.2) 100%
    );
    background-size: 400% 400%;
    animation: seasonChange 40s ease infinite;
}

@keyframes seasonChange {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 50%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 50%; }
}

.eternal-light {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.3) 0%, transparent 60%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

/* Enhanced SVG animations */
.hospital-scene,
.farewell-scene,
.vigil-scene,
.memorial-scene {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    border-radius: 10px;
    overflow: hidden;
}

.tail-wag {
    animation: wagTail 1s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes wagTail {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.floating-hearts text {
    font-size: 20px;
}

.steam {
    animation: steamRise 2s infinite;
}

@keyframes steamRise {
    0% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-40px); }
}

.story-chapter {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Enhanced storytelling animations */
.story-content {
    animation: fadeInStory 2s ease-out;
}

@keyframes fadeInStory {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animated train for departure scene */
.train-departure {
    position: absolute;
    bottom: 10%;
    left: -300px;
    animation: trainDepart 15s ease-in-out infinite;
}

@keyframes trainDepart {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(calc(100vw + 600px));
    }
    100% {
        transform: translateX(calc(100vw + 600px));
    }
}

/* Paw print trail animation */
.paw-trail {
    position: absolute;
    opacity: 0;
    animation: pawAppear 0.5s ease-out forwards;
}

@keyframes pawAppear {
    to {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

/* Emotional rain effect */
.rain-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    animation: rainFadeIn 3s ease-out forwards;
}

@keyframes rainFadeIn {
    to {
        opacity: 0.6;
    }
}

/* Clock animation for waiting */
.clock-hands {
    animation: clockSpin 5s linear infinite;
    transform-origin: center;
}

@keyframes clockSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Memorial flowers animation */
.memorial-flowers {
    animation: flowerGrow 3s ease-out forwards;
    transform-origin: bottom center;
}

@keyframes flowerGrow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Story enhancement animations */
@keyframes heartbeatPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.6;
        transform: scaleX(1.05);
    }
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-200px) scale(2);
        opacity: 0;
    }
}

@keyframes seasonFall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

@keyframes petalFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(720deg);
    }
}

.chapter-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.parallax-layer {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.chapter-1 .parallax-layer {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.1) 0%, rgba(212, 165, 116, 0.1) 100%);
}

.chapter-2 .parallax-layer {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(139, 111, 71, 0.1) 100%);
}

.chapter-3 .parallax-layer {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(184, 147, 95, 0.1) 100%);
}

.chapter-4 .parallax-layer {
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.1) 0%, rgba(74, 58, 37, 0.1) 100%);
}

.chapter-content {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
    position: relative;
    z-index: 1;
}

.chapter-number {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(212, 165, 116, 0.2);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.chapter-text h3 {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.chapter-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--darker-brown);
}

.chapter-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.puppy-svg {
    animation: float 4s infinite ease-in-out;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.memory-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.guardian-svg,
.rainbow-bridge {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* Memories Section */
.memories-section {
    padding: 6rem 0;
    background: white;
}

.memory-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.memory-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.memory-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.memory-icon {
    margin-bottom: 1.5rem;
}

.memory-item h3 {
    font-size: 1.5rem;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.memory-item p {
    color: var(--darker-brown);
    line-height: 1.6;
}

/* Legacy Section */
.legacy-section {
    padding: 6rem 0;
    background: var(--bg-cream);
}

.legacy-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.video-placeholder {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.legacy-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    text-align: center;
}

.caption-text {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.legacy-hero-svg {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.legacy-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px var(--shadow-dark);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-red);
    font-family: 'Playfair Display', serif;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--darker-brown);
    line-height: 1.4;
}

/* Token Section */
.token-section {
    position: relative;
    overflow: hidden;
}

.token-hero {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--darkest-brown) 100%);
    color: var(--text-light);
    padding: 8rem 0;
    position: relative;
}

.token-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.1;
}

.floating-coins {
    position: absolute;
    width: 100%;
    height: 100%;
}

.token-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-yellow), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.token-subtitle {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 4rem;
    opacity: 0.9;
}

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

.token-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
}

.token-info-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-yellow);
}

.token-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-light);
}

.highlight-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.token-cta {
    text-align: center;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-yellow), var(--primary-gold));
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 217, 61, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 217, 61, 0.5);
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.token-visual-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.token-3d-wrapper {
    position: relative;
    transform-style: preserve-3d;
    animation: float3D 4s infinite ease-in-out;
}

.token-logo {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.token-logo:hover {
    transform: scale(1.05) rotateY(10deg);
}

.token-3d {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: rotateCoin 20s infinite linear;
}

/* Impact Section */
.impact-section {
    padding: 6rem 0;
    background: white;
}

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

.impact-story {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.impact-story:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.story-image {
    margin-bottom: 1.5rem;
}

.impact-story h3 {
    font-size: 1.5rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.impact-counter {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-cream);
    border-radius: 20px;
}

/* Dogs Saved Progress Bar */
.dogs-saved-progress {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #F5E6D3 0%, #E8D5B7 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dogs-saved-progress h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 2rem;
}

.progress-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar-wrapper {
    position: relative;
    background: rgba(255,255,255,0.5);
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-bar {
    position: relative;
    height: 100%;
}

.progress-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    width: 0%;
    border-radius: 20px;
    transition: width 2s ease-out;
    box-shadow: 0 2px 10px rgba(255,215,0,0.5);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.progress-milestone {
    position: absolute;
    top: -30px;
    transform: translateX(-50%);
    text-align: center;
}

.milestone-number {
    font-size: 0.875rem;
    color: var(--medium-brown);
    font-weight: 600;
}

.progress-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 1.5rem;
}

.stat-item {
    text-align: center;
}

.dogs-saved-count, .dogs-target {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--dark-brown);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--medium-brown);
    margin-top: 0.5rem;
}

.stat-divider {
    font-size: 2rem;
    color: var(--medium-brown);
    margin: 0 1rem;
}

.progress-percentage {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFA500;
}

/* Live Updates */
.live-updates {
    margin-top: 2rem;
    text-align: center;
}

.update-ticker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.8);
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ticker-icon {
    font-size: 1.5rem;
    animation: bounce 1s infinite;
}

.ticker-text {
    color: var(--dark-brown);
    font-weight: 500;
}

/* Donation Tracker */
.donation-tracker {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 20px;
}

.donation-tracker h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 2rem;
}

.tracker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tracker-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.tracker-card:hover {
    transform: translateY(-5px);
}

.tracker-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tracker-card h4 {
    font-size: 1rem;
    color: var(--medium-brown);
    margin-bottom: 0.5rem;
}

.tracker-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-brown);
}

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

/* Gallery CTA */
.gallery-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #654321;
    margin-bottom: 1rem;
}

.gallery-cta p {
    font-size: 1.125rem;
    color: #8B4513;
    margin-bottom: 2rem;
}

.gallery-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: white;
    color: #654321;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.gallery-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gallery-link-btn .btn-icon {
    font-size: 1.5rem;
    animation: wiggle 2s ease-in-out infinite;
}

.counter-display {
    margin-top: 2rem;
}

.counter-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-red);
    font-family: 'Playfair Display', serif;
}

.counter-label {
    display: block;
    font-size: 1.2rem;
    color: var(--darker-brown);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.footer-message {
    font-style: italic;
    opacity: 0.9;
}

.footer-dedication {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 2.5rem;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-link:hover::after {
    transform: scaleX(1);
}

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

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

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

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes subtleNod {
    0%, 100% { transform: rotateZ(0); }
    25% { transform: rotateZ(-2deg); }
    75% { transform: rotateZ(2deg); }
}

@keyframes earTwitchLeft {
    0%, 100% { transform: rotate(0); }
    50% { transform: rotate(-5deg); }
}

@keyframes earTwitchRight {
    0%, 100% { transform: rotate(0); }
    50% { transform: rotate(5deg); }
}

@keyframes gentleWag {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

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

@keyframes float3D {
    0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(5deg); }
    50% { transform: translateY(-20px) rotateX(-5deg) rotateY(-5deg); }
}

@keyframes rotateCoin {
    from { transform: rotateY(0); }
    to { transform: rotateY(360deg); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dark-brown), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-brown);
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .shep-portrait {
        width: 400px;
        height: 480px;
    }
    
    .chapter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .chapter-number {
        font-size: 5rem;
    }
    
    .legacy-content,
    .token-main-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .shep-portrait {
        width: 300px;
        height: 360px;
    }
    
    .journey-title {
        font-size: 2.5rem;
    }
    
    .chapter-text h3 {
        font-size: 2rem;
    }
    
    .memory-gallery {
        grid-template-columns: 1fr;
    }
    
    .token-title {
        font-size: 3rem;
    }
    
    .impact-showcase {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Navigation Mobile Menu */
    .navbar {
        position: relative;
        padding: 1rem;
        justify-content: space-between;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(245, 230, 211, 0.98);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero Section Mobile */
    .hero-content {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    
    .hero-text-content {
        order: 2;
        margin-top: 2rem;
    }
    
    .shep-portrait-container {
        order: 1;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-line-1 {
        font-size: 1.5rem;
    }
    
    .title-line-2 {
        font-size: 1.25rem;
    }
    
    .title-line-3 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-cta-section {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .hero-cta-button {
        width: 100%;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-mission-banner {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .mission-text {
        font-size: 0.875rem;
    }
    
    /* Journey Section Mobile */
    .journey-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .journey-subtitle {
        font-size: 1rem;
    }
    
    .chapter-content {
        padding: 2rem 1rem;
    }
    
    .chapter-number {
        font-size: 3rem;
    }
    
    .chapter-text h3 {
        font-size: 1.5rem;
    }
    
    .chapter-text p {
        font-size: 1rem;
    }
    
    .scene-container svg {
        max-width: 100%;
        height: auto;
    }
    
    /* Memory Section Mobile */
    .memory-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .memory-item {
        padding: 2rem 1.5rem;
    }
    
    /* Legacy Section Mobile */
    .section-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .legacy-content {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .video-placeholder {
        height: 250px;
    }
    
    .legacy-stats {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .stat-box {
        width: 100%;
    }
    
    /* Token Section Mobile */
    .token-title {
        font-size: 2rem;
    }
    
    .token-subtitle {
        font-size: 1rem;
    }
    
    .token-main-content {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .token-info-card {
        margin-bottom: 3rem;
        padding: 2rem 1.5rem;
    }
    
    .token-highlights {
        flex-direction: column;
        gap: 2rem;
    }
    
    .highlight-item {
        flex-direction: row;
        text-align: left;
    }
    
    .btn-primary-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .token-3d-wrapper {
        transform: scale(0.8);
    }
    
    /* Impact Section Mobile */
    .impact-showcase {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .impact-story {
        max-width: 100%;
    }
    
    /* Progress Bar Mobile */
    .dogs-saved-progress {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .dogs-saved-progress h3 {
        font-size: 1.5rem;
    }
    
    .progress-bar-wrapper {
        height: 30px;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .dogs-saved-count, .dogs-target {
        font-size: 2rem;
    }
    
    .progress-milestone {
        top: -25px;
    }
    
    .milestone-number {
        font-size: 0.75rem;
    }
    
    /* Donation Tracker Mobile */
    .donation-tracker {
        padding: 2rem 1rem;
    }
    
    .donation-tracker h3 {
        font-size: 1.75rem;
    }
    
    .tracker-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tracker-card {
        padding: 1.5rem;
    }
    
    .tracker-value {
        font-size: 2rem;
    }
    
    /* Gallery CTA Mobile */
    .gallery-cta {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .gallery-cta h3 {
        font-size: 1.75rem;
    }
    
    .gallery-cta p {
        font-size: 1rem;
    }
    
    .gallery-link-btn {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Loading Screen Mobile */
    .loading-text {
        font-size: 1rem;
    }
    
    /* Scroll Indicator Mobile */
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .scroll-indicator p {
        font-size: 0.875rem;
    }
}
}