/* ================================================
   Anvisha Sugar Engg Pvt Ltd – Main Stylesheet
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
    --navy:        #0D2446;
    --navy-mid:    #1A4D8F;
    --navy-light:  #2563EB;
    --orange:      #E65100;
    --orange-l:    #FF6D00;
    --sky:         #5BBFDA;
    --sky-light:   #E0F4FB;
    --light-bg:    #EEF5FF;
    --white:       #FFFFFF;
    --text:        #2C3E50;
    --text-muted:  #6B7A8D;
    --border:      rgba(0,0,0,0.08);
    --shadow:      0 4px 20px rgba(13,36,70,0.10);
    --shadow-lg:   0 8px 40px rgba(13,36,70,0.18);
    --radius:      12px;
    --radius-sm:   8px;
    --transition:  all 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
}

a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-l); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 3px; }

/* ================================================
   NAVBAR — WHITE THEME
   ================================================ */
#mainNav {
    background: #ffffff;
    border-bottom: 1px solid rgba(13,36,70,0.08);
    box-shadow: 0 2px 20px rgba(13,36,70,0.08);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
    padding: 10px 0;
    z-index: 1050;
}

#mainNav.scrolled {
    background: #ffffff !important;
    padding: 8px 0;
    box-shadow: 0 4px 28px rgba(13,36,70,0.13);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 52px;
    object-fit: contain;
    filter: none;
    transition: var(--transition);
}

.navbar-brand img:hover { opacity: 0.85; }

.navbar-nav .nav-link {
    color: var(--navy) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 14px !important;
    border-radius: 6px;
    letter-spacing: 0.1px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--orange) !important;
    background: rgba(230,81,0,0.07) !important;
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    min-width: 270px;
    animation: fadeUp 0.2s ease;
}

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

.dropdown-item {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 10px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: var(--light-bg) !important;
    color: var(--navy) !important;
    padding-left: 20px !important;
}

.dropdown-item i { color: var(--orange); font-size: 14px; }

.dropdown-divider { border-color: var(--border); margin: 6px 8px; }

/* Contact btn in nav */
.nav-btn-contact {
    background: var(--orange) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 8px 22px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.nav-btn-contact:hover {
    background: var(--orange-l) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(230,81,0,0.4) !important;
}

/* Dark hamburger icon for white navbar */
.navbar-toggler {
    border: 1.5px solid rgba(13,36,70,0.2) !important;
    padding: 5px 8px;
}

.navbar-toggler:focus { box-shadow: none; }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2813%2C36%2C70%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0D2446 0%, #1A4D8F 60%, #0E7490 100%);
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,36,70,0.90) 0%, rgba(26,77,143,0.80) 60%, rgba(14,116,144,0.75) 100%);
}

/* Dot grid overlay */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 130px 20px 90px;
    max-width: 950px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--sky);
    border-radius: 2px;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 3px 30px rgba(0,0,0,0.3);
}

.hero-title span { color: var(--orange-l); }

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255,255,255,0.82);
    margin-bottom: 44px;
    font-weight: 300;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 14px 38px;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 50px;
    margin: 6px;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.btn-hero-primary {
    background: var(--orange);
    border: 2px solid var(--orange);
    color: #fff;
}

.btn-hero-primary:hover {
    background: var(--orange-l);
    border-color: var(--orange-l);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(230,81,0,0.45);
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: heroScroll 2.5s ease infinite;
}

.hero-scroll i { font-size: 20px; }

@keyframes heroScroll {
    0%,100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ================================================
   STATS BAR
   ================================================ */
.stats-bar {
    background: var(--navy);
    padding: 0;
    position: relative;
    z-index: 5;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--sky), var(--orange));
}

.stat-item {
    text-align: center;
    padding: 36px 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.04); }

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--orange-l);
    line-height: 1;
    display: block;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    display: block;
}

/* ================================================
   SECTION COMMONS
   ================================================ */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--light-bg); }
.section-dark { background: var(--navy); color: rgba(255,255,255,0.85); }

.section-title { text-align: center; margin-bottom: 62px; }

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 10px;
    display: block;
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
}

.section-dark .section-heading { color: #fff; }

.section-divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--sky));
    border-radius: 2px;
    margin: 0 auto 18px;
}

.section-desc {
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
}

.section-dark .section-desc { color: rgba(255,255,255,0.65); }

