/* 
 * Ehim Foundation - Premium CSS Custom Design
 * Font Pairings: Outfit (Headers) & Inter (Body Copy)
 */

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

:root {
    /* Brand Theme Colors */
    --primary-hue: 175;
    --primary: hsl(var(--primary-hue), 84%, 32%); /* Emerald/Teal */
    --primary-light: hsl(var(--primary-hue), 84%, 42%);
    --primary-dark: hsl(var(--primary-hue), 84%, 22%);
    --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    
    --accent-hue: 36;
    --accent: hsl(var(--accent-hue), 89%, 48%); /* Warm Amber/Gold */
    --accent-light: hsl(var(--accent-hue), 89%, 58%);
    --accent-gradient: linear-gradient(135deg, var(--accent) 0%, hsl(var(--accent-hue), 89%, 38%) 100%);

    /* UI Neutrals (Deep Ocean/Teal theme) */
  --bg-dark: #e0e4e7;            /* Rich slate background */
--bg-darker: #0b7285;          /* Near pitch-black for hero/footer */
--card-bg: rgba(30, 41, 59, 0.65); /* Translucent slate card */
    --border-light: rgba(13, 148, 136, 0.18); /* Soft emerald/teal border tint */
    --border-hover: rgba(13, 148, 136, 0.35); /* Interactive border glow */
    
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --text-dark-muted: #475569;
    --text-dark-muted1: #ff9900;
    
    /* Layout Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Global Reset & Base Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-white);
    margin-top: 0;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent);
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-panel:hover {
    border-color: var(--border-hover);
}

/* Header & Navigation */
.navbar-custom {
    background: rgba(9, 13, 22, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.navbar-custom.scrolled {
    padding: 10px 0;
    background: rgba(9, 13, 22, 0.95) !important;
}

.navbar-brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--text-white) !important;
    letter-spacing: 1px;
}

.navbar-brand-text span {
    color: var(--primary-light);
}

.nav-link-custom {
    font-weight: 500;
    color: var(--text-white) !important;
    padding: 8px 16px !important;
    position: relative;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 80%;
}

/* Custom Buttons */
.btn-premium {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium-primary {
    background: var(--primary-gradient);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-premium-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-premium-primary:hover::before {
    opacity: 1;
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.btn-premium-accent {
    background: var(--accent-gradient);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-premium-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

.btn-premium-outline {
    background: transparent;
    color: var(--text-white) !important;
    border: 2px solid var(--border-light);
}

.btn-premium-outline:hover {
    border-color: var(--primary-light);
    background: rgba(13, 148, 136, 0.1);
    transform: translateY(-2px);
}

/* Hero Carousel */
.hero-slider {
    min-height: 90vh;
    background-color: var(--bg-darker);
    position: relative;
}

.hero-slide-item {
    height: 90vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.5) 0%, rgba(9, 13, 22, 0.9) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-slide-content h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-slide-content p {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Core Pillars & Features Cards */
.pillar-card {
    height: 100%;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.pillar-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    color: var(--primary-light);
    font-size: 32px;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon-wrapper {
    background: var(--primary-gradient);
    color: #fff;
    transform: rotateY(180deg);
}

/* Projects & Events Card Grid */
.content-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    transition: var(--transition-smooth);
}

.content-card-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.content-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.content-card:hover .content-card-img {
    transform: scale(1.08);
}

.content-card-body {
    padding: 30px;
}

.content-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Funding Progress Bar */
.progress-bar-custom {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 20px 0 10px 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.progress-stats span strong {
    color: var(--text-white);
}

/* Countdown Event Widget */
.countdown-box {
    padding: 60px 40px;
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.countdown-unit {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    min-width: 90px;
    text-align: center;
}

.countdown-number {
    font-size: 38px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Tabs: What we do */
.custom-tabs .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    border-radius: var(--radius-sm) !important;
    padding: 14px 24px;
    transition: var(--transition-smooth);
}

.custom-tabs .nav-link.active {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.custom-tabs .nav-link:hover:not(.active) {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.03);
}

/* Gallery filtering grid */
.gallery-filter-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    margin: 5px;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-light);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-item-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-item-img {
    transform: scale(1.05);
}

.gallery-icon-zoom {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-icon-zoom {
    transform: translateY(0);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-container {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-media {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-caption {
    color: var(--text-white);
    margin-top: 15px;
    text-align: center;
    font-size: 16px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px;
    transition: var(--transition-smooth);
    user-select: none;
}

.lightbox-nav:hover {
    color: #fff;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Custom Forms */
.form-control-custom {
    background-color: rgba(2, 6, 23, 0.4) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-white) !important;
    padding: 12px 18px !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-body);
}

.form-control-custom:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15) !important;
    outline: none;
}

.form-label-custom {
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 14px;
}

/* Sections layout */
.section-padding {
    padding: 100px 0;
}

.section-title-wrapper {
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Footer UI */
.footer-wrapper {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-light);
    padding: 80px 0 30px 0;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-light);
}

.footer-link {
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.footer-copyright {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-dark-muted1);
}

/* Admin Dashboard Elements */
.admin-sidebar {
    background-color: var(--bg-light);
    border-right: 1px solid var(--border-light);
    min-height: 100vh;
    padding: 30px 20px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary-light);
}

.admin-nav-item.active {
    font-weight: 600;
    border-left: 4px solid var(--primary-light);
}

.admin-header {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 40px;
}

.admin-content {
    padding: 40px;
    background-color: var(--bg-dark);
    min-height: calc(100vh - 80px);
}

.dashboard-stat-card {
    padding: 25px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-light);
}

.stat-icon {
    font-size: 32px;
    color: var(--primary-light);
}

.stat-value {
    font-size: 36px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom th {
    background-color: rgba(2, 6, 23, 0.6);
    color: var(--text-white);
    padding: 14px 18px;
    border-bottom: 2px solid var(--border-light);
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.table-custom td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 15px;
}

.table-custom tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-white);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
    color: #fff;
}
