:root {
    --bg-color: #05070a; /* Deep tech-blueish dark background */
    --surface-color: rgba(10, 15, 30, 0.6);
    --surface-hover: rgba(16, 26, 48, 0.8);
    --border-color: rgba(56, 189, 248, 0.08);
    --border-hover: rgba(56, 189, 248, 0.22);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --primary: #38bdf8;          /* Sky Blue (matching logo's dominant hue) */
    --primary-glow: rgba(56, 189, 248, 0.12);
    --secondary: #0ea5e9;        /* Medium Sky Blue */
    --secondary-glow: rgba(14, 165, 233, 0.12);
    
    --accent-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #06b6d4 100%);
    
    --color-active: #10b981;
    --color-active-bg: rgba(16, 185, 129, 0.08);
    --color-paused: #fbbf24;
    --color-paused-bg: rgba(251, 191, 36, 0.08);
    --color-private: #38bdf8;
    --color-private-bg: rgba(56, 189, 248, 0.08);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Outfit', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient glow accents */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    right: -100px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.012) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center top;
    z-index: -2;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 7, 10, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(5, 7, 10, 0.9);
    border-bottom-color: rgba(56, 189, 248, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-logo img {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
}

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

.btn-portal {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-portal:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* Hero Section */
.hero {
    padding: 110px 0 80px;
    text-align: center;
    position: relative;
}

.hero-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-logo-container::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: var(--accent-gradient);
    border-radius: 50%;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.45;
    animation: pulse-glow 4s ease-in-out infinite;
}

.hero-logo {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.2);
    background-color: transparent;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.35));
}

.hero-logo:hover {
    transform: scale(1.03) rotate(2deg);
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.18);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-active);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-active);
    animation: pulse-dot 2s infinite;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    background: linear-gradient(to bottom right, #ffffff 40%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.3);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

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

/* Overview / About */
.about {
    padding: 80px 0;
}

.card-about {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.card-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
}

.section-header {
    max-width: 600px;
    margin-bottom: 32px;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
    border-top: 1px solid rgba(56, 189, 248, 0.08);
    padding-top: 40px;
}

.meta-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.meta-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Interactive Filter */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-primary);
    background: rgba(56, 189, 248, 0.05);
    border-color: var(--border-hover);
}

.filter-btn.active {
    background: var(--primary);
    color: #05070a;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

/* Projects Section */
.projects {
    padding: 80px 0;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-6px);
    background: var(--surface-hover);
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-top {
    margin-bottom: 24px;
}

.project-badge-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.project-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.active {
    color: var(--color-active);
    background: var(--color-active-bg);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge.paused {
    color: var(--color-paused);
    background: var(--color-paused-bg);
    border: 1px solid rgba(251, 191, 36, 0.15);
}

.badge.private {
    color: var(--color-private);
    background: var(--color-private-bg);
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Click to copy widget */
.widget-copy {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-top: 14px;
    transition: var(--transition-smooth);
}

.widget-copy:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(56, 189, 248, 0.04);
}

.widget-copy-icon {
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.widget-copy:hover .widget-copy-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Services section */
.services {
    padding: 80px 0;
    background: rgba(5, 7, 10, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--surface-hover);
}

.service-icon {
    margin-bottom: 16px;
    color: var(--primary);
    background: var(--primary-glow);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.service-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Call To Action Banner */
.cta-banner {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 620px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* Footer */
footer {
    background-color: #030406;
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-secondary);
}

.footer-logo img {
    height: 24px;
    width: 24px;
    border-radius: 50%;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* Toast component */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    border: 1px solid var(--primary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.03); }
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Responsive Grid overrides */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .nav-links {
        display: none; /* Collapsed by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(5, 7, 10, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        gap: 16px;
        align-items: stretch;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 80px 0 40px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .card-about {
        padding: 28px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}
