/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
}

::selection {
    background: rgba(20, 184, 166, 0.2);
    color: #134e4a;
}

/* ===== FIXED BACKGROUND BLOBS ===== */
.deco-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.deco-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.3), transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.deco-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
    bottom: 20%;
    left: -80px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.deco-blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
    top: 50%;
    right: 10%;
    animation: float-slow 18s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== NAVBAR ===== */
.nav-fixed {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-fixed.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-link {
    position: relative;
}

/* ===== HERO ===== */
.hero-gradient {
    background: linear-gradient(135deg, #042f2e 0%, #134e4a 30%, #0f766e 60%, #1e293b 100%);
    position: relative;
}

/* Hero geometric shapes */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 2px solid rgba(45, 212, 191, 0.08);
    top: -200px;
    right: -150px;
    animation: spin-slow 40s linear infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(45, 212, 191, 0.12);
    bottom: -80px;
    left: -60px;
    animation: spin-slow 30s linear infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(20, 184, 166, 0.06);
    top: 15%;
    left: 5%;
    animation: float-gentle 8s ease-in-out infinite;
    transform: rotate(15deg);
}

.shape-square {
    width: 100px;
    height: 100px;
    background: rgba(45, 212, 191, 0.05);
    border: 2px solid rgba(45, 212, 191, 0.1);
    border-radius: 20px;
    top: 60%;
    right: 8%;
    animation: float-gentle 6s ease-in-out infinite reverse;
    transform: rotate(45deg);
}

.shape-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid rgba(45, 212, 191, 0.07);
    border-top-color: rgba(45, 212, 191, 0.2);
    bottom: 20%;
    right: 25%;
    animation: spin-slow 20s linear infinite;
}

.shape-dots {
    background-image: radial-gradient(circle, rgba(45, 212, 191, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 160px;
    height: 160px;
    top: 30%;
    right: 15%;
    animation: float-gentle 10s ease-in-out infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ===== BUTTON HOVER EFFECTS ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== FORM STYLES ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== FOCUS VISIBLE ===== */
*:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
    .hero-gradient {
        min-height: auto;
        padding: 80px 0 60px;
    }
}
