/* ============================================================
   MAX ERP SOLUTIONS — Professional CSS Redesign
   Theme: Deep Navy + Gold | Fonts: Outfit + DM Sans
   ============================================================ */

:root {
    --navy:      #0a1628;
    --navy-mid:  #112240;
    --navy-light:#1a3a6b;
    --blue:      #1565c0;
    --blue-light:#1e88e5;
    --gold:      #f59e0b;
    --gold-light:#fbbf24;
    --gold-pale: #fef3c7;
    --white:     #ffffff;
    --off-white: #f8fafc;
    --text-dark: #0f172a;
    --text-mid:  #475569;
    --text-light:#94a3b8;
    --border:    #e2e8f0;
    --radius:    14px;
    --radius-sm: 8px;
    --shadow:    0 4px 24px rgba(10,22,40,0.12);
    --shadow-lg: 0 12px 48px rgba(10,22,40,0.18);
    --transition:0.28s cubic-bezier(.4,0,.2,1);
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    padding-top: 104px;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; }

/* ── TOP BAR ── */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    padding: 7px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
}
.topbar a { color: rgba(255,255,255,0.72); }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); }

/* ── NAVBAR ── */
.main-navbar {
    background: rgba(10,22,40,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    top: 35px;
    padding: 14px 0;
    box-shadow: 0 4px 32px rgba(0,0,0,0.28);
    border-bottom: 1px solid rgba(245,158,11,0.15);
    z-index: 10000;
    transition: background var(--transition);
}

/* Brand */
.navbar-brand { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 22px; letter-spacing: -0.3px; }
.brand-max  { color: var(--gold); }
.brand-erp  { color: var(--white); }
.brand-tag  { color: rgba(255,255,255,0.55); font-weight: 500; font-size: 16px; }

/* Nav links */
.main-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--gold) !important;
    background: rgba(245,158,11,0.1);
}

/* Demo button */
.btn-demo {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    padding: 10px 22px !important;
    border: none;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}
.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,158,11,0.45);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--navy) !important;
}

/* Dropdown */
.main-navbar .dropdown-menu {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
}
.main-navbar .dropdown-item {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark) !important;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
}
.main-navbar .dropdown-item i { width: 18px; color: var(--blue); }
.main-navbar .dropdown-item:hover {
    background: var(--off-white);
    color: var(--blue) !important;
    transform: translateX(4px);
}
.main-navbar .dropdown-divider { margin: 6px 0; border-color: var(--border); }

/* ── HERO SECTION ── */
.hero-advanced {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero-advanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(21,101,192,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 80% 20%, rgba(245,158,11,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.hero-advanced .hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.35);
    color: var(--gold-light);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease both;
}
.hero-badge .dot {
    width: 7px; height: 7px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-advanced h1 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
    animation: fadeInUp 0.7s 0.1s ease both;
}
.hero-advanced h1 .highlight {
    color: var(--gold);
    position: relative;
}
.hero-advanced .hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin-top: 16px;
    animation: fadeInUp 0.7s 0.2s ease both;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 36px;
    animation: fadeInUp 0.7s 0.3s ease both;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 32px rgba(245,158,11,0.4);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(245,158,11,0.5);
    color: var(--navy);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.35);
}

.hero-img {
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.4));
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 44px;
    animation: fadeInUp 0.7s 0.4s ease both;
}
.stat-item { text-align: left; }
.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* ── SERVICES SECTION ── */
.services-section {
    padding: 90px 0;
    background: var(--off-white);
}

.section-label {
    display: inline-block;
    background: var(--gold-pale);
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
}

.section-sub {
    font-size: 17px;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(21,101,192,0.1), rgba(245,158,11,0.1));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    font-size: 26px;
    color: var(--blue);
    transition: all var(--transition);
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white);
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.service-card p {
    color: var(--text-mid);
    font-size: 15px;
    margin: 0;
    line-height: 1.65;
}

/* ── FEATURES SECTION ── */
.features-section {
    background: var(--white);
    padding: 90px 0;
}

