/* --- Homepage Specific Styles --- */

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
    padding-left: 0;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 550px;
}

.hero-content .subtext {
    font-size: 14px;
    color: #ddd;
    margin-top: -5px;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.slider-btn:hover {
    opacity: 1;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--accent);
}

/* Welcome Section - Redesigned (Modern & Compact) */
.welcome-section-new {
    padding: 60px 0;
    background-color: var(--white);
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* Fixed width for image column, rest for content */
    gap: 50px;
    align-items: flex-start;
    /* Align to top for cleaner look */
}

/* Image Wrapper */
.welcome-image-wrapper {
    position: relative;
    padding-left: 0;
    padding-bottom: 0;
    width: 100%;
    margin: 0;
}

/* Image Card Styling */
.welcome-image-wrapper .image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Soft modern shadow */
    border: none;
    background: #fff;
}

.welcome-image-wrapper .image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.welcome-image-wrapper:hover .image-frame img {
    transform: scale(1.05);
}

/* Dots Decoration - Subtle */
.pattern-dots {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(#e0e0e0 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    z-index: -1;
    opacity: 0.6;
}

/* Content Side */
.welcome-content {
    padding-top: 10px;
}

.section-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(6, 59, 144, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.main-heading {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 700;
}

.main-heading .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.main-heading .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(238, 56, 5, 0.15);
    /* Soft highlight marker */
    z-index: -1;
}

.sub-heading {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin-bottom: 25px;
    padding-left: 0;
    border: none;
    letter-spacing: 0.5px;
}

.description-block p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
    text-align: left;
    /* Cleaner for modern web */
}

.description-block .secondary-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

/* Modern Pill Features */
.features-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: #f4f7fb;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-item:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    color: var(--secondary);
    font-size: 14px;
}

/* Author Section */
.author-block {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    width: fit-content;
}

.author-details h4 {
    margin: 0;
    font-size: 18px;
    color: var(--dark);
    font-family: 'Aclonica', sans-serif;
    margin-bottom: 2px;
}

.author-details span {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .welcome-image-wrapper {
        margin: 0 auto;
        /* Width limited by inline style in HTML, respected here */
    }

    .description-block p {
        text-align: center;
    }

    .features-list {
        justify-content: center;
    }

    .author-block {
        justify-content: center;
        margin: 0 auto;
    }
}

/* Services Section */
.services-section {
    padding: 50px 0;
    background-color: var(--light-grey);
}

.services-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary);
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.service-card {
    background: var(--white);
    padding: 20px 15px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: #f0f4fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 25px;
    height: 25px;
}

.service-card h4 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
    height: 7.6em;
    text-align: center;
}

.services-footer-text {
    max-width: 800px;
    margin: 30px auto 0;
    text-align: center;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Activities Section */
.activities-section {
    padding: 50px 0;
    background-color: var(--white);
}

.activities-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.video-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #000;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Why Us Section - Enhanced */
.why-us-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-us-card {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.why-us-card h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 700;
}

.why-us-intro p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-us-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.why-feature {
    background: rgba(255, 255, 255, 0.05);
    /* Glassmorphic feel */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.why-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary);
}

.why-feature i {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.why-feature h4 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 600;
}

.why-feature p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.why-us-footer-text p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

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

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


/* Testimonials Section */
.testimonials-section {
    padding: 50px 0;
    background-color: var(--light-grey);
}

.testimonials-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary);
    text-transform: uppercase;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--white);
    padding: 25px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--secondary);
}

