/* ==========================================================================
   SARL BATimmo Design - Professional Architectural & Enterprise Theme
   Brand Palette:
   - Primary Crimson Red: #C21807
   - Dark Red Hover: #9E1003
   ========================================================================== */

:root {
    --primary: #c21807;
    --primary-hover: #9e1003;
    --primary-glow: rgba(194, 24, 7, 0.25);
    --font-sans: 'Poppins', 'Segoe UI', sans-serif;
    --font-arabic: 'Tajawal', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-theme {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-alt: #f1f5f9;
    --text-color: #0f172a;
    --text-muted: #475569;
    --border-color: #cbd5e1;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --navbar-bg: rgba(255, 255, 255, 0.94);
    --card-bg: #ffffff;
    --blueprint-line: rgba(194, 24, 7, 0.04);
}

.dark-theme {
    --bg-main: #0b0f17;
    --bg-surface: #131b2e;
    --bg-alt: #0a0d14;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --navbar-bg: rgba(11, 15, 23, 0.94);
    --card-bg: #131b2e;
    --blueprint-line: rgba(255, 255, 255, 0.03);
}

/* BASE & OVERFLOW FIXES */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-color);
    padding-top: 65px; /* Offset for fixed navbar */
    transition: background-color 0.3s, color 0.3s;
}

html[lang="ar"] body { font-family: var(--font-arabic); }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

/* DYNAMIC BLUEPRINT PARALLAX BACKGROUND */
.blueprint-grid-bg {
    background-image: 
        linear-gradient(to right, var(--blueprint-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--blueprint-line) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0;
    animation: gridContinuousMotion 30s linear infinite;
}

@keyframes gridContinuousMotion {
    0% { background-position: 0px 0px; }
    100% { background-position: 40px 40px; }
}

/* CANVAS FOR FLOATING ARCHITECTURAL NODES */
#architecturalCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* CREATIVE SCROLL REVEAL ANIMATIONS */
.reveal-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.fade-up { transform: translateY(40px) scale(0.97); }
.reveal-on-scroll.fade-left { transform: translateX(-40px) scale(0.97); }
.reveal-on-scroll.fade-right { transform: translateX(40px) scale(0.97); }

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* CONTINUOUS IDLE FLOATING ANIMATIONS */
@keyframes continuousFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(194, 24, 7, 0.15); }
    50% { box-shadow: 0 0 24px rgba(194, 24, 7, 0.35); }
}

@keyframes subtleRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* NAVBAR - PERMANENTLY FIXED AT TOP */
.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nav-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-color); max-width: 80%; }
.logo-img { height: 42px; width: auto; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.brand-text-wrapper { display: flex; flex-direction: column; overflow: hidden; }
.brand-text { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.5px; line-height: 1.1; white-space: nowrap; }
.brand-text span { color: var(--primary); }
.brand-tagline { font-size: 0.55rem; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; font-size: 0.88rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); transform: translateY(-1px); }

.controls-group { display: flex; align-items: center; gap: 8px; }
.control-btn {
    background: var(--bg-alt); border: 1px solid var(--border-color);
    color: var(--text-color); padding: 7px 10px; border-radius: 6px;
    cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600;
    transition: var(--transition);
}
.control-btn:hover { border-color: var(--primary); color: var(--primary); }

.lang-selector { position: relative; }
.dropdown-menu {
    position: absolute; top: 110%; right: 0; background: var(--card-bg);
    border: 1px solid var(--border-color); border-radius: 8px; box-shadow: var(--shadow);
    display: none; flex-direction: column; overflow: hidden; z-index: 1100; min-width: 140px;
}
html[dir="rtl"] .dropdown-menu { right: auto; left: 0; }
.dropdown-menu.show { display: flex; }
.dropdown-menu button {
    background: none; border: none; padding: 10px 14px; text-align: left; color: var(--text-color); cursor: pointer; font-size: 0.82rem;
}
html[dir="rtl"] .dropdown-menu button { text-align: right; }
.dropdown-menu button:hover, .dropdown-menu button.active { background: var(--primary); color: #ffffff; }

.mobile-toggle { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 1.4rem; 
    color: var(--text-color); 
    cursor: pointer; 
    padding: 5px; 
    transition: transform 0.3s ease;
}

/* HERO SECTION */
.hero-section {
    position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center;
    color: #ffffff; text-align: center; padding: 60px 15px; overflow: hidden; perspective: 1000px; width: 100%;
}

.hero-parallax-bg {
    position: absolute; inset: -10%;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    z-index: 0;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,15,23,0.88) 0%, rgba(194,24,7,0.35) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 850px; width: 100%; transition: transform 0.2s ease-out; }

