/* =========================================
   AEC Corporate Theme (Blue, White, Red)
   ========================================= */
:root {
    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-neutral: #0f172a;
    
    --primary-blue: #0a369d; 
    --primary-blue-light: #1e40af;
    --faint-blue-bg: rgba(10, 54, 157, 0.08);
    
    --accent-red: #dc2626;
    --faint-red-bg: rgba(220, 38, 38, 0.08);
    
    --divider-color: #e2e8f0;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 30px -4px rgba(10, 54, 157, 0.08);
    
    --header-bg: rgba(255, 255, 255, 0.85); 
    --whatsapp-green: #25d366;
    --whatsapp-hover: #1ebc59;
    
    /* Footer & Header adjustments for light/dark matching */
    --footer-bg: #0b1120;
    --footer-text: #f8fafc;
    --footer-text-muted: #94a3b8;
    
    /* General Contact Links */
    --contact-link: #58a6ff; 
    --contact-link-hover: #79c0ff; 

    /* Headquarters Directory Links (Light Theme) */
    --hq-link: #5481EF;
    --hq-link-hover: #334ED1;
    
    --btn-primary-hover: #082b7d; 
}

/* Upgraded, Modern & Professional Dark Mode */
[data-theme="dark"] {
    --bg-body: #0d1117;
    --bg-surface: #161b22;
    --bg-gradient: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    --bg-card: #161b22;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-neutral: #ffffff;
    
    --primary-blue: #58a6ff; 
    --faint-blue-bg: rgba(88, 166, 255, 0.12);
    
    --accent-red: #ff7b72;
    --faint-red-bg: rgba(255, 123, 114, 0.15);

    --divider-color: #30363d;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 12px 30px -4px rgba(0, 0, 0, 0.8);
    
    --header-bg: rgba(13, 17, 23, 0.85); 
    --footer-bg: #0d1117;
    
    /* Contact Links (Dark Theme) */
    --contact-link: #58a6ff;
    --contact-link-hover: #79c0ff;

    /* Headquarters Directory Links (Dark Theme - Stays the same as before) */
    --hq-link: #58a6ff;
    --hq-link-hover: #79c0ff;
    
    --whatsapp-hover: #4ade80; 
    --btn-primary-hover: #79c0ff; 
}

html { 
    scroll-padding-top: 130px; 
    scroll-behavior: smooth; /* Added for smooth anchor scrolling */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-primary); 
    line-height: 1.7; 
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.section-padding { padding: 80px 0; }
.bg-alt { background: var(--bg-gradient); }

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* Typography */
.section-title { text-align: center; font-size: 2.8rem; font-weight: 900; margin-bottom: 16px; letter-spacing: -0.5px; }
.text-neutral { color: var(--text-neutral); }
.text-blue { color: var(--primary-blue); }
.text-red { color: var(--accent-red); }
.section-subtitle { text-align: center; color: var(--text-secondary); max-width: 750px; margin: 0 auto 50px auto; font-size: 1.1rem; }

/* Flat Clean Cards */
.clean-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--divider-color);
    padding: 35px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.clean-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Static Flat Content Container (No hover/borders) */
.flat-content {
    padding: 20px 0;
    text-align: left;
}

/* Static Profile Block (No outline/hover) */
.static-profile-block {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
}

