/* Base Variables - Light Minimalist Theme */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --brand-primary: #0f172a;
    --brand-accent: #3b82f6;
    /* Subtle modern blue */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

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

h1,
h2,
h3,
h4,
.logo-mark {
    font-family: 'Playfair Display', serif;
    color: var(--brand-primary);
}

a {
    transition: color 0.3s ease;
    text-decoration: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-gray {
    color: var(--text-secondary);
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.ml-3 {
    margin-left: 1rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.border-t {
    border-top: 1px solid var(--border-color);
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    background-color: var(--bg-secondary);
}

.btn-outline.secondary {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.btn-outline.secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.badge-primary {
    background: #eff6ff;
    color: var(--brand-accent);
    border: 1px solid #bfdbfe;
}

.badge-secondary {
    background: #f8fafc;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-mark {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-links a:not(.btn):hover {
    color: var(--brand-primary);
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    padding: 160px 5% 100px;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 90vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero .title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero .description {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.globe-svg {
    width: 100%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Services Grid */
.services-section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Principles Row */
.principles-section {
    padding: 80px 0;
}

.stats-row {
    display: flex;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 0;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    flex: 1;
    padding: 0 40px;
}

.border-left {
    border-left: 1px solid var(--border-color);
}

.stat-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 8px;
}

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

/* Layout Splits (Acquisitions & Impact) */
.layout-split {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 5%;
}

.layout-split.reverse {
    flex-direction: row-reverse;
}

.acq-content,
.impact-content {
    flex: 1;
}

.acq-content .lead,
.impact-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--brand-primary);
}

.acq-content p,
.impact-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.acq-visual,
.impact-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.branding-card {
    background: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: var(--brand-primary);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.branding-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ecfdf5;
    color: #059669;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ifot-card {
    background: #0f172a;
    color: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.ifot-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.ifot-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.ifot-mission h4 {
    font-family: 'Inter', sans-serif;
    color: white;
    margin-bottom: 15px;
}

.ifot-mission ul {
    list-style: none;
    color: #cbd5e1;
}

.ifot-mission li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.ifot-mission li::before {
    content: '→';
    color: #3b82f6;
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links a,
.footer-contact a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--brand-primary);
}

/* Chat Widget */
.chat-widget {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
    margin: 0 auto;
}

.chat-header {
    background: var(--brand-primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 5px #10b981;
}

.toggle-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
}

.chat-body {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    max-width: 85%;
}

.message.ai {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-content {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ai .message-content {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

/* Modern Glass Input / Forms */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.user .message-content {
    background: var(--brand-primary);
    color: white;
    border-bottom-right-radius: 2px;
}

/* Custom Chat Input Replacement (No Bootstrap) */
.custom-chat-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: white;
}

.chat-text-field {
    flex: 1;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    outline: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.chat-text-field:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.chat-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.voice-btn {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.voice-btn:hover {
    background: #fef2f2;
}

.voice-btn.active {
    background: #ef4444;
    color: white;
}

.submit-btn {
    background: var(--brand-primary);
    color: white;
}

.submit-btn:hover {
    background: #1e293b;
    transform: scale(1.05);
}

.chat-input-wrapper {
    padding: 15px;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input-wrapper input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
}

.chat-input-wrapper input:focus {
    border-color: var(--brand-accent);
}

.chat-input-wrapper button {
    background: var(--brand-primary);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-input-wrapper button:hover {
    background: var(--brand-accent);
}

.chat-footer {
    padding: 8px;
    text-align: center;
    background: white;
    color: var(--text-light);
    border-top: 1px solid #f1f5f9;
}

/* Background Shapes Removed for Clarity */
.bg-shape {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero .title {
        font-size: 2.8rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        padding: 20px;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .layout-split {
        flex-direction: column;
        text-align: center;
    }

    .layout-split.reverse {
        flex-direction: column;
    }

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