/* Base reset and custom properties */
:root {
    --teal-50: #f0fdfa;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --slate-900: #0f172a;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Decorative shapes */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.deco-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.deco-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
}

.deco-circle-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
    top: -150px;
    left: -150px;
}

.deco-circle-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.06) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

.deco-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 80px 80px;
    border-color: transparent transparent rgba(45, 212, 191, 0.2) transparent;
    top: 20%;
    right: 5%;
    transform: rotate(45deg);
    pointer-events: none;
}

.deco-dots {
    position: absolute;
    bottom: 15%;
    right: 8%;
    display: grid;
    grid-template-columns: repeat(4, 8px);
    gap: 10px;
    pointer-events: none;
    opacity: 0.4;
}

.deco-dots::before {
    content: '';
    grid-column: 1;
    grid-row: 1;
    width: 6px;
    height: 6px;
    background: var(--teal-600);
    border-radius: 50%;
    box-shadow:
        10px 0 0 var(--teal-600),
        20px 0 0 var(--teal-600),
        30px 0 0 var(--teal-600),
        0 10px 0 var(--teal-600),
        10px 10px 0 var(--teal-600),
        20px 10px 0 var(--teal-600),
        30px 10px 0 var(--teal-600),
        0 20px 0 var(--teal-600),
        10px 20px 0 var(--teal-600),
        20px 20px 0 var(--teal-600),
        30px 20px 0 var(--teal-600),
        0 30px 0 var(--teal-600),
        10px 30px 0 var(--teal-600),
        20px 30px 0 var(--teal-600),
        30px 30px 0 var(--teal-600);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}
