/* ===========================
   CSS Variables & Root Styles
   =========================== */
:root {
    --c-dark: #212529;
    --c-brand: #ed127c;
    --c-brand-light: #ee509c;
    --c-body: #2797dc;
    --font-base: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.5s ease;
}

/* ===========================
   Global Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--c-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    position: relative;
}

.section-padding {
    padding: 100px 0;
}

/* ===========================
   Preloader / Loading Screen
   =========================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-body) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: var(--transition);
}

.loader-container {
    text-align: center;
    color: white;
}

.pulse-loader {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    animation: pulse 2s infinite;
}

.pulse-loader i {
    font-size: 50px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.brand-icon {
    color: var(--c-brand);
    margin-right: 8px;
    font-size: 32px;
}

.brand-text {
    color: var(--c-dark);
}

.brand-highlight {
    color: var(--c-brand);
}

.nav-link {
    font-weight: 500;
    padding: 8px 20px !important;
    color: var(--c-dark);
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--c-brand);
}

/* ===========================
   Buttons
   =========================== */
.btn-brand {
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(237, 18, 124, 0.3);
}

.btn-brand:hover {
    background: linear-gradient(135deg, var(--c-brand-light) 0%, var(--c-brand) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(237, 18, 124, 0.4);
}

.btn-outline-brand {
    background: transparent;
    color: var(--c-brand);
    border: 2px solid var(--c-brand);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-brand:hover {
    background: var(--c-brand);
    color: white;
    transform: translateY(-3px);
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(237, 18, 124, 0.05) 0%, rgba(39, 151, 220, 0.05) 100%);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.text-brand {
    color: var(--c-brand);
}

.hero-tagline {
    color: var(--c-body);
    font-size: 2rem;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 40px;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--c-brand);
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--c-dark);
    font-weight: 500;
    margin: 0;
}

.hero-image {
    position: relative;
}

.floating-image {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-card {
    position: absolute;
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 1s ease;
}

.hero-card i {
    font-size: 32px;
    color: var(--c-brand);
}

.hero-card span {
    font-weight: 600;
    color: var(--c-dark);
}

.card-1 {
    top: 10%;
    left: -10%;
}

.card-2 {
    top: 50%;
    right: -5%;
}

.card-3 {
    bottom: 15%;
    left: 5%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
}

.hero-wave svg {
    display: block;
}

/* ===========================
   Section Styles
   =========================== */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--c-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

/* ===========================
   Feature List
   =========================== */
.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-item i {
    color: var(--c-brand);
    font-size: 24px;
}

.feature-item span {
    font-weight: 500;
    font-size: 1.1rem;
}

/* ===========================
   Info Card
   =========================== */
.info-card {
    background: linear-gradient(135deg, rgba(237, 18, 124, 0.1) 0%, rgba(39, 151, 220, 0.1) 100%);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

.info-card i {
    font-size: 48px;
    color: var(--c-brand);
}

.info-card h5 {
    margin-bottom: 10px;
    color: var(--c-dark);
}

.info-card p {
    color: #6c757d;
}

/* ===========================
   Feature Cards
   =========================== */
.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    font-size: 36px;
}

.feature-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--c-dark);
}

.feature-card p {
    color: #6c757d;
    margin: 0;
}

/* ===========================
   Technology Cards
   =========================== */
.tech-card {
    background: white;
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.12);
}

.tech-card i {
    font-size: 48px;
    color: var(--c-brand);
    margin-bottom: 20px;
}

.tech-card h5 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--c-dark);
}

.tech-card ul {
    list-style: none;
    padding: 0;
}

.tech-card li {
    padding: 8px 0;
    color: #6c757d;
    border-bottom: 1px solid #f0f0f0;
}

.tech-card li:last-child {
    border-bottom: none;
}

/* ===========================
   App Features
   =========================== */
.app-features {
    margin-top: 30px;
}

.app-feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(39, 151, 220, 0.05);
    border-radius: 15px;
    transition: var(--transition);
}

.app-feature-item:hover {
    background: rgba(39, 151, 220, 0.1);
    transform: translateX(10px);
}

.app-feature-item i {
    font-size: 36px;
    color: var(--c-body);
}

.app-feature-item h5 {
    margin-bottom: 8px;
    color: var(--c-dark);
}

.app-feature-item p {
    margin: 0;
    color: #6c757d;
}

/* ===========================
   Impact Cards
   =========================== */
.impact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.12);
}

.impact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.impact-card h3 {
    font-size: 2rem;
    color: var(--c-brand);
    margin-bottom: 5px;
}

.impact-card p {
    font-weight: 600;
    color: var(--c-dark);
    margin-bottom: 10px;
}

.impact-desc {
    display: block;
    color: #6c757d;
    font-size: 0.95rem;
}

/* ===========================
   SDG Card
   =========================== */
.sdg-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.sdg-list {
    list-style: none;
    padding: 0;
}

.sdg-list li {
    padding: 12px 0;
    color: var(--c-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.sdg-list i {
    color: var(--c-brand);
    font-size: 20px;
}

/* ===========================
   Team Section
   =========================== */
.team-highlight {
    padding: 50px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.team-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===========================
   Contact Section
   =========================== */
.bg-brand {
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-body) 100%);
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    transition: var(--transition);
}

.social-link:hover {
    background: white;
    color: var(--c-brand);
    transform: translateY(-5px);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--c-dark);
    color: white;
    padding: 50px 0 30px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

/* ===========================
   Login Modal
   =========================== */
.modal-content {
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-body) 100%);
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.input-group-text {
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
    color: white;
    border: none;
}

.form-control:focus {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 0.2rem rgba(237, 18, 124, 0.25);
}

/* ===========================
   Dashboard Styles
   =========================== */
.dashboard-body {
    background: #f8f9fa;
}

.sidebar {
    background: white;
    min-height: calc(100vh - 70px);
    padding: 30px 15px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    color: var(--c-dark);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.sidebar .nav-link {
    color: var(--c-dark);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
    color: white;
}

.main-content {
    padding: 30px;
}

.dashboard-header {
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.12);
}

.stat-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: white;
}

.bg-brand {
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
}

.stat-card-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: 5px;
}

.stat-card-content p {
    color: #6c757d;
    margin: 0;
}

.card {
    border: none;
    border-radius: 15px;
}

.card-header {
    border-bottom: 1px solid #f0f0f0;
}

.table {
    margin: 0;
}

.table thead th {
    border-bottom: 2px solid #f0f0f0;
    color: var(--c-dark);
    font-weight: 600;
    padding: 15px;
}

.table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
}

.analytics-item {
    padding: 25px;
    background: rgba(39, 151, 220, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--c-brand);
}

.analytics-item h6 {
    margin-bottom: 10px;
}

.analytics-item h4 {
    margin-bottom: 5px;
}

.activity-timeline {
    position: relative;
}

.activity-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.activity-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 50px;
    width: 2px;
    height: calc(100% + 10px);
    background: #e0e0e0;
}

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.activity-content h6 {
    margin-bottom: 5px;
    color: var(--c-dark);
}

.activity-content p {
    font-size: 0.9rem;
}

/* ===========================
   Responsive Styles
   =========================== */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-card {
        position: static;
        margin-bottom: 20px;
    }

    .sidebar {
        min-height: auto;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-brand {
    color: var(--c-brand) !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

/* ===========================
   AOS Animation Overrides
   =========================== */
[data-aos] {
    pointer-events: auto;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-brand);
}
