/* GenLabs Ltd. - Custom Styles */

/* Color Variables */
:root {
    --navy-deep: #0f172a;
    --cyan-accent: #38bdf8;
    --indigo-accent: #6366f1;
    --slate-light: #e2e8f0;
    --slate-secondary: #94a3b8;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Body Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy-deep);
    color: var(--slate-light);
}

/* Web3 animated background - only for hero section */
.genlabs-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0a0f1f; /* base navy */
}

/* Mobile-optimized gradients */
@media (max-width: 640px) {
    .genlabs-bg {
        background:
            radial-gradient(800px 600px at 50% 40%, rgba(0,185,200,.15), transparent 65%),
            radial-gradient(600px 500px at 80% 70%, rgba(120,80,255,.12), transparent 65%),
            #0a0f1f;
    }
}

/* Tablet gradients */
@media (min-width: 641px) and (max-width: 1024px) {
    .genlabs-bg {
        background:
            radial-gradient(1000px 800px at 60% 50%, rgba(0,185,200,.13), transparent 62%),
            radial-gradient(900px 700px at 30% 20%, rgba(120,80,255,.11), transparent 62%),
            radial-gradient(800px 600px at 50% 50%, rgba(40,120,255,.11), transparent 62%),
            #0a0f1f;
    }
}

/* Desktop gradients */
@media (min-width: 1025px) {
    .genlabs-bg {
        background:
            radial-gradient(1400px 1000px at 70% 80%, rgba(0,185,200,.12), transparent 60%),
            radial-gradient(1200px 900px at 20% 15%, rgba(120,80,255,.10), transparent 60%),
            radial-gradient(1000px 800px at 50% 50%, rgba(40,120,255,.10), transparent 60%),
            #0a0f1f;
    }
}

.genlabs-bg::after {
    /* faint scanlines */
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 100% 3px;
    mix-blend-mode: overlay;
    opacity: .25;
    pointer-events: none;
}

#genlabs-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Reduce particle count on mobile for performance */
@media (max-width: 640px) {
    #genlabs-net {
        opacity: 0.7;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    #genlabs-net {
        display: none;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Removed - now using .genlabs-bg for hero background */

/* Navigation Links */
.nav-link {
    position: relative;
    color: #cbd5e1;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #38bdf8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Primary Button */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(56, 189, 248, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

/* Secondary Button */
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #38bdf8;
    font-weight: 600;
    border: 2px solid #38bdf8;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

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

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5), rgba(30, 41, 59, 0.5));
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(56, 189, 248, 0.1);
}

/* Technology Cards */
.tech-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tech-card:hover {
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.3);
    transform: scale(1.05);
}

/* Process Cards */
.process-card {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.6), rgba(30, 41, 59, 0.6));
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.process-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Gradient Border Animation */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(56, 189, 248, 0.3);
    }
    50% {
        border-color: rgba(99, 102, 241, 0.5);
    }
}

.border-glow {
    animation: borderGlow 3s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #38bdf8, #6366f1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6366f1, #38bdf8);
}

/* Responsive Design Tweaks */
@media (max-width: 768px) {
    .hero-gradient {
        opacity: 0.7;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

/* Loading Animation for Hero */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}
