:root {
    --bg-primary: #0a0f1c;
    /* Deep dark blue/black */
    --bg-secondary: #0f1629;
    /* Slightly lighter for cards */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #00f0ff;
    /* Cyber Cyan */
    --accent-glow: rgba(0, 240, 255, 0.2);
    --border-color: #1e293b;

    --font-main: 'Inter', sans-serif;
    --font-mono: 'Source Code Pro', monospace;

    --container-width: 1200px;
    --nav-height: 80px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #000;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

.mono {
    font-family: var(--font-mono);
    color: var(--accent);
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    background-color: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

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

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

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

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top center, #1a233a 0%, var(--bg-primary) 70%);
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Services Grid */
.services-section {
    padding: 80px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Feature Sections */
.feature-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.feature-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-layout.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-visual {
    flex: 1;
    background: var(--bg-secondary);
    min-height: 300px;
    /* Changed from fixed height to min-height */
    padding: 1rem;
    /* Added padding */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    position: relative;
    /* For loader positioning if needed */
    overflow: hidden;
}

.feature-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* GitHub Repo Card */
.repo-card {
    background: #0d1221;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.repo-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.repo-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.repo-icon {
    font-size: 1.2rem;
}

.repo-name {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    flex: 1;
}

.repo-name:hover {
    text-decoration: underline;
}

.repo-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 2.7em;
    /* approx 2 lines */
}

.repo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.repo-actions {
    text-align: center;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #4ade80;
    /* Green */
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.live-indicator .dot {
    width: 6px;
    height: 6px;
    background-color: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }

    70% {
        opacity: 0.5;
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-main);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col p,
.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: var(--accent);
}

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

/* Mobile */
@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .feature-layout,
    .feature-layout.reverse {
        flex-direction: column;
    }

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

    .nav-links {
        display: none;
    }

    /* Simplified mobile handling for now */

    /* New Mobile Styles */
    .responsive-split {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Responsive Split Utilities */
.responsive-split {
    display: flex;
    gap: 4rem;
}

.responsive-split>* {
    flex: 1;
}