/* ==========================================================================
   ALTEC Engineers — Corporate Engineering & Construction Design System
   Brand Identity: Crimson Red (#D31A24), Slate Dark (#111622), White & Steel
   ========================================================================== */

:root {
    --altec-red: #D31A24;
    --altec-red-hover: #b8141d;
    --altec-red-dark: #8F0E15;
    --altec-red-light: #FDE8E9;
    --altec-red-glow: rgba(211, 26, 36, 0.22);
    
    --altec-dark: #111622;
    --altec-dark-surface: #182030;
    --altec-dark-card: #1E2738;
    
    --altec-slate: #2B3342;
    --altec-slate-muted: #5A6578;
    --altec-slate-light: #94A3B8;
    
    --altec-light-bg: #F8FAFC;
    --altec-light-surface: #FFFFFF;
    --altec-border: #E2E8F0;
    --altec-border-dark: #2E384D;
    
    --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 8px rgba(17, 22, 34, 0.05);
    --shadow-md: 0 8px 24px rgba(17, 22, 34, 0.08);
    --shadow-lg: 0 16px 40px rgba(17, 22, 34, 0.12);
    --shadow-glow: 0 8px 30px var(--altec-red-glow);
}

/* Base & Reset */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--altec-slate);
    background-color: #FFFFFF;
    overflow-x: hidden;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    color: var(--altec-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--altec-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--altec-red-hover);
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.altec-topbar {
    background-color: var(--altec-dark);
    color: var(--altec-slate-light);
    font-size: 0.85rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.altec-topbar a {
    color: var(--altec-slate-light);
    transition: color var(--transition-fast);
}

.altec-topbar a:hover {
    color: #FFFFFF;
}

.altec-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.altec-topbar-item i {
    color: var(--altec-red);
}

/* ==========================================================================
   Main Navigation (Sticky Glassmorphic)
   ========================================================================== */
.altec-navbar {
    background-color: #FFFFFF;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    padding: 0.85rem 0;
    z-index: 1030;
}

.altec-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(17, 22, 34, 0.1);
    padding: 0.55rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-brand img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

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

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--altec-dark) !important;
    padding: 0.5rem 0.9rem !important;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.9rem;
    right: 0.9rem;
    height: 2px;
    background-color: var(--altec-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
    color: var(--altec-red) !important;
}

/* Buttons */
.btn-altec {
    background-color: var(--altec-red);
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.45rem;
    border-radius: 4px;
    border: 2px solid var(--altec-red);
    box-shadow: 0 4px 14px var(--altec-red-glow);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-altec:hover {
    background-color: var(--altec-red-hover);
    border-color: var(--altec-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--altec-red-glow);
}

.btn-altec-outline {
    background-color: transparent;
    color: var(--altec-dark) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.45rem;
    border-radius: 4px;
    border: 2px solid var(--altec-dark);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-altec-outline:hover {
    background-color: var(--altec-dark);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-altec-white {
    background-color: #FFFFFF;
    color: var(--altec-dark) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.45rem;
    border-radius: 4px;
    border: 2px solid #FFFFFF;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-altec-white:hover {
    background-color: var(--altec-red);
    color: #FFFFFF !important;
    border-color: var(--altec-red);
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.altec-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    overflow: hidden;
}

.altec-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(17, 22, 34, 0.94) 0%,
        rgba(17, 22, 34, 0.85) 45%,
        rgba(17, 22, 34, 0.4) 100%
    );
    z-index: 1;
}

.altec-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 2;
    pointer-events: none;
}

.altec-hero-content {
    position: relative;
    z-index: 3;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.altec-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(211, 26, 36, 0.15);
    border: 1px solid rgba(211, 26, 36, 0.4);
    color: #FF858B;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.altec-hero-title {
    color: #FFFFFF;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.altec-hero-title .text-red {
    color: var(--altec-red);
}

