/* ================================================================
   ServerMili Data Center — Custom Styles
   ================================================================ */

:root {
    --sm-primary: #FF6B35;
    --sm-primary-hover: #E55A2B;
    --sm-secondary: #4A90D9;
    --sm-accent: #138808;
    --sm-success: #10b981;
    --sm-info: #3b82f6;
    --sm-gradient: linear-gradient(135deg, #FF9933 0%, #FF6B35 100%);
    --sm-gradient-accent: linear-gradient(135deg, #FF9933 0%, #e8601e 100%);
    --sm-gradient-hero: linear-gradient(135deg, #FF9933 0%, #f5842c 40%, #e8601e 100%);
    --sm-gradient-nav: linear-gradient(135deg, #f0a030 0%, #e8841e 35%, #d96a10 70%, #c85a08 100%);
    --sm-saffron: #FF9933;
    --sm-gold: #FFD700;
    --sm-navy: #1e2a3a;
    --sm-navy-dark: #141c2b;
    --sm-transition: all 0.3s ease;
    --sm-radius: 12px;
    --sm-radius-sm: 8px;
    --sm-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --sm-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --sm-shadow-card: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* ----------------------------------------------------------------
   Dark Theme
   ---------------------------------------------------------------- */
[data-bs-theme="dark"] {
    --sm-bg: #0b1120;
    --sm-bg-secondary: #111827;
    --sm-bg-card: #1a2332;
    --sm-bg-card-hover: #1f2b3d;
    --sm-border: rgba(255, 255, 255, 0.08);
    --sm-border-hover: rgba(255, 255, 255, 0.15);
    --sm-text: #e2e8f0;
    --sm-text-muted: #94a3b8;
    --sm-text-heading: #f1f5f9;
    --sm-nav-bg: #1e2a3a;
    --sm-topbar-bg: #141c2b;
    --sm-footer-bg: #0a0f1a;
}

/* ----------------------------------------------------------------
   Light Theme (default — Professional Colorful)
   ---------------------------------------------------------------- */
[data-bs-theme="light"] {
    --sm-bg: #edf2f8;
    --sm-bg-secondary: #e2e9f1;
    --sm-bg-card: #ffffff;
    --sm-bg-card-hover: #f6f8fb;
    --sm-border: rgba(0, 0, 0, 0.07);
    --sm-border-hover: rgba(0, 0, 0, 0.12);
    --sm-text: #3a4553;
    --sm-text-muted: #6b7b8d;
    --sm-text-heading: #1a2332;
    --sm-nav-bg: #1e2a3a;
    --sm-topbar-bg: #141c2b;
    --sm-footer-bg: #1a2332;
}

/* ----------------------------------------------------------------
   Base / Global
   ---------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--sm-bg);
    color: var(--sm-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--sm-text-heading);
    font-weight: 700;
    font-family: 'Poppins', 'Inter', sans-serif;
}

a { color: var(--sm-primary); transition: var(--sm-transition); }
a:hover { color: var(--sm-primary-hover); }

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

section { padding: 5rem 0; }

.text-gradient {
    background: var(--sm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----------------------------------------------------------------
   Top Bar — Darker shade of the gradient
   ---------------------------------------------------------------- */
.top-bar {
    background: #b85a0a;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar-item {
    color: rgba(255, 255, 255, 0.9);
}

.top-bar-btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.top-bar-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* Force top bar colors regardless of theme */
[data-bs-theme="light"] .top-bar,
[data-bs-theme="dark"] .top-bar {
    color: rgba(255, 255, 255, 0.9);
}
[data-bs-theme="light"] .top-bar .top-bar-item,
[data-bs-theme="dark"] .top-bar .top-bar-item {
    color: rgba(255, 255, 255, 0.9);
}

/* ----------------------------------------------------------------
   Navigation — Warm orange gradient header
   ---------------------------------------------------------------- */
#mainNav {
    background: var(--sm-gradient-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.65rem 0;
    z-index: 1040;
    transition: var(--sm-transition);
}

#mainNav.scrolled {
    box-shadow: 0 4px 20px rgba(200, 90, 8, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Logo theme switching — show white logo on orange nav */
.logo-light { display: inline-block; }
.logo-dark  { display: none; }

/* Footer also uses light logo on dark bg */
.footer-brand img { height: 36px; }

/* Nav links — white text on dark background */
.navbar-nav {
    gap: 0.35rem;
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.55rem 1.25rem;
    border-radius: var(--sm-radius-sm);
    transition: var(--sm-transition);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-nav .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

/* Desktop dropdown menus — white/card bg */
.dropdown-menu {
    background: var(--sm-bg-card);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-lg);
    padding: 0.5rem;
    min-width: 240px;
}

.dropdown-item {
    color: var(--sm-text);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--sm-radius-sm);
    transition: var(--sm-transition);
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(255, 107, 53, 0.08);
    color: var(--sm-primary);
}

.dropdown-divider {
    border-color: var(--sm-border);
    margin: 0.3rem 0;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.65rem;
    color: #fff;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Client Area button in nav — white on orange gradient */
#mainNav .btn-primary {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--sm-primary) !important;
    font-weight: 700;
    border-radius: 50px;
}

#mainNav .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--sm-primary-hover) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* --- Desktop dropdown system (JS-managed .sm-open class) --- */
@media (min-width: 1200px) {
    /* Nav links sit above dropdown menus so hover always fires */
    .navbar-nav > .dropdown > .nav-link {
        position: relative;
        z-index: 1021;
    }

    .navbar-nav > .dropdown > .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
        margin-top: 0;
        pointer-events: none;
        border-top: 3px solid #c85a08;
        z-index: 1020;
    }

    .navbar-nav > .dropdown.sm-open > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navbar-nav > .dropdown > .nav-link.dropdown-toggle::after {
        transition: transform 0.2s ease;
    }

    .navbar-nav > .dropdown.sm-open > .nav-link.dropdown-toggle::after {
        transform: rotate(180deg);
    }

    /* Mega parents become static so menus position under navbar */
    .dropdown-mega {
        position: static !important;
    }
}

/* --- Mega Menu --- */
.mega-menu {
    min-width: 680px;
    padding: 1.25rem 1.5rem !important;
}

.mega-row {
    display: flex;
    gap: 1.5rem;
}

.mega-col {
    flex: 1;
    min-width: 0;
}

.mega-col h6 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sm-primary);
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
    white-space: nowrap;
}

.mega-col .dropdown-item {
    font-size: 0.825rem;
    padding: 0.4rem 0.75rem;
}

/* Mega menu positioning on desktop */
@media (min-width: 1200px) {
    .dropdown-mega > .mega-menu {
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        top: 100%;
    }

    .dropdown-mega.sm-open > .mega-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* ----------------------------------------------------------------
   Hero Section
   ---------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 7rem 0 5rem;
    background: var(--sm-bg);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sm-primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--sm-text-muted);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat-item h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sm-primary);
    margin-bottom: 0.1rem;
}

