/*
Theme Name: Smart Jashore Platform
Author: Smart Jashore
Version: 2.2
Description: Futuristic Civic-Tech Election Platform (Animated)
*/

/* ===============================
   FONT: SolaimanLipi
================================= */
@font-face {
    font-family: 'SolaimanLipi';
    src: url('assets/fonts/SolaimanLipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===============================
   GLOBAL
================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Roboto Slab', serif;
    background: #f8fafc;
    color: #0f172a;
}

body.lang-bn {
    font-family: 'SolaimanLipi', sans-serif;
}

/* ===============================
   LAYOUT
================================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #2563eb;
}

.nav {
    float: right;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav a:hover {
    color: #2563eb;
}

/* ===============================
   HERO SECTION (Animated Gradient)
================================= */

.hero {
    padding: 120px 0;
    background: linear-gradient(-45deg, #f8fafc, #e0f2fe, #dbeafe, #f0f9ff);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
    text-align: center;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: #475569;
    margin-bottom: 30px;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25);
    transition: 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* =====================================
   CLEAN BORDER COUNTER DESIGN
===================================== */

.stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.counter-card {
    background: #ffffff;
    border: 3px solid #2563eb;
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    min-width: 260px;
    transition: 0.3s ease;
}

.counter-card:hover {
    background: #f8fbff;
    transform: translateY(-6px);
}

.counter-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.counter-number {
    font-size: 44px;
    font-weight: 700;
    color: #0f172a;
    margin: 10px 0;
    letter-spacing: 1px;
}

.counter-card p {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    margin: 0;
}


/* ===============================
   SECTION
================================= */

.section {
    padding: 80px 0;
}

/* ===============================
   CAMPAIGN SLIDER
================================= */

.campaign-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.campaign-slider::-webkit-scrollbar {
    display: none;
}

.campaign-card {
    min-width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    flex-shrink: 0;
    transition: 0.3s ease;
}

.campaign-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* ===============================
   BUTTONS
================================= */

button, .btn, .auth-btn {
    background: #2563eb;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease;
}

button:hover, .btn:hover, .auth-btn:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
}

/* ===============================
   AUTH SECTION
================================= */

.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #06b6d4);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 45px;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
    animation: fadeIn 0.6s ease;
    color: #fff;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.9);
}

/* ===============================
   SCROLL ANIMATION CLASSES
================================= */

.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: 0.8s ease;
}

.animate-left.show {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(60px);
    transition: 0.8s ease;
}

.animate-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===============================
   FADE IN KEYFRAME
================================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================
   MOBILE RESPONSIVE SYSTEM
===================================== */

/* Tablets */
@media (max-width: 992px) {

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .card {
        min-width: 45%;
    }

}

/* Mobile */
@media (max-width: 768px) {

    .container {
        width: 92%;
    }

    .header {
        padding: 15px 0;
        text-align: center;
    }

    .nav {
        float: none;
        margin-top: 10px;
    }

    .nav a {
        display: inline-block;
        margin: 8px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-text h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 15px;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        min-width: unset;
    }

    .campaign-slider {
        gap: 15px;
    }

    .campaign-card {
        min-width: 85%;
    }

    .auth-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

}

/* Small Mobile */
@media (max-width: 480px) {

    .hero-text h1 {
        font-size: 24px;
    }

    .btn,
    .auth-btn,
    button {
        width: 100%;
        text-align: center;
    }

}

/* =====================================
   FLOATING BACKGROUND SHAPES
===================================== */

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatMove 18s infinite ease-in-out alternate;
}

/* Individual Shapes */

.shape1 {
    width: 250px;
    height: 250px;
    background: #2563eb;
    top: 10%;
    left: 5%;
    animation-duration: 20s;
}

.shape2 {
    width: 180px;
    height: 180px;
    background: #06b6d4;
    bottom: 15%;
    right: 10%;
    animation-duration: 22s;
}

.shape3 {
    width: 120px;
    height: 120px;
    background: #1e40af;
    top: 60%;
    left: 40%;
    animation-duration: 16s;
}

.shape4 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    top: 30%;
    right: 25%;
    animation-duration: 25s;
}

@keyframes floatMove {
    0% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    50% {
        transform: translateY(-40px) translateX(30px) scale(1.05);
    }
    100% {
        transform: translateY(30px) translateX(-20px) scale(0.95);
    }
}

/* Reduce shapes on mobile for performance */
@media (max-width: 768px) {
    .shape3,
    .shape4 {
        display: none;
    }
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
}

/* =====================================
   PREMIUM COUNTER SYSTEM
===================================== */

.counter-card {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
}

.counter-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(37, 99, 235, 0.25);
}

.counter-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.counter-number {
    font-size: 42px;
    font-weight: 700;
    color: #2563eb;
    margin: 10px 0;
    letter-spacing: 1px;
}

.counter-card p {
    font-size: 16px;
    color: #475569;
    margin: 0;
}

/* subtle glow background */
.counter-card::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    top: -40px;
    right: -40px;
}

/* =====================================
   PREMIUM HEADER DESIGN
===================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    padding: 18px 0;
    transition: 0.3s ease;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: 0.5px;
}

.nav a {
    position: relative;
    font-weight: 500;
    padding: 6px 0;
    transition: 0.3s ease;
}

/* Animated underline */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #2563eb;
    transition: 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: #2563eb;
}

/* =====================================
   PREMIUM FOOTER DESIGN
===================================== */

.footer {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #ffffff;
    padding: 60px 0 40px;
    margin-top: 80px;
}

.footer .container {
    text-align: center;
}

.footer h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer p {
    margin: 8px 0;
    font-size: 14px;
    opacity: 0.9;
}

.footer p:last-child {
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.8;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-col h4 {
    margin-bottom: 10px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    transition: 0.3s ease;
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}




