/* ═══════════════════════════════════════════════════════════
   HR GROUP OF CONSTRUCTION - Professional Construction Theme
   Colors: Dark Blue (#0a1628), Gold (#f5a623), White
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;900&display=swap');

:root {
    --primary: #0a1628;
    --primary-light: #1a3a5c;
    --primary-mid: #0f2440;
    --gold: #f5a623;
    --gold-light: #ffc857;
    --gold-dark: #d4900a;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #e5e7eb;
    --text: #333333;
    --text-light: #6b7280;
    --text-on-dark: rgba(255, 255, 255, 0.85);
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--primary);
    padding: 0.6rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
}

.brand-icon {
    background: var(--gold);
    color: var(--primary);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    border-radius: 8px;
}

.brand-text span {
    display: block;
    font-size: 0.65rem;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

/* ─── HERO SECTION ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, var(--primary-light) 100%);
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.7) 0%, rgba(10, 22, 40, 0.85) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.3);
    color: var(--gold);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h1 .text-gold {
    color: var(--gold);
}

.hero p {
    color: var(--text-on-dark);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--primary);
}

.btn-blue {
    background: var(--primary);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* ─── HERO STATS ─── */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-on-dark);
    margin-top: 0.3rem;
    display: block;
}

/* ─── SECTIONS ─── */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

.section-light {
    background: var(--light-gray);
}

.section-heading {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-dark .section-heading h2 {
    color: var(--white);
}

.section-heading .text-gold {
    color: var(--gold);
}

.heading-line {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 1rem auto;
    border-radius: 10px;
}

.section-heading p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-heading p {
    color: var(--text-on-dark);
}

/* ─── SERVICE CARDS ─── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray);
    transition: var(--transition);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.service-card .card-link:hover {
    color: var(--primary);
    gap: 0.6rem;
}

/* ─── PROJECT CARDS ─── */
.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    transition: var(--transition);
    transition: var(--transition);
    border: 1px solid var(--gray);
    display: flex;
    /* Ensure flex behavior */
    flex-direction: column;
    height: 100%;
    /* Equal height in grid */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-thumb {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-thumb img {
    transform: scale(1.1);
}

.project-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed {
    background: #28a745;
    color: #fff;
}

.status-ongoing {
    background: var(--gold);
    color: var(--primary);
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info .project-category {
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h3 {
    font-size: 1.15rem;
    margin: 0.4rem 0 0.5rem;
    color: var(--primary);
}

.project-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    display: flex;
    gap: 1rem;
    margin-top: auto;
    /* Push to bottom */
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ─── TESTIMONIAL CARDS ─── */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(245, 166, 35, 0.15);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.testimonial-card .stars {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.testimonial-card .review {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.2rem;
}

.testimonial-card .client-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testimonial-card .client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-card .client-name {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-card .client-role {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ─── WHY CHOOSE US ─── */
.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.2rem;
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.3);
}

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ─── CTA SECTION ─── */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 5rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.08);
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-on-dark);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

/* ─── CONTACT FORM ─── */
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* ─── CONTACT INFO ─── */
.contact-info-card {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(245, 166, 35, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 0.2rem;
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--text-on-dark);
}

/* ─── FLOATING BUTTONS ─── */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    text-decoration: none;
    color: #fff;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-whatsapp {
    background: #25d366;
}

.float-call {
    background: var(--primary);
}

.float-quote {
    background: var(--gold);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
}

/* ─── FOOTER ─── */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--gold);
}

.footer-col p {
    color: var(--text-on-dark);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col a {
    display: block;
    color: var(--text-on-dark);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── QUOTE MODAL ─── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* ─── PROJECT FILTERS ─── */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.filter-tab {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--gray);
    border-radius: 50px;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
}

/* ─── TRUST BADGES ─── */
.trust-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
    margin-top: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    color: var(--text-on-dark);
    font-size: 0.85rem;
}

.trust-badge .badge-icon {
    font-size: 1.2rem;
}

/* ─── CLIENT LOGOS ─── */
.client-logos {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
}

.client-logos:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ─── ANIMATIONS ─── */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: start;
        padding-top: 5rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }

    .nav-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.open {
        right: 0;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .modal {
        width: 95%;
        padding: 1.5rem;
    }

    /* Floating buttons adjustment for mobile */
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 12px;
        flex-direction: row-reverse;
        /* Horizontal layout on mobile */
        align-items: flex-end;
    }

    .float-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    /* Ensure content is not covered by floating buttons */
    .footer {
        padding-bottom: 80px;
    }

    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
        /* Add spacing below form */
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .contact-info-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-info-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .contact-info-item div {
        overflow-wrap: break-word;
        word-break: break-all;
    }

    .contact-info-item h4 {
        margin-bottom: 0.2rem;
    }

    /* Ensure map container also respects padding */
    .contact-info-card+div {
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .project-thumb {
        height: 200px;
    }
}

/* ════ MOBILE NAVIGATION FIXES ════ */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

@media (max-width: 420px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .navbar-brand {
        font-size: 0.9rem;
        max-width: 80%;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .brand-text {
        line-height: 1.2;
        display: flex;
        flex-direction: column;
    }

    .brand-text span {
        font-size: 0.6rem;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .hamburger {
        margin-left: auto;
    }

    .nav-links {
        width: 85%;
        padding-top: 5.5rem;
    }
}

/* Blog Content Fixes */
.blog-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    width: 100%;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}