.hero-stat-item p {
    font-size: 0.8125rem;
    color: var(--sm-text-muted);
    margin: 0;
}

/* ----------------------------------------------------------------
   Page Header (inner pages) — Orange gradient like reference
   ---------------------------------------------------------------- */
.page-header {
    padding: 2.5rem 0 2rem;
    background: var(--sm-gradient-hero);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.breadcrumb-custom a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.breadcrumb-custom a:hover { color: #ffffff; }
.breadcrumb-custom .separator { color: rgba(255, 255, 255, 0.5); }
.breadcrumb-custom .current { color: #ffffff; font-weight: 600; }

/* ----------------------------------------------------------------
   Cards
   ---------------------------------------------------------------- */
.sm-card {
    background: var(--sm-bg-card);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    padding: 1.75rem;
    transition: var(--sm-transition);
    box-shadow: var(--sm-shadow-card);
}

/* Only stretch to equal heights inside grid rows */
.row .sm-card,
.col .sm-card,
[class*="col-"] .sm-card {
    height: 100%;
}

/* Legal / long-content cards should auto-size */
.sm-card.mb-4,
.sm-card.mb-3 {
    height: auto;
}

.sm-card:hover {
    border-color: var(--sm-border-hover);
    background: var(--sm-bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--sm-shadow-lg);
}

.sm-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.sm-card-icon.blue    { background: rgba(255, 107, 53, 0.1); color: #FF6B35; }
.sm-card-icon.purple  { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.sm-card-icon.cyan    { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.sm-card-icon.green   { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.sm-card-icon.orange  { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.sm-card-icon.red     { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.sm-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sm-card p {
    font-size: 0.875rem;
    color: var(--sm-text-muted);
    margin-bottom: 0;
}

/* Feature card link */
.sm-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.sm-card-link:hover {
    color: inherit;
}

/* ----------------------------------------------------------------
   Section Headings
   ---------------------------------------------------------------- */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading .badge-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 1rem;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sm-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-heading h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-heading p {
    color: var(--sm-text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ----------------------------------------------------------------
   Pricing Cards — Clean & Colorful
   ---------------------------------------------------------------- */
.pricing-card {
    background: var(--sm-bg-card);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--sm-transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sm-shadow-card);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sm-border);
    transition: var(--sm-transition);
}

.pricing-card:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(255, 107, 53, 0.15);
}

.pricing-card:hover::before {
    background: var(--sm-primary);
}

.pricing-card.featured {
    border-color: var(--sm-primary);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.12);
}

.pricing-card.featured::before {
    background: var(--sm-gradient);
    height: 4px;
}

.pricing-card .popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--sm-gradient);
    color: #fff;
    padding: 0.35rem 1.25rem 0.35rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0 0 0 20px;
}

.pricing-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card .price,
.pricing-card .pricing-price .price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--sm-primary);
    margin: 1rem 0;
    line-height: 1;
}

.pricing-card .price small,
.pricing-card .pricing-price .period {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sm-text-muted);
}

.pricing-card .pricing-sub {
    font-size: 0.8rem;
    color: var(--sm-text-muted);
    margin-bottom: 0.5rem;
}

.pricing-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-card .feature-list li {
    padding: 0.45rem 0;
    font-size: 0.875rem;
    color: var(--sm-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--sm-border);
}

.pricing-card .feature-list li:last-child {
    border-bottom: none;
}

.pricing-card .feature-list li i {
    color: var(--sm-success);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.pricing-card .pricing-card-footer .btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

/* ----------------------------------------------------------------
   Server Table — Clean Professional Rows
   ---------------------------------------------------------------- */
.server-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.server-filters .btn {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--sm-border);
    background: var(--sm-bg-card);
    color: var(--sm-text-muted);
    transition: var(--sm-transition);
}

.server-filters .btn:hover,
.server-filters .btn.active {
    background: var(--sm-primary);
    border-color: var(--sm-primary);
    color: #fff;
}

.server-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.server-table thead th {
    background: var(--sm-navy);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.9rem 1rem;
    border-bottom: none;
    white-space: nowrap;
}

.server-table thead th:first-child { border-radius: var(--sm-radius-sm) 0 0 0; }
.server-table thead th:last-child  { border-radius: 0 var(--sm-radius-sm) 0 0; }

.server-table tbody tr {
    transition: var(--sm-transition);
    background: var(--sm-bg-card);
}

.server-table tbody tr:nth-child(even) {
    background: var(--sm-bg);
}

.server-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.04);
}

