/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary-color: #38bdf8;
    --text-color: #334155;
    --text-light: #64748b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #0f172a;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.text-primary { color: var(--primary-color); }
.text-center { text-align: center; }

/* Navbar - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    padding: 0.8rem 5%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    transition: color 0.3s;
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-dark);
}

.navbar-brand img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Admin CMS Button in Navbar */
.nav-admin-btn {
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    border: 1px solid rgba(255,255,255,0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease !important;
}
.nav-admin-btn:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}
.navbar.scrolled .nav-admin-btn {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}
.navbar.scrolled .nav-admin-btn:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}
.navbar.scrolled .menu-toggle { color: var(--text-color); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    margin-top: 1rem;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(2, 132, 199, 0.85), rgba(15, 23, 42, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Card Image */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== PREMIUM PAGE HEADER / BANNER ===== */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #0c1929 0%, #0a2540 25%, #0b3a6b 50%, #0c4a8e 75%, #0d5aa7 100%);
    padding: 10rem 5% 5rem;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animated gradient overlay */
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(56, 189, 248, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(2, 132, 199, 0.15) 0%, transparent 50%);
    z-index: 1;
    animation: headerGradientShift 8s ease-in-out infinite alternate;
}

/* Subtle mesh/grid pattern overlay */
.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
    animation: headerGridMove 20s linear infinite;
}

@keyframes headerGradientShift {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes headerGridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Page header content wrapper */
.page-header-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumb */
.page-header-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.page-header-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    font-weight: 400;
}

.page-header-breadcrumb a:hover {
    color: var(--secondary-color);
}

.page-header-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
}

.page-header-breadcrumb .current {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Title styles */
.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    position: relative;
    z-index: 10;
}

/* Glowing accent line under title */
.page-header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #7dd3fc);
    border-radius: 4px;
    margin: 0 auto 1.2rem;
    position: relative;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5), 0 0 40px rgba(56, 189, 248, 0.2);
    animation: headerLineGlow 2s ease-in-out infinite alternate;
}

@keyframes headerLineGlow {
    0% { box-shadow: 0 0 15px rgba(56, 189, 248, 0.4), 0 0 30px rgba(56, 189, 248, 0.15); width: 80px; }
    100% { box-shadow: 0 0 25px rgba(56, 189, 248, 0.6), 0 0 50px rgba(56, 189, 248, 0.3); width: 120px; }
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 10;
}

/* Floating geometric shapes */
.page-header-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.page-header-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: white;
}

.page-header-shapes .shape-1 {
    width: 300px; height: 300px;
    top: -100px; right: -80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56,189,248,0.3), rgba(14,165,233,0.1));
    animation: headerShapeFloat1 12s ease-in-out infinite;
}

.page-header-shapes .shape-2 {
    width: 200px; height: 200px;
    bottom: -60px; left: -60px;
    background: linear-gradient(135deg, rgba(2,132,199,0.3), rgba(14,165,233,0.1));
    animation: headerShapeFloat2 10s ease-in-out infinite;
}

.page-header-shapes .shape-3 {
    width: 120px; height: 120px;
    top: 30%; left: 15%;
    background: rgba(125, 211, 252, 0.12);
    animation: headerShapeFloat3 14s ease-in-out infinite;
}

.page-header-shapes .shape-4 {
    width: 80px; height: 80px;
    top: 20%; right: 20%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(56, 189, 248, 0.1);
    animation: headerShapeFloat4 8s ease-in-out infinite;
}

.page-header-shapes .shape-5 {
    width: 160px; height: 160px;
    bottom: 10%; right: 15%;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    background: rgba(14, 165, 233, 0.08);
    animation: headerShapeFloat5 16s ease-in-out infinite;
}

/* Floating particle dots */
.page-header-shapes .dot {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 6px rgba(255,255,255,0.15);
}

.page-header-shapes .dot-1 { top: 15%; left: 10%; animation: headerDotFloat 6s ease-in-out infinite; }
.page-header-shapes .dot-2 { top: 25%; right: 25%; animation: headerDotFloat 8s ease-in-out infinite 1s; width: 3px; height: 3px; }
.page-header-shapes .dot-3 { bottom: 30%; left: 25%; animation: headerDotFloat 7s ease-in-out infinite 2s; width: 5px; height: 5px; }
.page-header-shapes .dot-4 { top: 40%; right: 10%; animation: headerDotFloat 9s ease-in-out infinite 0.5s; }
.page-header-shapes .dot-5 { bottom: 20%; right: 35%; animation: headerDotFloat 5s ease-in-out infinite 1.5s; width: 3px; height: 3px; }
.page-header-shapes .dot-6 { top: 60%; left: 40%; animation: headerDotFloat 10s ease-in-out infinite 3s; width: 6px; height: 6px; }
.page-header-shapes .dot-7 { bottom: 40%; left: 8%; animation: headerDotFloat 7s ease-in-out infinite 2.5s; }
.page-header-shapes .dot-8 { top: 10%; left: 55%; animation: headerDotFloat 6.5s ease-in-out infinite 1.2s; width: 4px; height: 4px; }

@keyframes headerShapeFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 20px) rotate(10deg); }
}
@keyframes headerShapeFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(25px, -15px) rotate(-8deg); }
}
@keyframes headerShapeFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -20px) scale(1.1); }
}
@keyframes headerShapeFloat4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-10px, 15px) rotate(120deg); }
    66% { transform: translate(10px, -10px) rotate(240deg); }
}
@keyframes headerShapeFloat5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(-20px, 10px) rotate(15deg) scale(1.05); }
}
@keyframes headerDotFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; }
    50% { transform: translateY(-15px) scale(1.3); opacity: 0.5; }
}

/* Icon badge above title */
.page-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px; height: 70px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2);
    animation: headerIconPulse 3s ease-in-out infinite;
}

@keyframes headerIconPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2); transform: scale(1); }
    50% { box-shadow: 0 8px 40px rgba(14, 165, 233, 0.35); transform: scale(1.05); }
}

/* Bottom wave decoration */
.page-header-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 5;
    line-height: 0;
}

.page-header-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 8rem 5% 4rem;
        min-height: 260px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .page-header-icon {
        width: 55px; height: 55px;
        font-size: 1.4rem;
    }
    .page-header-shapes .shape-1 { width: 200px; height: 200px; }
    .page-header-shapes .shape-2 { width: 140px; height: 140px; }
    .page-header-shapes .shape-3,
    .page-header-shapes .shape-4,
    .page-header-shapes .shape-5 { display: none; }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Sidebar Grid Layout */
.grid-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
@media (max-width: 992px) {
    .grid-sidebar {
        grid-template-columns: 1fr;
    }
}

.hover-container:hover .hover-zoom {
    transform: scale(1.05) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add JS toggle for mobile */
    }
    .menu-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
