/* Logo Image CSS settings */
.logo-header, .logo-footer {
    transition: filter 0.3s ease;
}

/* ==========================================================================
   HRX Tech Solutions - Premium Enterprise Corporate CSS Design System
   ========================================================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- Root Variables & Theme System --- */
:root {
    /* Light Theme Palette */
    --primary: #0A192F;
    --primary-rgb: 10, 25, 47;
    --secondary: #0077B6;
    --accent: #00B4D8;
    --accent-glow: rgba(0, 180, 216, 0.4);
    
    --bg-main: #F4F7FA;
    --bg-section: #EBF1F6;
    --bg-card: rgba(255, 255, 255, 0.95);
    
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #64748B;
    
    --border-color: #E2E8F0;
    --border-glass: rgba(226, 232, 240, 0.5);
    --shadow-premium: 0 10px 30px -10px rgba(2, 12, 27, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 180, 216, 0.15);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    /* Dark Theme Palette */
    --primary: #00B4D8;
    --primary-rgb: 0, 180, 216;
    --secondary: #0077B6;
    --accent: #00F5D4;
    --accent-glow: rgba(0, 245, 212, 0.4);
    
    --bg-main: #0A1128;
    --bg-section: #001220;
    --bg-card: rgba(10, 25, 47, 0.7);
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --border-color: #1E293B;
    --border-glass: rgba(255, 255, 255, 0.05);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(0, 245, 212, 0.2);
}

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

html {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-section) 100%);
    background-attachment: fixed;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Custom Selection */
::selection {
    background-color: var(--accent);
    color: #0A192F;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- Helper Utilities --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-section);
}

.text-gradient {
    background: linear-gradient(135deg, #0A192F, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #FFF, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 3.5rem;
}

/* --- Loader System --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0A192F;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 180, 216, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Floating Elements --- */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-premium);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.floating-btn.whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
}

.floating-btn.whatsapp:hover {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    transform: translateY(-5px);
}

.floating-btn:hover {
    transform: translateY(-5px);
    background-color: var(--accent);
    color: #0A192F;
    box-shadow: var(--shadow-glow);
}

#back-to-top {
    opacity: 0;
    visibility: hidden;
}

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

/* --- Sticky Navbar --- */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
}

.header-nav.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(var(--primary-rgb), 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
}

[data-theme="dark"] .header-nav.scrolled {
    background-color: rgba(10, 25, 47, 0.85);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 42px;
    width: auto;
    transition: var(--transition-smooth);
}

.nav-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin-left: 0.5rem;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0.75rem;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

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

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

/* Control buttons in nav */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.theme-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* Premium Button Class */
.btn-premium {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-main);
    transform: translateY(-3px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: none;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 180, 216, 0.05) 0%, transparent 40%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration svg {
    width: 100%;
    max-width: 550px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.animated-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* --- Counter Statistics Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- About Preview / Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.metric-box {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.metric-lbl {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Business Verticals --- */
.verticals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.vertical-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.vertical-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.vertical-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 30px 60px -15px rgba(2, 12, 27, 0.12);
}

.vertical-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 180, 216, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.vertical-card h3 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.vertical-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.vertical-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.vertical-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.vertical-features li i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* --- Industries Section --- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.industry-card:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.industry-card i {
    font-size: 2.25rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.industry-card:hover i {
    transform: rotateY(180deg);
}

.industry-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

/* --- Why Choose HRX & Process Timelines --- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 4rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}

.timeline-dot {
    position: absolute;
    top: 2.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 3px solid var(--bg-main);
    z-index: 10;
    box-shadow: var(--shadow-glow);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
}

/* --- Services Showcase & Modals --- */
.services-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.showcase-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.showcase-card h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

.showcase-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(15px);
}

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

.modal-content {
    background-color: var(--bg-main);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    width: 90%;
    max-width: 650px;
    padding: 3rem;
    position: relative;
    box-shadow: var(--shadow-premium);
    transform: scale(0.85);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

.modal-close-btn:hover {
    color: var(--accent);
}

/* --- Case Studies --- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.case-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.case-img-container {
    height: 200px;
    background: linear-gradient(135deg, #0A192F, #005F73);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 4rem;
}

.case-body {
    padding: 2.5rem;
}

.case-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.case-body h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.case-metric {
    display: flex;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}

.metric-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
}

.metric-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Testimonials Slider --- */
.testimonial-slider-container {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding: 1rem;
}

.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(15px);
    position: relative;
}

.testimonial-quote {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    line-height: 1.6;
}

.testimonial-quote::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -2.5rem;
    left: -1.5rem;
    color: var(--accent);
    opacity: 0.15;
    font-family: Georgia, serif;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.testimonial-client img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.client-meta h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

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

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background-color: var(--accent);
    color: #0A192F;
    box-shadow: var(--shadow-glow);
}

/* --- CTA Section --- */
.cta {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95), rgba(0, 180, 216, 0.95)),
                radial-gradient(circle, var(--accent) 0%, transparent 60%);
    padding: 6rem 0;
    color: white;
    text-align: center;
    border-radius: 30px;
    margin: 0 2rem;
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

.cta .btn-secondary {
    border-color: white;
    color: white;
}

.cta .btn-secondary:hover {
    background-color: white;
    color: #0A192F;
}