/* ================================================
   SERVICE CARDS (Home)
   ================================================ */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    color: inherit;
    display: block;
    text-decoration: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sky), var(--navy-light));
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.service-card:hover::before {
    background: linear-gradient(90deg, var(--orange), var(--orange-l));
    height: 5px;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--light-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 27px;
    color: var(--navy-mid);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--orange), var(--orange-l));
}

.service-card:hover .service-icon i { color: #fff; transform: scale(1.1); }

.service-card h4 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.read-more {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.read-more i { transition: transform 0.2s ease; }
.read-more:hover i { transform: translateX(5px); }

/* ================================================
   PAGE BANNER (Inner Pages)
   ================================================ */
.page-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0E7490 100%);
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    position: relative;
    padding: 168px 0 80px;
    color: #fff;
    text-align: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,36,70,0.92) 0%, rgba(26,77,143,0.82) 100%);
}

.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 36px 36px;
}

.page-banner-content { position: relative; z-index: 2; }

.page-banner h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.page-banner .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.page-banner .breadcrumb-item.active { color: var(--sky); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }
.page-banner .page-icon {
    font-size: 3.5rem;
    color: var(--sky);
    margin-bottom: 20px;
    display: block;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-img-wrap { position: relative; }

.about-img-wrap img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--orange);
    color: #fff;
    border-radius: var(--radius);
    padding: 22px 28px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(230,81,0,0.4);
}

.about-badge .ab-number {
    font-size: 2.8rem;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.about-badge .ab-text {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Highlight list */
.highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text);
}

.highlight-list li:last-child { border-bottom: none; }
.highlight-list li i { color: var(--orange); font-size: 18px; margin-top: 2px; flex-shrink: 0; }

/* ================================================
   FEATURE / WHY CHOOSE US
   ================================================ */
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--orange);
}

.feature-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-circle {
    background: linear-gradient(135deg, var(--orange), var(--orange-l));
}

.feature-circle i { color: #fff; font-size: 28px; }
.feature-card h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.86rem; color: var(--text-muted); margin: 0; }

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--orange) 0%, #BF360C 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.cta-section > * { position: relative; z-index: 1; }

.cta-section h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-section p { color: rgba(255,255,255,0.88); font-size: 1.08rem; margin-bottom: 36px; }

.btn-cta-white {
    background: #fff;
    color: var(--orange);
    border: 2px solid #fff;
    padding: 14px 42px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.98rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-cta-white:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.btn-cta-outline-w {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.65);
    padding: 14px 42px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.98rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-left: 12px;
}

.btn-cta-outline-w:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

/* ================================================
   PROJECT TABLE
   ================================================ */
.proj-table-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.proj-table-wrap table { margin: 0; }

.proj-table-wrap thead th {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 18px;
    border: none;
    white-space: nowrap;
}

.proj-table-wrap tbody td {
    padding: 13px 18px;
    border-color: var(--border);
    vertical-align: middle;
    font-size: 0.88rem;
}

.proj-table-wrap tbody tr { transition: var(--transition); }
.proj-table-wrap tbody tr:hover { background: var(--light-bg); }

.badge-type {
    background: linear-gradient(135deg, var(--orange), var(--orange-l));
    color: #fff;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.73rem;
    white-space: nowrap;
    display: inline-block;
}

.badge-year {
    background: var(--light-bg);
    color: var(--navy);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    white-space: nowrap;
    display: inline-block;
}

.badge-ongoing {
    background: #E8F5E9;
    color: #2E7D32;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    white-space: nowrap;
    display: inline-block;
}

/* ================================================
   PRODUCT LIST (Service Pages)
   ================================================ */
.product-ul li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.93rem;
    font-weight: 500;
}

.product-ul li:last-child { border-bottom: none; }
.product-ul li i { color: var(--orange); font-size: 19px; margin-top: 2px; flex-shrink: 0; }

/* ================================================
   INFO BOXES (Sidebar)
   ================================================ */
.info-box-navy {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: #fff;
    border-radius: var(--radius);
    padding: 30px;
}

.info-box-navy h5 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.info-box-navy p { color: rgba(255,255,255,0.78); font-size: 0.88rem; margin: 0; }

.info-box-orange {
    background: linear-gradient(135deg, var(--orange), var(--orange-l));
    color: #fff;
    border-radius: var(--radius);
    padding: 30px;
}

.info-box-orange h5 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.info-box-orange p { color: rgba(255,255,255,0.88); font-size: 0.88rem; margin: 0; }
.info-box-orange a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ================================================
   CONTACT
   ================================================ */
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 26px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border-top: 4px solid var(--orange);
}

