:root {
    --bg-dark: #0a0b10;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary-glow: rgba(139, 92, 246, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Background Animated Blobs */
.blob-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #0a0b10;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 50px) scale(1.1); }
    100% { transform: translate(-50px, 100px) scale(0.9); }
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
}

/* Buttons */
.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 6rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(255,255,255,0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 3rem;
    border-radius: 24px;
}

.card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.icon {
    margin-bottom: 2rem;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.icon-1 {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.icon-2 {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.icon-3 {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.icon-4 {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.card:hover .icon {
    transform: scale(1.05);
}

/* Custom Icon 1: Semantic */
.semantic-anim svg {
    width: 100%;
    height: 100%;
}
.node { animation: floatNode 3s infinite alternate ease-in-out; }
.node-center { animation: pulseCore 2s infinite alternate ease-in-out; }
.edge-pulse {
    stroke-dasharray: 40;
    animation: dashFlow 1.5s linear infinite;
}
.ripple {
    animation: rippleOut 2s infinite ease-out;
    transform-origin: 40% 50%;
}
@keyframes floatNode {
    0% { transform: translateY(0); }
    100% { transform: translateY(3px); }
}
@keyframes pulseCore {
    0% { r: 4; fill: #60a5fa; }
    100% { r: 6; fill: #bfdbfe; }
}
@keyframes dashFlow {
    to { stroke-dashoffset: -80; }
}
@keyframes rippleOut {
    0% { r: 6; stroke-width: 2; opacity: 1; }
    100% { r: 25; stroke-width: 0; opacity: 0; }
}

/* Custom Icon 2: Git */
.git-anim svg { width: 100%; height: 100%; }
.git-trunk { stroke-dasharray: 45; animation: dashFlow 2s linear infinite; }
.git-branch-line { stroke-dasharray: 20; animation: dashFlow 2.5s linear infinite; }
.git-node { animation: floatNode 3s infinite alternate ease-in-out; }
.gn-pulse { animation: gitPulse 1.5s infinite alternate ease-in-out; }
@keyframes gitPulse {
    0% { r: 3; fill: #fcd34d; }
    100% { r: 5; fill: #fbbf24; }
}

/* Custom Icon 3: Nextcloud */
.nc-anim svg { width: 100%; height: 100%; }
.nc-file { animation: ncFloat 3s infinite alternate ease-in-out; }
.f1 { animation-delay: 0s; }
.f2 { animation-delay: 0.5s; }
.f3 { animation-delay: 1s; }
.f4 { animation-delay: 1.5s; }
.nc-orbit { animation: ncSpin 6s linear infinite; transform-origin: 50% 50%; }
@keyframes ncFloat {
    0% { opacity: 0.6; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(-2px); }
}
@keyframes ncSpin {
    to { transform: rotate(360deg); }
}

/* Custom Icon 4: Docker/Infrastructure */
.mcp-anim { background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, rgba(0,0,0,1) 80%); }
.mcp-core {
    position: absolute;
    width: 32px; height: 32px;
    background: #10b981;
    border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
    font-size: 11px; font-weight: 800; color: #000;
    box-shadow: 0 0 20px #10b981;
    animation: pulseCoreSquare 3s infinite alternate ease-in-out;
}
.mcp-node {
    position: absolute;
    width: 6px; height: 6px;
    background: #a7f3d0; border-radius: 50%;
    box-shadow: 0 0 10px #a7f3d0;
}
.n1 { top: 20px; left: 20px; animation: nodePulse 2s infinite 0s; }
.n2 { top: 20px; right: 20px; animation: nodePulse 2s infinite 0.7s; }
.n3 { bottom: 18px; left: 50%; transform: translateX(-50%); animation: nodePulse 2s infinite 1.4s; }
.mcp-connection {
    position: absolute; width: 2px; height: 16px;
    background: linear-gradient(to top, transparent, #34d399, transparent);
    opacity: 0;
}
.c1 { top: 26px; left: 26px; --rot: -45deg; animation: shootLine 2s infinite 0s; }
.c2 { top: 26px; right: 26px; --rot: 45deg; animation: shootLine 2s infinite 0.7s; }
.c3 { bottom: 25px; left: 50%; margin-left: -1px; --rot: 180deg; animation: shootLine 2s infinite 1.4s; }

@keyframes pulseCoreSquare {
    0% { transform: scale(0.95); box-shadow: 0 0 10px #10b981; }
    100% { transform: scale(1.05); box-shadow: 0 0 25px #34d399; }
}
@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.8); opacity: 1; }
}
@keyframes shootLine {
    0% { transform: rotate(var(--rot)) translateY(12px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotate(var(--rot)) translateY(-12px); opacity: 0; filter: blur(1px); }
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 5%;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .actions { flex-direction: column; }
    .feature-cards { padding: 1.5rem; }
}

/* Logo Marquee */
.logo-marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.logo-marquee-fade-left, .logo-marquee-fade-right {
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.logo-marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.logo-marquee {
    display: flex;
    width: max-content;
    animation: scroll-marquee 120s linear infinite;
}

.logo-marquee:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    margin: 0 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
}

.marquee-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--text-main);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.2);
}

.marquee-item img {
    height: 18px;
    width: 18px;
    filter: grayscale(1) opacity(0.5);
    transition: all 0.4s ease;
}

.marquee-item:hover img {
    filter: grayscale(0) opacity(1) drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.2rem;
}

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

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(0, 0, 0, 0.4);
}
