/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Base Styles */
:root {
    /* Restaurant365 Colors - Based on website */
    --primary: #D02027;
    --secondary: #0f4c81;
    --accent: #f26522;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --black: #000000;
    
    /* Font Sizes */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.25rem;
    --font-xl: 1.5rem;
    --font-2xl: 2rem;
    --font-3xl: 2.5rem;
    --font-4xl: 3rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--font-4xl);
}

h2 {
    font-size: var(--font-3xl);
}

h3 {
    font-size: var(--font-2xl);
}

h4 {
    font-size: var(--font-xl);
}

p {
    margin-bottom: var(--space-lg);
    font-size: var(--font-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

ul {
    list-style-position: inside;
    margin-bottom: var(--space-lg);
}

li {
    margin-bottom: var(--space-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--font-sm);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-md) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.r365-logo {
    max-width: 164px;
    height: auto;
}

.proposal-title {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.proposal-title h1 {
    margin-bottom: 0;
    font-size: var(--font-xl);
    color: var(--primary);
}

.header-cta {
    flex: 1;
    text-align: right;
}

/* Hero Section */
.hero {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-lg);
}

.hero p {
    font-size: var(--font-lg);
    opacity: 0.9;
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-divider {
    height: 4px;
    width: 80px;
    background: var(--primary);
    margin: 0 0 var(--space-lg);
}

.center-divider {
    margin: 0 auto var(--space-lg);
}

/* Overview Section */
.proposal-overview {
    padding: var(--space-3xl) 0;
    background-color: var(--light);
}

.overview-content {
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.overview-cards {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    width: 100%;
}

.overview-card {
    flex: 1;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: var(--font-3xl);
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

/* Proposal Buckets */
.proposal-bucket {
    padding: var(--space-3xl) 0;
}

.alt-bucket {
    background-color: var(--light);
}

.bucket-content {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.even-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.video-column {
    width: 100%;
}

.bucket-text, .bucket-image {
    flex: 1;
}

.bucket-number {
    font-size: var(--font-4xl);
    font-weight: 700;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: var(--space-sm);
}

/* Price Tag */
.price-tag {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-lg);
    margin-bottom: var(--space-md);
}

.price-note {
    font-weight: 400;
    font-size: var(--font-sm);
    opacity: 0.9;
}

/* Podcast Hosts */
.hosts-container {
    display: flex;
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
}

.host {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.host-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--space-sm);
    border: 3px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.host-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host h4 {
    margin-bottom: var(--space-xs);
    color: var(--primary);
}

.host p {
    margin-bottom: 0;
    font-size: var(--font-sm);
    opacity: 0.8;
}

.bucket-features {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.bucket-features.full-width {
    flex-direction: column;
    gap: var(--space-lg);
}

.feature {
    flex: 1;
}

.full-width-feature {
    width: 100%;
    margin-bottom: var(--space-md);
}

.feature h4 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.feature ul {
    list-style-type: none;
}

.feature li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.feature li:before {
    content: "→";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.bucket-cta {
    margin-top: var(--space-xl);
}

.feature-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.02);
}

.nra-hosts-image {
    margin-top: var(--space-xl);
}

.image-caption {
    text-align: center;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--font-sm);
    color: var(--gray);
    font-style: italic;
}

/* Trade Show Media */
.bucket-media-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.bucket-media-container h4 {
    margin-bottom: var(--space-md);
    color: var(--primary);
    font-size: var(--font-lg);
}

/* NRA Video and Screenshot */
.nra-video-container {
    width: 100%;
}

.nra-screenshot {
    width: 100%;
    margin-top: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nra-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Image Slider */
.image-slider-container {
    width: 100vw;
    overflow: hidden;
    margin-top: var(--space-2xl);
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.image-slider {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

/* Removed hover pause effect */

.slide {
    flex: 0 0 min(280px, 28vw);
    aspect-ratio: 1/1;
    margin: 0 var(--space-sm);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Removed hover effect for slide images */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 1.1));
    }
}

/* Video Lazy Loading */
.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-overlay {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-overlay:hover {
    transform: scale(1.02);
}

.overlay-image {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(208, 32, 39, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-overlay:hover .play-button {
    background-color: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-container {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.feature-video {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

.hidden {
    display: none;
}

/* Vertical Video Specific */
.vertical-wrapper {
    width: auto;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.vertical-overlay {
    width: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
}

.vertical-image {
    height: 500px;
    width: auto;
    object-fit: cover;
    margin: 0 auto;
}

/* Video Stack Layout */
.video-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    width: 100%;
}

.video-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.vertical-item {
    display: flex;
    justify-content: center;
    width: auto;
    background: none;
}

.feature-video.vertical {
    width: auto;
    height: 500px;
    max-width: 100%;
    background: none;
}

/* Netflix Style Slider */
.netflix-slider-container {
    width: 100vw;
    margin-top: var(--space-2xl);
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: var(--space-xl) 0;
    background-color: var(--gray-dark);
    padding-left: var(--space-2xl);
}

.netflix-slider-header {
    padding-left: calc((100vw - var(--container-width)) / 2 + var(--space-2xl));
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: var(--space-xl);
}

.netflix-slider-header h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
}

.slider-controls {
    display: flex;
    gap: var(--space-sm);
}

.netflix-slider {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    padding-left: calc((100vw - var(--container-width)) / 2 + var(--space-2xl));
}

.netflix-slider-track {
    display: flex;
    gap: var(--space-md);
    transition: transform 0.5s ease-in-out;
}

/* Navigation Controls */
.slider-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(208, 32, 39, 0.8);
    color: white;
    border: 2px solid white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slider-nav:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.netflix-slide {
    flex: 0 0 400px;
    min-width: 400px;
    margin-right: var(--space-md);
}

.netflix-slide .video-wrapper {
    height: 225px;
    transition: transform 0.3s ease;
}

.netflix-slide .video-wrapper:hover {
    transform: scale(1.05);
    z-index: 10;
}

.empty-slide {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    height: 225px;
}

/* CTA Section */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--primary);
    color: var(--white);
}

.cta-section .section-divider {
    background: var(--white);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-contact {
    margin-top: var(--space-xl);
    text-align: left;
}

.cta-contact p {
    font-size: var(--font-lg);
}

.cta-contact a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
}

.cta-contact a:hover {
    color: var(--light);
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background-color: transparent;
    color: var(--white);
}


/* Responsive Design */
@media (max-width: 992px) {
    .bucket-content {
        flex-direction: column;
    }
    
    .even-columns {
        grid-template-columns: 1fr;
    }
    
    .alt-bucket .bucket-content:not(.even-columns) {
        flex-direction: column-reverse;
    }
    
    .bucket-image {
        margin-bottom: var(--space-xl);
    }
    
    .video-column {
        margin-top: var(--space-xl);
    }
    
    .video-row {
        flex-direction: column;
    }
    
    .vertical-video {
        margin-top: var(--space-xl);
    }
    
    .feature-video.vertical {
        height: auto;
        width: 60%;
        max-height: 500px;
    }
    
    .overview-cards {
        flex-direction: column;
    }
    
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .feature-video.vertical,
    .vertical-image {
        width: auto;
        height: auto;
        max-height: 500px;
        background: none;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .netflix-slider-container {
        padding-left: var(--space-lg);
    }
    
    .netflix-slider-header {
        padding-left: var(--space-lg);
        padding-right: var(--space-md);
    }
    
    .netflix-slider {
        padding-left: var(--space-lg);
    }
    
    .netflix-slide {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .netflix-slide .video-wrapper {
        height: 158px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .proposal-title h1 {
        font-size: var(--font-lg);
    }
    
    .r365-logo {
        max-width: 140px;
    }
    
    .proposal-title {
        align-items: center;
        text-align: center;
    }
    
    
    .hosts-container {
        justify-content: center;
        gap: var(--space-2xl);
    }
    
    .bucket-features {
        flex-direction: column;
    }
    
    h1 {
        font-size: var(--font-3xl);
    }
    
    h2 {
        font-size: var(--font-2xl);
    }
    
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header, .hero-content, .overview-card, .bucket-text, .bucket-image, .cta-content {
    animation: fadeIn 0.8s ease-out forwards;
}

.overview-card:nth-child(2) {
    animation-delay: 0.2s;
}

.overview-card:nth-child(3) {
    animation-delay: 0.4s;
}