.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.contact-icon {
    width: 62px;
    height: 62px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.contact-icon i { font-size: 24px; color: var(--navy); }
.contact-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.contact-card p, .contact-card a { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.contact-card a:hover { color: var(--orange); }

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form-wrap .form-control,
.contact-form-wrap .form-select {
    border: 1.5px solid #DDE3F0;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    background: var(--light-bg);
    transition: var(--transition);
}

.contact-form-wrap .form-control:focus,
.contact-form-wrap .form-select:focus {
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 3px rgba(26,77,143,0.12);
    background: #fff;
}

.contact-form-wrap .form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: #08182E;
    color: rgba(255,255,255,0.75);
    padding: 72px 0 0;
}

.footer-brand img {
    height: 48px;
    object-fit: contain;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 6px rgba(91,191,218,0.3));
}

.footer-about {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.85;
    margin-bottom: 22px;
}

.social-links { display: flex; gap: 10px; }

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-3px);
}

.footer-heading {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange);
    display: inline-block;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '›';
    color: var(--orange);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.65;
}

.footer-contact li i {
    color: var(--orange);
    font-size: 17px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--sky); }

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    margin-top: 56px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

/* ================================================
   TABS (Projects Page)
   ================================================ */
.nav-tabs-custom { border-bottom: 2px solid var(--border); margin-bottom: 30px; flex-wrap: nowrap; overflow-x: auto; }

.nav-tabs-custom .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 24px;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-tabs-custom .nav-link:hover { color: var(--navy); }
.nav-tabs-custom .nav-link.active { color: var(--navy); border-bottom-color: var(--orange); font-weight: 700; }

/* ================================================
   MISC UTILITIES
   ================================================ */
.text-orange { color: var(--orange) !important; }
.text-sky    { color: var(--sky) !important; }
.text-navy   { color: var(--navy) !important; }
.bg-navy     { background: var(--navy) !important; }
.bg-orange   { background: var(--orange) !important; }

/* Back to top */
#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(230,81,0,0.4);
    z-index: 999;
    display: none;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

#backToTop:hover { background: var(--orange-l); transform: translateY(-3px); }
#backToTop.visible { display: flex; }

/* Section image (service pages) */
.service-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Timeline (About page) */
.timeline { position: relative; padding: 10px 0; }

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--orange), var(--sky));
    transform: translateX(-50%);
}

.tl-item {
    display: flex;
    gap: 0;
    margin-bottom: 36px;
    align-items: flex-start;
}

.tl-item:nth-child(odd)  { flex-direction: row; }
.tl-item:nth-child(even) { flex-direction: row-reverse; }

.tl-content {
    width: calc(50% - 32px);
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
}

.tl-item:nth-child(odd)  .tl-content { border-right: 4px solid var(--orange); margin-right: 32px; }
.tl-item:nth-child(even) .tl-content { border-left: 4px solid var(--sky); margin-left: 32px; }

.tl-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--orange);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--orange);
    z-index: 1;
    top: 20px;
}

.tl-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tl-content h5 { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; }
.tl-content p  { font-size: 0.84rem; color: var(--text-muted); margin: 0; }

/* ================================================
   TOP BAR
   ================================================ */
.top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1060;
    background: #06111E;
    border-bottom: 1px solid rgba(91,191,218,0.15);
    height: 36px;
    display: flex;
    align-items: center;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.77rem;
    color: rgba(255,255,255,0.62);
}

.tb-item i { color: var(--sky); font-size: 11px; }
.tb-item a { color: rgba(255,255,255,0.62); text-decoration: none; }
.tb-item a:hover { color: var(--sky); }
.tb-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.12); }

body.has-topbar #mainNav { top: 36px !important; }

/* ================================================
   HERO — OVERRIDES FOR SPLIT LAYOUT
   ================================================ */

/* Remove center alignment from old hero-content */
.hero-content {
    text-align: left !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 155px 0 80px !important;
}

/* Left-align eyebrow */
.hero-eyebrow {
    justify-content: flex-start !important;
}

.hero-eyebrow::after { display: none !important; }

/* Left-align subtitle */
.hero-subtitle {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 490px;
}

/* Hero left panel */
.hero-left { padding-right: 40px; }

/* Service pills */
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.82);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

.hero-pill:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.hero-pill i { font-size: 11px; color: var(--sky); }
.hero-pill:hover i { color: #fff; }

/* Inline stats */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 14px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
}

