/* ===== Global Styles ===== */
:root {
    --primary-color: #0066CC;
    --secondary-color: #FFB800;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* ===== Header ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar-brand img {
    height: 50px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-main {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    white-space: nowrap;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 20px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.header-action .btn {
    padding: 10px 25px;
    border-radius: 25px;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 0;
}

.hero-caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* FIXED: Hero Image Container */
.hero-image {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* FIXED: Hero Image - Object Fit Bottom */
.hero-image img,
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

.hero-shape {
    position: absolute;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -10%;
    left: -10%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration-item {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.decoration-item.item-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.decoration-item.item-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.decoration-item.item-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: -75px;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ===== Brand Feature ===== */
.brand-feature {
    padding: 80px 0;
    background: var(--light-color);
}

.feature-box {
    padding: 30px;
    background: #fff;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.feature-box h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* ===== Section Styles ===== */
.section-subtitle {
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
}

.about-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.about-list li {
    padding: 10px 0;
    font-size: 16px;
}

.about-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* ===== Products Section ===== */
.products-section {
    padding: 80px 0;
    background: var(--light-color);
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-content {
    padding: 25px;
}

.product-category {
    color: var(--primary-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.product-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    border-radius: 25px;
}

/* Testimonial Carousel Styles */
.testimonial-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.testimonial-carousel {
    position: relative;
    padding: 0 60px;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.testimonial-item {
    display: none;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
}

.testimonial-item.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-rating {
    margin-bottom: 25px;
}

.testimonial-rating i {
    font-size: 20px;
    margin: 0 3px;
    transition: transform 0.3s ease;
}

.testimonial-rating .fas.fa-star {
    color: #ffd700;
}

.testimonial-rating .far.fa-star {
    color: rgba(255, 255, 255, 0.3);
}

.testimonial-item p {
    font-size: 18px;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author h5 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Dots Navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.dot.active {
    background: #fff;
    width: 35px;
    border-radius: 10px;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 80px 0;
}

.contact-box {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
}

.contact-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.contact-box h5 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* ===== Footer ===== */
.footer-section {
    background: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-widget h4,
.footer-widget h5 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ===== Modal Styles ===== */
.modal-content {
    border-radius: var(--border-radius);
}

.modal-header {
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 40px;
    height: 40px;
}

.quantity-control input {
    flex: 1;
    max-width: 100px;
}

/* ===== Button Styles ===== */
.btn-primary {
    background: var(--primary-color);
    border: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 40px;
    }
    
    .hero-image {
        height: 60vh;
        margin-top: 30px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 20px;
        margin-top: 15px;
        border-radius: var(--border-radius);
    }
    
    .testimonial-carousel {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 80px 0 20px;
    }
    
    .hero-image {
        height: 50vh;
        margin-top: 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .testimonial-item {
        padding: 30px 20px;
        min-height: 300px;
    }
    
    .testimonial-item p {
        font-size: 16px;
    }
}