/* ==========================================================================
   1. CSS VARIABLES (Cloud Enterprise Theme)
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #0ea5e9; /* Sky Blue */
    --color-primary-dark: #0284c7;
    --color-secondary: #0f172a; /* Slate 900 */
    --color-background: #ffffff;
    --color-surface-light: #f8fafc; /* Slate 50 */
    --color-text-main: #334155; /* Slate 700 */
    --color-text-muted: #64748b; /* Slate 500 */
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --container-width: 1280px;
    --nav-height: 80px;
    --section-padding: 6rem 0;
    --border-radius: 12px;
    
    /* Shadows */
    --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);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button, input, select, textarea { font-family: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
.section { padding: var(--section-padding); }
.bg-light { background-color: var(--color-surface-light); }
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }

/* Typography */
h1, h2, h3, h4 { color: var(--color-secondary); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.section-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.section-subtitle { color: var(--color-text-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

/* Badges */
.badge { display: inline-block; padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem; }
.badge-primary { background-color: #e0f2fe; color: var(--color-primary-dark); }
.badge-secondary { background-color: #f1f5f9; color: var(--color-secondary); }

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 1.5rem; border-radius: 8px; font-weight: 600;
    cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background-color: var(--color-primary); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background-color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background-color: transparent; border: 1px solid var(--color-border); color: var(--color-secondary); }
.btn-outline:hover { border-color: var(--color-secondary); background-color: var(--color-surface-light); transform: translateY(-2px); }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-full { width: 100%; }

/* ==========================================================================
   4. HEADER & NAV
   ========================================================================== */
.site-header {
    position: fixed; top: 0; width: 100%; height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border); z-index: 1000; transition: var(--transition);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.brand-logo { font-size: 1.5rem; font-weight: 800; color: var(--color-secondary); display: flex; align-items: center; gap: 0.5rem;}
.brand-logo span { color: var(--color-primary); }

.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-list { display: flex; gap: 2rem; }
.nav-link { font-weight: 500; color: var(--color-text-muted); position: relative; padding: 0.5rem 0;}
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: var(--transition); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; }
.hamburger-line { width: 24px; height: 2px; background: var(--color-secondary); transition: var(--transition); }

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative; min-height: 90vh; display: flex; align-items: center;
    padding-top: var(--nav-height); overflow: hidden;
}
.hero-bg-glow {
    position: absolute; top: -10%; right: -5%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%; z-index: -1;
}
.hero-content { max-width: 800px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
.text-gradient { background: linear-gradient(135deg, var(--color-secondary), var(--color-primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 2.5rem; max-width: 650px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   6. MARQUEE
   ========================================================================== */
.partners-section { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 2rem 0; background: var(--color-surface-light); overflow: hidden; display: flex; }
.marquee-container { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-container:hover { animation-play-state: paused; }
.marquee-content { display: flex; align-items: center; padding-right: 3rem; gap: 3rem; }
.partner-item { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--color-text-muted); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   7. ABOUT SECTION
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 4rem; align-items: start; }
.lead-text { font-size: 1.125rem; margin-bottom: 3rem; }

.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.founder-card { background: white; padding: 1.5rem; border-radius: var(--border-radius); border: 1px solid var(--color-border); text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
.founder-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.founder-icon { font-size: 2rem; color: var(--color-primary); margin-bottom: 1rem; }
.founder-name { font-size: 1.1rem; margin-bottom: 0.25rem; }
.founder-role { font-size: 0.875rem; color: var(--color-text-muted); }

.methodology-card { background: white; padding: 3rem; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.methodology-title { margin-bottom: 2rem; border-bottom: 2px solid var(--color-surface-light); padding-bottom: 1rem; }
.timeline-list { border-left: 2px solid var(--color-border); padding-left: 2rem; margin-left: 1rem; }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -2.4rem; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--color-primary); border: 4px solid white; box-shadow: 0 0 0 1px var(--color-border); }
.timeline-phase { font-size: 0.75rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.25rem; }

/* ==========================================================================
   8. SERVICES (BENTO GRID)
   ========================================================================== */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; margin-top: 4rem; }
.service-card { background: white; border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 2.5rem; transition: var(--transition); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent; }
.bento-wide { grid-column: span 8; }
.bento-square { grid-column: span 4; }
.bento-tall { grid-column: span 4; grid-row: span 2; }

.card-icon { width: 50px; height: 50px; background: #e0f2fe; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--color-primary); margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--color-text-muted); margin-bottom: 1.5rem; flex-grow: 1; }

.feature-list { display: flex; flex-direction: column; gap: 0.75rem; }
.grid-list { display: grid; grid-template-columns: 1fr 1fr; }
.feature-list li { font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }

/* ==========================================================================
   9. CAREERS
   ========================================================================== */
.careers-filter { display: flex; justify-content: center; gap: 1rem; margin: 3rem 0; flex-wrap: wrap; }
.filter-btn { background: white; border: 1px solid var(--color-border); padding: 0.5rem 1.25rem; border-radius: 9999px; color: var(--color-text-muted); font-weight: 500; cursor: pointer; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--color-secondary); color: white; border-color: var(--color-secondary); }

.job-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.job-card { background: white; border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 2rem; transition: var(--transition); box-shadow: var(--shadow-sm); }
.job-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.job-tag { font-size: 0.75rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.5rem; }
.job-location { font-size: 0.875rem; color: var(--color-text-main); font-weight: 500; margin-bottom: 1rem; }
.job-desc { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1.5rem; line-height: 1.5; }

/* ==========================================================================
   10. CONTACT FORM
   ========================================================================== */
.contact-card { background: white; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-top: 3rem; }
.contact-info { background: var(--color-secondary); color: white; padding: 4rem; }
.contact-title { color: white; margin-bottom: 1rem; }
.contact-subtitle { color: #94a3b8; margin-bottom: 3rem; }
.contact-address { font-style: normal; display: flex; flex-direction: column; gap: 1.5rem; }
.info-row { display: flex; align-items: flex-start; gap: 1rem; color: #cbd5e1; }
.info-row i { font-size: 1.25rem; margin-top: 4px; }

.contact-form { padding: 4rem; display: flex; flex-direction: column; gap: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-control { width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--color-border); border-radius: 6px; font-size: 0.95rem; color: var(--color-secondary); transition: var(--transition); background: var(--color-surface-light); }
.form-control:focus { outline: none; border-color: var(--color-primary); background: white; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); }
.form-status { margin-top: 1rem; padding: 1rem; border-radius: 6px; font-size: 0.875rem; font-weight: 500; display: none; }
.form-status.success { display: block; background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer { background: var(--color-secondary); color: white; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand .brand-logo { color: white; margin-bottom: 1rem; }
.footer-brand p { color: #94a3b8; font-size: 0.9rem; max-width: 300px; }

.footer-links h4, .footer-newsletter h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: white; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; }
.footer-links a:hover { color: white; }

.footer-newsletter p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; }
.newsletter-input { flex: 1; padding: 0.75rem 1rem; border: none; border-radius: 6px 0 0 6px; outline: none; }
.newsletter-form button { background: var(--color-primary); color: white; border: none; padding: 0 1.25rem; border-radius: 0 6px 6px 0; cursor: pointer; transition: var(--transition); }
.newsletter-form button:hover { background: var(--color-primary-dark); }

.footer-bottom { border-top: 1px solid #334155; padding-top: 2rem; color: #64748b; font-size: 0.875rem; text-align: center; }

/* ==========================================================================
   12. ANIMATIONS & REVEALS
   ========================================================================== */
.reveal { opacity: 0; visibility: hidden; transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); will-change: transform, opacity; }
.reveal.active { opacity: 1; visibility: visible; }
.reveal-up { transform: translateY(30px); }
.reveal-up.active { transform: translateY(0); }
.reveal-left { transform: translateX(-30px); }
.reveal-left.active { transform: translateX(0); }
.reveal-right { transform: translateX(30px); }
.reveal-right.active { transform: translateX(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }

/* ==========================================================================
   13. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .bento-wide { grid-column: span 12; }
    .bento-square, .bento-tall { grid-column: span 6; }
    .bento-tall { grid-row: auto; }
    .contact-card { grid-template-columns: 1fr; }
    .contact-info { padding: 3rem; }
    .contact-form { padding: 3rem; }
}

@media (max-width: 768px) {
    :root { --section-padding: 4rem 0; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    
    /* Mobile Menu Implementation */
    .mobile-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: var(--nav-height); left: -100%; width: 100%; height: calc(100vh - var(--nav-height));
        background: white; flex-direction: column; justify-content: flex-start; padding: 2rem;
        transition: var(--transition); border-top: 1px solid var(--color-border);
    }
    .nav-menu.active { left: 0; }
    .nav-list { flex-direction: column; width: 100%; gap: 0; margin-bottom: 2rem; }
    .nav-link { display: block; font-size: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
    .nav-link::after { display: none; }
    
    .hero-title { font-size: 2.5rem; }
    .bento-square, .bento-tall { grid-column: span 12; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 2rem 1.5rem; }
    .contact-info { padding: 2rem 1.5rem; }
}