.hero-stat { text-align: center; padding: 0 16px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { padding-right: 0; }

.hs-num {
    display: block;
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--orange-l);
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.hs-label {
    display: block;
    font-size: 0.66rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.13);
    flex-shrink: 0;
}

/* Hero right: image mosaic */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 20px;
}

.hero-mosaic {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mosaic-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 235px;
    box-shadow: 0 16px 56px rgba(0,0,0,0.55);
    border: 2px solid rgba(255,255,255,0.1);
}

.mosaic-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.mosaic-main:hover img { transform: scale(1.04); }

.mosaic-label {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(7,22,41,0.82);
    color: #fff;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 7px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
}

.mosaic-label i { color: var(--sky); }

.mosaic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mosaic-thumb {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 116px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
    border: 1.5px solid rgba(255,255,255,0.08);
}

.mosaic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mosaic-thumb:hover img { transform: scale(1.07); }

.mosaic-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,22,41,0.75) 0%, transparent 55%);
    pointer-events: none;
}

.mosaic-thumb-label {
    position: absolute;
    bottom: 9px;
    left: 11px;
    font-size: 0.67rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    letter-spacing: 0.3px;
}

/* Gradient text utility */
.text-gradient-o {
    background: linear-gradient(90deg, var(--orange-l) 0%, #FFAA00 40%, var(--sky) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   SERVICE CARDS V2 (Image Header + Icon Badge)
   ================================================ */
.scard {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.scard:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    color: inherit;
    text-decoration: none;
}

.scard-img {
    height: 150px;
    position: relative;
    overflow: hidden;
    background: var(--navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.scard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.scard:hover .scard-img img { transform: scale(1.07); }

.scard-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,36,70,0.55) 0%, rgba(26,77,143,0.45) 100%);
    transition: var(--transition);
    z-index: 1;
}

.scard:hover .scard-img::before {
    background: linear-gradient(135deg, rgba(230,81,0,0.65) 0%, rgba(255,109,0,0.55) 100%);
}

.scard-badge {
    position: absolute;
    bottom: -20px;
    right: 18px;
    width: 44px;
    height: 44px;
    background: var(--orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(230,81,0,0.45);
    z-index: 2;
    transition: var(--transition);
}

.scard-badge i { color: #fff; font-size: 18px; }
.scard:hover .scard-badge { background: var(--navy); transform: rotate(8deg) scale(1.05); }

.scard-body {
    padding: 30px 22px 22px;
}

.scard-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.scard-body p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1199px) {
    .stat-number { font-size: 2.4rem; }
}

@media (max-width: 991px) {
    .hero-content { padding: 130px 0 60px !important; text-align: center !important; }
    .hero-eyebrow { justify-content: center !important; }
    .hero-eyebrow::before { display: none; }
    .hero-subtitle { margin: 0 auto 28px !important; max-width: 90% !important; }
    .hero-left { padding-right: 0; }
    .hero-pills { justify-content: center; }
    .hero-stats { width: 100%; justify-content: center; }
    .hero-buttons { justify-content: center; }
    .about-img-wrap img { height: 360px; }
    .about-badge { position: relative; bottom: auto; right: auto; display: inline-block; margin-top: 16px; }
    .timeline::before { left: 20px; }
    .tl-item, .tl-item:nth-child(even) { flex-direction: column !important; }
    .tl-content, .tl-item:nth-child(odd) .tl-content, .tl-item:nth-child(even) .tl-content {
        width: 100%;
        margin-left: 50px;
        margin-right: 0;
        border-left: 4px solid var(--orange) !important;
        border-right: none !important;
    }
    .tl-dot { left: 20px; }
    .navbar-collapse { background: #fff; padding: 16px; border-radius: 0 0 12px 12px; box-shadow: 0 8px 20px rgba(13,36,70,0.1); }
    .section { padding: 72px 0; }
}

@media (max-width: 767px) {
    .section { padding: 56px 0; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .hero-title { font-size: 2.2rem; }
    .contact-form-wrap { padding: 24px; }
    .page-banner { padding: 150px 0 60px; }
    .proj-table-wrap { overflow-x: auto; }
    .top-bar .tb-mid { display: none; }
    .hero-pills { justify-content: center; }
    .hero-stats { flex-wrap: wrap; row-gap: 10px; }
    .hs-num { font-size: 1.4rem; }
}
