@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --accent-blue: #2997FF;
    --accent-blue-dark: #1A7AE0;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --border-light: rgba(15, 23, 42, 0.08);
    --border-medium: rgba(15, 23, 42, 0.12);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(15, 23, 42, 0.06);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.1);
}

::selection {
    background: var(--accent-blue);
    color: #fff;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
}

.text-hero {
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #0F172A 0%, #64748B 120%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(90deg, #2997FF 0%, #60B5FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism - Light */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--border-light);
}

/* Background Grain */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.018;
    pointer-events: none;
    z-index: 10;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(41, 151, 255, 0.15);
    }

    50% {
        box-shadow: 0 0 20px rgba(41, 151, 255, 0.35);
    }

    100% {
        box-shadow: 0 0 5px rgba(41, 151, 255, 0.15);
    }
}

.glow-effect {
    animation: glow 4s infinite;
}

/* Bento Cards - Light */
.bento-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.bento-card:hover {
    transform: scale(1.01);
    border-color: var(--border-medium);
    box-shadow: var(--card-shadow-hover);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

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

/* Filter Tabs */
.filter-tab {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
}

.filter-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* Product Spec Row */
.spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.spec-row:hover {
    background: var(--bg-secondary);
}

.spec-row:last-child {
    border-bottom: none;
}

/* Project Card Overlay */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
}

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