.features-img-wrap {
    position: relative;
}
.features-img-wrap img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.features-img-wrap::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(245,158,11,0.15), transparent 70%);
    pointer-events: none;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li .check {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* ── WHY CHOOSE ── */
.why-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 700px 500px at 50% 50%, rgba(21,101,192,0.2), transparent 70%);
    pointer-events: none;
}

.trust-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}
.trust-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(245,158,11,0.35);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.trust-card .trust-icon {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 16px;
}
.trust-card h5 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.trust-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ── PRODUCTS SECTION ── */
.products-section {
    padding: 90px 0;
    background: var(--off-white);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(21,101,192,0.2);
}
.product-card .product-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--off-white);
}
.product-card .product-img-wrap img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--blue);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
}

.product-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card h6 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
}
.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--blue);
    margin-top: auto;
    padding-top: 10px;
}
.product-price span { font-size: 13px; font-weight: 500; color: var(--text-mid); }

.btn-view-product {
    display: block;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    padding: 12px;
    transition: all var(--transition);
    border-top: 1px solid var(--border);
}
.btn-view-product:hover {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white);
}

/* Software Products Showcase */
.software-products-section {
    padding: 90px 0;
    background: var(--white);
}
.software-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.software-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245,158,11,0.35);
}
.software-card .software-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--off-white);
    aspect-ratio: 16 / 9;
}
.software-card .software-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}
.software-card:hover .software-img-wrap img { transform: scale(1.08); }

/* Diagonal shine sweep on hover */
.software-card .software-img-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s ease;
    pointer-events: none;
}
.software-card:hover .software-img-wrap::after { left: 125%; }

/* Dark overlay + arrow icon on hover */
.software-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,0.55) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.software-card:hover .software-img-overlay { opacity: 1; }
.software-img-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    transform: translateY(10px) scale(0.8);
    opacity: 0;
    transition: all 0.35s ease 0.05s;
}
.software-card:hover .software-img-icon {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.software-card .card-body {
    padding: 22px 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.software-card h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--navy);
    margin-bottom: 0;
}
.software-card h5 a:hover { color: var(--gold); }

/* Software Detail Page */
.software-detail-intro h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.3px;
}
.software-detail-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--off-white);
    box-shadow: var(--shadow);
}
.software-detail-img-wrap img {
    width: 100%;
    display: block;
}

.software-detail-description {
    max-width: 820px;
    margin: 56px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.software-detail-description h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin: 8px 0 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gold-pale);
    display: inline-block;
}
.software-detail-description h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 26px 0 14px;
}
.software-detail-description p {
    font-family: 'DM Sans', sans-serif;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 18px;
}
.software-detail-description p strong { color: var(--navy); }
.software-detail-description ul {
    list-style: none;
    padding-left: 0;
    margin: 4px 0 22px;
}
.software-detail-description ul li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-mid);
}
.software-detail-description ul li strong { color: var(--navy); font-weight: 700; }
.software-detail-description ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0; top: 1px;
    width: 22px; height: 22px;
    background: var(--gold-pale);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.btn-software-enquire {
    display: block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    padding: 12px;
    transition: all var(--transition);
}
.btn-software-enquire:hover {
    color: var(--navy);
    filter: brightness(1.05);
}

/* Carousel arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 44px; height: 44px;
    background: var(--gold);
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
    opacity: 1;
    display: flex; align-items: center; justify-content: center;
}
.carousel-control-prev { left: -22px; }
.carousel-control-next { right: -22px; }
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) brightness(0);
    width: 18px; height: 18px;
}



/* ── CTA SECTION ── */
.cta-section {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 500px 300px at 50% 50%, rgba(255,255,255,0.15), transparent 70%);
    pointer-events: none;
}
.cta-section h2 {
    font-size: clamp(26px,4vw,42px);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 12px;
}
.cta-section p {
    font-size: 18px;
    color: rgba(10,22,40,0.7);
    margin-bottom: 32px;
}
.btn-cta-white {
    background: var(--navy);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    transition: all var(--transition);
    box-shadow: 0 8px 32px rgba(10,22,40,0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 48px rgba(10,22,40,0.4);
    color: var(--gold);
}

/* ── STORE PAGE ── */
.store-header-spacer { height: 40px; }
.store-hero {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    padding: 60px 0 50px;
    text-align: center;
    color: var(--white);
    margin-bottom: 0;
}
.store-hero h1 { font-size: 36px; font-weight: 900; }
.store-hero p { color: rgba(255,255,255,0.7); margin: 0; }

.category-filter { padding: 32px 0; }
.category-filter .btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 20px;
    border-radius: 50px;
    border: 2px solid var(--border);
    color: var(--text-mid);
    background: var(--white);
    margin: 4px;
    transition: all var(--transition);
}
.category-filter .btn:hover,
.category-filter .btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── CONTACT PAGE ── */
.contact-hero {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 80px 0 70px;
    text-align: center;
    color: var(--white);
}
.contact-hero h1 { font-size: clamp(28px,4vw,44px); font-weight: 900; }
.contact-hero p { color: rgba(255,255,255,0.7); font-size: 18px; }

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.contact-card h4 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 14px;
    margin-bottom: 28px;
    display: inline-block;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-item .icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 17px;
    flex-shrink: 0;
}
.contact-item small { color: var(--text-light); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }
.contact-item .text div, .contact-item a { color: var(--text-dark); font-weight: 500; }
.contact-item a:hover { color: var(--blue); }

