/* ==========================================
   SmartEarn - Postpals Solution Design
   ========================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Root Variables - Postpals Solution Colors */
:root {
    --primary-gradient: linear-gradient(135deg, #5285E8 0%, #3a6dd4 100%);
    --primary-color: #5285E8;
    --primary-dark: #3a6dd4;
    --secondary-gradient: linear-gradient(135deg, #BBFB4C 0%, #a8e03d 100%);
    --success-gradient: linear-gradient(135deg, #5285E8 0%, #BBFB4C 100%);
    --warning-gradient: linear-gradient(135deg, #BBFB4C 0%, #5285E8 100%);
    --dark-gradient: linear-gradient(135deg, #181818 0%, #2d3561 100%);
    --light-bg: #F0F5F4;
    --card-shadow: 0 10px 40px rgba(82, 133, 232, 0.1);
    --card-shadow-hover: 0 20px 60px rgba(82, 133, 232, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: #181818;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: #181818;
    border-left: none !important;
    padding-left: 0 !important;
}

    /* Remove all pseudo-elements from headings */
    h1::before, h2::before, h3::before, h4::before, h5::before, h6::before,
    h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
        display: none !important;
        content: none !important;
        border: none !important;
        background: none !important;
    }

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================
   TOP BAR - Postpals Blue
   ========================================== */
.top-bar {
    background: linear-gradient(135deg, #5285E8 0%, #3a6dd4 100%);
    padding: 10px 0;
    border-bottom: 2px solid rgba(187, 251, 76, 0.3);
}

    .top-bar a {
        color: #fff;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
    }

        .top-bar a:hover {
            color: #BBFB4C;
            transform: translateY(-2px);
        }

/* ==========================================
   NAVBAR - Modern Sticky Design
   ========================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(82, 133, 232, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

    .navbar.scrolled {
        box-shadow: 0 5px 30px rgba(82, 133, 232, 0.15);
    }

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

    .navbar-brand:hover {
        transform: scale(1.05);
    }

    .navbar-brand i {
        color: #BBFB4C;
        -webkit-text-fill-color: #BBFB4C;
        animation: float 3s ease-in-out infinite;
    }

.nav-link {
    font-weight: 600;
    font-family: var(--font-primary);
    color: #181818 !important;
    padding: 0.8rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        width: 0;
        height: 3px;
        background: var(--primary-gradient);
        transform: translateX(-50%);
        transition: var(--transition);
        border-radius: 2px;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 60%;
    }

    .nav-link:hover {
        color: var(--primary-color) !important;
        background: rgba(82, 133, 232, 0.05);
    }

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(82, 133, 232, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

    .dropdown-item:hover {
        background: var(--primary-gradient);
        color: white;
        transform: translateX(10px);
    }

/* ==========================================
   HERO SECTION - Eye-Catching Blue
   ========================================== */
.hero-section {
    position: relative;
    background: var(--primary-gradient);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    padding: 100px 0 80px;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
        background-size: cover;
    }

    .hero-section .container {
        position: relative;
        z-index: 2;
    }

    .hero-section h1 {
        font-size: 3.5rem;
        font-weight: 800;
        color: white;
        margin-bottom: 1.5rem;
        animation: fadeInUp 0.8s ease;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

    .hero-section .text-warning {
        color: #BBFB4C !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-section .lead {
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 2rem;
        animation: fadeInUp 1s ease;
        line-height: 1.8;
    }

    .hero-section .btn {
        padding: 15px 40px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 50px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        animation: fadeInUp 1.2s ease;
    }

    .hero-section .btn-warning {
        background: linear-gradient(135deg, #BBFB4C 0%, #a8e03d 100%);
        border: none;
        color: #181818;
    }

        .hero-section .btn-warning:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 40px rgba(187, 251, 76, 0.4);
        }

    .hero-section .btn-outline-light {
        border: 2px solid white;
        color: white;
    }

        .hero-section .btn-outline-light:hover {
            background: white;
            color: var(--primary-color);
            transform: translateY(-5px);
        }

/* ==========================================
   CARDS - Modern & Attractive
   ========================================== */
.card {
    border: none;
    border-radius: 20px;
    transition: var(--transition);
    overflow: hidden;
    background: white;
    height: 100%;
}

    .card:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: var(--card-shadow-hover);
    }

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #181818;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-text {
    color: #6c757d;
    line-height: 1.7;
}

/* Category Cards - Special Design */
.category-card {
    position: relative;
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: 20px;
    overflow: hidden;
}

    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: var(--primary-gradient);
    }

    .category-card:hover::before {
        height: 100%;
        opacity: 0.05;
    }

.category-icon {
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 10px 20px rgba(82, 133, 232, 0.4));
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.category-card .btn {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    transition: var(--transition);
}

    .category-card .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(82, 133, 232, 0.3);
    }

/* ==========================================
   BADGES - Modern Design
   ========================================== */
.badge {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

    .badge.bg-primary {
        background: var(--primary-gradient) !important;
        box-shadow: 0 4px 15px rgba(82, 133, 232, 0.4);
    }

    .badge.bg-success {
        background: var(--success-gradient) !important;
        box-shadow: 0 4px 15px rgba(82, 133, 232, 0.3);
    }

    .badge.bg-warning {
        background: linear-gradient(135deg, #BBFB4C 0%, #a8e03d 100%) !important;
        color: #181818 !important;
        box-shadow: 0 4px 15px rgba(187, 251, 76, 0.4);
    }

/* ==========================================
   BUTTONS - Modern & Attractive
   ========================================== */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 12px;
    transition: var(--transition);
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 8px 20px rgba(82, 133, 232, 0.4);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(82, 133, 232, 0.5);
    }

.btn-success {
    background: var(--success-gradient);
    box-shadow: 0 8px 20px rgba(82, 133, 232, 0.3);
}

    .btn-success:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(82, 133, 232, 0.4);
    }

.btn-warning {
    background: linear-gradient(135deg, #BBFB4C 0%, #a8e03d 100%);
    color: #181818;
    box-shadow: 0 8px 20px rgba(187, 251, 76, 0.4);
}

    .btn-warning:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(187, 251, 76, 0.5);
    }

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
}

/* ==========================================
   SECTION STYLES - ALL BORDERS REMOVED
   ========================================== */
section {
    padding: 80px 0;
}

.bg-light {
    background: linear-gradient(180deg, #F0F5F4 0%, #ffffff 100%) !important;
}

/* Section Headers - NO BORDERS OR LINES */
section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    border: none !important;
    border-left: none !important;
    border-bottom: none !important;
    padding-left: 0 !important;
}

section p.text-muted {
    font-size: 1.1rem;
    color: #6c757d;
}

/* ==========================================
   FOOTER - Modern Dark Design
   ========================================== */
footer {
    background: linear-gradient(135deg, #181818 0%, #2d3561 100%);
    color: rgba(255, 255, 255, 0.8);
}

    footer h5, footer h6 {
        color: white;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

    .footer-links a:hover {
        color: #BBFB4C;
        transform: translateX(5px);
    }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    transition: var(--transition);
}

    .social-links a:hover {
        transform: translateY(-5px);
        background: var(--primary-gradient) !important;
        border-color: transparent !important;
    }

/* ==========================================
   PAGINATION - Modern
   ========================================== */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: 12px;
    border: none;
    margin: 0;
    padding: 10px 18px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(82, 133, 232, 0.4);
}

.page-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(82, 133, 232, 0.3);
}

/* ==========================================
   FORMS - Modern Design
   ========================================== */
.form-control,
.form-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    transition: var(--transition);
    font-family: var(--font-secondary);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(82, 133, 232, 0.25);
        transform: translateY(-2px);
    }