.blueprint-badge {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(194, 24, 7, 0.25);
    border: 1px solid var(--primary); color: #ff8f8f; padding: 6px 14px; border-radius: 4px;
    font-family: var(--font-mono); font-size: 0.78rem; margin-bottom: 20px; backdrop-filter: blur(4px);
    animation: pulseGlow 4s infinite ease-in-out; max-width: 100%;
}
.blueprint-badge i { animation: subtleRotate 12s infinite linear; }

.hero-title { font-size: clamp(1.8rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 18px; letter-spacing: -0.5px; }
.hero-subtitle { font-size: clamp(0.95rem, 2vw, 1.15rem); color: #e2e8f0; margin-bottom: 30px; line-height: 1.6; }

.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* BUTTONS */
.btn { padding: 12px 26px; border-radius: 6px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); cursor: pointer; font-size: 0.9rem; max-width: 100%; }
.btn-primary { background-color: var(--primary); color: #ffffff; border: 2px solid var(--primary); box-shadow: 0 4px 15px var(--primary-glow); }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #ffffff; border: 2px solid #ffffff; }
.btn-outline:hover { background: #ffffff; color: #0f172a; transform: translateY(-2px); }

/* STATS STRIP */
.stats-strip { background: var(--bg-surface); border-bottom: 1px solid var(--border-color); padding: 30px 0; position: relative; z-index: 1; width: 100%; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; text-align: center; }
.stat-card {
    padding: 12px 8px; border-radius: 8px; transition: var(--transition);
    animation: continuousFloat 6s ease-in-out infinite;
}
.stat-card:nth-child(even) { animation-delay: -3s; }
.stat-number { display: block; font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--primary); font-family: var(--font-mono); }
.stat-label { font-size: clamp(0.75rem, 1.8vw, 0.88rem); color: var(--text-muted); font-weight: 500; }

/* SECTIONS COMMON */
.section-padding { padding: 70px 0; position: relative; z-index: 1; width: 100%; }
.section-subtitle { color: var(--primary); font-weight: 700; font-size: 0.8rem; letter-spacing: 1.5px; display: block; margin-bottom: 8px; font-family: var(--font-mono); }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: 35px; line-height: 1.25; }

/* ABOUT SECTION */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-image-wrapper { position: relative; width: 100%; }
.about-img-main { width: 100%; border-radius: 12px; box-shadow: var(--shadow); object-fit: cover; height: auto; max-height: 420px; transition: var(--transition); }
.about-experience-badge {
    position: absolute; bottom: -15px; right: -10px; background: var(--primary); color: #ffffff;
    padding: 16px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow);
    animation: continuousFloat 4s ease-in-out infinite;
}
html[dir="rtl"] .about-experience-badge { right: auto; left: -10px; }
.exp-num { font-weight: 800; font-size: 1.1rem; }
.exp-text { font-size: 0.7rem; text-transform: uppercase; font-family: var(--font-mono); }

.lead-text { font-size: clamp(1rem, 2.2vw, 1.15rem); font-weight: 600; margin-bottom: 12px; line-height: 1.5; }
.body-text { color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; font-size: 0.92rem; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; font-size: 0.88rem; transition: var(--transition); }
.feature-list i { color: var(--primary); font-size: 1rem; flex-shrink: 0; }

