/* --- Modern Reset & Variables --- */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #0ea5e9;
    --accent-teal: #14b8a6;
    --border-color: #334155;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: var(--font-sans); background-color: var(--bg-dark); color: var(--text-main); }
body { overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- Navigation --- */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: background 0.3s ease, padding 0.3s ease; }
.navbar.scrolled { background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(12px); padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-main); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--accent-blue); }
.nav-links a { color: var(--text-muted); text-decoration: none; margin-left: 30px; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-main); }

/* --- Buttons & Badges --- */
.btn-primary, .btn-secondary { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: transform 0.2s, background 0.3s; cursor: pointer; }
.btn-primary { background: var(--accent-blue); color: #fff; border: none; }
.btn-primary:hover { background: #0284c7; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.badge { background: rgba(14, 165, 233, 0.1); color: var(--accent-blue); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: inline-block; margin-bottom: 20px; border: 1px solid rgba(14, 165, 233, 0.2); }

/* --- Hero Section --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; }
.hero-content { max-width: 700px; }
.hero h1 { font-size: 3.5rem; line-height: 1.15; font-weight: 700; margin-bottom: 20px; letter-spacing: -1px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; }
.hero-actions * { margin-right: 15px; }

/* --- About Section --- */
.about-section { padding: 120px 0; background: #0b1120; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.2; }
.about-text p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; margin-bottom: 20px; }
.feature-list { list-style: none; margin-top: 30px; }
.feature-list li { font-size: 1.1rem; color: var(--text-main); margin-bottom: 15px; display: flex; align-items: center; }
.image-placeholder { width: 100%; height: 400px; background: linear-gradient(135deg, var(--bg-card) 0%, #0f172a 100%); border: 1px solid var(--border-color); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-weight: 500; }

/* --- Bento Grid Section --- */
.services-section { padding: 100px 0; }
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Updated to support <a> tags */
a.bento-card { text-decoration: none; color: inherit; }
.bento-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.bento-card:hover { border-color: rgba(14, 165, 233, 0.5); transform: translateY(-6px); box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.2); }
.bento-card.featured { grid-column: span 2; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.bento-card.operations { grid-column: span 2; }
.card-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-teal); margin-bottom: 15px; display: block; }
.card-tag.tech { color: var(--accent-blue); }
.bento-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.bento-card p { color: var(--text-muted); line-height: 1.5; }

/* --- Process Section --- */
.process-section { padding: 120px 0; }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { background: var(--bg-card); padding: 40px; border-radius: 16px; border: 1px solid var(--border-color); position: relative; transition: transform 0.3s; }
.step:hover { transform: translateY(-5px); }
.step-number { font-size: 3rem; font-weight: 700; color: rgba(255, 255, 255, 0.05); position: absolute; top: 20px; right: 30px; }
.step h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--accent-blue); position: relative; z-index: 1; }
.step p { color: var(--text-muted); line-height: 1.6; position: relative; z-index: 1; }

/* --- Impact Section --- */
.impact-section { padding: 80px 0; background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-teal) 100%); color: #fff; text-align: center; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.metric h3 { font-size: 4rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -2px; }
.metric p { font-size: 1.1rem; font-weight: 500; opacity: 0.9; }

/* --- Contact Section --- */
.contact-section { padding: 100px 0; }
.contact-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 24px; padding: 60px; max-width: 650px; margin: 0 auto; text-align: center; }
.contact-box h2 { font-size: 2.2rem; margin-bottom: 15px; }
.contact-box p { color: var(--text-muted); margin-bottom: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 16px; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); font-family: var(--font-sans); font-size: 1rem; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-blue); }
.full-width { width: 100%; }

/* --- Footer --- */
footer { padding: 40px 0; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.footer-brand h3 { font-size: 1.5rem; color: var(--text-main); }
.footer-brand span { color: var(--accent-blue); }
.footer-links a { color: var(--text-muted); text-decoration: none; margin-left: 20px; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-main); }
.footer-bottom { text-align: center; }

/* --- SUBPAGE SPECIFIC STYLES --- */
.page-header { padding: 160px 0 80px; background: linear-gradient(180deg, #0b1120 0%, var(--bg-dark) 100%); text-align: center; border-bottom: 1px solid var(--border-color); }
.page-header h1 { font-size: 3.2rem; margin-bottom: 15px; letter-spacing: -1px; color: var(--text-main); }
.page-header p { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.6;}

.detail-section { padding: 100px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.detail-text h2 { font-size: 2.2rem; margin-bottom: 25px; line-height: 1.3;}
.detail-text h3 { color: var(--accent-blue); margin-top: 30px; margin-bottom: 15px; font-size: 1.5rem; }
.detail-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; font-size: 1.1rem;}

.detail-list { list-style: none; margin-bottom: 30px; margin-top: 15px;}
.detail-list li { margin-bottom: 15px; padding-left: 30px; position: relative; color: var(--text-main); font-size: 1.05rem; }
.detail-list li::before { content: '✦'; position: absolute; left: 0; color: var(--accent-teal); font-size: 1.2rem; top: -2px;}

.detail-sidebar { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 40px; position: sticky; top: 100px;}
.detail-sidebar h3 { font-size: 1.4rem; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px;}
.detail-sidebar p { color: var(--text-muted); margin-bottom: 25px; line-height: 1.6;}

/* --- Responsiveness --- */
@media (max-width: 968px) {
    .split-layout, .process-steps, .metrics-grid, .bento-grid, .detail-grid { grid-template-columns: 1fr; }
    .bento-card.featured, .bento-card.operations { grid-column: span 1; }
    .hero h1, .page-header h1 { font-size: 2.5rem; }
    .contact-box, .detail-sidebar { padding: 40px 20px; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .footer-links a { margin: 0 10px; }
}