.server-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--sm-border);
    font-size: 0.875rem;
    vertical-align: middle;
}

.server-table .server-name {
    font-weight: 700;
    color: var(--sm-text-heading);
}

.server-table .server-price {
    font-weight: 800;
    color: var(--sm-primary);
    font-size: 1.05rem;
}

.server-table .server-price small {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--sm-text-muted);
}

.server-table .badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
}

/* Order button in table — colorful rounded */
.server-table .btn-primary,
.server-table .btn-sm {
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
    letter-spacing: 0.02em;
}

/* Responsive table wrapper */
.table-responsive-wrapper {
    background: var(--sm-bg-card);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow-card);
}

.table-responsive-wrapper .server-table {
    margin-bottom: 0;
}

/* ----------------------------------------------------------------
   Feature Grid
   ---------------------------------------------------------------- */
.feature-grid {
    display: grid;
    gap: 1.5rem;
}

.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .feature-grid.cols-3,
    .feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .feature-grid.cols-2,
    .feature-grid.cols-3,
    .feature-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   CTA Section — Bold orange gradient
   ---------------------------------------------------------------- */
.cta-section {
    padding: 4rem 0;
    background: var(--sm-gradient-hero);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255, 255, 255, 0.9); }

.cta-section .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.75rem;
}

