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

:root {
    --primary: #1a365d;
    --accent: #3182ce;
    --accent-light: #ebf4ff;
    --text: #2d3748;
    --text-light: #4a5568;
    --bg: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

/* Animated Background - removed, using slide-level animations instead */
.bg-animation {
    display: none;
}

/* Slide Layout */
.slide {
    min-height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid #e2e8f0;
}

.slide:nth-child(odd) {
    background: #f8fafc;
}

.slide:nth-child(even) {
    background: #ffffff;
}

/* Animated gradient overlay on slides */
/* .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(49, 130, 206, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 60%, rgba(26, 54, 93, 0.18) 0%, transparent 50%);
    animation: gradientShift 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.slide:nth-child(even)::before {
    background:
        radial-gradient(ellipse 70% 60% at 70% 30%, rgba(49, 130, 206, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse 50% 70% at 30% 70%, rgba(26, 54, 93, 0.15) 0%, transparent 50%);
    animation: gradientShift 14s ease-in-out infinite reverse;
} */

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15) translateX(5%);
    }
}

/* Ensure content stays above animation */
.slide > * {
    position: relative;
    z-index: 1;
}

/* First slide - Title */
.slide:first-child {
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #2d4a7c 100%);
    color: white;
}

.slide:first-child h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.slide:first-child .accent {
    color: var(--accent);
}

.slide-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    opacity: 0.9;
}

/* Centered content */
.slide-content.centered {
    text-align: center;
}

/* Slide Image - Top */
.slide-image {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.slide-image img {
    max-width: 100%;
    max-height: 35vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Large slide image for first two content slides */
.slide-image.large {
    max-width: 1000px;
}

.slide-image.large img {
    max-height: 50vh;
}

.slide-text-large {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
}

/* Slide Body - Content + Product Image */
.slide-body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 1100px;
    flex: 1;
}

/* Slide Content */
.slide-content {
    flex: 1;
    max-width: 1000px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.slide-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Highlight */
/* .highlight {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.1em 0.3em;
    border-radius: 4px;
    font-weight: 600;
} */

/* Slide List */
.slide-list {
    list-style: none;
    text-align: left;
}

.slide-list li {
    padding: 0.1rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 1.2rem;
    color: var(--text);
}

.slide-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Product Image Placeholder */
.product-image {
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    display: none;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    max-height: 800px;
}

/* Specific styles for slide 4 product image */
#slide-4 .product-image {
    align-self: stretch;
    flex: 0 0 400px;
}

#slide-4 .product-image img {
    height: 80%;
    width: 100%;
    object-position: left;
}

/* Specific styles for slide 8 product image */
#slide-8 .product-image {
    align-self: stretch;
    flex-basis: 400px;
    max-width: 400px;
}

#slide-8 .product-image img {
    height: 80%;
    width: 100%;
    object-fit: cover;
}

/* Specific styles for slide 9 product image */
#slide-9 .product-image {
    align-self: stretch;
    flex-basis: 400px;
    max-width: 400px;
}

#slide-9 .product-image img {
    height: 80%;
    width: 100%;
    object-fit: cover;
}

/* Slide-in Animations */
.slide-in-left,
.slide-in-right {
    opacity: 0;
}

.slide-in-left {
    transform: translateX(-60px);
}

.slide-in-right {
    transform: translateX(60px);
}

.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Initial slide animation */
.slide {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* List Container - New Styles */
.list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem 2rem;
    margin-top: 1.5rem;
}

.list-container h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 900px) {
    .slide {
        padding: 1.5rem 2rem;
    }

    .slide-body {
        flex-direction: column !important;
        align-items: center;
        gap: 1.5rem;
    }

    .slide-content {
        text-align: center;
        max-width: 100%;
    }

    .slide-list {
        display: inline-block;
        text-align: left;
    }

    .product-image {
        flex: none;
    }

    .product-placeholder {
        width: 200px;
        height: 260px;
    }

    .slide-image img,
    .slide-image.large img {
        max-height: 30vh;
    }
}

@media (max-height: 700px) {
    .slide {
        padding: 1rem 2rem;
    }

    .slide-image img {
        max-height: 25vh;
    }

    .slide-image.large img {
        max-height: 35vh;
    }

    .slide-list li {
        padding: 0.25rem 0;
        padding-left: 1.25rem;
    }

    .product-placeholder {
        width: 180px;
        height: 230px;
    }
}

.slide-body > .product-image.slide-in-left {
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.slide-body > .product-image.slide-in-right {
    mask-image: linear-gradient(to left, black 80%, transparent 100%);
}