.map-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 420px;
    border: 1px solid var(--border);
}
.map-card iframe { width: 100%; height: 100%; min-height: 420px; display: block; }

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    transition: all var(--transition);
    border: none;
}
.btn-whatsapp:hover {
    background: #128c7e;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

/* ── PRODUCT MODAL ── */
.modal-content { border-radius: var(--radius); border: none; box-shadow: var(--shadow-lg); }
.modal-header { background: var(--navy); color: var(--white); border-radius: var(--radius) var(--radius) 0 0; padding: 20px 28px; }
.modal-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; }
.btn-close { filter: invert(1); }
.modal-body { padding: 28px; }

.popup-thumb {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    opacity: 0.75;
}
.popup-thumb:hover,
.popup-thumb.active-thumb {
    border-color: var(--gold);
    opacity: 1;
    transform: scale(1.05);
}

/* ── FOOTER ── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
}
.footer-main { padding: 70px 0 40px; }
.footer-bottom {
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
}
.footer-bottom strong { color: var(--gold); }
.footer-policy-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
}
.footer-policy-links a:hover { color: var(--gold); }

.footer-brand h3 {
    font-size: 24px;
    font-weight: 900;
}
.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    max-width: 340px;
}

.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a i { font-size: 10px; color: var(--gold); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 14px;
}
.footer-contact-list li i {
    color: var(--gold);
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}
.footer-contact-list a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── UTILITY BUTTONS ── */
.btn-primary-solid {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    transition: all var(--transition);
}
.btn-primary-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(21,101,192,0.35);
    color: var(--white);
}

.btn-outline-dark-navy {
    background: transparent;
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--navy);
    transition: all var(--transition);
}
.btn-outline-dark-navy:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.section-divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    border-radius: 2px;
    margin: 14px auto 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    body { padding-top: 90px; }
    .topbar { display: none; }
    .main-navbar { top: 0; }
    .hero-advanced { padding: 60px 0 50px; }
    .hero-stats { gap: 20px; }
    .carousel-control-prev { left: 0; }
    .carousel-control-next { right: 0; }
}

@media (max-width: 767px) {
    .hero-advanced h1 { font-size: 30px; }
    .hero-cta-group { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .contact-card { padding: 24px; }
    .footer-main { padding: 48px 0 24px; }
}

/* ============================================================
   FIXED: Projects Slideshow & Product Carousel Buttons
   ============================================================ */




/* ── PRODUCT CAROUSEL BUTTONS ── */
/* Override the old -22px positioning that broke the layout */
.product-carousel {
    position: relative;
    padding-bottom: 20px;
}

.product-prev,
.product-next {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.28s;
    opacity: 1;
    padding: 0;
}
.product-prev { left: -18px; }
.product-next { right: -18px; }

.product-prev:hover,
.product-next:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-60%) scale(1.08);
}

/* Hide Bootstrap default icons for product carousel too */
.product-prev .carousel-control-prev-icon,
.product-next .carousel-control-next-icon { display: none; }