.altec-hero-subtitle {
    font-size: 1.15rem;
    color: #E2E8F0;
    max-width: 620px;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* ==========================================================================
   Statistics Counter Bar
   ========================================================================== */
.altec-stats-bar {
    position: relative;
    z-index: 4;
    background: var(--altec-dark-surface);
    border-top: 3px solid var(--altec-red);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: -3.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
    border-right: 1px solid var(--altec-border-dark);
}

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

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

.stat-number span {
    color: var(--altec-red);
}

.stat-label {
    font-size: 0.88rem;
    color: var(--altec-slate-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-tag {
    display: inline-block;
    color: var(--altec-red);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 3px;
    background-color: var(--altec-red);
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 2px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.section-desc {
    color: var(--altec-slate-muted);
    font-size: 1.05rem;
    max-width: 680px;
}

/* ==========================================================================
   Service Cards
   ========================================================================== */
.service-card {
    background: #FFFFFF;
    border: 1px solid var(--altec-border);
    border-radius: 6px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: transparent;
    transition: background-color var(--transition-fast);
}

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

.service-card:hover::before {
    background-color: var(--altec-red);
}

.service-card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

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

.service-card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.service-card-icon {
    position: absolute;
    bottom: -22px;
    right: 24px;
    width: 52px;
    height: 52px;
    background-color: var(--altec-red);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-fast);
    z-index: 2;
}

.service-card:hover .service-card-icon {
    background-color: var(--altec-dark);
}

.service-card-body {
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card-title a {
    color: var(--altec-dark);
}

.service-card-title a:hover {
    color: var(--altec-red);
}

.service-card-desc {
    color: var(--altec-slate-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--altec-red);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.service-card-link:hover {
    color: var(--altec-red-hover);
    gap: 0.6rem;
}

/* ==========================================================================
   Project Cards
   ========================================================================== */
.project-card {
    background: #FFFFFF;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--altec-border);
    transition: all var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-card-thumb {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.badge-completed {
    background-color: #059669;
    color: #FFFFFF;
}

.badge-in_progress {
    background-color: #D97706;
    color: #FFFFFF;
}

.badge-planned {
    background-color: #4F46E5;
    color: #FFFFFF;
}

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

.project-card-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--altec-red);
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-card-title a {
    color: var(--altec-dark);
}

.project-card-title a:hover {
    color: var(--altec-red);
}

.project-card-meta {
    font-size: 0.88rem;
    color: var(--altec-slate-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card-desc {
    color: var(--altec-slate-muted);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* ==========================================================================
   Process Steps
   ========================================================================== */
.process-step-card {
    background: #FFFFFF;
    border: 1px solid var(--altec-border);
    border-radius: 6px;
    padding: 2.25rem 1.75rem;
    position: relative;
    transition: all var(--transition-smooth);
    height: 100%;
}

.process-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--altec-red);
}

.process-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(211, 26, 36, 0.12);
    line-height: 1;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    transition: color var(--transition-fast);
}

.process-step-card:hover .process-number {
    color: var(--altec-red);
}

.process-icon {
    width: 54px;
    height: 54px;
    border-radius: 4px;
    background-color: var(--altec-red-light);
    color: var(--altec-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Testimonial Cards
   ========================================================================== */
.testimonial-card {
    background: #FFFFFF;
    border: 1px solid var(--altec-border);
    border-radius: 6px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-stars {
    color: #F59E0B;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-quote {
    font-style: italic;
    color: var(--altec-slate);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--altec-border);
    padding-top: 1rem;
}

.testimonial-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--altec-red);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-author-name {
    font-weight: 700;
    color: var(--altec-dark);
    margin-bottom: 0.1rem;
    font-size: 0.95rem;
}

.testimonial-author-title {
    font-size: 0.8rem;
    color: var(--altec-slate-muted);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.altec-cta-banner {
    background: linear-gradient(135deg, var(--altec-dark) 0%, var(--altec-dark-surface) 100%);
    border-top: 4px solid var(--altec-red);
    color: #FFFFFF;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.altec-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 35%;
    background: radial-gradient(circle, var(--altec-red-glow) 0%, transparent 70%);
    pointer-events: none;
}

/* ==========================================================================
   Page Banners (Internal Pages)
   ========================================================================== */
.page-banner {
    background: linear-gradient(135deg, var(--altec-dark) 0%, #1A2436 100%);
    color: #FFFFFF;
    padding: 4.5rem 0 3.5rem;
    position: relative;
    border-bottom: 3px solid var(--altec-red);
}

.page-banner-title {
    color: #FFFFFF;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-banner-subtitle {
    color: var(--altec-slate-light);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.altec-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--altec-slate-light);
    margin: 0;
    padding: 0;
    list-style: none;
}

.altec-breadcrumb a {
    color: var(--altec-slate-light);
}

.altec-breadcrumb a:hover {
    color: #FFFFFF;
}

.altec-breadcrumb .active {
    color: var(--altec-red);
    font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.altec-footer {
    background-color: var(--altec-dark);
    color: #CBD5E1;
    padding: 4.5rem 0 0;
    font-size: 0.95rem;
}

.altec-footer h5 {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.altec-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--altec-red);
}

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

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

.footer-links a {
    color: #94A3B8;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #94A3B8;
}

.footer-contact-item i {
    color: var(--altec-red);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.social-icons-bar {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background-color: var(--altec-dark-surface);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border: 1px solid var(--altec-border-dark);
}

.social-icon-btn:hover {
    background-color: var(--altec-red);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: #0A0D14;
    padding: 1.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    color: #64748B;
}

/* ==========================================================================
   Back To Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background-color: var(--altec-red);
    color: #FFFFFF;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: var(--altec-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   Comprehensive Responsive System (Phones, Tablets, Laptops, Desktops)
   ========================================================================== */

/* Fluid Typography */
.altec-hero-title {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    line-height: 1.15;
}

.section-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.25;
}

.page-banner-title {
    font-size: clamp(1.8rem, 4.5vw, 2.75rem);
}

.stat-number {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
}

/* Tablet & Mobile Screens (max-width: 991.98px) */
@media (max-width: 991.98px) {
    /* Mobile Navbar */
    .altec-navbar {
        padding: 0.65rem 0;
    }

    .navbar-collapse {
        background-color: #FFFFFF;
        border-radius: 8px;
        padding: 1.25rem 1rem;
        margin-top: 0.85rem;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--altec-border);
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.65rem 0.9rem !important;
        border-radius: 4px;
        font-size: 1rem;
    }

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

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

    .navbar-nav .dropdown-menu {
        background-color: var(--altec-light-bg);
        border: 1px solid var(--altec-border);
        box-shadow: none !important;
        margin: 0.25rem 0.5rem 0.75rem;
        border-radius: 6px;
        padding: 0.5rem;
    }

    .navbar-nav .dropdown-item {
        border-radius: 4px;
        padding: 0.55rem 0.75rem;
        font-size: 0.92rem;
    }

    /* Stats Bar */
    .altec-stats-bar {
        margin-top: 1.75rem;
        padding: 1.5rem 1rem;
    }

    .stat-item {
        border-right: none;
        padding: 0.5rem;
    }

    /* Footer adjustments */
    .altec-footer {
        padding-top: 3.5rem;
    }

    .footer-bottom {
        margin-top: 2.5rem;
        text-align: center;
    }
}

/* Landscape Phones & Small Tablets (max-width: 767.98px) */
@media (max-width: 767.98px) {
    /* Base Body & Containers */
    body {
        font-size: 0.95rem;
    }

    .container,
    .container-fluid {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Hero Section */
    .altec-hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .altec-hero-content {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .altec-hero-badge {
        font-size: 0.72rem;
        padding: 0.35rem 0.75rem;
        letter-spacing: 0.05em;
        white-space: normal;
        line-height: 1.4;
    }

    .altec-hero-subtitle {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 1.75rem;
    }

    /* Page Banners */
    .page-banner {
        padding: 3rem 0;
    }

    .page-banner-subtitle {
        font-size: 1rem;
    }

    /* Service & Project Cards */
    .service-card-img {
        height: 190px;
    }

    .project-card-thumb {
        height: 200px;
    }

    .project-card-body,
    .service-card-body {
        padding: 1.25rem;
    }

    /* Process & Testimonials */
    .process-step-card {
        padding: 1.75rem 1.25rem;
    }

    .testimonial-card {
        padding: 1.5rem 1.25rem;
    }

    /* Forms */
    .form-control,
    .form-select {
        font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
        padding: 0.65rem 0.85rem;
    }

    .form-label {
        margin-bottom: 0.35rem;
    }

    .card.p-4.p-md-5 {
        padding: 1.5rem !important;
    }

    /* Back To Top Button */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* Small Smartphone Screens (max-width: 575.98px) */
@media (max-width: 575.98px) {
    /* Brand Logo Scaling */
    .navbar-brand img {
        height: 44px;
    }

    /* Hero Buttons */
    .altec-hero .d-flex.flex-column.flex-sm-row {
        width: 100%;
    }

    .altec-hero .btn-altec,
    .altec-hero .btn-altec-white {
        width: 100%;
    }

    /* 2x2 Clean Grid for Stats Bar */
    .altec-stats-bar .row > div:nth-child(odd) .stat-item {
        border-right: 1px solid var(--altec-border-dark);
    }

    .altec-stats-bar .row > div:nth-child(-n+2) .stat-item {
        border-bottom: 1px solid var(--altec-border-dark);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .altec-stats-bar .row > div:nth-child(n+3) .stat-item {
        padding-top: 0.25rem;
    }

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

    .stat-label {
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    /* About Heritage Floating Badge */
    .about-floating-badge {
        position: static !important;
        margin: 1rem 0 0 0 !important;
        max-width: 100% !important;
    }

    /* Section Spacing */
    .py-5 {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    /* Project Filter Nav */
    .project-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
    }

    .project-filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* CTA Banner Buttons */
    .altec-cta-banner .btn-altec,
    .altec-cta-banner .btn-altec-white {
        width: 100%;
    }
}

/* Touch Friendly Utilities */
button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

/* Ensure no elements overflow horizontally */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
