/* Core Resets & Scrollbar */
html {
    scroll-behavior: smooth;
    background-color: #f8fafc;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================== */
/* SOFTWARE ARCHITECTURE BACKGROUND           */
/* ========================================== */

/* The Light Architectural Grid */
.bg-grid-texture {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* ========================================== */
/* UI COMPONENTS (LIGHT THEME)                */
/* ========================================== */

/* Light Frosted Navbar */
.light-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.light-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Light Frosted SaaS Cards */
.saas-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.03);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.saas-card:hover {
    transform: translateY(-5px);
    border: 1px solid rgba(2, 132, 199, 0.2);
    box-shadow: 0 20px 50px rgba(2, 132, 199, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

/* Light Input Fields */
.glass-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #0f172a;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Tech Tags - Light Theme */
.tech-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #4f46e5);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #111;
    color: #fff;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    border-radius: 10px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.modal-content h3 {
    margin-top: 20px;
    font-size: 16px;
    color: #ccc;
}

.modal-content ul {
    margin-left: 20px;
}