@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* Global Styles merged from style.css and pages.css */
:root {
    /* Colors from style.css */
    --primary-blue: #0066FF;
    --secondary-blue: #0052CC;
    --dark-bg: #101828;
    --card-bg: #FFFFFF;
    --text-main: #101828;
    --text-muted: #475467;
    --text-light: #98A2B3;
    --white: #FFFFFF;
    --border-color: #EAECF0;

    /* Colors from pages.css (aliased or kept if distinct) */
    --blue-600: #1758ff;
    /* Slightly different from primary-blue */
    --blue-700: #0d3ddb;
    --blue-50: #eef4ff;
    --navy-900: #0f172a;
    --navy-800: #1f2a44;
    --slate-700: #475569;
    --slate-600: #5b677b;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --gray-100: #f8fafc;
    --gray-200: #eef2f7;
    --gray-300: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.12);

    /* Typography */
    --font-family: 'Manrope', sans-serif;

    /* Radius */
    --radius-md: 8px;
    /* style.css says 8px, pages.css says 16px. Keeping distinct variables if needed or normalizing. */
    --radius-lg: 12px;
    --radius-xl: 32px;
    --radius-page-md: 16px;
    /* Renamed from pages.css radius-md to avoid conflict */
    --radius-page-lg: 22px;
    /* Renamed from pages.css radius-lg */

    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-muted);
    background-color: #F9FAFB;
    /* Fallback/Default */
    line-height: 1.6;
    overflow-x: hidden;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
}

/* Container - Using the larger max-width as default, pages can override */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Common Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    gap: 0.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.btn-outline {
    border-color: var(--gray-300);
    background: var(--white);
    color: var(--navy-900);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Utility */
.text-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.link-arrow:hover {
    gap: 0.5rem;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 6rem 0 2rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand-col p {
    margin: 1.5rem 0;
    max-width: 300px;
}

.social-links,
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link,
.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.social-link:hover,
.social-icons a:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 1rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    /* Align icon with top of text */
    gap: 0.75rem;
}

.contact-list li span {
    color: var(--primary-blue);
    /* Optional: make icons blue */
    flex-shrink: 0;
    /* Prevent icon from shrinking */
    font-size: 1.25rem;
    /* Adjust icon size if needed */
    margin-top: 0.15rem;
    /* Fine-tune vertical alignment with text */
}

.footer ul a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Responsive Global Elements (Footer) */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer {
        padding: 4rem 0 2rem;
        /* Reduce padding on mobile */
    }
}

/* =========================================
   Shared Header Styles (Migrated from index.css)
   ========================================= */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 1rem 0;
    /* Shrink on scroll */
}

/* Dark Page Sticky Header Style */
.header.dark-mode-scrolled {
    background: rgba(16, 24, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

/* Ensure white text on dark backgrounds or where explicit classes are used */
.hero-dark .header .logo,
.hero-dark .header .nav-list a,
.services-hero .header .logo,
.services-hero .header .nav-list a,
.footer-brand-col .logo {
    color: var(--white);
}

.logo-icon {
    color: var(--primary-blue);
}

.nav-list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-light);
}

.nav-list a:hover {
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .nav {
        display: flex;
        /* Mobile Menu Logic */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-bg);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
    }

    .nav.active {
        visibility: visible;
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.5rem;
        color: var(--white);
    }
}

/* Services Hero (Migrated from services.css) */
.services-hero {
    background-color: var(--dark-bg);
    padding: 10rem 0 6rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-left p {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions-left {
    display: flex;
    gap: 1rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-pill .material-symbols-outlined {
    font-size: 16px;
}

@media (max-width: 768px) {
    .services-hero {
        padding: 8rem 0 4rem;
        text-align: center;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-left h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-left p {
        margin: 0 auto 2rem;
    }

    .hero-actions-left {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .hero-actions-left .btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-visual {
        height: 300px;
        /* Smaller height for mobile */
    }

    .main-card {
        width: 90%;
        height: 260px;
    }
}

/* Dashboard Visual (CSS Only Art) */
.dashboard-visual {
    position: relative;
    width: 100%;
    height: 400px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5), transparent);
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    position: absolute;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.main-card {
    width: 80%;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.chart-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-blue);
    border-right-color: #06B6D4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2rem;
}

.center-text {
    text-align: center;
    color: var(--white);
    font-weight: 700;
    line-height: 1;
}

.center-text small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 0.25rem;
}

.float-card-1 {
    top: 20px;
    right: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.icon-green {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

/* Specific button override for dark hero */
.services-hero .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: transparent;
}

.services-hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}