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

:root {
    --primary-color: #ff4d4d;
    --secondary-color: #333;
    --text-color: #666;
    --white: #fff;
    --black: #000;
    --transition: all 0.3s ease;
}
.infinite-scroll-section{
    z-index: 2;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar.nav-scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.navbar.nav-visible {
    transform: translateY(0);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-cta {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    font-size: 0.9rem;
}

.nav-cta:hover {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

/* For transparent button */
.nav-cta.transparent {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white) !important;
}

.nav-cta.transparent:hover {
    background: var(--white);
    color: var(--primary-color) !important;
}

/* Page Hero Sections */
.page-hero {
    height: 50vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1470') center/cover;
    margin-top: 80px;
}

.about-hero {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1571388208497-71bedc66e932?w=1470');
}

.contact-hero {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1570829460005-c840387bb1ca?w=1470');
}

.gallery-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero/gallery-hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Products Page Styles */
.products-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero/products-hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.products-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: white;
    color: #333;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.2em;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.product-price {
    color: #e44d26;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-add-cart {
    background: #e44d26;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-add-cart:hover {
    background: #c73e1d;
    border: 2px solid #c73e1d;
}

/* Gallery Page Styles */
.gallery-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero/gallery-hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 2px solid #e44d26;
    color: #e44d26;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #e44d26;
    color: white;
    border: 2px solid #e44d26;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2em;
}

