/* ===== SILKCOAT LIBERIA CUSTOM STYLES ===== */

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-dark: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #f97316 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    text-align: center;
    color: white;
}

.paint-drop {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: drop 2s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes drop {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-20px); }
}

.loading-text {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 3px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== NAVIGATION ===== */
.custom-navbar {
    background: rgba(30, 58, 138, 0.2) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: none;
}

.custom-navbar.scrolled {
    padding: 10px 0;
    background: rgba(30, 58, 138, 0.4) !important;
    box-shadow: var(--shadow-light);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
}

.location {
    color: var(--light-color);
    font-weight: 500;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 16px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.inventory-link {
    background: var(--gradient-accent) !important;
    white-space: nowrap;
    color: white !important;
    border-radius: 25px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.navbar-toggler {
    padding: 4px 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.inventory-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== DROPDOWN MENU STYLES ===== */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-heavy);
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-item {
    color: var(--text-dark);
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-toggle::after {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* DROPDOWN SUBMENU - Desktop */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
    /* display: none; */
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Submenu dropdown indicator */
.dropdown-submenu > .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
}

.dropdown-submenu.show > .dropdown-toggle::after {
    transform: rotate(180deg);
}


.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
    left: -100%;
    margin-left: 10px;
    border-radius: 6px 0 6px 6px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* ===== HERO SECTION WITH SLIDESHOW ===== */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.1);
    transition: all 3s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide.zoom-out {
    opacity: 0;
    transform: scale(1.2);
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    color: white;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(3px);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-top: 40px;
}

.hero-buttons .btn {
    margin: 5px 15px;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* ===== SLIDESHOW NAVIGATION DOTS ===== */
.slideshow-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

/* ===== CATEGORY GRID VIEW STYLES ===== */
.category-grid-view {
    padding: 100px 0 80px;
    min-height: 100vh;
}

.category-header {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.category-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===== CATEGORY SELECTION CARDS ===== */
.category-selection-card {
    height: auto;
    min-height: 350px;
}

.category-selection-card .category-item-image {
    height: 250px;
}

.category-selection-card .category-item-title {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 20px 20px 10px;
}

.category-item-desc {
    padding: 0 20px 25px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.category-selection-card .category-item-overlay i {
    font-size: 3rem;
}

/* ===== CATEGORY ITEMS GRID ===== */
.category-items-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.category-item-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    height: 100%;
    position: relative;
    transform-origin: center bottom;
}

.category-item-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.category-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.category-item-card:hover::before {
    transform: translateX(100%);
}

.category-item-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--light-color);
}

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

.category-item-card:hover .category-item-image img {
    transform: scale(1.1);
}

.category-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 2rem;
}

.category-item-card:hover .category-item-overlay {
    opacity: 1;
}

.category-item-title {
    padding: 20px 15px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    background: white;
    border-top: 1px solid var(--border-color);
}

/* ===== DETAIL VIEW STYLES ===== */
.product-detail-view,
.service-detail-view {
    padding: 100px 0 80px;
    min-height: 100vh;
}

.detail-sidebar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-items {
    max-height: 500px;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    border: 1px solid transparent;
    animation: slideInLeft 0.4s ease-out;
    animation-fill-mode: both;
}

.sidebar-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-item:nth-child(2) { animation-delay: 0.2s; }
.sidebar-item:nth-child(3) { animation-delay: 0.3s; }
.sidebar-item:nth-child(4) { animation-delay: 0.4s; }
.sidebar-item:nth-child(5) { animation-delay: 0.5s; }
.sidebar-item:nth-child(6) { animation-delay: 0.6s; }

.sidebar-item:hover {
    background: var(--light-color);
    transform: translateX(5px);
    border-color: var(--border-color);
}

.sidebar-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sidebar-item.active .sidebar-item-name {
    color: white;
}

.sidebar-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.sidebar-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
}

/* ===== DETAIL CONTENT STYLES ===== */
.detail-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    animation: fadeInUp 0.6s ease-out;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
}

.detail-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.detail-image-container {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 15px;
}

.detail-image {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
}

.detail-info h5 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
}

.detail-info h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.feature-list,
.spec-list {
    list-style: none;
    padding: 0;
}

.feature-list li,
.spec-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.feature-list li:last-child,
.spec-list li:last-child {
    border-bottom: none;
}

