/* =========================================
   IGEN DESIGN SYSTEM - SILICON VALLEY TIER
   Principles: Density, Clarity, Surface
   ========================================= */

:root {
    /* Palette (Google Material 3 Inspired) */
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --secondary: #5f6368;
    --bg-body: #ffffff;
    --bg-surface: #f8f9fa; 
    --border-subtle: #e0e0e0;
    
    /* Text */
    --text-main: #202124;
    --text-muted: #5f6368;
    
    /* Layout */
    --container: 1200px;
    --radius: 12px;
    --shadow-card: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-hover: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    
    /* Spacing */
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 32px;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3 { color: var(--text-main); letter-spacing: -0.5px; }
h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.1; margin: 0; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { color: var(--text-muted); margin-bottom: 1rem; }

.text-gradient {
    background: linear-gradient(90deg, #1a73e8, #34a853);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}   

/* UTILITIES */
.container { width: 92%; max-width: var(--container); margin: 0 auto; }
.section { padding: calc(var(--space-lg) * 0.1) 0; } 
.bg-surface { background-color: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }

/* NAVIGATION */
/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #bad6df5e; /* lightest green fill (Material Green 50) */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    height: 50px;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.desktop-nav { display: flex; gap: 24px; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover { color: var(--primary); }

/* BUTTONS */
.btn { padding: 10px 24px; border-radius: 100px; border: none; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 2px 5px rgba(26,115,232,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--primary); border: 1px solid var(--border-subtle); }
.btn-secondary:hover { background: #f1f3f4; }
.btn-link { background: none; border: none; color: var(--primary); font-weight: 600; cursor: pointer; padding: 0; }

/* HERO SECTION */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 20px 0 30px;
    position: relative;
    overflow: hidden;
}
.hero-grid { 
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}
.pill-label { 
    background: #e8f0fe; 
    color: var(--primary); 
    padding: 6px 12px; 
    border-radius: 4px; 
    font-weight: 600; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    display: inline-block; 
    margin-bottom: 16px; 
}
.lead-text { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    max-width: 90%; 
    margin: 0 auto 24px; 
    line-height: 1.6; 
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-visual { 
    height: 100%;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
}

.heading-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.hero-logo-wrapper {
    flex-shrink: 0;
    margin-left: 0;
    margin-right: 20px;
    position: relative;
    z-index: 2;
}

.hero-logo {
    height: 100px;  
    width: auto;
    object-fit: contain;
    display: block;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .heading-container {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .hero-logo-wrapper {
        margin: 0;
        margin-right: 0;
    }
    
    .hero-logo {
        height: 80px;  
    }
}

#globe-container {
    width: 100%;
    height: 100%;
    max-height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#globe-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-visual {
        display: none; /* Hide globe on mobile */
    }
    
    .lead-text {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-logo-wrapper {
        display: none; /* Hide logo wrapper on mobile */
    }
    
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
}

@media (min-width: 993px) {
    .hero-visual {
        display: flex; /* Ensure globe is visible on desktop */
    }
}

.stats-row { display: flex; align-items: center; gap: 24px; }
.stat strong { display: block; font-size: 1.5rem; color: var(--text-main); }
.stat span { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* CARDS & CONTENT */
.content-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: var(--space-md);
}
.card-header { padding: 32px 40px; border-bottom: 1px solid var(--border-subtle); background: #fff; }
.card-header--violet { background: #ede7f6; /* light violet */ }
.card-header--blue { background: #e3f2fd; /* light blue */ }
.card-header--yellow { background: #fffde7; /* light yellow */ }
.card-header--green { background: #e8f5e9; /* light green */ }
.card-header h2 { margin: 0; font-size: 1.5rem; }
.card-header-1 { padding: 32px 40px; border-bottom: 1px solid var(--border-subtle); background: #ffd6cc; }
.card-header-1 h2 { margin: 0; font-size: 1.5rem; }
.card-body { padding: 30px; }
.highlight-paragraph { font-size: 1.15rem; color: var(--text-main); font-weight: 500; margin-bottom: 1.5rem; }
.highlight-card { border-left: 4px solid var(--primary); }

/* EXPANDABLE TEXT (Read More) */
.expandable-text { position: relative; overflow: hidden; transition: max-height 0.4s ease; }
.expandable-text.collapsed { max-height: 160px; mask-image: linear-gradient(to bottom, black 60%, transparent 100%); }
.toggle-btn { margin-top: 16px; display: inline-flex; align-items: center; }

/* BENTO GRID (Verticals) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.bento-card {
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.bento-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.bento-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(var(--accent), 0.15);
    flex-shrink: 0;
}
.bento-card:hover .bento-icon {
    box-shadow: 0 6px 16px rgba(var(--accent), 0.25);
    transform: scale(1.15);
}
.bento-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bento-content h3 {
    margin-bottom: 4px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000 !important;
    line-height: 1.3;
    margin: 0;
}
.bento-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 12px;
}
.bento-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bento-content p {
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 24px 0;
}
.bento-card:hover {
    border-color: rgba(26, 115, 232, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
    background: var(--accent);
}
.bento-card:hover h3,
.bento-card:hover .bento-body p {
    color: white;
}
.bento-card:hover .bento-label {
    color: rgba(255, 255, 255, 0.9);
}
.bento-card:hover .bento-footer {
    border-top-color: rgba(255, 255, 255, 0.3);
}
.bento-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.link-text {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}
.bento-card:hover .link-text {
    gap: 12px;
}

/* FORM */
.form-wrapper { max-width: 600px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.full-width { grid-column: span 2; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; color: var(--text-main); }
.input-group input, .input-group select {
    width: 100%; padding: 12px; border: 1px solid var(--border-subtle);
    border-radius: 8px; font-size: 1rem; outline: none; transition: border-color 0.2s;
}
.input-group input:focus, .input-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.1); }
.disclaimer { text-align: center; margin-top: 16px; font-size: 0.85rem; }

/* MODAL */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-card {
    background: white; width: 90%; max-width: 600px; border-radius: 16px;
    position: relative; padding: 32px; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; cursor: pointer; }
.modal-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #eee; }
.modal-icon-lg { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.label-header { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; letter-spacing: 0.5px; }
.target-list { list-style: none; margin-bottom: 24px; }
.target-list li { display: flex; gap: 12px; margin-bottom: 10px; font-size: 0.95rem; align-items: flex-start; }

/* RESPONSIVE */
@media (max-width: 768px) {
    :root {
        --space-lg: 24px;
    }
    
    h1 { 
        font-size: 2.5rem; 
        line-height: 1.2;
    }
    
    .hero-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 24px;
    }
    
    .hero-actions { 
        justify-content: center;
        margin-bottom: 32px;
    }
    
    .hero-visual { 
        height: 300px;
        min-height: 300px;
        grid-row: 1;
    }
    
    .lead-text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stats-row { 
        justify-content: center; 
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .card-header, 
    .card-body { 
        padding: 24px; 
    }
    
    .desktop-nav { 
        display: none; 
    }
    
    .form-grid { 
        grid-template-columns: 1fr; 
    }
    
    .full-width { 
        grid-column: span 1; 
    }
}