/* ==========================================
   ALERTS - Modern
   ========================================== */
.alert {
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 5px solid;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, #e0f7ff 0%, #ffffff 100%);
    border-left-color: #5285E8;
}

.alert-success {
    background: linear-gradient(135deg, #d4fce8 0%, #ffffff 100%);
    border-left-color: #BBFB4C;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
    border-left-color: #BBFB4C;
}

/* ==========================================
   HOVER EFFECTS
   ========================================== */
.hover-lift {
    transition: var(--transition);
}

    .hover-lift:hover {
        transform: translateY(-10px);
        box-shadow: var(--card-shadow-hover);
    }

/* ==========================================
   LOADING ANIMATIONS
   ========================================== */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 4px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        border-radius: 15px;
        margin-top: 1rem;
        box-shadow: 0 10px 40px rgba(82, 133, 232, 0.1);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0 40px;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

    section {
        padding: 60px 0;
    }

    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.shadow-custom {
    box-shadow: var(--card-shadow) !important;
}

.shadow-custom-hover:hover {
    box-shadow: var(--card-shadow-hover) !important;
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(82, 133, 232, 0.5);
}

    .scroll-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .scroll-to-top:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(82, 133, 232, 0.6);
    }

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in {
    animation: fadeInUp 0.6s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}
