:root {
    /* ================= PRIMARY BRAND ================= */
    --color-primary: #342f7f;
    --color-secondary: #9ecd4d;

    --color-facebook: #342f7f;
    --color-instagram: #ba0202;
    --color-twitter: #000000;
    --color-youtube: #d44139;

    /* ================= TEXT COLORS ================= */
    --color-dark: #111827;
    --color-text: #4b5563;

    --color-text-light: rgba(255, 255, 255, 0.75);

    /* ================= BACKGROUNDS ================= */
    --color-white: #ffffff;
    --color-bg-soft: #f3f3f3;
    --color-bg-light: #f9fafb;

    /* card / layout backgrounds */
    --color-surface-100: #f1f5f9;
    --color-surface-200: #eef2f7;
    --color-border: #e5e7eb;

    /* ================= HEADER / FOOTER ================= */
    --color-footer-bg: #1e1b4b;

    /* ================= OVERLAYS ================= */
    --overlay-primary-strong: rgba(52, 47, 127, 0.92);
    --overlay-primary-medium: rgba(52, 47, 127, 0.65);
    --overlay-primary-light: rgba(52, 47, 127, 0.2);

    /* ================= SHADOWS ================= */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);

    /* extra shadow tokens */
    --shadow-soft-1: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-soft-2: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-soft-3: 0 20px 50px rgba(0, 0, 0, 0.08);

    /* ================= RADIUS ================= */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 9999px;

    /* ================= TRANSITIONS ================= */
    --transition: all 0.3s ease;
}
/* ========================= GLOBAL ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    /* font-family: "Poppins", sans-serif; */
    font-family: "Source Sans 3", sans-serif;
    /* font-size: 16px; */
    color: var(--color-dark);
    background: #fff;
    overflow-x: hidden;
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    transition: var(--transition);
}
ul {
    list-style: none;
}
/* section {
  position: relative;
} */

section {
    position: relative;
    overflow: hidden;
    padding-top: 48px;
    padding-bottom: 48px;
}

section:nth-child(even) {
    background-color: var(--color-white);
}

section:nth-child(odd) {
    background-color: var(--color-bg-soft);
}

@media (min-width: 768px) {
    section {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* ========================= TYPOGRAPHY ========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}
p {
    color: var(--color-text);
    line-height: 1.9;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.section-tag::before {
    content: "";
    width: 36px;
    height: 2px;
    background: var(--color-secondary);
}
/* ========================= PRELOADER ========================= */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#preloader img {
    width: 180px;
    animation: pulseZoom 1.2s infinite ease-in-out;
}
@keyframes pulseZoom {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}
/* ========================= HEADER ========================= */
#main-header {
    position: fixed;
    top: 44px;
    /* top: 0px; */
    left: 0;
    width: 100%;
    z-index: 500;
    transition: all 0.35s ease;
}
#main-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
}

/* Hide scrollbar but allow scrolling */
.scrollbar-hide {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
/* ========================= NAVIGATION ========================= */
.nav-link {
    position: relative;
    color: var(--color-primary);
    font-size: 17px;
    font-weight: 525;
    /* padding: 6px 0; */
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--color-secondary);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
/* ========================= DROPDOWN ========================= */
.has-dropdown {
    position: relative;
}
.dropdown-panel {
    position: absolute;
    top: 130%;
    left: 0;
    width: 240px;
    background: white;
    border-radius: 0 0 18px 18px;
    border: 1px solid #f3f4f6;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
}
.has-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-panel a {
    display: block;
    padding: 14px 20px;
    color: var(--color-dark);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: var(--transition);
}
.dropdown-panel a:hover {
    background: #f9fafb;
    color: var(--color-secondary);
    padding-left: 28px;
}
/* ========================= MOBILE MENU ========================= */
#offcanvas-flip {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 85%;
    max-width: 340px;
    background: white;
    z-index: 999;
    transition: right 0.35s ease;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
}
#offcanvas-flip.open {
    right: 0;
}
.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.offcanvas-overlay.open {
    opacity: 1;
    visibility: visible;
}
.offcanvas-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    color: var(--color-primary);
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: var(--transition);
}
.offcanvas-nav-link:hover {
    background: #f9fafb;
    padding-left: 28px;
}
/* ========================= HERO ========================= */
.homepage-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 !important;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(52, 47, 127, 0.92) 0%,
        rgba(52, 47, 127, 0.65) 40%,
        rgba(52, 47, 127, 0.2) 100%
    );
}
/* ========================= BUTTONS ========================= */
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-primary);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: var(--transition);
}
.primary-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}
.white-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--color-primary);
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: var(--transition);
}
.white-btn:hover {
    background: var(--color-secondary);
    color: white;
}
/* ========================= CARD SYSTEM ========================= */
.modern-card {
    background: var(--color-white);
    border: 1px solid var(--color-surface-100);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}
.modern-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
/* ========================= PRODUCT CARD ========================= */
.product-card {
    background: white;
    border: 1px solid #eef2f7;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.product-card-image {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(to bottom, var(--color-white), #f9fafb);
}
.product-card-image img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}
.product-card-content {
    border-top: 3px solid var(--color-secondary);
    padding: 18px;
    text-align: center;
}
/* ========================= BLOG ========================= */
.blog-card-image {
    overflow: hidden;
    border-radius: 28px;
}
.blog-card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}
/* ========================= SIDEBAR ========================= */
.sidebar-card {
    background: white;
    border-radius: 28px;
    border: 1px solid var(--color-surface-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-surface-100);
    color: var(--color-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-link.active {
    background: var(--color-secondary);
    color: white;
}

.sidebar-link:hover {
    background: var(--color-secondary);
    color: white;
}
/* ========================= FOOTER ========================= */
footer {
    background: #1e1b4b;
}
.footer-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    transition: var(--transition);
}
.footer-link:hover {
    color: white;
    padding-left: 6px;
}
/* ========================= SOCIAL ICON ========================= */
.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}
.icon-btn:hover {
    transform: translateY(-3px);
}
.bg-facebook {
    background: var(--color-facebook);
}
.bg-instagram {
    background: var(--color-instagram);
}
.bg-twitter {
    background: var(--color-twitter);
}
.bg-youtube {
    background: var(--color-youtube);
}
/* ========================= REVEAL ========================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ========================= UTILITIES ========================= */
.two-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.three-line {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.four-line {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* ========================= BACK TO TOP ========================= */
#backToTop {
    backdrop-filter: blur(10px);
}
/* ========================= RESPONSIVE ========================= */
@media (max-width: 1024px) {
    .homepage-banner {
        min-height: 850px;
    }
}
@media (max-width: 768px) {
    h1 {
        line-height: 1.15 !important;
    }
    .homepage-banner {
        min-height: 760px;
    }
    .product-card-image {
        height: 200px;
    }
    .blog-card-image img {
        height: 240px;
    }
}
@media (max-width: 640px) {
    .homepage-banner {
        min-height: 700px;
    }
    .product-card-image {
        height: 180px;
        padding: 20px;
    }
}

.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    width: 60px;
    height: 60px;
    border-radius: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-3px);
}