/* B2B SECTION */
.b2b-section { background: var(--bg-alt); }
.b2b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; width: 100%; }
.b2b-card {
    background: var(--card-bg); padding: 30px 22px; border-radius: 12px; border: 1px solid var(--border-color);
    box-shadow: var(--shadow); transition: var(--transition); position: relative; overflow: hidden; width: 100%;
    animation: continuousFloat 7s ease-in-out infinite;
}
.b2b-card:nth-child(2) { animation-delay: -2.3s; }
.b2b-card:nth-child(3) { animation-delay: -4.6s; }
.b2b-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary); transition: var(--transition); }
.b2b-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.b2b-icon { font-size: 1.8rem; color: var(--primary); margin-bottom: 15px; }
.b2b-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.b2b-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

/* SERVICES SECTION */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; width: 100%; }
.service-card {
    background: var(--card-bg); padding: 30px 20px; border-radius: 12px; border: 1px solid var(--border-color);
    box-shadow: var(--shadow); transition: var(--transition); text-align: center; width: 100%;
    animation: continuousFloat 6.5s ease-in-out infinite;
}
.service-card:nth-child(2) { animation-delay: -1.5s; }
.service-card:nth-child(3) { animation-delay: -3s; }
.service-card:nth-child(4) { animation-delay: -4.5s; }
.service-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.service-icon {
    width: 55px; height: 55px; border-radius: 10px; background: rgba(194, 24, 7, 0.1);
    color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 16px auto;
    animation: pulseGlow 5s infinite ease-in-out;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

/* PORTFOLIO SECTION */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    width: 100%;
    max-width: 100%;
    animation: continuousFloat 8s ease-in-out infinite;
}

.portfolio-card:nth-child(2n) { animation-delay: -3.5s; }
html[dir="rtl"] .portfolio-card { text-align: right; }
.portfolio-card:hover { transform: translateY(-6px); border-color: var(--primary); }

.portfolio-img-holder { position: relative; height: 210px; width: 100%; overflow: hidden; }
.portfolio-img-holder img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-card:hover .portfolio-img-holder img { transform: scale(1.06); }

.blueprint-overlay {
    position: absolute; inset: 0; background: rgba(194, 24, 7, 0.88); color: #ffffff;
    display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700;
    opacity: 0; transition: var(--transition); font-family: var(--font-mono); font-size: 0.82rem; backdrop-filter: blur(2px);
}
.portfolio-card:hover .blueprint-overlay { opacity: 1; }

.portfolio-info { padding: 20px; width: 100%; }
.portfolio-info h4 { font-size: 1.1rem; margin: 0 0 6px 0; line-height: 1.3; }
.portfolio-info span { color: var(--primary); font-size: 0.8rem; font-weight: 600; display: block; margin-bottom: 14px; line-height: 1.4; }

.btn-modal-open {
    background: var(--bg-alt); border: 1px solid var(--border-color); color: var(--text-color);
    padding: 10px 14px; border-radius: 6px; font-size: 0.82rem; font-weight: 700;
    cursor: pointer; transition: var(--transition); width: 100%; text-align: center;
}
.btn-modal-open:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); }

/* CONTACT SECTION */
.contact-section { background: var(--bg-alt); }
.contact-wrapper { margin-top: 30px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.info-card {
    background: var(--card-bg); padding: 18px; border-radius: 10px; border: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 14px; transition: var(--transition); width: 100%;
}
.info-card:hover { border-color: var(--primary); transform: translateX(5px); }
html[dir="rtl"] .info-card:hover { transform: translateX(-5px); }
.info-icon {
    width: 44px; height: 44px; border-radius: 8px; background: rgba(194, 24, 7, 0.1);
    color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    flex-shrink: 0;
}
.info-card h4 { margin: 0 0 3px 0; font-size: 0.88rem; }
.info-card p, .info-card a { margin: 0; color: var(--text-muted); text-decoration: none; font-size: 0.82rem; word-break: break-word; }

.contact-form-box { background: var(--card-bg); padding: 30px 20px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--shadow); width: 100%; }
.form-group { margin-bottom: 16px; text-align: left; width: 100%; }
html[dir="rtl"] .form-group { text-align: right; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border-color);
    background: var(--bg-main); color: var(--text-color); font-family: inherit; font-size: 0.88rem;
    outline: none; box-sizing: border-box; transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }
.btn-block { width: 100%; justify-content: center; }