/* Alternating Theme Icons */
.icon-box {
    width: 70px; height: 70px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; flex-shrink: 0;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

/* Red Theme */
.theme-red .icon-box { background-color: var(--faint-red-bg); color: var(--accent-red); }
.theme-red.clean-card:hover { border-color: var(--accent-red); }
.theme-red.clean-card:hover .icon-box { background-color: var(--accent-red); color: #ffffff; }

/* Blue Theme */
.theme-blue .icon-box { background-color: var(--faint-blue-bg); color: var(--primary-blue); }
.theme-blue.clean-card:hover { border-color: var(--primary-blue); }
.theme-blue.clean-card:hover .icon-box { background-color: var(--primary-blue); color: var(--bg-body); }

/* Header */
header { position: sticky; top: 0; width: 100%; background-color: var(--header-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--divider-color); z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 106px; }
.logo-container { display: block; }
.logo-container img { height: 70px; display: block; }
.no-hover:hover { transform: none !important; opacity: 1 !important; filter: none !important; }

/* Navigation links with Left-to-Right Underline Animation & Red Hover */
.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links li a { 
    position: relative; 
    font-weight: 600; 
    font-size: 1.05rem; 
    color: var(--text-primary); 
    transition: color 0.3s ease;
    padding-bottom: 6px; 
}
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}
.nav-links li a:hover { color: var(--accent-red); }
.nav-links li a:hover::after, .nav-links li a.active-page::after { width: 100%; }

/* Active Page Stylings */
.nav-links li a.active-page { color: var(--accent-red); }

.theme-toggle { background: none; border: none; font-size: 1.4rem; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.theme-toggle i { transition: transform 0.4s ease, color 0.3s; display: inline-block;}
.theme-toggle:hover i.fa-sun { color: var(--accent-red); transform: rotate(22.5deg); }
.theme-toggle:hover i.fa-moon { color: var(--primary-blue); transform: rotate(19.5deg); }

/* Buttons & WhatsApp */
.btn { padding: 16px 32px; border-radius: 12px; font-weight: 600; font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; border: none; font-family: inherit; transition: all 0.3s ease; }
.btn-primary { background-color: var(--primary-blue) !important; color: #ffffff !important; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background-color: var(--btn-primary-hover) !important; transform: translateY(-2px); box-shadow: var(--shadow-md); color: #ffffff !important;}
.btn-primary:hover i { color: #ffffff !important; }
.btn-outline { background-color: transparent !important; color: #ffffff !important; border: 1px solid rgba(255,255,255,0.5) !important; }
.btn-outline:hover { background-color: rgba(255,255,255,0.1) !important; transform: translateY(-2px); border-color: #ffffff !important; color: #ffffff !important; }

/* Enhanced Hero Outline Button */
#hero .btn-outline { border: 2px solid rgba(255, 255, 255, 0.4) !important; }
#hero .btn-outline:hover { background-color: rgba(88, 166, 255, 0.12) !important; border-color: #58a6ff !important; color: #58a6ff !important; }

/* Theme-Adaptive Outline Button */
.btn-outline-adaptive { background-color: transparent !important; color: var(--primary-blue) !important; border: 2px solid var(--primary-blue) !important; }
.btn-outline-adaptive:hover { background-color: var(--primary-blue) !important; color: var(--bg-body) !important; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.floating-wa { position: fixed; bottom: 40px; right: 40px; background-color: var(--whatsapp-green); color: white; width: 65px; height: 65px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2.2rem; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); z-index: 1000; transition: transform 0.3s ease, background-color 0.3s ease; }
.floating-wa:hover { background-color: var(--whatsapp-hover); transform: scale(1.08) translateY(-3px); color: white; }

/* Headquarters Links ONLY */
.hq-link { color: var(--hq-link) !important; font-weight: 700; transition: color 0.3s ease; cursor: pointer; }
.hq-link:hover { color: var(--hq-link-hover) !important; }

.contact-highlight-link { color: var(--contact-link) !important; font-weight: 700; transition: color 0.3s ease; cursor: pointer; }
.contact-highlight-link:hover { color: var(--contact-link-hover) !important; }
.contact-flex-link { display: inline-flex; align-items: center; gap: 10px; }
.contact-flex-link i { transition: color 0.3s ease; color: inherit; }

/* Non-Interactive Info Tags/Badges */
.landline-tag {
    background-color: var(--faint-blue-bg);
    color: var(--hq-link) !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: default;
    user-select: none;
    pointer-events: none;
}

[data-theme="dark"] .landline-tag {
    background-color: rgba(56, 189, 248, 0.15);
    color: var(--hq-link) !important;
}

/* Minimalist Footer */
footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 60px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-container { display: flex; justify-content: flex-start; align-items: flex-start; max-width: 1280px; margin: 0 auto; flex-wrap: wrap; gap: 80px;}
.footer-col { text-align: left; }
.footer-col h4 { color: #ffffff; font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; font-size: 1rem; color: #94a3b8; }
.footer-col ul li a { color: #94a3b8; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: #ffffff; }

/* Footer Main Office Colors */
.footer-office-link { color: #58a6ff !important; font-weight: 600; display: inline-flex; align-items: center; gap: 10px;}
.footer-office-link i { width: 16px; }
.footer-office-link:hover { color: #79c0ff !important; }

.copyright { color: var(--footer-text-muted); font-size: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 25px; text-align: center; margin-top: 40px;}

.hamburger { display: none; width: 30px; height: 22px; position: relative; cursor: pointer; flex-direction: column; justify-content: space-between; }
.hamburger span { display: block; height: 3px; width: 100%; background-color: var(--text-primary); border-radius: 4px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

@media (max-width: 1024px) { 
    .footer-container { flex-direction: column; gap: 40px; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { position: absolute; top: 106px; left: 0; width: 100%; background-color: var(--header-bg); flex-direction: column; gap: 0; border-bottom: 1px solid var(--divider-color); backdrop-filter: blur(16px); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
    .nav-links.active { max-height: 450px; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links li a { display: block; padding: 20px 0; font-size: 1.15rem; }
}