/* ==========================================================================
   Associação Okhapelela - Modern Design System & Stylesheet
   ========================================================================== */

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

:root {
    --primary: #059669;
    --primary-light: #10b981;
    --primary-dark: #047857;
    --primary-deep: #064e3b;
    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    
    --secondary: #0284c7;
    --secondary-light: #38bdf8;
    --secondary-dark: #0369a1;
    
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    
    --dark-900: #0b1322;
    --dark-800: #0f172a;
    --dark-700: #1e293b;
    --dark-600: #334155;
    
    --light-50: #f8fafc;
    --light-100: #f1f5f9;
    --light-200: #e2e8f0;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(5, 150, 105, 0.18);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.35);
    
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
}

/* Base resets & typography */
html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    color: var(--dark-800);
}

body {
    background-color: var(--light-50);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Glassmorphism & Header */
.glass-header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.glass-header.scrolled {
    background: rgba(11, 19, 34, 0.95);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 38rem;
    min-height: 560px;
}

@media (min-width: 768px) {
    .hero-slider {
        height: 44rem;
        min-height: 640px;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.hero-slide img {
    transform: scale(1.04);
    transition: transform 6s ease-out;
}

.hero-slide.active img {
    transform: scale(1);
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.76) 0%, rgba(15, 23, 42, 0.68) 55%, rgba(11, 19, 34, 0.88) 100%);
}

.hero-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    width: 0;
    background: var(--primary-light);
    border-radius: 9999px;
    transition: width 0.1s linear;
}

/* Bento & Feature Cards */
.bento-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-card);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(16, 185, 129, 0.2);
}

.bento-card:hover::before {
    opacity: 1;
}

/* Brand Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: var(--primary-deep);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

/* Pulse animation for badges */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.pulse-badge {
    animation: pulse-ring 2.5s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

/* Floating animation */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Active Nav Links */
.nav-link {
    position: relative;
    color: #cbd5e1;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2.5px;
    background: #10b981;
    border-radius: 9999px;
}

/* Filter buttons */
.filter-tab {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
}

.filter-tab:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}

.filter-tab.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Lightbox Modal */
.modal-backdrop {
    background: rgba(11, 19, 34, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Gradient text utility */
.text-gradient-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
