:root {
    --bg: #f6fbff; /* Very soft icy blue */
    --text: #1f2937;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #cce0ff; /* Soft crystal blue border */
    --primary: #C1DAFF;
    --primary-2: #E2F7F6;
    --header-gradient: linear-gradient(135deg, #E2F7F6, #C1DAFF);
    --footer-gradient: linear-gradient(135deg, #E2F7F6, #C1DAFF);
    --soft-bg: #eaf4ff;
    --shadow: 0 10px 24px rgba(193, 218, 255, 0.40);
    --shadow-strong: 0 16px 30px rgba(193, 218, 255, 0.50);
    --tool-bg: #2d3748;
    --tool-text: #ffffff;

    /* Dynamic text colors for header/footer */
    --header-text: #0f172a;
    --header-text-muted: rgba(15, 23, 42, 0.8);
    --footer-text: #0f172a;
    --footer-text-muted: rgba(15, 23, 42, 0.8);
    --footer-border: rgba(15, 23, 42, 0.15);
}

body.dark-theme {
    --bg: #0f1720;
    --text: #f3f4f6;
    --muted: #c4cbd3;
    --card: #18222d;
    --border: #31404f;
    --primary: #C1DAFF;
    --primary-2: #E2F7F6;
    --header-gradient: linear-gradient(135deg, #111827, #1f2937, #0f172a);
    --footer-gradient: linear-gradient(135deg, #111827, #1f2937, #0f172a);
    --soft-bg: #202b36;
    --shadow: 0 10px 24px rgba(193, 218, 255, 0.10);
    --shadow-strong: 0 16px 30px rgba(193, 218, 255, 0.20);
    --tool-bg: #263242;
    --tool-text: #ffffff;

    /* Flip text to white when header/footer becomes dark */
    --header-text: #ffffff;
    --header-text-muted: rgba(255, 255, 255, 0.8);
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.8);
    --footer-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------------- HEADER ---------------- */
.site-header {
    background: var(--header-gradient);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(193, 218, 255, 0.5);
}

.header-container {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--header-text);
}

.site-tagline {
    font-size: 13px;
    color: var(--header-text-muted);
    margin-top: 2px;
}

/* Main Desktop Navigation Alignment */
.nav-links a {
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links li a {
    color: var(--header-text);
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    opacity: 0.7;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background: var(--header-text);
    border-radius: 10px;
    transition: 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.header-btn {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
    transition: 0.3s ease;
}

.header-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: none;
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* Floating Tools */
.floating-widget {
    position: fixed;
    left: 10px;
    bottom: 10px;
    z-index: 2000;
}

.tools-launcher {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    border: 1.5px solid rgba(193, 218, 255, 0.85);
    background: var(--tool-bg);
    color: var(--tool-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.tools-launcher:hover {
    transform: translateY(-2px);
}

.floating-tools {
    position: absolute;
    left: 0;
    bottom: 42px;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.floating-tools.show {
    display: flex;
}

.tool-btn {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    border: 1.5px solid rgba(193, 218, 255, 0.85);
    background: var(--tool-bg);
    color: var(--tool-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.tool-btn:hover {
    transform: translateY(-2px);
}

.lang-btn {
    font-size: 15px;
}

.tool-btn-close {
    background: linear-gradient(135deg, #E2F7F6, #C1DAFF);
    color: #0f172a;
    border-color: rgba(193, 218, 255, 0.9);
    font-size: 20px;
}

/* Main */
main {
    min-height: calc(100vh - 180px);
}

/* Common */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg);
}

.section-white {
    background: var(--card);
}

.section-heading {
    max-width: 820px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading h1,
.section-heading h2 {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
}

.section-heading p {
    font-size: 18px;
    color: var(--muted);
}

.mini-label {
    display: inline-block;
    background: var(--soft-bg);
    color: #1e3a8a; /* Dark navy blue to match the theme */
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.primary-btn {
    display: inline-block;
    background: linear-gradient(135deg, #E2F7F6, #C1DAFF);
    color: #0f172a;
    border: none;
    border-radius: 999px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.secondary-btn {
    display: inline-block;
    background: var(--card);
    color: #1e3a8a; /* Dark navy blue */
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
}

.secondary-btn:hover {
    background: var(--soft-bg);
    transform: translateY(-2px);
}

.clean-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
}

.clean-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

/* ---------------- FOOTER ---------------- */
.site-footer {
    background: var(--footer-gradient);
    color: var(--footer-text);
    padding: 55px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 35px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--footer-border);
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand-row img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
}

.footer-brand-row div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-brand-row span {
    font-size: 22px;
    font-weight: 800;
    color: var(--footer-text);
}

.footer-brand-row small,
.footer-brand p,
.footer-links a,
.footer-contact a,
.footer-contact p {
    color: var(--footer-text-muted);
}

.footer-brand p {
    font-size: 15px;
    max-width: 430px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--footer-text);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
    font-size: 15px;
    transition: 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 0.7;
}

.footer-bottom {
    padding-top: 18px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--footer-text-muted);
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {
    .header-container {
        min-height: 76px;
    }

    .site-logo {
        width: 48px;
        height: 48px;
    }

    .site-name {
        font-size: 22px;
    }

    .site-tagline {
        font-size: 12px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: var(--header-gradient);
        flex-direction: column !important;
        align-items: flex-start;
        gap: 18px;
        padding: 20px 5%;
        display: none;
    }

    .site-nav.show {
        display: flex;
    }

    .nav-links {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
        white-space: nowrap;
    }

    .nav-links li {
        display: block;
        width: 100%;
    }

    .header-btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: 30px;
    }

    .section-heading p {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Footer Social Media --- */
.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.social-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

body.dark-theme .social-label {
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #222222; /* Dark background from your image */
    border-radius: 8px; /* Rounded square corners */
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icons a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* The Orange Hover Effect from your screenshot */
.social-icons a:hover {
    border-color: #f97316; /* Bright orange border */
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4); /* Orange glow */
    transform: translateY(-3px); /* Gentle float up */
}

/* --- Shared Card Icons (For Foundation Section) --- */
.card-icon {
    width: 60px;
    height: 60px;
    background: #eaf4ff; /* Soft icy blue background */
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #1e3a8a; /* Deep navy blue icon color */
    transition: 0.3s ease;
    flex-shrink: 0;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none; /* IMPORTANT: This stops it from being a giant solid black shape! */
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dark mode adjustments */
body.dark-theme .card-icon {
    background: rgba(193, 218, 255, 0.1);
    color: var(--primary);
}