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

:root {
    --primary-color: #2563EB; /* Blue 600 */
    --primary-hover: #1D4ED8;
    --secondary-color: #10B981; /* Emerald 500 */
    --accent-color: #F59E0B; /* Amber 500 */
    
    --background-light: #F8FAFC;
    --surface-color: #FFFFFF;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    --border-color: #E2E8F0;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --success-color: #10B981;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--surface-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Gradients */
.primary-gradient { background: linear-gradient(135deg, var(--primary-color), #3B82F6); }
.secondary-gradient { background: linear-gradient(135deg, var(--secondary-color), #34D399); }
.warning-gradient { background: linear-gradient(135deg, var(--warning-color), #FBBF24); }
.success-gradient { background: linear-gradient(135deg, var(--success-color), #34D399); }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text-primary); line-height: 1.2; }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }
ul { list-style: none; }

/* Utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-white { color: white; }
.bg-white { background: white; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.bg-light { background: var(--background-light); }
.bg-dark { background: #0F172A; }
.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.rounded-full { border-radius: 9999px; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.font-bold { font-weight: 700; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-sm { font-size: 0.875rem; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Grid System */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.6rem 1.25rem; font-size: 0.875rem; font-weight: 600;
    border-radius: var(--radius-md); cursor: pointer; border: 1px solid transparent;
    transition: var(--transition);
}
.btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--primary-color); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); color: white; }
.btn-secondary { background: white; color: var(--text-primary); border-color: var(--border-color); }
.btn-secondary:hover { background: var(--background-light); transform: translateY(-2px); }

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: fixed; top: 0; width: 100%; z-index: 50; padding: 1rem 0;
    transition: var(--transition);
}
.navbar.scrolled { padding: 0.75rem 0; box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.95); }
.nav-brand { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); display: flex; align-items: center; gap: 0.5rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-secondary); font-weight: 500; position: relative; }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
    background-color: var(--primary-color); transition: var(--transition);
}
.nav-links a:hover { color: var(--primary-color); }
.nav-links a:hover::after { width: 100%; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-primary); cursor: pointer; }

/* Sections */
.section { padding: 6rem 0; }
.section-subtitle { color: var(--primary-color); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.875rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-title { font-size: 2.5rem; margin-bottom: 1.5rem; }

/* Hero */
.hero { padding: 10rem 0 6rem; text-align: center; background: var(--background-light); min-height: 80vh; display: flex; align-items: center; }
.hero-title { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 1.25rem; max-width: 600px; margin: 0 auto; color: var(--text-secondary); }

/* Geometric Shapes */
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; opacity: 0.5; }
.shape-1 { width: 400px; height: 400px; background: rgba(37, 99, 235, 0.3); top: -100px; left: -100px; animation: float 10s ease-in-out infinite; }
.shape-2 { width: 500px; height: 500px; background: rgba(16, 185, 129, 0.2); bottom: -150px; right: -150px; animation: float 12s ease-in-out infinite reverse; }

/* Stats */
.stats-section { padding: 3rem 0; background: white; border-bottom: 1px solid var(--border-color); margin-top: -1px; }
.stat-item { padding: 1.5rem; }
.stat-number { font-size: 3rem; color: var(--primary-color); font-weight: 800; line-height: 1; }
.stat-label { font-size: 1rem; color: var(--text-secondary); font-weight: 500; margin-top: 0.5rem; }

/* About Art Placeholder */
.about-geometric-art {
    width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--background-light), #E2E8F0);
    border-radius: var(--radius-xl); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-color);
}
.about-geometric-art::before { content: ''; position: absolute; width: 60%; height: 60%; background: var(--primary-color); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; opacity: 0.1; animation: morph 8s ease-in-out infinite; }
.huge-icon { width: 80px; height: 80px; color: var(--primary-color); }

