@import 'variables.css';

/* Base Reset & Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Abstract Dot Background */
    background-image: radial-gradient(var(--bg-dots) 1px, transparent 1px);
    background-size: 24px 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Typography Utilities */
.display-1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-dark);
}

.display-2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-sub {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.text-mono {
    font-family: var(--font-mono);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-20) 0;
}

.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-bento {
        grid-template-columns: 1fr;
    }
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 28px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s var(--ease-spring);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: white;
    border-color: var(--bg-dots);
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Glass Card */
.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--bg-dots);
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-dark);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Code Preview Mockup */
.code-window {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    font-family: var(--font-mono);
}

.code-header {
    background: #0f172a;
    padding: 12px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-content {
    padding: 24px;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.syntax-keyword {
    color: #c084fc;
}

.syntax-func {
    color: #60a5fa;
}

.syntax-string {
    color: #34d399;
}

.syntax-comment {
    color: #64748b;
    font-style: italic;
}

/* Features Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}