/* ==========================================================================
   BLUEPRINT CONSULTING PVT LTD - STYLESHEET
   Aesthetics: Sleek Modern Engineering Dark/Light Theme with Glassmorphism
   ========================================================================== */

:root {
    /* Color Palette - Default Dark */
    --primary: #072b40;
    --primary-light: #0d3e5b;
    --accent: #00818a;
    --accent-glow: #00b4bd;
    --accent-light: #e6f9fa;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.2);
    
    --bg-main: #070d14;
    --bg-secondary: #0c1622;
    --bg-card: rgba(15, 27, 40, 0.75);
    --bg-card-hover: rgba(22, 38, 56, 0.85);
    
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 129, 138, 0.3);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(0, 180, 189, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(0, 129, 138, 0.3);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 30px -10px rgba(7, 43, 64, 0.08);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--accent-glow) 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 129, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 189, 0.45);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-glow) 100%);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-accent);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Header & Navbar */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 13, 20, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

[data-theme="light"] .navbar-header {
    background: rgba(255, 255, 255, 0.85);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

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

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-glow);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent-glow);
    transform: rotate(15deg);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    padding: 10rem 0 6rem 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, rgba(7, 43, 64, 0.4) 0%, var(--bg-main) 70%);
}

.blueprint-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 180, 189, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 180, 189, 0.05) 1px, transparent 1px);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.35;
}

.hero-glow-1 {
    top: -100px;
    left: -100px;
    background: var(--accent);
}

.hero-glow-2 {
    bottom: -100px;
    right: -100px;
    background: var(--primary-light);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 129, 138, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-pill);
    color: var(--accent-glow);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-cta-group {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-glow);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-visual {
    position: relative;
}

.hero-card-glass {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.8rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
}

.hero-img {
    border-radius: var(--radius-md);
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.hero-card-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(7, 13, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-card-badge i {
    font-size: 1.8rem;
    color: var(--accent-glow);
}

.hero-card-badge h4 {
    font-size: 1rem;
}

.hero-card-badge p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Header & Footer Accent Bar Images */
.header-bar-container, .footer-bar-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.header-bar-img, .footer-bar-img {
    max-width: 90%;
    height: auto;
    opacity: 0.85;
}

/* Section Header */
.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* About Us Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(0, 129, 138, 0.15);
    color: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.credentials-banner {
    background: linear-gradient(135deg, rgba(7, 43, 64, 0.6) 0%, rgba(0, 129, 138, 0.2) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 1.8rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cred-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cred-icon {
    font-size: 2.5rem;
    color: var(--accent-glow);
}

.cred-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.cred-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-icon {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-features li {
    font-size: 0.88rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-features li i {
    color: var(--accent-glow);
    font-size: 0.8rem;
}

/* Cost Calculator Section */
.calc-card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;

}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-value {
    background: rgba(0, 129, 138, 0.2);
    color: var(--accent-glow);
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 0 3px rgba(0, 180, 189, 0.2);
}

.range-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--bg-main);
    outline: none;
    accent-color: var(--accent-glow);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-item input[type="checkbox"] {
    accent-color: var(--accent-glow);
    width: 18px;
    height: 18px;
}

.calc-results {
    background: rgba(7, 43, 64, 0.4);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.result-box h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-amount {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.fee-amount {
    color: var(--accent-glow);
}

.result-subtext {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.highlight-box {
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 129, 138, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    height: 320px;
}

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

.portfolio-card:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(7, 13, 20, 0.95) 0%, rgba(7, 13, 20, 0.4) 60%, transparent 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0.9;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(7, 13, 20, 0.98) 0%, rgba(7, 13, 20, 0.6) 100%);
}

.portfolio-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
}

.portfolio-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.portfolio-loc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.btn-view-project {
    align-self: flex-start;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.btn-view-project:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Blueprint Interactive Viewer */
.blueprint-canvas-container {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.blueprint-canvas {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-accent);
}

.canvas-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.9);
}

.hotspot {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--accent-glow);
    transition: var(--transition);
    z-index: 20;
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.25);
    background: var(--accent-glow);
}

.hotspot-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--accent-glow);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.hotspot-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 13, 20, 0.95);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    width: 200px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
}

.hotspot-tooltip h5 {
    font-size: 0.85rem;
    color: var(--accent-glow);
}

.hotspot-tooltip p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.blueprint-detail-panel {
    background: rgba(7, 43, 64, 0.3);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent-glow);
}

.panel-header i {
    font-size: 1.5rem;
}

.panel-specs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.spec-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.spec-badge i {
    color: var(--accent-glow);
}

/* Testimonials & Banks */
.bank-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.bank-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.bank-card i {
    font-size: 1.6rem;
    color: var(--accent-glow);
}

