/* --------------------------------------------------------------------------
 * PREM INFRA PROJECTS - PREMIUM LUXURY STYLING SYSTEM
 * -------------------------------------------------------------------------- */

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

/* CSS Reset & Variable Definitions - Dark Premium System */
:root {
    --bg-primary: #0a192f;
    /* Luxury Navy Blue */
    --bg-secondary: #0f223e;
    /* Deep Navy */
    --bg-light: #0a192f;
    /* Global Background Page */
    --bg-card-light: #172a45;
    /* Charcoal Slate Card */
    --text-dark: #e6f1ff;
    /* High contrast text */
    --text-muted-dark: #8892b0;
    /* Muted Silver */
    --text-light: #f8fafc;
    /* High contrast light */
    --text-muted-light: #a8b2d1;
    /* Muted light text */
    --primary-accent: #f59e0b;
    /* Safety Gold */
    --primary-hover: #d97706;
    /* Darker Amber Gold */
    --accent-success: #10b981;
    /* Success Green */
    --accent-danger: #ef4444;
    /* Danger Red */

    --slate-border-light: rgba(255, 255, 255, 0.08);
    --slate-border-dark: rgba(255, 255, 255, 0.15);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-premium: 0 20px 35px rgba(2, 12, 27, 0.5);

    /* Glassmorphism Accents */
    --bg-glass: rgba(17, 34, 64, 0.65);
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(2, 12, 27, 0.37);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1.5rem;
}

.gap-4 {
    gap: 4rem;
}

/* Section Header Styles */
.section-subtitle {
    display: inline-block;
    color: var(--primary-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.section-desc {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--text-muted-dark);
    font-size: 1.1rem;
}

.text-highlight {
    color: var(--primary-accent);
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: #000000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-primary);
}

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

.btn-outline:hover {
    background-color: var(--primary-accent);
    color: #000000;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Top Announcement Bar */
.top-bar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--slate-border-dark);
    color: var(--text-muted-light);
    font-size: 0.85rem;
    padding: 0.6rem 0;
}

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

.top-bar-info span {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-socials a {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted-light);
}

.top-bar-socials a:hover {
    color: var(--primary-accent);
}

/* Main Navbar */
.main-header {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 0.6rem 0;
    background-color: #0f172a;
    box-shadow: var(--shadow-lg);
}

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

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background-color: var(--primary-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #000000;
    transform: rotate(-10deg);
}

.logo-icon span {
    display: inline-block;
}

.logo-p {
    transform: translate(2px, -2px);
}

.logo-i {
    color: #ffffff;
    transform: translate(-2px, 2px);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 0.5px;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-accent);
    letter-spacing: 3.5px;
    line-height: 1.5;
}

/* Nav Menu Links */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-btn {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('./assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding: 6rem 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 1;
}

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

.hero-content {
    max-width: 720px;
}

.badge-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    padding: 0.4rem 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-muted-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Wave Divider */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 3;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-bottom .shape-fill {
    fill: var(--bg-light);
}

/* Statistics Section */
.stats-section {
    position: relative;
    z-index: 4;
    margin-top: -3.5rem;
    padding-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--bg-card-light);
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    border: 1px solid var(--slate-border-light);
}

.stat-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-right: 1px solid var(--slate-border-light);
    transition: var(--transition-smooth);
}

.stat-card:last-child {
    border-right: none;
}

.stat-card:hover {
    background-color: #fafafa;
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-accent);
    margin-bottom: 0.75rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Us Section */
.about-section {
    padding: 6rem 0;
}

.about-images {
    position: relative;
    height: 480px;
}

.image-box {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.primary-image {
    width: 75%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 2;
    border: 6px solid #ffffff;
}

.primary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-image {
    width: 60%;
    height: 60%;
    bottom: 5%;
    right: 0;
    z-index: 1;
    border: 6px solid #ffffff;
}

.secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 0;
    left: 10%;
    background-color: var(--bg-primary);
    color: var(--text-light);
    padding: 1.25rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 5px solid var(--primary-accent);
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-accent);
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 120px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-muted-dark);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--text-muted-dark);
    margin-bottom: 2rem;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.point-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.point-item i {
    color: var(--primary-accent);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.point-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.point-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-muted-dark);
}

/* Services Section */
.services-section {
    background-color: var(--bg-primary);
    color: var(--text-light);
    padding: 6rem 0;
}

