:root {
    --bg-color: #0b0e14;
    --text-color: #f0f2f5;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden; /* Hide horizontal scrollbar, allow vertical */
    line-height: 1.6;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    padding: 0.8rem 2rem;
    border-radius: 50px;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--accent-blue);
}

.btn-secondary .icon {
    font-size: 0.8rem;
    color: var(--accent-purple);
}

/* Hero Section */
.hero {
    min-height: 70vh; /* Reduced to show the next section slightly */
    padding-top: 8rem; /* Account for navbar */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 5rem;
    padding-right: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    min-height: 158px; /* Prevent layout jump */
}

/* Typing Effect Cursor */
.cursor {
    display: inline-block;
    color: var(--accent-purple);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 4rem;
}

/* Floating Pills */
.tech-stack-pills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.pill {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size: 0.9rem;
    color: #e5e7eb;
    animation: float-pill 4s ease-in-out infinite alternate;
}

.floating-pill-1 { animation-delay: 0s; }
.floating-pill-2 { animation-delay: 1s; }
.floating-pill-3 { animation-delay: 2s; }
.floating-pill-4 { animation-delay: 0.5s; }

@keyframes float-pill {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Hero Visual & Glassmorphism */
.hero-visual {
    position: relative;
    width: 600px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.glow-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}


.glass-card {
    background: rgba(20, 24, 35, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.card-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.card-body pre {
    color: #e5e7eb;
    font-size: 1.05rem;
    overflow-x: auto;
}

.card-body code {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

/* Services Section */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: none; /* Override glass-card default hero transform */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: #9ca3af;
    font-size: 1.05rem;
}

/* HostFlow Teaser Section */
.hostflow-section {
    padding: 4rem 2rem 8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hostflow-container {
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    transform: none; /* Override default glass-card transform */
    position: relative;
    overflow: hidden;
}

.hostflow-content {
    flex: 1;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #fff;
}

.product-subtitle {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hostflow-content p {
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hostflow-visual {
    flex: 1;
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.purple-blob {
    background: var(--accent-purple);
    width: 300px;
    height: 300px;
    opacity: 0.4;
}

.mockup-window {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    height: 250px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.mockup-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
    background: rgba(255,255,255,0.02);
}

.mockup-body {
    display: flex;
    flex: 1;
    padding: 16px;
    gap: 16px;
}

.mockup-sidebar {
    width: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-line {
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    width: 100%;
}
.mockup-line.short {
    width: 60%;
}

.mockup-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.m-box {
    height: 60px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding: 5rem 3rem 0;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }
    .hero {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        text-align: center;
        padding: 5rem 2rem 3rem 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tech-stack-pills {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 4rem;
        width: 100%;
        max-width: 450px;
        height: auto;
        padding-bottom: 3rem;
    }
    
    .navbar {
        padding: 1.5rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .cursor-glow {
        display: none;
    }

    .hostflow-container {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }
    .product-title {
        font-size: 3rem;
    }
    .hostflow-content p {
        margin: 0 auto 2.5rem;
    }
    .hostflow-visual {
        width: 100%;
    }
}
