/* OnlyPaws - Modern Dark Purple Theme with Parallax */

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

:root {
    /* Dark Purple Color Palette */
    --purple-darkest: #1a0a2e;
    --purple-darker: #2d1b4e;
    --purple-dark: #3d2463;
    --purple-medium: #5a3d7a;
    --purple-light: #7851a9;
    --purple-accent: #9d4edd;
    --purple-bright: #c77dff;
    --gold: #FFD700;
    --white: #ffffff;
    --white-soft: #f0f0f0;

    /* Spacing */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 60px;
    --spacing-xl: 100px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Georgia', serif;
    background: var(--purple-darkest);
    color: var(--white-soft);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: linear-gradient(90deg, var(--purple-accent), var(--purple-bright), var(--gold));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--purple-darkest);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    transition: opacity 1s ease;
}

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

.loading-spinner {
    font-size: 5em;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Flashing Banners */
.flash-banner {
    position: fixed;
    background: var(--gold);
    color: var(--purple-darkest);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
    border: 2px solid var(--purple-accent);
    animation: flash-pulse 1s ease-in-out infinite;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flash-banner-top {
    top: 20px;
    left: 20px;
}

.flash-banner-bottom {
    bottom: 20px;
    right: 20px;
}

@keyframes flash-pulse {
    0%, 100% {
        background: var(--gold);
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
        transform: scale(1);
    }
    50% {
        background: #FFA500;
        box-shadow: 0 4px 40px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.8);
        transform: scale(1.05);
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--purple-darkest) 0%, var(--purple-darker) 50%, var(--purple-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(122, 81, 169, 0.1) 0%, transparent 50%);
    animation: pulse-bg 5s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: hero-fade-in 1.5s ease-out;
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 5em;
    color: var(--purple-bright);
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.8);
    margin-bottom: var(--spacing-md);
    font-style: italic;
    letter-spacing: 3px;
}

.paw-icon {
    font-size: 6em;
    animation: paw-bounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes paw-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-subtitle {
    font-size: 3em;
    color: var(--white-soft);
    font-style: italic;
    margin-top: var(--spacing-md);
}

/* Timeline Sections */
.timeline-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xl) var(--spacing-md);
}

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

.morning-section {
    background: linear-gradient(180deg, var(--purple-darker) 0%, var(--purple-dark) 100%);
}

.midmorning-section {
    background: linear-gradient(180deg, var(--purple-dark) 0%, var(--purple-medium) 100%);
}

.lunch-section {
    background: linear-gradient(180deg, var(--purple-medium) 0%, var(--purple-dark) 100%);
}

.afternoon-section {
    background: linear-gradient(180deg, var(--purple-dark) 0%, var(--purple-darker) 100%);
}

.dinner-section {
    background: linear-gradient(180deg, var(--purple-darker) 0%, var(--purple-darkest) 100%);
}

.late-section {
    background: linear-gradient(180deg, var(--purple-darkest) 0%, #0f0520 100%);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1400px;
    width: 100%;
    z-index: 1;
    position: relative;
    align-items: center;
}

.section-left {
    padding: var(--spacing-md);
}

.section-title {
    font-size: 4em;
    color: var(--purple-bright);
    margin-bottom: var(--spacing-md);
    font-style: italic;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
}

.section-description {
    font-size: 1.3em;
    line-height: 1.8;
    color: var(--white-soft);
    text-align: justify;
    font-style: italic;
}

.section-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.section-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--purple-accent);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.section-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 30px 80px rgba(157, 78, 221, 0.6);
}

/* Slogan Sections */
.slogan-section {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--purple-darkest);
}

.slogan-content {
    width: 100%;
    padding: var(--spacing-md);
    overflow: hidden;
}

.slogan-text {
    font-size: 5em;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    color: var(--purple-bright);
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.8);
    opacity: 0;
    transform: translateX(-100%);
    white-space: nowrap;
    line-height: 1.4;
}

/* Slogan animations will be triggered by JavaScript */
.slogan-text.animate-in {
    animation: slogan-slide-in 1.5s ease-out forwards;
}

.slogan-text.animate-center {
    animation: slogan-center 2s ease-in-out forwards;
}

.slogan-text.animate-out {
    animation: slogan-slide-out 1.5s ease-in forwards;
}

@keyframes slogan-slide-in {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slogan-center {
    0%, 100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slogan-slide-out {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* CTA Section */
.cta-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--purple-darkest) 0%, var(--purple-darker) 50%, var(--purple-dark) 100%);
    position: relative;
}

.cta-content {
    text-align: center;
    z-index: 1;
}

.cta-title {
    font-size: 4em;
    color: var(--purple-bright);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.8);
}

.cta-subtitle {
    font-size: 2em;
    color: var(--white-soft);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.cta-button {
    padding: 25px 60px;
    font-size: 2em;
    background: linear-gradient(135deg, var(--purple-accent), var(--purple-bright));
    color: var(--white);
    border: 3px solid var(--gold);
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 40px rgba(157, 78, 221, 0.5);
    transition: all 0.3s ease;
    animation: cta-pulse 2s ease-in-out infinite;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(157, 78, 221, 0.8);
    animation: none;
}

@keyframes cta-pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(157, 78, 221, 0.5);
    }
    50% {
        box-shadow: 0 10px 50px rgba(157, 78, 221, 0.8);
    }
}

/* Designer Credit */
.designer-credit {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 1.2em;
    color: var(--purple-bright);
    font-style: italic;
    z-index: 9998;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.8);
    padding: 12px 20px;
    background: rgba(26, 10, 46, 0.8);
    border-radius: 10px;
    border: 2px solid var(--purple-accent);
    backdrop-filter: blur(10px);
    animation: designer-glow 2s ease-in-out infinite;
}

@keyframes designer-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(157, 78, 221, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 30px rgba(157, 78, 221, 0.7), 0 0 20px rgba(255, 215, 0, 0.3);
        transform: scale(1.02);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5em;
    }

    .hero-subtitle {
        font-size: 2em;
    }

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

    .section-title {
        font-size: 3em;
    }

    .section-description {
        font-size: 1.1em;
    }

    .slogan-text {
        font-size: 3em;
        white-space: normal;
    }

    .cta-title {
        font-size: 3em;
    }

    .cta-subtitle {
        font-size: 1.5em;
    }

    .cta-button {
        font-size: 1.5em;
        padding: 20px 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.5em;
    }

    .paw-icon {
        font-size: 4em;
    }

    .section-title {
        font-size: 2.5em;
    }

    .section-description {
        font-size: 1em;
    }

    .slogan-text {
        font-size: 2em;
    }

    .cta-title {
        font-size: 2.5em;
    }

    .cta-subtitle {
        font-size: 1.2em;
    }

    .cta-button {
        font-size: 1.2em;
        padding: 15px 30px;
    }

    .flash-banner {
        font-size: 0.8em;
        padding: 8px 12px;
    }

    .flash-banner-top {
        top: 10px;
        left: 10px;
    }

    .flash-banner-bottom {
        bottom: 10px;
        right: 10px;
    }
}

/* Parallax Effect Classes (controlled by JS) */
.parallax-slow {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.parallax-medium {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.parallax-fast {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
