:root {
    --primary: #0a2540;
    --secondary: #635bff;
    --accent: #00d4ff;
    --text: #425466;
    --text-dark: #0a2540;
    --bg: #ffffff;
    --bg-alt: #f6f9fc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
}

/* --- Shared Header & Nav --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1); /* Default transparent for Home/Video */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

/* Subpage Header Style (Solid by default) */
header.subpage-header {
    background: #ffffff;
    border-bottom: 1px solid #e6ebf1;
}
header.subpage-header .nav-links a {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white); /* White by default for video bg */
    font-weight: 500;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: var(--transition);
}

/* Active Link State */
.nav-links a.active {
    position: relative;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
}

/* Scrolled State Overrides */
header.scrolled .nav-links a {
    color: var(--text-dark);
    text-shadow: none;
}

.cta-btn {
    background: var(--secondary);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 14px 0 rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #544dc9;
}

/* --- Page Heroes (Static) --- */
.page-hero {
    background: var(--primary);
    color: white;
    padding: 180px 2rem 100px;
    text-align: center;
}

.page-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Common Layouts --- */
.section-tag {
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
}

/* --- Footer --- */
footer {
    padding: 60px 2rem;
    background: #061a2e;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .hero h1, .page-hero h1 { font-size: 2.5rem; }
}

/* --- Services Styles --- */
.services, .services-page {
    padding: 0 2rem 100px;
    max-width: 1300px;
    margin: 0 auto;
}
/* Negative margin only for Home Page overlap */
.services.home-overlap {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}
.services-page {
    padding-top: 100px;
    margin-top: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-alt);
    padding: 3rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid #e6ebf1;
    text-align: center;
}

.home-overlap .service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card:hover {
    background: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.service-icon-container {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.service-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.tax-icon { filter: invert(34%) sepia(98%) saturate(1868%) hue-rotate(224deg) brightness(96%) contrast(98%); }

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}