/* ── SOFTWARE PRODUCTS CAROUSEL BUTTONS ── */
.software-carousel {
    position: relative;
    padding-bottom: 20px;
}
.software-prev,
.software-next {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.28s;
    opacity: 1;
    padding: 0;
}
.software-prev { left: -18px; }
.software-next { right: -18px; }

.software-prev:hover,
.software-next:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-60%) scale(1.08);
}

.software-prev .carousel-control-prev-icon,
.software-next .carousel-control-next-icon { display: none; }

@media (max-width: 991px) {
    .software-prev { left: 0; }
    .software-next { right: 0; }
}



/* CTA WhatsApp button */
.btn-cta-whatsapp {
    background: #25d366;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    transition: all .28s;
    box-shadow: 0 8px 32px rgba(37,211,102,0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-cta-whatsapp:hover {
    background: #128c7e;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 48px rgba(37,211,102,0.45);
}

@media (max-width: 991px) {
    .product-prev { left: 0; }
    .product-next { right: 0; }
}

/* ============================================================
   RECENT PROJECTS & INSTALLATIONS — Clean Definitive CSS
   ============================================================ */

/* Section wrapper */
.projects-slider-section {
    background: #f0f4f8;
    padding: 90px 0 110px;
}

/* Outer wrapper — full width of .container */
.projects-carousel-wrap {
    position: relative;
    width: 100%;
}

/* Bootstrap carousel — force full width */
.projects-carousel-wrap .carousel,
.projects-carousel-wrap .carousel-inner,
.projects-carousel-wrap .carousel-item {
    width: 100%;
}

/* The slide frame — full width, fluid height that scales smoothly
   at ANY viewport width (no fixed breakpoint jumps) */
.project-slide-frame {
    position: relative;
    width: 100%;
    height: clamp(220px, 18vw + 180px, 480px);
    border-radius: clamp(12px, 1.5vw, 20px);
    overflow: hidden;
    background: var(--navy);
    box-shadow: 0 20px 60px rgba(10,22,40,0.20);
}

/* Slide image — fills the frame exactly */
.project-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.8s ease;
}
.carousel-item.active .project-slide-img {
    transform: scale(1.03);
}

/* Caption gradient at bottom */
.project-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(10,22,40,0.90) 0%,
        rgba(10,22,40,0.55) 50%,
        transparent 100%
    );
    padding: clamp(20px, 4vw, 48px) clamp(16px, 3vw, 32px) clamp(14px, 2vw, 24px);
    display: flex;
    align-items: flex-end;
}
.project-slide-caption span {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(14px, 1.6vw, 20px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Dot indicators below the slider */
#projectsCarousel .carousel-indicators {
    position: relative;
    bottom: auto;
    margin-top: 20px;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
#projectsCarousel .carousel-indicators [data-bs-slide-to] {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #cbd5e1;
    border: none;
    opacity: 1;
    transition: all 0.35s;
}
#projectsCarousel .carousel-indicators .active {
    background: var(--gold);
    width: 46px;
}

/* PREV & NEXT arrow buttons — INSIDE the frame */
.project-prev,
.project-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: clamp(36px, 4vw, 52px);
    height: clamp(36px, 4vw, 52px);
    border-radius: 50%;
    background: rgba(10,22,40,0.72);
    border: 2px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: clamp(13px, 1.4vw, 18px);
    cursor: pointer;
    transition: all 0.28s ease;
    /* Reset Bootstrap defaults */
    opacity: 1;
    padding: 0;
    text-shadow: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.project-prev { left: clamp(8px, 1.5vw, 18px); right: auto; }
.project-next { right: clamp(8px, 1.5vw, 18px); left: auto; }

.project-prev:hover,
.project-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(245,158,11,0.45);
}

/* Hide Bootstrap's default SVG icons — we use Font Awesome */
.project-prev .carousel-control-prev-icon,
.project-next .carousel-control-next-icon {
    display: none !important;
}

/* ── RESPONSIVE ──
   Frame height, border-radius, caption padding/font, and arrow button
   size/position are all fluid (clamp()-based) above, so they already
   scale smoothly at every viewport width without needing fixed
   breakpoint overrides here. */
@media (max-width: 767px) {
    #projectsCarousel .carousel-indicators { margin-top: 14px; }
}