.services-section .section-subtitle {
    color: var(--primary-accent);
}

.services-section .section-desc {
    color: var(--text-muted-light);
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3.5rem 0 2.5rem;
}

.tab-btn {
    background-color: var(--bg-secondary);
    color: var(--text-muted-light);
    border: 1px solid var(--slate-border-dark);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-btn:hover,
.tab-btn.active {
    background-color: var(--primary-accent);
    color: #000000;
    border-color: var(--primary-accent);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Tab Panels */
.tab-content-container {
    position: relative;
    min-height: 420px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-secondary);
}

.panel-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.panel-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-accent);
}

.panel-text .lead {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.panel-text p {
    color: var(--text-muted-light);
    margin-bottom: 1.5rem;
}

.panel-list {
    margin-bottom: 2rem;
}

.panel-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    color: var(--text-light);
    font-weight: 500;
}

.panel-list li i {
    color: var(--primary-accent);
}

/* Portfolio Section */
.portfolio-section {
    padding: 6rem 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 3rem 0;
}

.filter-btn {
    background-color: var(--bg-card-light);
    color: var(--text-muted-dark);
    border: 1px solid var(--slate-border-light);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--bg-primary);
    color: var(--text-light);
    border-color: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    transition: var(--transition-smooth);
}

.portfolio-item {
    display: block;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.project-card {
    background-color: var(--bg-card-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

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

.project-img {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 8px;
}

.project-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

/* Glassmorphic Project Visual Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 2;
}

.project-card:hover .project-overlay,
.panel-image:hover .project-overlay {
    opacity: 1;
}

.glass-badge {
    background: rgba(245, 158, 11, 0.95); /* Safety Gold */
    color: #0a192f; /* Premium Navy contrast */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-operations-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(10, 25, 47, 0.85); /* Tinted Navy */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(245, 158, 11, 0.4); /* Gold Border */
    color: var(--primary-accent); /* Gold text */
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 3;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.project-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--bg-primary);
    color: var(--primary-accent);
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    color: #ffffff;
}

.status-completed {
    background-color: var(--accent-success);
}

.status-ongoing {
    background-color: var(--primary-accent);
    color: #000000;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-loc {
    font-size: 0.85rem;
    color: var(--text-muted-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-loc i {
    color: var(--primary-accent);
}

.project-desc {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
}

/* Core Values / Commitments Section */
.values-section {
    padding: 6rem 0;
    background-color: #f1f5f9;
}

.values-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.value-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-primary);
    color: var(--primary-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.value-item p {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.values-graphic {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 520px;
    box-shadow: var(--shadow-lg);
}

.values-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.graphic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.certifications-box {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--slate-border-dark);
    padding: 1.5rem;
    border-radius: 6px;
    color: var(--text-light);
    z-index: 2;
}

.certifications-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cert-logos {
    display: flex;
    gap: 1.5rem;
}

.cert-item {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cert-item i {
    color: var(--primary-accent);
}

/* Interactive Estimator */
.estimator-section {
    padding: 6rem 0;
}

.estimator-card {
    background-color: var(--bg-card-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--slate-border-light);
}

.estimator-grid {
    display: grid;
    grid-template-columns: 4.5fr 5.5fr;
}

.estimator-inputs {
    padding: 3rem;
    background-color: #fafafa;
    border-right: 1px solid var(--slate-border-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-group {
    margin-bottom: 1.75rem;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.input-group label i {
    color: var(--primary-accent);
}

.form-control {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--slate-border-light);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    border-radius: 4px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1em;
    padding-right: 2.5rem;
}

.slider-control {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    outline: none;
    border-radius: 3px;
    appearance: none;
    margin: 1rem 0;
}

.slider-control::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-accent);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.slider-control::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.slider-endpoints {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted-dark);
    font-weight: 600;
}

.estimator-outputs {
    padding: 3rem;
    background-color: var(--bg-primary);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}

.results-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--slate-border-dark);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.results-heading h4 {
    font-size: 1.3rem;
    color: var(--text-light);
}

.output-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.output-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.output-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-accent);
}

.out-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--primary-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.out-title {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.out-val {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.estimate-note {
    border-top: 1px solid var(--slate-border-dark);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted-light);
}

.estimate-note i {
    color: var(--primary-accent);
    margin-right: 0.25rem;
}

/* Smart PDF Blueprint Extractor Card Styles */
.pdf-extractor-card {
    background: #ffffff;
    border: 2px dashed var(--slate-border-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.pdf-extractor-card:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.05);
}

.pdf-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf-title i {
    color: var(--primary-accent);
}

.pdf-desc {
    font-size: 0.85rem;
    color: var(--text-muted-dark);
    margin-bottom: 1.25rem;
}

.pdf-upload-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.pdf-upload-slot {
    position: relative;
}

.pdf-slot-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-border-light);
    border-radius: 6px;
    padding: 1.25rem 1rem;
    background-color: var(--bg-light);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    width: 100%;
    margin-bottom: 0;
}

