/* Hyper-Modern Antigravity / n8n Theme */

:root {
    --bg-base: #050507; /* Almost black but not pure */
    --bg-glass: rgba(15, 15, 20, 0.6);
    --bg-glass-hover: rgba(25, 25, 30, 0.8);
    
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(234, 88, 12, 0.5);
    
    --n8n-coral: #EA580C;
    --anti-cyan: #06B6D4;
    --anti-blue: #3B82F6;
    
    --gradient-hero: linear-gradient(135deg, #EA580C, #06B6D4);
    
    --radius-md: 16px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Canvas Background */
canvas#node-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2; pointer-events: none;
}

/* Glass Navbar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background: rgba(5, 5, 7, 0.5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 100;
}
.nav-content {
    max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--text-main); font-weight: 700; font-size: 20px;
}
.brand-logo {
    width: 32px; height: 32px; border-radius: 6px;
    object-fit: cover;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 15px; font-weight: 500; transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-main); text-shadow: 0 0 10px rgba(255,255,255,0.3); }

/* Hero */
.hero {
    padding: 180px 24px 100px;
    max-width: 1000px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: relative;
}

/* Profile Image with Antigravity rings */
.hero-image-wrapper {
    position: relative; margin-bottom: 40px;
    width: 180px; height: 180px;
    display: flex; align-items: center; justify-content: center;
}
.hero-image-wrapper::before, .hero-image-wrapper::after {
    content: ''; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%; border: 2px solid transparent;
    border-top-color: var(--n8n-coral); border-bottom-color: var(--anti-cyan);
    animation: spin 8s linear infinite;
    opacity: 0.5;
}
.hero-image-wrapper::after {
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    border-top-color: var(--anti-cyan); border-bottom-color: var(--anti-blue);
    animation: spin-reverse 12s linear infinite;
    opacity: 0.3;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }

.hero-profile-img {
    width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
    position: relative; z-index: 2;
}

.hero-tag {
    background: rgba(234, 88, 12, 0.1); color: var(--n8n-coral);
    border: 1px solid rgba(234, 88, 12, 0.2);
    padding: 6px 16px; border-radius: 100px;
    font-size: 14px; font-weight: 600; margin-bottom: 32px;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.2);
}
.hero-title {
    font-size: clamp(48px, 8vw, 88px); margin-bottom: 24px; font-weight: 800; line-height: 1.1;
}
.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-description {
    font-size: clamp(16px, 2vw, 20px); color: var(--text-muted);
    max-width: 600px; margin-bottom: 40px;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none;
    cursor: pointer; transition: all var(--transition); border: none;
    position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--gradient-hero); color: #fff;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5); transform: translateY(-2px);
}
.btn-secondary {
    background: var(--bg-glass); color: var(--text-main); border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    border-color: rgba(255,255,255,0.3); transform: translateY(-2px);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Global Section */
.section { max-width: 1200px; margin: 0 auto; padding: 100px 24px; position: relative; z-index: 10; }
.section-header { margin-bottom: 60px; text-align: center; }
.section-header h2 { font-size: 36px; margin-bottom: 16px; font-weight: 700; }
.section-header p { color: var(--text-muted); font-size: 18px; }

/* Base Card Style (Glassmorphism + Tilt setup) */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden; position: relative;
    transform-style: preserve-3d;
    transition: border-color var(--transition), transform 0.1s ease, box-shadow 0.1s ease;
}
.glass-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 0;
}
.glass-card:hover::before { opacity: 1; }
.glass-card:hover {
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(234, 88, 12, 0.1) inset;
}

/* Video Grid */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-bottom: 1px solid var(--border-glass); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; pointer-events: auto; }
.video-info { padding: 32px; position: relative; z-index: 1; transform: translateZ(20px); }
.video-info h3 { font-size: 22px; margin-bottom: 12px; }
.video-info p { color: var(--text-muted); font-size: 16px; }

@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }

/* Workflow Grid */
.workflow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.workflow-image { width: 100%; height: 280px; object-fit: cover; border-bottom: 1px solid var(--border-glass); cursor: pointer; }
.workflow-info { padding: 32px; position: relative; z-index: 1; transform: translateZ(20px); }
.workflow-badge {
    display: inline-block; padding: 6px 12px; background: rgba(6, 182, 212, 0.1);
    color: var(--anti-cyan); border-radius: 4px; font-size: 13px; font-weight: 700; margin-bottom: 16px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.workflow-info h3 { font-size: 20px; margin-bottom: 12px; }

/* Stack Grid */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.stack-card { padding: 24px; display: flex; align-items: center; gap: 16px; }
.stack-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(0,0,0,0.5); border: 1px solid var(--border-glass);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: var(--text-main);
}
.stack-info { transform: translateZ(10px); }
.stack-info h4 { font-size: 18px; margin-bottom: 4px; }
.stack-info p { color: var(--text-muted); font-size: 14px; }

/* Contact Form */
.contact-container {
    max-width: 600px; margin: 0 auto; padding: 48px;
}
.input-group { margin-bottom: 24px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); transform: translateZ(5px); }
.input-group input, .input-group textarea {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border-glass);
    color: var(--text-main); padding: 14px 16px; border-radius: 8px; font-size: 16px; font-family: inherit;
    transition: all var(--transition); transform: translateZ(10px);
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--n8n-coral); box-shadow: 0 0 10px rgba(234, 88, 12, 0.2); }
.input-group textarea { height: 120px; resize: vertical; }

/* Lightbox */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
    max-width: 90%; max-height: 90vh; border-radius: 8px;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.3);
    transform: scale(0.95); transition: transform 0.3s ease;
    border: 1px solid var(--border-glass);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 24px; right: 24px; background: rgba(255,255,255,0.1); color: #fff; border: none;
    width: 48px; height: 48px; border-radius: 50%; font-size: 28px; cursor: pointer; transition: all 0.2s;
}
.lightbox-close:hover { background: var(--n8n-coral); transform: rotate(90deg); }

/* Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { 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; }

footer { text-align: center; padding: 40px 24px; border-top: 1px solid var(--border-glass); color: var(--text-muted); font-size: 14px; position: relative; z-index: 10; }
