:root {
    /* Color Palette */
    --bg-main: #0a0f1c;
    --bg-alt: #0d1425;
    --bg-panel: rgba(18, 25, 43, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: rgba(255, 255, 255, 0.05);
    --secondary-hover: rgba(255, 255, 255, 0.1);
    
    --accent-glow: rgba(59, 130, 246, 0.15);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* For fixed header */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.alt-bg {
    background-color: var(--bg-alt);
}

/* UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

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

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-logo .logo-icon {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Offset nav */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(10,15,28,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-info-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.dot-separator {
    color: var(--border-color);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.2);
    top: 10%;
    right: 10%;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.15);
    bottom: 10%;
    left: 10%;
}

.code-snippet {
    padding: 1.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.code-snippet:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.window-controls {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

.control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.control.red { background: #ef4444; }
.control.yellow { background: #eab308; }
.control.green { background: #22c55e; }

.code-snippet pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    margin: 0;
}
.code-snippet .keyword { color: #c678dd; }
.code-snippet .variable { color: #e5c07b; }
.code-snippet .property { color: #61afef; }
.code-snippet .string { color: #98c379; }

/* Sections Common */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-panel {
    padding: 2rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
}

/* What We Build (Solutions) Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* How We Work Section */
.process-steps {
    display: grid;
    grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
    align-items: start;
    gap: 1rem;
}

.step {
    text-align: center;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.05);
    margin-bottom: 1rem;
    -webkit-text-stroke: 1px var(--border-color);
    transition: var(--transition-normal);
}

.step:hover .step-number {
    color: rgba(59, 130, 246, 0.1);
    -webkit-text-stroke: 1px var(--primary-color);
}

.step-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

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

.step-connector {
    height: 2px;
    background: var(--border-color);
    margin-top: 2rem;
}

/* Technology Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.tech-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.tech-card:hover {
    border-color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
}

.tech-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.tech-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Founder Section */
.founder-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.founder-name {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.founder-bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    width: 120px;
    padding-right: 2rem;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    padding-top: 1.5rem;
    position: relative;
}

.timeline-date::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 1.7rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    margin-left: 2rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 1.5rem;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--border-color) transparent transparent;
}

/* Dual Section: Company & Contact */
.dual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-list {
    padding: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.info-item:first-child {
    padding-top: 0;
}

.info-key {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-val {
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.info-val a:hover {
    color: var(--primary-color);
}

.contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-email {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: inline-block;
    word-break: break-all;
}

.contact-email:hover {
    color: var(--primary-color);
}

.contact-actions {
    display: flex;
    gap: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-tagline, .footer-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }


/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-info-line, .hero-actions {
        justify-content: center;
    }

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

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .about-grid, .dual-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-alt);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-normal);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

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

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step-connector {
        display: none;
    }

    .contact-email {
        font-size: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-val {
        text-align: left;
        max-width: 100%;
    }

    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date {
        width: 100%;
        text-align: left;
        padding-left: 45px;
        padding-top: 0;
        margin-bottom: 1rem;
    }
    
    .timeline-date::after {
        left: 15px;
        right: auto;
        top: 0.2rem;
    }
    
    .timeline-content {
        margin-left: 45px;
    }

    .timeline-content::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 4rem 0;
    }

    .hero-actions {
        flex-direction: column;
    }
    
    .hero-info-line {
        flex-direction: column;
        gap: 0.25rem;
    }
    .dot-separator {
        display: none;
    }
    
    .contact-actions {
        flex-direction: column;
    }

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