.pdf-slot-label:hover {
    background-color: #f1f5f9;
    border-color: var(--text-muted-light);
}

.slot-icon {
    font-size: 1.5rem;
    color: var(--text-muted-dark);
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.pdf-slot-label:hover .slot-icon {
    color: var(--primary-accent);
    transform: translateY(-2px);
}

.slot-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.file-name-label {
    font-size: 0.75rem;
    color: var(--text-muted-dark);
    margin-top: 0.25rem;
    word-break: break-all;
    max-width: 100%;
}

.pdf-file-input {
    display: none !important;
}

/* Extraction Terminal Styles */
.pdf-extraction-log {
    background: #0f172a;
    border-radius: 6px;
    border: 1px solid var(--slate-border-dark);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

.log-header {
    background: #1e293b;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--slate-border-dark);
}

.log-title {
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: bold;
}

.log-loader {
    color: var(--primary-accent);
    font-size: 0.75rem;
}

.log-body {
    padding: 1rem;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.log-line {
    font-size: 0.8rem;
    color: #38bdf8;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.log-line.success {
    color: #34d399;
}

.log-line.info {
    color: #fbbf24;
}

.log-line i {
    font-size: 0.85rem;
}

/* Detailed Calculator Sub Panel Styles */
.calculator-sub-panel {
    margin-top: 1.5rem;
}

.calc-sub-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--slate-border-light);
    padding-bottom: 0.5rem;
}

.sub-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sub-tab-btn:hover {
    color: var(--text-dark);
    background-color: rgba(0, 0, 0, 0.03);
}

.sub-tab-btn.active {
    color: #ffffff;
    background-color: var(--bg-primary);
}

.sub-tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.sub-tab-panel.active {
    display: block;
}

/* Detailed Cost Summary Layout */
.building-costs-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.cost-summary-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.cost-summary-box:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-accent);
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-muted-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.summary-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.summary-details {
    font-size: 0.8rem;
    color: var(--primary-accent);
    font-weight: 500;
    margin-top: 0.25rem;
}

.cost-summary-box.highlight-cost {
    grid-column: span 2;
    background-color: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.cost-summary-box.highlight-cost .summary-price {
    color: var(--primary-accent);
    font-size: 1.8rem;
}

/* Materials Header */
.materials-header {
    color: #ffffff;
    font-size: 1.05rem;
    margin: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--slate-border-dark);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.materials-header i {
    color: var(--primary-accent);
}

/* Material Quantity Charts */
.materials-chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.material-progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-labels span:first-child {
    color: var(--text-light);
}

.progress-qty {
    color: var(--primary-accent);
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-accent);
    border-radius: 4px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Results Toggle Buttons */
.results-toggle-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
    border-bottom: 1px solid var(--slate-border-dark);
    padding-bottom: 0.75rem;
}

.toggle-btn {
    background: transparent;
    border: 1px solid var(--slate-border-dark);
    color: var(--text-muted-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.toggle-btn:hover {
    color: var(--text-light);
    border-color: var(--primary-accent);
}

.toggle-btn.active {
    background-color: var(--primary-accent);
    color: #000000;
    border-color: var(--primary-accent);
}

/* BOQ Table Styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
}

.boq-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: left;
}

.boq-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid var(--slate-border-dark);
    color: #ffffff;
}

.boq-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.boq-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

.boq-table td:nth-child(1) {
    font-weight: 700;
    color: var(--primary-accent);
    white-space: nowrap;
}

.boq-table td:nth-child(2) {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boq-table tr:hover td:nth-child(2) {
    white-space: normal;
    overflow: visible;
}

.boq-table td:nth-child(5),
.boq-table td:nth-child(6) {
    text-align: right;
    font-weight: 600;
}

.boq-table td:nth-child(6) {
    color: var(--primary-accent);
}

/* Contact Section & RFP Form */
.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
}

.contact-info-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info-panel p {
    color: var(--text-muted-dark);
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    display: flex;
    gap: 1.25rem;
}

.c-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-primary);
    color: var(--primary-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    line-height: 1.5;
}