.bank-card:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 129, 138, 0.15);
    color: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.glass-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.glass-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;

}

/* Main Footer */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

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

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-glow);
    padding-left: 5px;
}

.footer-contact {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact i {
    color: var(--accent-glow);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 650px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-lg);

}

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

.success-icon {
    font-size: 3.5rem;
    color: #38ef7d;
    margin-bottom: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-container, .calc-grid, .blueprint-canvas-container, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title { font-size: 2.6rem; }
    
    .mobile-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.1rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta-group { flex-direction: column; }
}


/* ==========================================================================
   MULTI-PAGE EXTENSIONS & CASE STUDY STYLES
   ========================================================================== */

.page-content {
    padding-top: 5rem;
}

.page-hero {
    padding: 5rem 0 3rem 0;
    background: radial-gradient(circle at 50% 30%, rgba(7, 43, 64, 0.4) 0%, var(--bg-main) 70%);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--accent-glow);
}

.breadcrumbs span {
    margin: 0 0.4rem;
}

.page-title {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto;
}

.rounded-img {
    border-radius: var(--radius-md);
    width: 100%;
    height: 380px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

/* Service Detail Blocks */
.service-detail-block {
    margin-bottom: 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.service-detail-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.service-detail-grid.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.service-detail-grid.reverse .service-detail-info {
    order: 2;
}

.service-detail-grid.reverse .service-detail-media {
    order: 1;
}

.service-detail-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-detail-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.deliverables-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.deliverables-box h4 {
    font-size: 0.95rem;
    color: var(--accent-glow);
    margin-bottom: 0.8rem;
}

.deliverables-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.deliverables-box li {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.deliverables-box li i {
    color: var(--accent-glow);
}

/* Case Study Single Page */
.project-case-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
}

.case-study-hero-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2.5rem;
}

.case-study-section {
    margin-bottom: 2.5rem;
}

.case-study-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.case-study-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.case-deliverables {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.case-deliverables li {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.case-deliverables li i {
    color: var(--accent-glow);
    font-size: 1.1rem;
}

.project-specs-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-lg);
}

.project-specs-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-glow);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.spec-row span {
    color: var(--text-muted);
}

.spec-row strong {
    color: var(--text-primary);
}

.project-navigation-bar {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* About & Credential Cards */
.about-overview-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.stats-card-mini {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.8rem;
}

.stats-card-mini div h3 {
    font-size: 1.8rem;
    color: var(--accent-glow);
}

.stats-card-mini div p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.credentials-full-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.credentials-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cred-box {
    background: rgba(7, 43, 64, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    text-align: center;
}

.cred-box i {
    font-size: 2.2rem;
    color: var(--accent-glow);
    margin-bottom: 1rem;
}

.cred-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.cred-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   TEAM & LEADERSHIP MESSAGE SECTION
   ========================================================================== */
.team-message-section {
    position: relative;
    padding: 5rem 0;
}

.team-message-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.team-message-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.team-message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    opacity: 0;
    transition: var(--transition);
}

.team-message-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 180, 189, 0.15);
    background: var(--bg-card-hover);
}

.team-message-card:hover::before {
    opacity: 1;
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.team-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.team-avatar-initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ceo-avatar {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.4);
}

.tech-avatar {
    background: linear-gradient(135deg, rgba(0, 180, 189, 0.25) 0%, rgba(0, 129, 138, 0.05) 100%);
    color: var(--accent-glow);
    border-color: rgba(0, 180, 189, 0.4);
}

.admin-avatar {
    background: linear-gradient(135deg, rgba(56, 239, 125, 0.25) 0%, rgba(17, 153, 142, 0.05) 100%);
    color: #38ef7d;
    border-color: rgba(56, 239, 125, 0.4);
}

.team-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.ceo-avatar + .team-avatar-badge { color: var(--gold); border-color: var(--gold); }
.tech-avatar + .team-avatar-badge { color: var(--accent-glow); border-color: var(--accent-glow); }
.admin-avatar + .team-avatar-badge { color: #38ef7d; border-color: #38ef7d; }

.team-member-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.team-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.ceo-pill {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.tech-pill {
    background: rgba(0, 180, 189, 0.15);
    color: var(--accent-glow);
    border: 1px solid rgba(0, 180, 189, 0.3);
}

.admin-pill {
    background: rgba(56, 239, 125, 0.15);
    color: #38ef7d;
    border: 1px solid rgba(56, 239, 125, 0.3);
}

.team-quote-container {
    position: relative;
    margin: 1rem 0 1.8rem 0;
    flex-grow: 1;
}

.quote-watermark {
    position: absolute;
    top: -8px;
    right: 0;
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.12;
    pointer-events: none;
}

.team-quote-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.team-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
    gap: 0.8rem;
}

.team-focus-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.team-focus-tag i {
    color: var(--accent-glow);
}

.team-social-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.team-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.team-social-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent-glow);
    transform: translateY(-2px);
}