/* Lists */
.feature-list li { margin-bottom: 1rem; font-weight: 500; }
.icon-box { width: 40px; height: 40px; border-radius: 50%; background: rgba(37, 99, 235, 0.1); display: flex; align-items: center; justify-content: center; color: var(--primary-color); }
.icon-box i { width: 20px; height: 20px; }

/* Cards */
.card {
    background: var(--surface-color); border-radius: var(--radius-xl); padding: 2rem;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    transition: var(--transition); position: relative; overflow: hidden;
}
.hover-lift:hover {
    transform: translateY(-10px); box-shadow: var(--shadow-xl); border-color: rgba(37, 99, 235, 0.2);
}
.card-icon-wrapper {
    width: 60px; height: 60px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
    color: white; margin-bottom: 1.5rem; box-shadow: var(--shadow-md);
}
.card-icon-wrapper i { width: 28px; height: 28px; }

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-xl); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Modals & Forms (Unchanged mostly) */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 100;
    opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: var(--surface-color); width: 100%; max-width: 420px; border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-xl); transform: translateY(20px) scale(0.95); transition: var(--transition); }
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.close-btn:hover { color: var(--error-color); transform: rotate(90deg); }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.form-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 1rem; transition: var(--transition); background: var(--background-light); font-family: inherit; }
.form-input:focus { border-color: var(--primary-color); background: white; outline: none; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }

/* Badges */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-weight: 600; }
.badge-active { background: #DBEAFE; color: #1E40AF; }

/* Social Icons */
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: white; transition: var(--transition); }
.social-icon:hover { background: var(--primary-color); transform: translateY(-3px); }
.social-icon i { width: 18px; height: 18px; }

/* Footer Links */
.footer-links li a { color: inherit; }
.footer-links li a:hover { color: white; padding-left: 5px; }

/* Dashboard overrides (from previous) */
.dashboard-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface-color); border-right: 1px solid var(--border-color); padding: 1.5rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 2rem; }
.sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius-md); color: var(--text-secondary); font-weight: 500; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(37, 99, 235, 0.05); color: var(--primary-color); }
.dashboard-content { padding: 2rem; background: var(--background-light); }
.table-container { background: var(--surface-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); overflow: auto; }
.table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.table th, .table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.table th { background: var(--background-light); font-weight: 600; font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.table tbody tr:hover { background: rgba(248, 250, 252, 0.8); }

/* ANIMATIONS */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.floating { animation: float 6s ease-in-out infinite; }
.pulse-hover:hover { animation: pulseGlow 1.5s infinite; }

/* Scroll Reveal Classes */
.fade-in { opacity: 0; transition: opacity 0.8s ease-out; }
.fade-in.visible { opacity: 1; }

.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

.slide-in-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-in-left.visible { opacity: 1; transform: translateX(0); }

.slide-in-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-in-right.visible { opacity: 1; transform: translateX(0); }

.slide-in-top { opacity: 0; transform: translateY(-20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-in-top.visible { opacity: 1; transform: translateY(0); }

/* Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: white; flex-direction: column; padding: 1rem; 
        box-shadow: var(--shadow-md); border-top: 1px solid var(--border-color);
        gap: 1rem; align-items: flex-start;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 2.5rem; }
    .section { padding: 4rem 0; }
    
    .dashboard-layout { display: flex; flex-direction: column; }
    .sidebar { 
        display: none; width: 100%; border-right: none; border-bottom: 1px solid var(--border-color);
    }
    .sidebar.active { display: block; }
    .sidebar-nav { margin-top: 1rem; flex-direction: row; flex-wrap: wrap; }
    .sidebar-link { flex: 1; justify-content: center; min-width: 120px; }
    .admin-mobile-header { display: flex; justify-content: space-between; padding: 1rem; background: var(--surface-color); border-bottom: 1px solid var(--border-color); }
    
    .profile-header { flex-direction: column; text-align: center; gap: 1rem; padding: 2rem 1rem; }
    .flex-1 { min-width: 100% !important; }
    .modal { padding: 1.5rem; }
    .stat-number { font-size: 2.5rem; }
}