.cta-section .btn-light {
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.75rem;
    color: var(--sm-primary);
}

/* ----------------------------------------------------------------
   Footer — Dark professional
   ---------------------------------------------------------------- */
.site-footer {
    background: var(--sm-footer-bg);
    color: #cbd5e1;
    padding: 3.5rem 0 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    color: #f1f5f9;
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: var(--sm-transition);
}

.footer-links a:hover { color: var(--sm-primary); }

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 1rem;
    transition: var(--sm-transition);
}

.footer-social a:hover {
    background: var(--sm-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-badges .badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
}

/* ----------------------------------------------------------------
   Back to Top
   ---------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--sm-transition);
    z-index: 1050;
    box-shadow: var(--sm-shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ----------------------------------------------------------------
   Buttons — Rounded, professional
   ---------------------------------------------------------------- */
.btn-primary {
    background: var(--sm-primary);
    border-color: var(--sm-primary);
    border-radius: 50px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--sm-primary-hover);
    border-color: var(--sm-primary-hover);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

.btn-outline-primary {
    color: var(--sm-primary);
    border-color: var(--sm-primary);
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--sm-primary);
    border-color: var(--sm-primary);
    color: #fff;
}

.btn-gradient {
    background: var(--sm-gradient);
    border: none;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
}

.btn-gradient:hover {
    opacity: 0.92;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-saffron {
    background: #FF9933;
    border-color: #FF9933;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
}
.btn-saffron:hover {
    background: #E88A2A;
    border-color: #E88A2A;
    color: #fff;
}

/* ----------------------------------------------------------------
   Info Boxes / Spec Items
   ---------------------------------------------------------------- */
.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--sm-border);
}

.spec-item:last-child { border-bottom: none; }

.spec-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.spec-item h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.spec-item p {
    font-size: 0.8125rem;
    color: var(--sm-text-muted);
    margin: 0;
}

/* ----------------------------------------------------------------
   Utilities
   ---------------------------------------------------------------- */
.bg-dark-subtle {
    background: var(--sm-bg-secondary) !important;
}

.border-subtle {
    border-color: var(--sm-border) !important;
}

.text-muted-custom {
    color: var(--sm-text-muted);
}

.fw-800 { font-weight: 800; }

/* ----------------------------------------------------------------
   Responsive — Mobile Navigation
   ---------------------------------------------------------------- */
@media (max-width: 1199px) {
    /* Mobile navbar layout: hamburger left, brand center, actions right */
    #mainNav .container-fluid {
        flex-wrap: wrap;
    }

    #mainNav .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.35);
        padding: 0.3rem 0.55rem;
        font-size: 1.1rem;
        border-radius: var(--sm-radius-sm);
        background: rgba(255, 255, 255, 0.12);
    }

    #mainNav .navbar-toggler:focus {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    }

    .mobile-client-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem !important;
        border-radius: var(--sm-radius-sm);
    }

    /* Mobile slide-down menu panel */
    .navbar-collapse {
        background: var(--sm-bg-card);
        border: 1px solid var(--sm-border);
        border-radius: var(--sm-radius);
        margin-top: 0.75rem;
        padding: 0.5rem;
        max-height: 75vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: var(--sm-shadow-lg);
        width: 100%;
    }

    /* Smooth scrollbar on mobile panel */
    .navbar-collapse::-webkit-scrollbar {
        width: 4px;
    }
    .navbar-collapse::-webkit-scrollbar-track {
        background: transparent;
    }
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: var(--sm-border);
        border-radius: 4px;
    }

    /* Mobile nav links — dark text on white panel */
    .navbar-nav .nav-link {
        color: var(--sm-text-heading);
        font-size: 0.9rem;
        font-weight: 600;
        padding: 0.65rem 0.75rem;
        border-radius: var(--sm-radius-sm);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--sm-primary);
        background: rgba(255, 107, 53, 0.08);
    }

    .navbar-nav .nav-link:active {
        background: rgba(255, 107, 53, 0.12);
    }

    /* Mobile dropdown toggle arrow */
    .navbar-nav .dropdown-toggle::after {
        transition: transform 0.25s ease;
        margin-left: auto;
        font-size: 0.7rem;
    }

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

    /* Mobile dropdown menus */
    .dropdown-menu {
        background: var(--sm-bg-secondary);
        border: none;
        box-shadow: none;
        padding: 0.25rem 0 0.25rem 0.5rem;
        margin: 0;
        border-left: 3px solid var(--sm-primary);
        border-radius: 0 var(--sm-radius-sm) var(--sm-radius-sm) 0;
    }

    .dropdown-item {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
        border-radius: var(--sm-radius-sm);
    }

    .dropdown-item i {
        font-size: 0.85rem;
        width: 20px;
        text-align: center;
        opacity: 0.7;
    }

    .dropdown-divider {
        margin: 0.25rem 0.5rem;
        opacity: 0.3;
    }

    /* Mega menu stacks on mobile */
    .mega-menu {
        min-width: 0 !important;
        padding: 0.5rem 0 !important;
    }

    .mega-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .mega-col {
        padding-left: 0;
    }

    .mega-col h6 {
        font-size: 0.65rem;
        margin-top: 0.5rem;
    }

    /* Mobile search bar inside menu (if added later) */
    .mobile-search {
        padding: 0.5rem;
        margin-bottom: 0.25rem;
    }
}