[data-theme="light"] .team-message-card {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .quote-watermark {
    opacity: 0.08;
}

[data-theme="light"] .team-social-btn {
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
    .team-message-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .team-message-card {
        padding: 1.6rem 1.2rem;
    }
    .team-card-header {
        gap: 0.9rem;
    }
    .team-avatar-initials {
        width: 54px;
        height: 54px;
        font-size: 1.15rem;
    }
}



@media (max-width: 992px) {
    .service-detail-grid, .service-detail-grid.reverse, .project-case-grid, .about-overview-grid {
        grid-template-columns: 1fr;
    }
    .service-detail-grid.reverse .service-detail-info { order: 1; }
    .service-detail-grid.reverse .service-detail-media { order: 2; }
    .project-specs-card { position: static; }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS & OVERFLOW FIXES (TABLET & MOBILE)
   ========================================================================== */

/* Prevent any horizontal body overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Ensure all images and canvas elements scale within viewport */
img, svg, video, iframe, canvas {
    max-width: 100%;
    height: auto;
}

/* Container safety padding */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
    box-sizing: border-box;
}

/* ==========================================================================
   TABLET & MOBILE SCREENS (MAX-WIDTH: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .nav-menu {
        gap: 1.2rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

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

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

    .calc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .service-detail-grid, 
    .service-detail-grid.reverse, 
    .project-case-grid, 
    .about-overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail-grid.reverse .service-detail-info { order: 1; }
    .service-detail-grid.reverse .service-detail-media { order: 2; }
    .project-specs-card { position: static; }
}

/* ==========================================================================
   MOBILE PHONES (MAX-WIDTH: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. Header & Navigation Fixes */
    .navbar-header {
        height: auto;
        padding: 0.5rem 0;
    }

    .nav-container {
        padding: 0 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .brand-logo {
        gap: 0.5rem;
        max-width: 60%;
    }

    .logo-img {
        height: 38px;
        max-width: 100px;
        object-fit: contain;
    }

    .brand-title {
        font-size: 1.05rem;
        letter-spacing: 0.5px;
        line-height: 1.1;
    }

    .brand-subtitle {
        font-size: 0.58rem;
        letter-spacing: 1px;
    }

    /* Hide the Book Consultation CTA button on navbar for mobile so it never crowds */
    .nav-cta {
        display: none !important;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        color: var(--text-primary);
        font-size: 1.2rem;
    }

    /* Mobile Drawer Menu */
    .nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 1.8rem 1.5rem;
        gap: 1.2rem;
        border-bottom: 2px solid var(--border-accent);
        box-shadow: 0 20px 40px rgba(0,0,0,0.85);
        transform: translateY(-150%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 998;
        display: flex;
        align-items: stretch;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

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

    /* 2. Hero Section Mobile Optimization */
    .hero-section {
        padding: 5.5rem 0 3rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.2;
        letter-spacing: -0.5px;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }

    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* Hero Stats Grid - 2x2 Grid so numbers are never trimmed */
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem 1rem;
        padding: 1.2rem;
        width: 100%;
        box-sizing: border-box;
    }

    .stat-divider {
        display: none !important;
    }

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

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-img {
        height: 280px;
    }

    .hero-card-badge {
        position: static;
        margin-top: 1rem;
    }

    /* 3. Portfolio & Services Mobile Optimization */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.8rem 1.4rem;
    }

    .portfolio-filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.82rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-thumb {
        height: 220px;
    }

    /* 4. Cost Calculator Mobile */
    .calc-card-glass {
        padding: 1.5rem 1.2rem;
    }

    .calc-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .result-amount {
        font-size: 1.8rem;
    }

    /* 5. Blueprint Viewer Mobile */
    .blueprint-viewer-container {
        padding: 1rem;
    }

    .cad-canvas-wrapper {
        min-height: 260px;
        overflow-x: auto;
    }

    .cad-blueprint-img {
        min-width: 480px;
    }

    /* 6. Contact & Footer Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .glass-form {
        padding: 1.8rem 1.2rem;
    }

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

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

    .footer-bar-container {
        height: 8px;
    }

    /* 7. Case Study Mobile View */
    .case-study-hero-img {
        height: 240px;
        margin-bottom: 1.5rem;
    }

    .project-navigation-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .project-navigation-bar .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   EXTRA SMALL SCREENS (MAX-WIDTH: 420px)
   ========================================================================== */
@media (max-width: 420px) {
    .brand-title {
        font-size: 0.95rem;
    }

    .brand-subtitle {
        font-size: 0.52rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 0.8rem;
    }
}