/* --- Contact Page & Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

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

.contact-info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: var(--shadow-premium);
}

.contact-info-card i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 0.25rem;
}

.contact-info-card h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.contact-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
}

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

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

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.15);
}

/* Map frame styling */
.map-container {
    margin-top: 4rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Footer --- */
.footer-main {
    background-color: #050B14;
    color: #94A3B8;
    padding: 6rem 0 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid #1E293B;
}

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

.footer-logo img {
    height: 46px;
    margin-bottom: 1.5rem;
}

.footer-col h5 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-col ul a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form .form-control {
    background-color: #0A1128;
    border-color: #1E293B;
    color: white;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #0F172A;
    border: 1px solid #1E293B;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-circle:hover {
    background-color: var(--accent);
    color: #0A192F;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Blog Page --- */
.blog-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 4rem;
}

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

.blog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background-color: var(--border-color);
}

.blog-card-body {
    padding: 2rem;
}

.blog-meta-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

/* --- Admin Panel --- */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: #050B14;
    border-right: 1px solid #1E293B;
    color: #94A3B8;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-logo {
    padding: 0 2rem;
    display: flex;
    align-items: center;
}

.admin-logo img {
    height: 38px;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 2rem;
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.admin-menu-link:hover,
.admin-menu-link.active {
    background-color: rgba(0, 180, 216, 0.1);
    color: var(--accent);
    border-left: 4px solid var(--accent);
}

.admin-content {
    flex-grow: 1;
    padding: 4rem;
    background-color: var(--bg-section);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-primary);
}

/* Badge classes */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background-color: rgba(37, 211, 102, 0.15); color: #25D366; }
.badge-warning { background-color: rgba(245, 158, 11, 0.15); color: #F59E0B; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .verticals-grid, .contact-wrapper, .blog-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-illustration {
        order: -1;
    }
    /* Hide floating stat card on tablet & mobile to avoid overlay conflicts */
    .stat-card {
        display: none !important;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .section-title {
        font-size: 2.25rem;
    }
    .hero-content h1 {
        font-size: 2.75rem !important;
        line-height: 1.3 !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .header-nav {
        padding: 0.8rem 0;
    }
    
    .nav-wrapper {
        position: relative;
    }

    #mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        z-index: 1001;
    }

    .nav-menu {
        display: none; /* Controlled dynamically by main.js toggle */
    }

    .nav-menu.active {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card); /* Automatically scales colors with light/dark theme variables! */
        flex-direction: column;
        padding: 2.5rem 2rem;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: var(--shadow-premium);
        backdrop-filter: blur(20px);
        align-items: center;
        gap: 1.5rem;
        z-index: 999;
    }

    .hero-content h1 {
        font-size: 2.15rem !important;
        line-height: 1.3 !important;
    }

    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .hero {
        height: auto !important;
        min-height: auto !important;
        padding: 6rem 0 4rem 0 !important;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        display: flex;
        gap: 1rem;
    }

    .hero-btns .btn-premium {
        width: 100%;
        justify-content: center;
    }

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

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

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

    .process-timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 3.5rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-quote {
        font-size: 1.1rem;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .section {
        padding: 4rem 0;
    }

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

    .hero-btns {
        flex-direction: column;
        width: 100%;
        display: flex;
        gap: 1rem;
    }

    .hero-btns .btn-premium {
        width: 100%;
        justify-content: center;
    }

    .logo-header {
        max-width: 160px !important;
    }

    .hero {
        padding: 4rem 0 2rem 0 !important;
    }

    .hero h1 {
        font-size: 1.85rem !important;
        line-height: 1.3 !important;
    }

    .hero p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Hide overlapping stat card on mobile view to clear text space */
    .hero-illustration .stat-card {
        display: none !important;
    }
}

/* --- Cinematic Video Background & Canvas Neural Overlay --- */
.section-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.section-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.6) 0%, rgba(10, 25, 47, 0.75) 100%);
    z-index: 2;
}

[data-theme="dark"] .video-overlay {
    background: linear-gradient(180deg, rgba(10, 17, 40, 0.7) 0%, rgba(10, 17, 40, 0.85) 100%);
}

.neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.65;
}

/* Ensure container content overlays elements safely */
.section .container,
.hero .container {
    position: relative;
    z-index: 10;
}

/* Target elements inside sections with video backgrounds to force white text readability */
.hero .container,
.section:has(.section-video-bg) .container {
    color: #ffffff !important;
}

.hero .container h1, .hero .container h2, .hero .container h3, 
.hero .container .section-title, .hero .container .section-subtitle,
.section:has(.section-video-bg) .container h1, 
.section:has(.section-video-bg) .container h2, 
.section:has(.section-video-bg) .container h3,
.section:has(.section-video-bg) .container .section-title, 
.section:has(.section-video-bg) .container .section-subtitle {
    color: #ffffff !important;
}

/* Force description paragraphs inside hero to stay white for readability */
.hero-content p,
.section:has(.section-video-bg) .container p,
.section:has(.section-video-bg) .container .section-desc {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Force typing text gradient in hero to use white-to-cyan layout across all themes */
.hero .text-gradient,
.section:has(.section-video-bg) .text-gradient {
    background: linear-gradient(135deg, #FFFFFF, var(--accent)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block !important;
}

.hero .btn-secondary {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.hero .btn-secondary:hover {
    background-color: #ffffff !important;
    color: #0A192F !important;
}