/* MODAL WINDOW STYLES */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 10000; display: none;
    align-items: center; justify-content: center; padding: 15px; backdrop-filter: blur(8px);
}
.modal-backdrop.active { display: flex; }

.modal-window {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(30px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
    position: absolute; top: 12px; right: 15px; background: none; border: none; font-size: 1.8rem;
    color: var(--text-color); cursor: pointer; z-index: 10; transition: var(--transition); line-height: 1;
}
.modal-close:hover { color: var(--primary); }
html[dir="rtl"] .modal-close { right: auto; left: 15px; }

.modal-header { padding: 20px 20px 12px 20px; border-bottom: 1px solid var(--border-color); text-align: left; padding-right: 45px; }
html[dir="rtl"] .modal-header { text-align: right; padding-right: 20px; padding-left: 45px; }
.modal-badge { font-family: var(--font-mono); font-size: 0.72rem; color: var(--primary); display: block; margin-bottom: 4px; }
.modal-header h3 { font-size: 1.25rem; margin: 0; line-height: 1.3; }

.modal-body { padding: 20px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.modal-img-box img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); }
.modal-details { text-align: left; }
html[dir="rtl"] .modal-details { text-align: right; }
.spec-item { display: flex; flex-direction: column; margin-bottom: 10px; }
.spec-label { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.spec-val { font-weight: 700; font-size: 0.88rem; }
.modal-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-top: 12px; }

/* FOOTER */
.site-footer { background: #080c14; color: #cbd5e1; padding: 50px 0 20px 0; border-top: 1px solid #1e293b; position: relative; z-index: 1; width: 100%; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-brand .brand-text { color: #ffffff; }
.footer-brand p { font-size: 0.82rem; color: #94a3b8; margin-top: 10px; max-width: 320px; line-height: 1.5; }
.footer-logo { height: 38px; margin-bottom: 8px; border-radius: 4px; }
.footer-links h4, .footer-social h4 { color: #ffffff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.82rem; transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--primary); }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 36px; height: 36px; border-radius: 6px; background: #1e293b; color: #ffffff; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition); font-size: 0.9rem; }
.social-icons a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 18px; font-size: 0.78rem; color: #64748b; }

/* MEDIA QUERIES FOR TABLETS & MOBILE PHONES */
@media (max-width: 992px) {
    .grid-2-col { grid-template-columns: 1fr; gap: 30px; }
    .footer-content { grid-template-columns: 1fr; gap: 25px; }
    .about-experience-badge { right: 10px; bottom: 10px; }
    html[dir="rtl"] .about-experience-badge { left: 10px; right: auto; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    /* ANIMATED MOBILE DROPDOWN MENU */
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100vw;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        padding: 24px 20px;
        gap: 16px;
        z-index: 9998;
        
        /* Smooth Entrance Animation Properties */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scaleY(0.95);
        transform-origin: top center;
        transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    }
    
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scaleY(1);
    }

    /* Staggered entrance animation for individual links */
    .nav-links a {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
    }

    .nav-links.open a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger delay for each menu item */
    .nav-links.open a:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.open a:nth-child(2) { transition-delay: 0.10s; }
    .nav-links.open a:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.open a:nth-child(4) { transition-delay: 0.20s; }
    .nav-links.open a:nth-child(5) { transition-delay: 0.25s; }

    /* Rotate mobile toggle button when active */
    .mobile-toggle.active {
        transform: rotate(90deg);
        color: var(--primary);
    }
    
    .brand-text { font-size: 1rem; }
    .brand-tagline { font-size: 0.5rem; }
    .logo-img { height: 36px; }

    .modal-grid { grid-template-columns: 1fr; gap: 15px; }
    .modal-img-box img { height: 180px; }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section-padding { padding: 50px 0; }
    .hero-section { padding: 50px 10px; min-height: 75vh; }
    
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .brand-tagline { display: none; }
    .hero-title { font-size: 1.6rem; }
    .stat-number { font-size: 1.6rem; }
    .b2b-card, .service-card, .contact-form-box { padding: 22px 15px; }
    .portfolio-info { padding: 15px; }
    .portfolio-img-holder { height: 180px; }
}