.testimonial-card p {
    font-size: 13px;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.testimonial-card h5 {
    font-size: 14px;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.testimonial-card span {
    font-size: 12px;
    color: #888;
}

/* --- Mobile Responsiveness (Strict & Compact) --- */
@media (max-width: 992px) {

    /* Hero */
    .hero-slider {
        height: 250px !important;
    }

    .slide {
        justify-content: center;
    }

    .hero-content {
        padding: 0 45px !important;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero-content h2 {
        font-size: 20px;
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 11px;
        margin-bottom: 10px;
        line-height: 1.4;
        max-width: 100%;
    }

    .hero-content .subtext {
        font-size: 10px;
        display: none;
    }

    .hero-content .btn {
        padding: 5px 12px;
        font-size: 10px;
    }

    /* Welcome Section */
    .welcome-section-new {
        padding: 50px 0;
    }

    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .welcome-image-wrapper {
        max-width: 250px !important;
        margin: 0 auto;
        padding-left: 0;
    }



    .welcome-content {
        padding-right: 0;
        text-align: center;
    }

    .sub-heading {
        border-left: none;
        padding-left: 0;
        border-bottom: 2px solid var(--secondary);
        display: inline-block;
        padding-bottom: 8px;
        margin-bottom: 20px;
        font-size: 15px;
    }

    .features-list {
        justify-content: center;
    }

    .author-block {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }

    .description-block p {
        text-align: center;
        font-size: 13px;
    }

    /* Grids */
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-us-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .why-us-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {

    /* Welcome Overrides for Mobile */
    .welcome-section-new {
        padding: 40px 0;
    }

    .main-heading {
        font-size: 24px;
    }

    .sub-heading {
        font-size: 13px;
    }

    .section-badge {
        font-size: 10px;
        padding: 4px 10px;
    }



    .welcome-image-wrapper {
        max-width: 250px !important;
        padding-right: 0;
    }

    .welcome-image-wrapper .image-frame {
        border-width: 3px;
    }

    .description-block p {
        font-size: 12px;
        line-height: 1.6;
    }

    .feature-item {
        font-size: 12px;
    }

    /* General Grid Stacking - Stack everything on very small screens */
    .services-grid {
        grid-template-columns: 1fr;
    }

}

/* --- Infinite Product Loop & Quick View Modal --- */
.infinite-showcase-section {
    padding: 80px 0;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.section-header-pro {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-pro span {
    color: var(--pro-gold, #b2945e);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 13px;
    display: block;
    margin-bottom: 10px;
}

.section-header-pro h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: var(--primary);
    text-transform: uppercase;
}

.loop-container {
    position: relative;
    width: 100%;
    padding: 30px 0;
    background: #fdfdfd;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}

.loop-track {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.loop-track:hover {
    animation-play-state: paused;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.loop-item {
    flex: 0 0 300px;
    margin: 0 15px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    text-align: center;
}

.loop-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(6, 59, 144, 0.08);
    border-color: var(--pro-gold, #b2945e);
}

.item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
}

.loop-img-box {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 20px;
}

.loop-img-box img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.loop-details {
    padding: 15px;
}

.loop-details h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.loop-details p {
    font-size: 10px;
    color: var(--pro-gold, #b2945e);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick View Modal */
.modal-pro {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-pro-content {
    background: white;
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-img-side {
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-right: 1px solid #f0f0f0;
}

.modal-img-side img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.modal-info-side {
    padding: 40px;
    overflow-y: auto;
}

.modal-cat {
    color: var(--pro-gold, #b2945e);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 1px;
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 15px;
}

.modal-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.modal-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.modal-feature-item i {
    color: var(--pro-gold, #b2945e);
    font-size: 11px;
}

.modal-btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    text-align: center;
}

.modal-btn:hover {
    background: #042966;
    transform: translateY(-2px);
}

/* Loop Responsive */
@media (max-width: 992px) {
    .loop-item {
        flex: 0 0 260px;
    }

    .loop-img-box {
        height: 150px;
    }

    .modal-pro-content {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .modal-img-side {
        padding: 20px;
        height: 220px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .modal-info-side {
        padding: 25px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-pro {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .infinite-showcase-section {
        padding: 50px 0;
    }

    .section-header-pro h2 {
        font-size: 24px;
    }

    .modal-img-side {
        height: 180px;
    }

    .modal-info-side {
        padding: 20px;
    }

    .modal-desc {
        font-size: 13px;
    }
}

/* --- Product Categories Section --- */
.pro-products-home {
    padding: 90px 0;
    background: #fdfdfd;
}

.pro-products-home .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.pro-products-home .section-header h2 {
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pro-products-home .section-header .line {
    width: 50px;
    height: 3px;
    background: var(--secondary);
    display: inline-block;
}

.products-grid-pro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.pro-card-home {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 35px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.pro-card-home:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.pro-card-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pro-card-header i {
    font-size: 24px;
    color: var(--primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4fa;
    border-radius: 10px;
}

.pro-card-header h3 {
    font-size: 20px;
    color: var(--dark);
    font-weight: 700;
    margin: 0;
}

.pro-card-body p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.pro-features-home {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.pro-features-home span {
    background: #f4f7fb;
    color: var(--primary);
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(6, 59, 144, 0.05);
}

.pro-features-home span i {
    font-size: 12px;
    color: var(--secondary);
}

@media (max-width: 992px) {
    .products-grid-pro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .pro-card-home {
        padding: 25px;
    }

    .pro-card-header h3 {
        font-size: 18px;
    }
}