:root {
    /* Primary Colors */
    --primary: #6366f1;
    /* Indigo */
    --primary-dark: #4f46e5;
    --secondary: #0f172a;
    /* Slate 900 */
    --accent: #f59e0b;
    /* Amber/Gold */

    /* Neutral Colors */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Blurs */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.heading {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button,
.cta-button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Spacing */
section {
    padding: 100px 0;
}

/* Utility Classes */
.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.bg-alt {
    background-color: var(--bg-alt);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

.sticky-nav.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo {
    height: 90px;
    /* Adjusted for better balance */
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-logo-small {
    height: 60px;
    /* Scaled down slightly */
    width: auto;
    object-fit: contain;
    opacity: 0.95;
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-mini {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
}

.cta-mini:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 50px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #f8fafc 0%, #ffffff 70%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.floating-img {
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Philosophy Section Imagery */
.phi-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    /* Reduced to prevent being "farr too large" */
    margin: 0 auto;
    /* Center in its container */
}

.phi-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.phi-image-container:hover .phi-img {
    transform: scale(1.02);
}

.dash-header {
    background: rgba(255, 255, 255, 0.2);
    padding: 16px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dash-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dash-dot.red {
    background: rgba(239, 68, 68, 0.6);
}

.dash-dot.yellow {
    background: rgba(245, 158, 11, 0.6);
}

.dash-dot.green {
    background: rgba(16, 185, 129, 0.6);
}

.dash-body {
    padding: 40px;
}

.dash-chart {
    height: 180px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.02) 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.dash-chart::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(99, 102, 241, 0.05) 41px);
}

.dash-bar {
    height: 10px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 6px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.dash-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: inherit;
    background: linear-gradient(90deg, var(--primary), #818cf8);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--secondary);
    border: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-bg-accent {
    position: absolute;
    right: -10%;
    top: 20%;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    filter: blur(100px);
    border-radius: 50%;
    z-index: 1;
}

/* Metrics Section */
.metrics {
    padding: 4rem 0;
    border-top: 1px solid #f1f5f9;
    background: var(--white);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.metric-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.metric-card p {
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.phi-list {
    list-style: none;
    margin-top: 2rem;
}

.phi-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.phi-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 900;
}

.abstract-shape {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob 10s infinite alternate;
}

@keyframes blob {
    from {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    to {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

/* Contact Form */
.narrow-container {
    max-width: 800px;
}

.contact-card {
    background: var(--white);
    padding: 4rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.contact-card h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-card p {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.w-full {
    width: 100%;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
}

.footer-info .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .contact-card {
        padding: 2rem;
    }

    section {
        padding: 60px 0;
    }
}

.reveal {
    transform: translateY(30px);
}