/* ----------------------------------------------------------------
   Responsive — General
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    section { padding: 3rem 0; }

    .hero-section { padding: 4rem 0 3rem; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }

    .page-header { padding: 1.5rem 0 1rem; }
    .page-header h1 { font-size: 1.75rem; }

    .section-heading h2 { font-size: 1.5rem; }

    .pricing-card { padding: 1.5rem; }

    .cta-section { padding: 3rem 0; }

    .footer-badges { justify-content: center; }

    /* Tighter navbar on small phones */
    #mainNav { padding: 0.45rem 0; }
    #mainNav .container-fluid { padding-left: 0.75rem; padding-right: 0.75rem; }
    .navbar-brand { font-size: 1.1rem; }
    .brand-text { font-size: 0.95rem; }
}

@media (max-width: 400px) {
    .navbar-brand { font-size: 1rem; }
    .brand-text { font-size: 0.9rem; }
    .mobile-client-btn { display: none !important; }
}

/* ----------------------------------------------------------------
   Animations
   ---------------------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered elements: subtle slide-up on enter */
[data-animate] {
    transform: translateY(18px);
    transition: transform 0.5s ease;
}

[data-animate].animate-in {
    transform: translateY(0);
}

/* Stagger children — subtle entrance */
.stagger-children > * {
    animation: fadeInUp 0.5s ease both;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

/* ----------------------------------------------------------------
   Server table extra filter bar
   ---------------------------------------------------------------- */
.filter-bar {
    background: var(--sm-bg-card);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: var(--sm-shadow-card);
}

.filter-bar label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sm-text-muted);
    white-space: nowrap;
}

.filter-bar select,
.filter-bar input[type="range"] {
    font-size: 0.8125rem;
}

.filter-bar .form-select {
    background-color: var(--sm-bg-secondary);
    border-color: var(--sm-border);
    color: var(--sm-text);
    width: auto;
    min-width: 140px;
    max-width: 200px;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

/* ----------------------------------------------------------------
   Hero Image
   ---------------------------------------------------------------- */
.hero-image-wrapper {
    position: relative;
    border-radius: var(--sm-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow-lg);
    border: 1px solid var(--sm-border);
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ----------------------------------------------------------------
   Data Center Image Card (Home page)
   ---------------------------------------------------------------- */
.dc-image-card {
    position: relative;
    border-radius: var(--sm-radius);
    overflow: hidden;
    border: 1px solid var(--sm-border);
    box-shadow: var(--sm-shadow-card);
}

.dc-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.dc-image-overlay {
    padding: 1.25rem;
    background: var(--sm-bg-card);
}

.dc-stat-box {
    padding: 0.75rem;
    background: var(--sm-bg-secondary);
    border-radius: var(--sm-radius-sm);
    border: 1px solid var(--sm-border);
}

/* ----------------------------------------------------------------
   Page Header with Background Image
   ---------------------------------------------------------------- */
.page-header-img {
    position: relative;
    padding: 2.5rem 0 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: none;
    overflow: hidden;
}

.page-header-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.92) 0%, rgba(232, 96, 30, 0.85) 100%);
    z-index: 1;
}