/* BKC Interactive Coordinates Placeholder Map */
.map-placeholder {
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background-image: radial-gradient(circle, #cbd5e1 10%, transparent 11%), radial-gradient(circle, #e2e8f0 10%, transparent 11%);
    background-size: 20px 20px;
    background-color: #f1f5f9;
    border: 1px solid var(--slate-border-light);
    box-shadow: var(--shadow-sm);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
}

.map-marker {
    width: 50px;
    height: 50px;
    background-color: var(--primary-accent);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.map-details {
    color: var(--text-light);
}

.map-details h5 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.map-details p {
    color: var(--text-muted-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.map-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.map-link:hover {
    color: var(--text-light);
}

/* Contact RFP Form styling */
.contact-form-panel {
    background-color: var(--bg-card-light);
    border-radius: 8px;
    border: 1px solid var(--slate-border-light);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-panel h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.form-subtitle {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.rfp-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

textarea.form-control {
    resize: none;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted-dark);
    margin: 0.5rem 0;
    position: relative;
}

.form-checkbox input {
    margin-top: 0.2rem;
    accent-color: var(--primary-accent);
}

/* Form Validation Indicators */
.form-group.invalid .form-control {
    border-color: var(--accent-danger);
}

.form-group.invalid .form-control:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.error-msg {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-danger);
    margin-top: 0.25rem;
}

.form-group.invalid .error-msg {
    display: block;
}

.form-checkbox.invalid .block-error {
    display: block;
    position: absolute;
    bottom: -1.25rem;
    left: 0;
}

/* Corporate Footer */
.footer {
    background-color: var(--bg-primary);
    color: var(--text-muted-light);
    border-top: 2px solid var(--primary-accent);
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 4fr 2.5fr 2.5fr 3fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--slate-border-dark);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-accent);
}

.brand-col .footer-logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.footer-socials a {
    width: 36px;
    height: 36px;
    background-color: var(--bg-secondary);
    color: var(--text-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.footer-socials a:hover {
    background-color: var(--primary-accent);
    color: #000000;
    transform: translateY(-3px);
}

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

.footer-links a {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-accent);
    padding-left: 0.25rem;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--primary-accent);
}

.newsletter-col p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.newsletter-form {
    display: flex;
    position: relative;
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    background-color: var(--bg-secondary);
    border: 1px solid var(--slate-border-dark);
    color: var(--text-light);
    padding-right: 3.5rem;
}

.newsletter-form input:focus {
    border-color: var(--primary-accent);
}

.newsletter-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3rem;
    background-color: var(--primary-accent);
    color: #000000;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.newsletter-form button:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.certifications-logos-footer {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.certifications-logos-footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted-light);
}

.certifications-logos-footer span i {
    color: var(--primary-accent);
}

.footer-bottom {
    background-color: #0b111e;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modals Backdrop (Frosted glass) */
.modal-backdrop {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background-color: var(--bg-card-light);
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transform: scale(0.9);
    transition: var(--transition-smooth);
    border: 1px solid var(--slate-border-light);
}

.modal-backdrop.active .modal-box {
    transform: scale(1);
}

.modal-header {
    background-color: var(--bg-primary);
    color: var(--text-light);
    padding: 1.75rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-accent);
}

.modal-header i {
    font-size: 3rem;
    color: var(--primary-accent);
    margin-bottom: 0.75rem;
}

.modal-header h3 {
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
    color: var(--text-muted-dark);
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-data-box {
    background-color: #f8fafc;
    border: 1px solid var(--slate-border-light);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.modal-data-box p {
    margin-bottom: 0.5rem;
}

.modal-data-box p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    justify-content: center;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .grid-2 {
        gap: 2rem;
    }

    .hero-section h1 {
        font-size: 3.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--slate-border-light);
    }

    .stat-card:nth-child(odd) {
        border-right: 1px solid var(--slate-border-light);
    }

    .stat-card:nth-child(3),
    .stat-card:nth-child(4) {
        border-bottom: none;
    }


    /* Preserving auto-fit columns behavior */

    .estimator-grid {
        grid-template-columns: 1fr;
    }

    .estimator-inputs {
        border-right: none;
        border-bottom: 1px solid var(--slate-border-light);
        padding: 2.5rem;
    }

    .estimator-outputs {
        padding: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .top-bar {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 66px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 66px);
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--slate-border-dark);
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0.75rem 0;
    }

    .nav-link::after {
        display: none;
    }

    .mobile-nav-btn {
        display: flex !important;
        margin-top: 1rem;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .about-images {
        height: 380px;
    }

    .services-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .panel-image img {
        height: 280px;
    }


    /* Preserving auto-fit columns behavior */

    .values-graphic {
        height: 360px;
        order: -1;
    }

    .cert-logos {
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact-form-panel {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-right: none !important;
        border-bottom: 1px solid var(--slate-border-light) !important;
    }

    .stat-card:last-child {
        border-bottom: none !important;
    }

    .portfolio-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-btn {
        flex-grow: 1;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Subpage Hero Styles */
.subpage-hero {
    background-color: #0f172a;
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('./assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    padding: 6rem 0 4rem 0;
    color: #ffffff;
    text-align: center;
    border-bottom: 2px solid var(--primary-accent);
}

.subpage-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subpage-hero p {
    font-size: 1.1rem;
    color: var(--text-muted-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   PRINCIPAL ENGINEER'S MODERN UTILITY CLASSES & ENHANCEMENTS
   ========================================================================== */

/* Responsive CSS Grid Utilities */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Flexbox Layout Utilities */
.d-flex {
    display: flex !important;
}
.flex-col {
    flex-direction: column !important;
}
.flex-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.flex-between {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.flex-wrap {
    flex-wrap: wrap !important;
}

/* Glassmorphism Premium Accents */
.glass-premium {
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.card-luxury {
    background: linear-gradient(135deg, rgba(23, 42, 69, 0.8), rgba(15, 34, 59, 0.9));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.card-luxury:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);
}

/* Animated Statistics and Counters Counterparts */
.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-accent);
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
    display: inline-block;
    transition: var(--transition-smooth);
}

/* Premium Badges System */
.badge-accent, .badge-success, .badge-warning, .badge-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    border: 1px solid transparent;
}

.badge-accent {
    background-color: rgba(245, 158, 11, 0.12);
    color: var(--primary-accent);
    border-color: rgba(245, 158, 11, 0.25);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--accent-success);
    border-color: rgba(16, 185, 129, 0.25);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.12);
    color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.25);
}

/* Dynamic Tab Switches & Interactive Overlays */
.tab-btn {
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    z-index: 1;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-accent);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    z-index: -1;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-btn:hover {
    color: var(--primary-accent);
}

/* Step-by-Step Logistics & Drawing Indicators */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 2rem 0;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--slate-border-light);
    z-index: 0;
    transform: translateY(-50%);
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-primary);
    padding: 0 1rem;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card-light);
    border: 2px solid var(--slate-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted-dark);
    transition: var(--transition-smooth);
}

