/* ================================
   Hero Section
   ================================ */

/* BACKUP - Original hero styles (before video background)
   To revert: uncomment this block and remove the video-related styles below
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
                url('../assets/store-front.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
    position: relative;
}
*/

/* Hero with Video Background */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    /* Fallback for when video doesn't load */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../assets/store-front.jpg');
    background-size: cover;
    background-position: center;
}

/* Video Wrapper */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Video Element */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Video states */
.hero.video-loaded .hero-video {
    opacity: 1;
}

.hero.video-playing .hero-video {
    opacity: 1;
}

/* Video Overlay */
.hero-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Medium overlay as requested */
    z-index: 1;
}

/* Ensure content is above video */
.hero > *:not(.hero-video-wrapper):not(.video-loading-indicator) {
    position: relative;
    z-index: 3;
}

/* Loading Indicator */
.video-loading-indicator {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero.video-loading .video-loading-indicator {
    opacity: 0.8; /* Less prominent */
}

.hero.video-loaded .video-loading-indicator,
.hero.video-playing .video-loading-indicator {
    opacity: 0;
    pointer-events: none;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}

.loading-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Video Play Button (fallback for autoplay failure) */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid #d4af37;
    border-radius: 50%;
    color: #d4af37;
    font-size: 2rem;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px; /* Center the play icon */
}

.video-play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(248,245,240,1) 0%, transparent 100%);
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease-out;
    letter-spacing: 1px;
    font-weight: 700;
}

.hero .tagline {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Designer Attribution Badge */
.designer-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 12px;
    color: white;
    text-decoration: none;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    opacity: 0.6;
    z-index: 1000;
    animation: fadeIn 2s ease-out 1.5s both;
}

.designer-badge span {
    opacity: 0.9;
    font-weight: 400;
}

.designer-badge strong {
    font-weight: 600;
    color: #f0c952;
    letter-spacing: 0.3px;
}

.designer-badge:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(-3px);
    opacity: 0.8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

/* ================================
   About Section
   ================================ */

.about {
    padding: 7rem 2rem;
    background: linear-gradient(180deg, #f8f5f0 0%, #ffffff 100%);
    text-align: center;
    position: relative;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #8b4513;
    font-style: italic;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.about p {
    max-width: 900px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
    line-height: 2;
    color: #555;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 5rem auto 0;
}

.feature {
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f0c952);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4af37 0%, #b8941a 100%);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.feature:hover .feature-icon i {
    transform: scale(1.1);
}

/* Removed floating animation for more professional look */

.feature h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #8b4513;
    font-family: 'Playfair Display', serif;
}

.feature p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

/* ================================
   Pizza Showcase Section
   ================================ */

.pizza-showcase {
    padding: 7rem 2rem;
    background: white;
    position: relative;
}

.showcase-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.showcase-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #8b4513;
    font-style: italic;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.showcase-text p {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 2.5rem;
    color: #555;
}

.showcase-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.showcase-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: rgba(212, 175, 55, 0.2);
}

.showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.showcase-image:hover img {
    transform: scale(1.03);
}

/* ================================
   Pizza Gallery Section
   ================================ */

.pizza-gallery {
    padding: 7rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f5f0 100%);
}

.pizza-gallery h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #8b4513;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pizza-gallery .subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: rgba(212, 175, 55, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

/* ================================
   Awards & Recognition Section
   ================================ */

.awards-recognition {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #f8f5f0 0%, #ffffff 50%, #fafafa 100%);
    position: relative;
    overflow: hidden;
}

.awards-container {
    max-width: 1200px;
    margin: 0 auto;
}

.award-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
}

/* Award Image */
.award-image {
    flex: 0 0 400px;
    position: relative;
}

.award-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: transform 0.6s ease;
}

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

/* Subtle glow effect */
.award-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 60%);
    border-radius: 25px;
    z-index: -1;
    animation: subtlePulse 6s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Award Details */
.award-details {
    flex: 1;
    text-align: left;
}

.award-details h2 {
    font-size: 2.8rem;
    color: #8b4513;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.award-details h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, transparent);
}

/* Award Rankings */
.award-rankings {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.ranking-badge {
    background: white;
    border: 2px solid #d4af37;
    border-radius: 50%;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.ranking-badge.primary {
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ranking-badge.secondary {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.ranking-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212,175,55,0.2);
}

.rank-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.ranking-badge.secondary .rank-number {
    font-size: 2rem;
}

.rank-text {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.rank-year {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4af37;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Award Divider */
.award-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #d4af37, transparent);
    margin: 2rem 0;
}

/* Award Description */
.award-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.award-subtitle {
    font-size: 1rem;
    font-style: italic;
    color: #666;
    padding-top: 1rem;
    border-top: 1px solid rgba(139,69,19,0.1);
}

/* Award Source Link */
.award-source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 25px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.award-source-link:hover {
    background: linear-gradient(135deg, #d4af37, #b8941a);
    color: white;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212,175,55,0.2);
}

.award-source-link i.fab {
    font-size: 1.1rem;
    color: #d4af37;
    transition: color 0.3s ease;
}

.award-source-link:hover i.fab {
    color: white;
}

.award-source-link i.fas {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 0.25rem;
}

/* Smooth entrance animation */
.awards-recognition {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}