/* Products Page Styles */
.products-grid {
    padding: 80px 0;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 100%;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.price {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

/* About Page Styles */
.story-section {
    padding: 80px 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-text h2 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.values-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h3 {
    margin: 20px 0 5px;
    color: var(--secondary-color);
}

.team-member .social-links {
    margin: 15px 0;
}

.testimonials-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Contact Page Styles */
.contact {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
                url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    position: relative;
    color: var(--white);
    z-index: 2;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.15;
    pointer-events: none;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--black);
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(26, 11, 11, 0.7);
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    border: 2px solid var(--primary-dark);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    /* color: var(--white); */
    color: var(--black);
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.9;
}

.contact-info i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-info p:hover i {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.contact-social {
    margin-top: 2rem;
}

.contact-social h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        order: -1;
    }
}

@media (max-width: 576px) {
    .contact {
        padding: 60px 0;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-info p {
        font-size: 1rem;
    }
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
                url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.15;
    pointer-events: none;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.newsletter h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.newsletter p {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    border: 2px solid var(--primary-dark);
}

/* Infinite Scroll Section */
.infinite-scroll-section {
    background: var(--white);
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.scroll-container {
    display: flex;
    align-items: center;
    height: 60px;
    position: relative;
}

.scroll-container.reverse {
    margin-top: 10px;
}

.scroll-text {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: scrollText 30s linear infinite;
}

.scroll-text.secondary {
    animation: scrollTextReverse 30s linear infinite;
}

.scroll-text span {
    display: flex;
    align-items: center;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-text i {
    margin-left: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrollTextReverse {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .scroll-text span {
        font-size: 1rem;
        gap: 20px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

/* Gallery Page Styles */
.gallery-filter {
    padding: 40px 0;
    background: var(--white);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-buttons .filter-btn {
    padding: 10px 25px;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.filter-buttons .filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.filter-buttons .filter-btn:hover,
.filter-buttons .filter-btn.active {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.filter-buttons .filter-btn:hover::after,
.filter-buttons .filter-btn.active::after {
    width: 100%;
}

.gallery-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2.5rem;
}

.gallery-item.videos .gallery-overlay i {
    color: var(--primary-color);
    background: var(--white);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }

    .gallery-overlay i {
        font-size: 2rem;
    }

    .gallery-item.videos .gallery-overlay i {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
}

/* Fancybox Custom Styles */
.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.95);
    --fancybox-color: #fff;
    --fancybox-toolbar-background: rgba(0, 0, 0, 0.8);
    --fancybox-toolbar-color: #fff;
    --fancybox-accent-color: var(--primary-color);
}

.fancybox__content {
    padding: 0;
}

/* Hide toolbar by default */
.fancybox__toolbar {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show toolbar on container hover */
.fancybox__container:hover .fancybox__toolbar {
    opacity: 1;
}

/* Hide toolbar when container is idle */
.fancybox__container.is-idle .fancybox__toolbar {
    opacity: 0;
}

/* Custom button styles */
.fancybox__toolbar__items {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 5px 10px;
    backdrop-filter: blur(5px);
}

.fancybox__toolbar__items button {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.fancybox__toolbar__items button:hover {
    opacity: 1;
    color: var(--primary-color);
}

.fancybox-zoomIn {
    animation: fcbZoomIn .3s ease-in-out both;
}

.fancybox-zoomOut {
    animation: fcbZoomOut .3s ease-in-out both;
}

@keyframes fcbZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fcbZoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.fancybox__container.is-animated[aria-hidden="false"] .fancybox__backdrop {
    animation: fcbFadeIn .3s ease-in-out;
}

.fancybox__container.is-animated[aria-hidden="true"] .fancybox__backdrop {
    animation: fcbFadeOut .3s ease-in-out;
}

@keyframes fcbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fcbFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fancybox__container .fancybox__content :focus:not(.carousel__button.is-close) {
    outline: none;
}

.fancybox__container.is-fullscreen .fancybox__content {
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--white);
        margin: 2px;
        transition: var(--transition);
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Hero Video Styles */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

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

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
}

.hero-buttons .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .nav-cta {
        width: 200px;
        text-align: center;
    }
}

.hero-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

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

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.hero-btn.secondary:hover {
    background: var(--white);
    color: var(--dark);
}

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

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }
}

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

/* About Section */
.about {
    padding: 100px 0;
    background: #f9f9f9;
}

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Programs Section and Slider */
.programs {
    padding: 100px 0;
    background: #fff;
    overflow: hidden;
}

.swiper-container {
    width: 100%;
    padding: 50px 20px;
    overflow: visible;
}

.swiper-slide {
    transition: transform 0.3s ease;
    height: auto;
}

.program-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.program-card h3 {
    padding: 20px;
    margin: 0;
    color: #333;
}

.program-card p {
    padding: 0 20px 20px;
    color: #666;
    flex-grow: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ff4d4d;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ff4d4d;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    .swiper-container {
        padding: 30px 10px;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #ff4d4d;
    margin-bottom: 20px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-info {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
}

.contact-info p {
    margin: 20px 0;
}

.contact-info i {
    margin-right: 10px;
    color: #ff4d4d;
}

/* Scrolling Text Banner */
.scrolling-banner {
    background: #ff4d4d;
    color: white;
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.banner-content {
    display: flex;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.banner-content span {
    padding: 0 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

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

/* Parallax Effects */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(-1px) scale(2);
    z-index: -1;
}

.quote-section {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.quote-content {
    position: relative;
    z-index: 1;
}

.quote-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Enhanced Footer */
.parallax-wrapper {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.main-content {
    position: relative;
    background: var(--white);
    z-index: 2;
    margin-bottom: 60vh;
}

footer {
    /* padding-top: 20px; */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* height: 60vh; */
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
                url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    z-index: 1;
}



.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-row {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p {
    color: var(--white);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.contact-info li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--white);
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 992px) {
    .main-content {
        margin-bottom: 70vh;
    }

    .footer {
        height: 70vh;
    }

    .footer-row {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-col {
        flex: 1 1 40%;
    }
}

@media (max-width: 576px) {
    .main-content {
        margin-bottom: 80vh;
    }

    .footer {
        height: 80vh;
    }

    .footer-col {
        flex: 1 1 100%;
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .footer-col ul li a:hover {
        transform: translateX(0) scale(1.05);
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
    color: #ff4d4d;
}

.swiper-pagination-bullet-active {
    background: #ff4d4d;
}

/* Featured Section Styles */
.featured {
    padding: 100px 0;
    background: #f9f9f9;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.featured-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.featured-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-item h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 20px 20px 10px;
}

.featured-item p {
    color: var(--text-color);
    margin: 0 20px 20px;
    font-size: 1.1rem;
}

.featured-item .btn {
    margin: 0 20px 20px;
    display: inline-block;
}

/* Features Section Styles */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #ff4d4d 0%, #ff3333 100%);
    color: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: rotateY(360deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .featured-grid,
    .features-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .featured {
        padding: 60px 0;
    }

    .features {
        padding: 60px 0;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* Infinite Scrolling Text */
.infinite-scroll-section {
    padding: 30px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #222 100%);
    overflow: hidden;
    position: relative;
}

.infinite-scroll-section::before,
.infinite-scroll-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 100%;
    top: 0;
    z-index: 2;
    pointer-events: none;
}

.infinite-scroll-section::before {
    left: 0;
    background: linear-gradient(90deg, var(--secondary-color) 0%, transparent 100%);
}

.infinite-scroll-section::after {
    right: 0;
    background: linear-gradient(-90deg, var(--secondary-color) 0%, transparent 100%);
}

.scroll-container {
    margin: 15px 0;
    overflow: hidden;
    position: relative;
}

.scroll-text {
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

.scroll-text.primary {
    animation: scroll 20s linear infinite;
}

.scroll-text.secondary {
    animation: scroll-reverse 15s linear infinite;
}

.scroll-text span {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

.scroll-text span i {
    margin-left: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.scroll-text span:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.scroll-text span:hover i {
    transform: scale(1.2);
}

.scroll-text span::after {
    content: '';
    position: absolute;
    right: -20px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.scroll-container.reverse .scroll-text {
    animation-direction: reverse;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Add hover pause effect */
.scroll-container:hover .scroll-text {
    animation-play-state: paused;
}

/* Make it responsive */
@media (max-width: 768px) {
    .infinite-scroll-section {
        padding: 20px 0;
    }

    .scroll-text span {
        font-size: 1.2rem;
        padding: 0.8rem 1.2rem;
    }
    
    .scroll-text span i {
        font-size: 1rem;
        margin-left: 10px;
    }

    .scroll-text span::after {
        right: -15px;
        width: 6px;
        height: 6px;
    }

    .infinite-scroll-section::before,
    .infinite-scroll-section::after {
        width: 100px;
    }
}

/* Parallax Footer */
.parallax-wrapper {
    position: relative;
    width: 100%;
}

.main-content {
    position: relative;
    z-index: 2;
    background: var(--white);
    margin-bottom: 60vh;
}

.parallax-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    
    z-index: 1;
}

.footer {
    position: relative;
    height: 100%;
    padding: 60px 0 30px;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
                url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.15;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Footer Content Styles */
.footer a {
    color: var(--white);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer p {
    color: var(--white);
    opacity: 0.9;
}

/* Ensure all sections have proper background */
section {
    position: relative;
    z-index: 2;
    background: var(--white);
}

@media (max-width: 768px) {
    .main-content {
        margin-bottom: 70vh;
    }
    
    .parallax-footer {
        height: 70vh;
    }
}

.nav-cta:hover, .nav-links a:hover, .filter-btn:hover, .btn-view:hover, .btn-add-cart:hover, .contact-form button:hover, .newsletter-form button:hover, .filter-buttons .filter-btn:hover, .hero-btn:hover, .footer-col ul li a:hover, .social-links a:hover, .contact-info li a:hover, .scroll-text span:hover {
    border: 2px solid var(--primary-color);
}