.step-item.active .step-icon {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: #000000;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.step-item.completed .step-icon {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: #ffffff;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted-dark);
}

.step-item.active .step-label {
    color: var(--primary-accent);
}

.step-item.completed .step-label {
    color: var(--accent-success);
}


/* --- ESTIMATOR CONTRAST & VISIBILITY OVERLAYS --- */
.estimator-inputs {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.estimator-inputs h2,
.estimator-inputs h3,
.estimator-inputs h4,
.estimator-inputs h5,
.estimator-inputs .pdf-title {
    color: #0f172a !important;
}

.estimator-inputs label,
.estimator-inputs .input-group label,
.estimator-inputs .pdf-desc,
.estimator-inputs .file-name-label {
    color: #1e293b !important;
}

.estimator-inputs label i {
    color: #f59e0b !important; /* Gold icons */
}

/* Input Fields and Select Dropdowns */
.estimator-inputs .form-control,
.estimator-inputs select {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.estimator-inputs .form-control:focus,
.estimator-inputs select:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

.estimator-inputs select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* Inactive tabs text color readable gray */
.estimator-inputs .calc-sub-tabs {
    display: flex;
    background: #f1f5f9 !important;
    border-radius: 6px;
    padding: 0.25rem;
    border: 1px solid #cbd5e1 !important;
}

.estimator-inputs .sub-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #475569 !important; /* Readable dark gray for inactive */
    padding: 0.75rem 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.estimator-inputs .sub-tab-btn.active {
    background: #ffffff !important;
    color: #f59e0b !important; /* Active gold */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Range Slider track and values */
.estimator-inputs .slider-control {
    background: #e2e8f0 !important; /* visible dark gray base */
    accent-color: #f59e0b !important; /* orange accent fill */
}

.estimator-inputs .slider-endpoints span {
    color: #475569 !important;
    font-weight: 600;
}

/* Bold dark font active value display */
.estimator-inputs label[id$="Label"] {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* Drag and drop uploader container styling */
.estimator-inputs .pdf-extractor-card {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.estimator-inputs .pdf-upload-slot label {
    border: 2px dashed #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

.estimator-inputs .pdf-upload-slot label .slot-text {
    color: #1e293b !important;
}

.estimator-inputs .pdf-upload-slot label .file-name-label {
    color: #475569 !important;
}

/* Progress bar scanner text */
.estimator-inputs #blueprintProgressContainer span {
    color: #0f172a !important;
    font-weight: 600;
}

.estimator-inputs .step-item .step-label {
    color: #475569 !important;
}

.estimator-inputs .step-item.active .step-label {
    color: #f59e0b !important;
}

.estimator-inputs .step-item.completed .step-label {
    color: #10b981 !important;
}

.estimator-inputs .step-icon {
    border: 2px solid #cbd5e1 !important;
    color: #475569 !important;
    background: #ffffff !important;
}

.estimator-inputs .step-item.active .step-icon {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    background: #fef3c7 !important;
}

.estimator-inputs .step-item.completed .step-icon {
    border-color: #10b981 !important;
    color: #ffffff !important;
    background: #10b981 !important;
}

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

/* ==========================================================================
   PRINT STYLES (CLEAN PRINT-FRIENDLY BOQ TABLES)
   ========================================================================== */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
    }

    /* Hide Navigation, Footer, Forms, Hero, Backgrounds, and Buttons */
    .top-bar,
    .main-header,
    .subpage-hero,
    .values-section,
    .estimator-inputs,
    .newsletter-section,
    .main-footer,
    .btn,
    .header-right,
    .calc-engine-badge,
    .tabs-btn-container,
    .estimator-tabs,
    .btn-toggle-group,
    button,
    #modalBackdrop,
    .logo,
    .badge-accent,
    .wave-bottom,
    svg {
        display: none !important;
    }

    /* Expand the BOQ outputs panel to take full page width */
    .estimator-card,
    .estimator-grid,
    .estimator-outputs,
    #estimatorResults,
    #boqSheetPanel {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: block !important;
    }

    /* Header for the Printed BOQ Document */
    #boqSheetPanel::before {
        content: "PREM INFRA PROJECTS - OFFICIAL BILL OF QUANTITIES (BOQ)\nDate: " attr(data-date) "\nReference: PI-OFFICIAL-BOQ\n";
        white-space: pre-wrap;
        font-family: 'Outfit', sans-serif;
        font-size: 16pt;
        font-weight: 800;
        text-align: center;
        display: block;
        margin-bottom: 2rem;
        border-bottom: 3px double #000000;
        padding-bottom: 1rem;
    }

    /* High contrast table styling */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 1rem !important;
    }

    th, td {
        border: 1px solid #000000 !important;
        padding: 8px !important;
        color: #000000 !important;
        background: transparent !important;
        font-size: 10pt !important;
    }

    th {
        font-weight: bold !important;
        text-transform: uppercase !important;
        background-color: #f2f2f2 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    tr {
        page-break-inside: avoid !important;
    }

    /* Remove typography shadows and gradients */
    h1, h2, h3, h4, h5, h6 {
        color: #000000 !important;
        text-shadow: none !important;
    }

    .font-mono {
        font-family: Courier, monospace !important;
    }
}

/* Clickable BOQ Billing Card & Print boundaries */
.boq-billing-card:hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    border-color: var(--primary-accent) !important;
    transform: translateY(-3px);
}

@media screen {
    .print-only {
        display: none !important;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }
    #printBoqArea,
    #printBoqArea * {
        visibility: visible !important;
    }
    #printBoqArea {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        display: block !important;
        background: #ffffff !important;
        color: #0f172a !important;
        z-index: 9999999 !important;
    }
    @page {
        size: A4 portrait;
        margin: 15mm 20mm;
    }
}