/* ----------------------------------------------------
   AI_OFFICER B-Suite (Light Theme) CSS Stylesheet
---------------------------------------------------- */

:root {
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --accent: #2563eb;
    --accent-pink: #ec4899;
    --accent-yellow: #f59e0b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(15, 23, 42, 0.06);
    --border-color-hover: rgba(15, 23, 42, 0.15);
    --cursor-size: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    scroll-behavior: auto; /* For Lenis */
}

/* Custom Selection */
::selection {
    background-color: var(--accent);
    color: #fff;
}

/* ----------------------------------------------------
   1. Custom Cursor
---------------------------------------------------- */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s, border-radius 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#custom-cursor-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.1em;
    opacity: 0;
    white-space: nowrap;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

/* Cursor States */
body.cursor-hover #custom-cursor {
    width: 85px;
    height: 85px;
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}

body.cursor-hover #custom-cursor-label {
    opacity: 1;
}

body.cursor-text-hover #custom-cursor {
    width: 60px;
    height: 60px;
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}

body.cursor-text-hover #custom-cursor-label {
    color: #fff;
    opacity: 1;
}

/* Dynamic Shapes for Cursor */
body.cursor-shape-circle #custom-cursor {
    border-radius: 50%;
}

body.cursor-shape-square #custom-cursor {
    border-radius: 12px;
}

body.cursor-shape-leaf #custom-cursor {
    border-radius: 0px 50% 0px 50%;
}

body.cursor-shape-blob #custom-cursor {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

/* ----------------------------------------------------
   2. Intro Loader
---------------------------------------------------- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.loader-svg-container {
    margin-bottom: 20px;
}

.loader-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

/* ----------------------------------------------------
   3. Navigation Header
---------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 50px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-connect {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background-color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}

.btn-connect:hover {
    background-color: var(--accent);
}

/* ----------------------------------------------------
   4. Hero Section with Interactive Grid
---------------------------------------------------- */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
}

/* Dots Grid Background */
#grid-dots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    /* Grid settings dynamically calculated by JS, but standard fallback here */
    grid-template-columns: repeat(40, 1fr);
    grid-template-rows: repeat(20, 1fr);
    z-index: 1;
    opacity: 0.35;
    padding: 20px;
    gap: 15px;
    pointer-events: none;
}

.grid-dot {
    width: 4px;
    height: 4px;
    background-color: var(--text-muted);
    border-radius: 50%;
    justify-self: center;
    align-self: center;
}

/* SVG Zigzag Waves */
.zigzag-waves-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
}

.zigzag-wave {
    width: 100%;
    height: 100%;
}

.wave-path {
    transition: stroke-dashoffset 0.1s ease;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-tagline {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 80px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 50px;
}

.hero-scroll-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheelAnim 1.6s infinite;
}

@keyframes scrollWheelAnim {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* Horizontal Marquee */
.hero-marquee {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    z-index: 3;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    background-color: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-content {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(15, 23, 42, 0.08);
    text-transform: uppercase;
}

/* ----------------------------------------------------
   5. General Layout
---------------------------------------------------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.section-padding {
    padding: 150px 0;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.sticky-title {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.section-num {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-top: 20px;
}

.section-header {
    margin-bottom: 80px;
}

/* ----------------------------------------------------
   6. Identity Section
---------------------------------------------------- */
.text-large {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.identity-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 700;
}

.stat-lbl {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* ----------------------------------------------------
   7. Capabilities Section (Anime.js Cards)
---------------------------------------------------- */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.capability-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    cursor: pointer;
    transition: transform 0.1s ease-out, border-color 0.4s ease, box-shadow 0.4s ease;
}

.capability-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
}

.card-num {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: var(--text-muted);
}

.card-icon-container {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.04);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.capability-card:hover .card-icon-container {
    background-color: rgba(37, 99, 235, 0.08);
}

.card-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.capability-card:nth-child(2) .card-icon { color: var(--accent-pink); }
.capability-card:nth-child(2) .card-icon-container { background-color: rgba(236, 72, 153, 0.04); }
.capability-card:nth-child(2):hover .card-icon-container { background-color: rgba(236, 72, 153, 0.08); }

.capability-card:nth-child(3) .card-icon { color: var(--accent-yellow); }
.capability-card:nth-child(3) .card-icon-container { background-color: rgba(245, 158, 11, 0.04); }
.capability-card:nth-child(3):hover .card-icon-container { background-color: rgba(245, 158, 11, 0.08); }

.capability-card:nth-child(4) .card-icon { color: var(--accent); }

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ----------------------------------------------------
   8. Interface Section
---------------------------------------------------- */
.desc-muted {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 320px;
    margin-top: 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

.pulse {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Terminal Light Theme */
.terminal-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
    height: 500px;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.t-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.t-btn.red { background-color: #ef4444; }
.t-btn.yellow { background-color: #f59e0b; }
.t-btn.green { background-color: #10b981; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.terminal-badge {
    margin-left: auto;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.terminal-body {
    padding: 25px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #FAFDFE;
}

.log-line {
    word-break: break-all;
}

.log-line.system {
    color: var(--text-muted);
}

.log-line.input {
    color: var(--text-primary);
    display: flex;
    gap: 8px;
    font-weight: 500;
}

.log-line.input::before {
    content: '>';
    color: var(--accent);
}

.log-line.output {
    color: var(--accent);
    padding-left: 15px;
    border-left: 1.5px solid var(--accent);
}

/* ----------------------------------------------------
   9. Connect Section & CTA (Light)
---------------------------------------------------- */
.connect-inner {
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.04) 0%, rgba(0,0,0,0) 65%), var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 120px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.connect-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: radial-gradient(var(--text-muted) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
}

.connect-title {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.connect-desc {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.cta-wrapper {
    display: flex;
    justify-content: center;
}

.btn-giant {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s ease-out;
}

.btn-giant-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-primary);
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    transition: transform 0.5s cubic-bezier(0.1, 0.8, 0.2, 1), background-color 0.3s;
}

.btn-giant:hover .btn-giant-bg {
    transform: scale(1.15);
    background-color: var(--accent);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
}

.btn-giant-text {
    position: relative;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

/* ----------------------------------------------------
   10. Footer
---------------------------------------------------- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    background-color: var(--bg-white);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-small {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.2em;
    color: var(--text-primary);
}

.copyright {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.footer-link {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.1em;
    padding: 10px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* ----------------------------------------------------
   11. Reveal & Anime Utilities
---------------------------------------------------- */
.anim-el {
    opacity: 0;
}

.anim-word {
    opacity: 0;
}

.anim-item {
    opacity: 0;
}

/* ----------------------------------------------------
   12. Responsive Design
---------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .sticky-title {
        position: relative;
        top: 0;
    }
    
    .hero-title {
        font-size: 60px;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .text-large {
        font-size: 20px;
    }
    
    .identity-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .connect-inner {
        padding: 60px 20px;
    }
    
    .connect-title {
        font-size: 36px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
