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

:root {
    /* Modern & Light Color Palette */
    --primary: #10b981; /* Vibrant Emerald */
    --primary-light: #34d399;
    --primary-dark: #059669;
    --secondary: #fbbf24; /* Warm Amber */
    --accent: #eff6ff; /* Soft Blue/Light bg */
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Backward compatibility for admin pages */
    --gray-50: var(--slate-50);
    --gray-100: var(--slate-100);
    --gray-200: var(--slate-200);
    --gray-300: var(--slate-300);
    --gray-400: var(--slate-400);
    --gray-600: var(--slate-600);
    --gray-800: var(--slate-800);
    --gray-900: var(--slate-900);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 24px;
    --spacing-xxl: 40px; /* Extreme reduction from 60px */

    /* Borders & Shadows - Modern Softness */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 999px;
    
    /* Soft Elevation Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.1);

    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 15px; /* Slightly smaller base font */
    line-height: 1.5;
    color: var(--slate-800);
    background-color: var(--slate-50);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--slate-900);
    font-weight: 700;
    line-height: 1.25;
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--spacing-xxl) 0; }
.flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-4 { gap: 1rem !important; }
.justify-between { justify-content: space-between; }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Modern Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
}

/* Aspect Ratio Utilities */
.ratio-container { position: relative; width: 100%; height: 0; overflow: hidden; background: #000; }
.ratio-16-9 { padding-bottom: 56.25%; }
.ratio-4-5 { padding-bottom: 125%; }
.ratio-1-1 { padding-bottom: 100%; }
.ratio-instagram { padding-bottom: 150%; } /* Good for Reels with captions */

.ratio-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.btn-primary { 
    background: var(--primary); 
    color: white; 
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px); 
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4);
}

.btn-white {
    background: var(--white);
    color: var(--slate-900);
    box-shadow: var(--shadow-md);
}
.btn-white:hover { background: var(--slate-100); transform: translateY(-2px); }

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--slate-100);
}
.card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg); 
}

/* Professional Text Formatting */
.prose p, .section p {
    text-align: justify !important;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--slate-600);
}

.prose h2 { margin-bottom: 1.5rem; }
.prose h3 { margin-bottom: 1rem; }

/* Responsive Grid Helper */
.responsive-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

@media (max-width: 992px) {
    .responsive-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Header & Navbar Modernized */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0; /* Ultra compact header */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-weight: 600; color: var(--slate-600); font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }

/* Hero Section - Light & Impactful */
.hero {
    position: relative;
    padding: 4rem 0; /* Extreme reduction from 6rem */
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent),
                radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.08), transparent);
    overflow: hidden;
}

.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-content h1 { 
    font-size: 2.75rem; /* Drastic reduction from 3.5rem */
    line-height: 1.1; 
    margin-bottom: 1rem; 
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom right, var(--slate-900), var(--slate-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p { 
    font-size: 1.25rem; 
    color: var(--slate-600); 
    max-width: 700px; 
    margin: 0 auto 2.5rem; 
}

/* Feature Grid */
.feature-card {
    text-align: center;
    padding: 3rem 2rem;
}
.feature-icon {
    width: 64px; height: 64px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

/* Impact Section (Yellow Highlight like NÓIZ) */
.impact-section {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem; /* Ultra compact */
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--slate-900);
}
.impact-section h2 { font-size: 1.75rem !important; margin: 0.5rem 0 !important; }
.impact-section p { font-size: 1rem !important; margin-bottom: 0 !important; }

@media (max-width: 640px) {
    .impact-section { flex-direction: column; text-align: center; gap: 1.5rem; }
    .impact-section div { width: 100% !important; flex: none !important; }
}

/* Video Section */
.video-section { background: var(--slate-900); color: white; border-radius: var(--radius-lg); padding: 5rem 0; overflow: hidden; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Footer Modernized */
footer {
    padding: 3rem 0 2rem; /* Reduced from 6rem */
    background: var(--slate-900);
    color: var(--slate-300);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; }
.footer-logo { font-family: var(--font-heading); font-size: 1.5rem; color: white; font-weight: 800; margin-bottom: 1.5rem; }
.footer-link { display: block; margin-bottom: 0.75rem; transition: color 0.2s; }
.footer-link:hover { color: var(--primary); }

@media (max-width: 768px) {
    :root {
        --spacing-xxl: 24px; /* Ultra compact on mobile */
    }
    .container { padding: 0 0.75rem; }
    
    .section { padding: 24px 0; }
    
    .hero { padding: 2rem 0 1.5rem; }
    .hero-content h1 { 
        font-size: 1.75rem !important; 
        line-height: 1.1;
    }
    .hero-content p { font-size: 0.9rem; margin-bottom: 1.5rem; }

    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }

    .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
    
    .impact-section { 
        flex-direction: column; 
        text-align: center; 
        padding: 2rem 1.5rem; 
        gap: 2rem;
    }

    /* Mobile Navigation */
    .mobile-toggle { display: block !important; }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }

    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-grid > div { display: flex; flex-direction: column; align-items: center; }
    
    .carousel-container { height: 400px; }
    .carousel-slide h2 { font-size: 1.75rem; padding: 0 1rem; }
    
    .highlight-banner { padding: 2rem 1rem !important; }
    .highlight-banner img { height: 300px !important; }
}

/* Highlight Banner Section */
.highlight-banner {
    background: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.highlight-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.highlight-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    margin-bottom: 2rem;
    background: var(--slate-50);
}

.highlight-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--slate-900);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

/* Carousel Implementation */
.carousel-container {
    position: relative;
    height: 550px;
    background: var(--slate-900);
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.carousel-slide h2 {
    max-width: 800px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card:hover img { transform: scale(1.05); }
.card:hover .card-overlay { opacity: 1 !important; }

/* Form Elements Base */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--slate-800);
    font-size: 0.9rem;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--slate-900);
    transition: var(--transition-fast);
    margin-bottom: 1.5rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

textarea { min-height: 120px; resize: vertical; }

/* Admin Layout Fixes */
.admin-layout { 
    display: flex; 
    min-height: 100vh;
    background: var(--slate-50);
}

.sidebar { 
    width: 280px; 
    background: var(--slate-900) !important; 
    color: white !important; 
    padding: 2.5rem 1.5rem;
    flex-shrink: 0;
}

.sidebar h3 { 
    color: white !important; 
    margin-bottom: 2.5rem; 
    font-size: 1.25rem;
    opacity: 1 !important;
}

.nav-item {
    display: block;
    padding: 0.85rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.content { 
    flex: 1; 
    padding: 3rem; 
    background: var(--slate-50);
}

/* Gallery Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox.active {
    display: flex;
}
.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.lightbox.active .lightbox-img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
}


/* HEADER MENU PROFESSIONAL REALIGNMENT FIX */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem; /* reduced gap to fit more items */
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}
.nav-links li {
    list-style: none; /* remove any dots if present */
    white-space: nowrap; /* prevent items from breaking into 2 lines */
}
.nav-links a {
    text-decoration: none;
    font-size: 0.95rem; /* slightly smaller to fit elegantly */
}

@media (max-width: 1024px) {
    .nav-links { gap: 0.8rem; }
    .nav-links a { font-size: 0.85rem; }
}