[data-bs-theme="dark"] .page-header-img::before {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.92) 0%, rgba(11, 17, 32, 0.75) 100%);
}

.page-header-img > * {
    position: relative;
    z-index: 2;
}

/* ----------------------------------------------------------------
   Section with Background Image
   ---------------------------------------------------------------- */
.section-bg-image {
    position: relative;
    background-size: cover;
    background-position: center;
}

.section-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 42, 58, 0.93) 0%, rgba(30, 42, 58, 0.8) 100%);
    z-index: 1;
}

.section-bg-image > * {
    position: relative;
    z-index: 2;
}

/* ----------------------------------------------------------------
   Image Cards (for inner pages)
   ---------------------------------------------------------------- */
.img-card {
    border-radius: var(--sm-radius);
    overflow: hidden;
    border: 1px solid var(--sm-border);
    box-shadow: var(--sm-shadow);
}

.img-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.img-card-tall img {
    height: 350px;
}

.img-card-short img {
    height: 180px;
}

/* ----------------------------------------------------------------
   Content Image Layouts (inline page images)
   ---------------------------------------------------------------- */
/* Rounded content image with shadow */
.content-img {
    border-radius: var(--sm-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow);
    border: 1px solid var(--sm-border);
    margin-bottom: 1.5rem;
}

.content-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.content-img:hover img {
    transform: scale(1.03);
}

/* Fixed height variants */
.content-img-md img { height: 280px; }
.content-img-lg img { height: 380px; }
.content-img-sm img { height: 200px; }

/* Image with gradient overlay and text */
.content-img-overlay {
    position: relative;
    border-radius: var(--sm-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow);
    border: 1px solid var(--sm-border);
}

.content-img-overlay img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.content-img-overlay .overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.content-img-overlay .overlay-text h5 {
    color: #fff;
    margin-bottom: 0.25rem;
}

.content-img-overlay .overlay-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.875rem;
}

/* Image strip / gallery row */
.image-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-strip .strip-item {
    border-radius: var(--sm-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow);
    border: 1px solid var(--sm-border);
}

.image-strip .strip-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.image-strip .strip-item:hover img {
    transform: scale(1.05);
}

/* Saffron accent image border (Indian flair) */
.content-img-accent {
    border-radius: var(--sm-radius);
    overflow: hidden;
    border: 3px solid var(--sm-saffron);
    box-shadow: 0 4px 20px rgba(255, 153, 51, 0.15);
}

.content-img-accent img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Feature image with badge */
.feature-img-card {
    position: relative;
    border-radius: var(--sm-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow);
    border: 1px solid var(--sm-border);
    margin-bottom: 1.5rem;
}

.feature-img-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.feature-img-card .img-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--sm-primary);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Kolkata / location showcase card */
.location-card {
    border-radius: var(--sm-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow);
    border: 1px solid var(--sm-border);
    background: var(--sm-bg-card);
}

.location-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.location-card .location-body {
    padding: 1.25rem;
}

.location-card .location-body h5 {
    margin-bottom: 0.5rem;
}

.location-card .location-body p {
    margin: 0;
    color: var(--sm-text-muted);
    font-size: 0.9rem;
}

/* ----------------------------------------------------------------
   Light Theme Specific Enhancements
   ---------------------------------------------------------------- */
[data-bs-theme="light"] .navbar-brand {
    color: #ffffff !important;
}

[data-bs-theme="light"] .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

[data-bs-theme="light"] #themeToggleMobile {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

[data-bs-theme="light"] #themeToggleMobile:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Light theme form controls */
[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background-color: #ffffff;
    border-color: #d1d9e6;
    color: var(--sm-text);
}

[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
    border-color: var(--sm-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Light theme table enhancements */
[data-bs-theme="light"] .table {
    color: var(--sm-text);
}
