/* assets/style.css */
:root {
    --primary-color: #0d6efd;
    /* Fallback, overridden by HTML */
    --secondary-color: #2b3a42;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    margin: 0;
    padding-top: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 50px;
    /* Pill shape */
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px 0 rgba(13, 110, 253, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.23);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Override Bootstrap Colors with Theme Variable */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-check:checked+.btn-outline-primary,
.btn-check:active+.btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navbar */
.navbar {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Slider */
.carousel-item {
    height: 85vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform-origin: center;
    animation: kenBurns 20s linear infinite alternate;
}

/* Gradient Overlay */
.carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 25%;
    left: 10%;
    right: 10%;
    text-align: center;
}

.carousel-caption h5 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.5s;
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.7s;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-caption .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.9s;
}

/* Indicators */
.carousel-indicators {
    bottom: 40px;
    z-index: 2;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    margin: 0 8px !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.carousel-indicators button.active {
    background-color: #fff !important;
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Custom Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 30px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Animations */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px) skewY(2deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) skewY(0);
    }
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004bb5 100%);
    color: white;
    padding: 6rem 0 4rem;
    /* More padding */
    margin-bottom: 3rem;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    /* Modern angled cut */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header h1 {
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: white !important;
    /* Force overrides */
}

.page-header .lead {
    font-weight: 400;
    opacity: 0.9;
    font-size: 1.25rem;
    opacity: 0.9;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Page Content Typography */
.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

.page-content p {
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.page-section {
    padding: 100px 0;
    position: relative;
}

.page-section:nth-child(even) {
    background-color: #fff;
}

.page-section:nth-child(odd) {
    background-color: #f3f4f6;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
    font-size: 2.5rem;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Cards (Products & Content) */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Product Images */
.product-card-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    /* Ensures consistent size without stretching */
    background-color: #fff;
}

.product-detail-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    /* Show full image in detail view */
    background-color: #fff;
    border: 1px solid #eee;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--text-dark);
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

/* Footer */
footer {
    background: #111827;
    color: #9ca3af;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

footer p {
    margin-bottom: 0.75rem;
}

footer a {
    color: #d1d5db;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

footer .copyright {
    border-top: 1px solid #374151;
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .carousel-item {
        height: 600px;
        /* Increased height for mobile */
    }

    .carousel-caption {
        bottom: auto;
        top: 55%;
        /* Move down to avoid header overlap */
        transform: translateY(-50%);
        left: 5%;
        right: 5%;
    }

    .carousel-caption h5 {
        font-size: 2rem;
        /* Adjusted for better fit */
        margin-bottom: 0.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .carousel-caption .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .page-section {
        padding: 60px 0;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: var(--shadow-lg);
        margin-top: 10px;
    }

    /* Mobile Controls: Move to bottom */
    .carousel-control-prev,
    .carousel-control-next {
        top: auto;
        bottom: 20px;
        transform: none;
        width: 45px;
        height: 45px;
        opacity: 0.8;
        /* Visible by default on mobile */
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }

    /* Adjust indicators to be slightly higher if needed, or keeping them is fine as arrows are at edges */
    .carousel-indicators {
        bottom: 70px;
        /* Move dots up a bit */
    }
}