.feature-list li i,
.spec-list li i {
    margin-right: 12px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ===== PAGE HEADER ===== */
.page-header {
    /* background: var(--gradient-primary); */
    background-image: url('../images/About/silkcoat_about_image2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 120px 0 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== SECTION STYLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ===== FEATURE CARDS ===== */
.features-section {
    padding: 80px 0;
    background: var(--light-color);
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.feature-card:hover::before {
    left: 0;
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.feature-card * {
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

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

.feature-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

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

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ===== ABOUT STYLES ===== */
.about-preview,
.about-content {
    padding: 80px 0;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--success-color);
    font-weight: bold;
}

/* ===== PROCESS STEPS ===== */
.process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* ===== CONTACT STYLES ===== */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.contact-info-wrapper {
    background: var(--gradient-primary);
    color: white;
    padding: 40px;
    border-radius: 15px;
    height: fit-content;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-details h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-details p {
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

.contact-details a{
    color: white;
    text-decoration: none;
}

.contact-details a:hover{
    color: blue;
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ===== QUICK CONTACT CARDS ===== */
.quick-contact-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border-top: 4px solid var(--primary-color);
}

.quick-contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.quick-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

/* ===== MAP STYLES ===== */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-placeholder {
    background: var(--light-color);
    padding: 80px 40px;
    text-align: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* ===== CTA SECTIONS ===== */
.contact-cta,
.cta-section,
.service-cta {
    background: var(--gradient-primary);
    color: white;
}

.cta-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
}

.btn-light:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* ===== ACCORDION ===== */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.accordion-button {
    background: white;
    color: var(--text-dark);
    font-weight: 500;
    border: none;
    padding: 20px 25px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 20px 25px;
    background: white;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-color) !important;
    color: white;
}

.footer-brand h5 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
}

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

/* ===== CONTACT INFO ===== */
.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== LOADING STATES ===== */
.category-items-grid.loading {
    opacity: 0.7;
    pointer-events: none;
}

.category-items-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== SCROLLBAR STYLES ===== */
.sidebar-items::-webkit-scrollbar {
    width: 6px;
}

.sidebar-items::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 3px;
}

.sidebar-items::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.sidebar-items::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== RESPONSIVE STYLES ===== */

/* Large screens (lg) */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .category-title,
    .section-title {
        font-size: 2.2rem;
    }
    
    .detail-title {
        font-size: 2.2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

/* Medium screens (md) */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .category-title,
    .section-title {
        font-size: 2rem;
    }
    
    .detail-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .detail-content {
        padding: 30px;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 30px;
    }
    
    /* Fix for navbar dropdowns on medium screens */
    .dropdown-menu {
        background: rgba(30, 58, 138, 0.95);
        border-radius: 0 0 10px 10px;
    }
    
    .dropdown-item {
        color: white;
        padding: 12px 20px;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    /* Fix for submenu on mobile */
    .dropdown-submenu .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }
    
    .dropdown-submenu > a:after {
        display: none;
    }

    .dropdown-submenu > .dropdown-toggle::after {
        transform: rotate(-90deg);
    }
    
    .dropdown-submenu.show > .dropdown-toggle::after {
        transform: rotate(0deg);
    }
}

/* Small screens (sm) */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .category-title,
    .section-title {
        font-size: 1.8rem;
    }
    
    .detail-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .detail-content {
        padding: 25px;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 25px;
    }
    
    .category-selection-card .category-item-image {
        height: 200px;
    }
    
    .category-selection-card .category-item-title {
        font-size: 1.2rem;
    }
    
    /* Fix for navbar on small screens */
    .navbar-collapse {
        background: rgba(30, 58, 138, 0.95);
        padding: 15px;
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
    }
    
    /* Fix for dropdown submenu on small screens */
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        margin: 0;
        padding: 0;
    }
    
    .dropdown-item {
        padding-left: 40px;
    }
    
    .dropdown-submenu .dropdown-item {
        padding-left: 60px;
    }
}

/* Extra small screens (xs) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .category-title,
    .section-title {
        font-size: 1.6rem;
    }
    
    .detail-title {
        font-size: 1.6rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 20px 15px;
    }
    
    .detail-content {
        padding: 20px;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 20px;
    }
    
    .category-selection-card {
        min-height: 300px;
    }
    
    .category-selection-card .category-item-image {
        height: 180px;
    }
    
    .category-selection-card .category-item-title {
        font-size: 1.1rem;
        padding: 15px 15px 5px;
    }
    
    .category-item-desc {
        padding: 0 15px 20px;
    }
    
    /* Fix for navbar on extra small screens */
    .navbar-brand .brand-text {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .inventory-link {
        padding: 6px 15px !important;
        font-size: 0.9rem;
    }
}

/* Center content on larger screens */
@media (min-width: 1200px) {
    .container, 
    .container-lg, 
    .container-md, 
    .container-sm, 
    .container-xl, 
    .container-xxl {
        max-width: 1140px;
    }
}

/* Fix for tablet screens (like Samsung Tab S9) */
@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) {
    .container, 
    .container-lg, 
    .container-md, 
    .container-sm, 
    .container-xl, 
    .container-xxl {
        max-width: 90%;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}


/* Ensure content is centered on all screen sizes */
.container, 
.container-fluid,
.row {
    margin-left: auto;
    margin-right: auto;
}

/* Fix for content shifting to the right */
html, body {
    overflow-x: hidden;
}

/* Ensure proper centering of all content */
.main-content,
.page-header,
.category-grid-view,
.product-detail-view,
.service-detail-view,
.about-preview,
.about-content,
.features-section,
.contact-form-wrapper,
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fix for dropdown submenu on mobile */
.dropdown-submenu .dropdown-toggle::after {
    transform: rotate(-90deg);
}

.dropdown-submenu.show .dropdown-toggle::after {
    transform: rotate(0deg);
}

/* ===== SAMSUNG BROWSER FIXES ===== */
/* Mobile dropdown fixes for Samsung and other touch devices */
@media (max-width: 991.98px) {
    .dropdown-submenu .dropdown-menu {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        transition: none !important; /* Remove transitions to prevent Samsung issues */
    }
    
    .dropdown-submenu.show .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }
    
    /* Force override Bootstrap states */
    .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .dropdown-menu:not(.show) {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Additional touch device fixes */
@media (hover: none) and (pointer: coarse) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: none;
    }
    
    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }
}