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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #f3f5fb;
    color: #18223a;
}

/* ===============================
   TOP HEADER / NAVIGATION
================================ */

.top-bar {
    position: relative;
    z-index: 999;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 20px;

    background: rgba(8, 28, 82, 0.35);

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* LOGO */

.top-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #ffffff;

    text-decoration: none;

    font-size: 22px;
    font-weight: 800;
}

.logo-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #7a4dff,
        #4d22d1
    );

    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.2);
}

.logo-icon i {
    font-size: 19px;
}


/* DESKTOP NAVIGATION */

.top-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 15px;

    border-radius: 10px;

    color: rgba(255, 255, 255, 0.82);

    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.12);
}

.nav-link i {
    font-size: 14px;
}


/* LOGIN BUTTON */

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-left: 8px;

    padding: 11px 18px;

    border-radius: 10px;

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    background: linear-gradient(
        135deg,
        #7647ee,
        #5124c9
    );

    box-shadow:
        0 6px 18px rgba(69, 35, 180, 0.35);

    transition: all 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(69, 35, 180, 0.45);
}


/* MOBILE MENU BUTTON */

.menu-btn {
    display: none;

    width: 46px;
    height: 46px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 20px;

    cursor: pointer;

    transition: 0.25s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}


/* MOBILE NAVIGATION */
.mobile-navigation {
    display: none;
    position: fixed;
    top: 75px;
    left: 15px;
    right: 15px;
    padding: 10px;
    border-radius: 16px;
    background: #132b70;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    z-index: 99999;
}

.mobile-navigation.show {
    display: block;
    animation: menuSlide 0.25s ease;
}

.mobile-navigationxxx {
    display: none;

    position: absolute;

    top: calc(100% + 10px);
    left: 15px;
    right: 15px;

    padding: 10px;

    border-radius: 16px;

    background: #132b70;

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.3);
        z-index: 9999;
}

.mobile-navigation.show {
    display: block;
    animation: menuSlide 0.25s ease;
    z-index: 9999;
}

.mobile-navigation a {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 14px;

    border-radius: 10px;

    color: rgba(255, 255, 255, 0.88);

    text-decoration: none;

    font-size: 16px;

    transition: 0.2s;
    z-index: 9999;
}

.mobile-navigation a:hover,
.mobile-navigation a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}


@keyframes menuSlide {

    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 768px) {

    .top-bar {
        padding: 10px 16px;
    }

    .top-navigation {
        display: none;
    }

    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

}


@media (max-width: 480px) {

    .top-logo {
        font-size: 20px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;

        border-radius: 10px;
    }

    .menu-btn {
        width: 42px;
        height: 42px;
    }

}

button,
input {
    font-family: inherit;
}

.app-wrapper {
    width: 100%;
    max-width: 900px;
    min-height: 100vh;
    margin: auto;
    background: #f7f8fc;
    overflow: hidden;
}


/* =================================
   HERO SECTION
================================= */

.hero-section {
    min-height: 200px;
    padding: 28px 56px 50px;
    color: #fff;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(69, 91, 210, .35),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #10245f,
            #143d96
        );

    border-radius: 0 0 40px 40px;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        radial-gradient(
            rgba(255,255,255,.15) 1px,
            transparent 1px
        );

    background-size: 18px 18px;
    opacity: .2;
}


/* TOP */

.top-bar {
    position: relative;
    z-index: 2;
}

.mobile-status {
    position: absolute;
    top: -10px;
    left: 10px;

    font-size: 16px;
    font-weight: 700;

    display: none;
}

.menu-btn {
    width: 48px;
    height: 48px;

    border: none;
    background: transparent;

    color: white;
    font-size: 28px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* HERO CONTENT */

.hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;

    padding-top: 30px;
}

.hero-text {
    max-width: 480px;
}

.hero-text h1 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.12;
    font-weight: 700;

    letter-spacing: -2px;

    margin-bottom: 8px;
}

.hero-text p {
    font-size: clamp(18px, 2.3vw, 27px);
    line-height: 1.55;

    color: black;

    margin-bottom: 28px;
}


/* TRUST */

.trust-items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 18px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 17px;
    color: rgba(255,255,255,.88);
}

.trust-item i {
    font-size: 21px;
}

.trust-divider {
    width: 1px;
    height: 25px;

    background: rgba(255,255,255,.4);
}


/* =================================
   BALLOT ILLUSTRATION
================================= */

.vote-illustration {
    width: 330px;
    height: 300px;

    position: relative;
    flex-shrink: 0;
}

.ballot-box {
    position: absolute;

    width: 235px;
    height: 170px;

    right: 10px;
    bottom: 10px;

    border-radius: 8px 8px 25px 25px;

    background:
        linear-gradient(
            145deg,
            #7250df,
            #4b2aab
        );

    box-shadow:
        0 20px 30px rgba(0,0,0,.25);

    transform: perspective(500px)
               rotateX(5deg);
}

.ballot-top {
    position: absolute;

    width: 250px;
    height: 65px;

    left: -8px;
    top: -20px;

    border-radius: 8px 8px 15px 15px;

    background:
        linear-gradient(
            145deg,
            #7b5ce9,
            #5133b7
        );

    transform: perspective(300px)
               rotateX(18deg);
}

.ballot-slot {
    position: absolute;

    width: 80px;
    height: 13px;

    background: #221255;

    top: -3px;
    left: 78px;

    border-radius: 10px;

    z-index: 5;
}

.ballot-text {
    position: absolute;

    top: 65px;
    left: 0;
    right: 0;

    text-align: center;

    font-size: 48px;
    font-weight: 800;

    color: rgba(255,255,255,.85);
}


/* PAPER */

.ballot-paper {
    position: absolute;

    width: 90px;
    height: 125px;

    top: -85px;
    left: 95px;

    background: #f4f4f7;

    box-shadow:
        0 8px 20px rgba(0,0,0,.25);

    transform:
        rotate(10deg);

    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
}

.ballot-paper span {
    font-size: 55px;
    color: #24a35a;
}


/* CONFETTI */

.confetti {
    position: absolute;

    width: 12px;
    height: 8px;

    border-radius: 2px;

    animation:
        floating 3s infinite ease-in-out;
}

.confetti-1 {
    background: #ffd800;
    top: 25px;
    left: 30px;
    transform: rotate(-25deg);
}

.confetti-2 {
    background: #ff845f;
    top: 80px;
    left: 120px;
    transform: rotate(45deg);
}

.confetti-3 {
    background: #36a8dc;
    top: 135px;
    left: 50px;
    transform: rotate(-35deg);
}

.confetti-4 {
    background: #b4dc4c;
    right: 5px;
    top: 160px;
    transform: rotate(40deg);
}

@keyframes floating {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -12px;
    }

}


/* =================================
   VOTING CONTAINER
================================= */

.vote-container {
    position: relative;

    margin-top: -25px;

    background: #f9fafc;

    border-radius: 38px 38px 0 0;

    padding:
        35px
        40px
        28px;

    box-shadow:
        0 -5px 25px rgba(0,0,0,.08);
}


/* HEADING */

.vote-heading {
    display: flex;
    align-items: center;

    gap: 20px;

    margin-bottom: 22px;
}

.vote-icon {
    width: 75px;
    height: 75px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7654db,
            #4521a6
        );

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    box-shadow:
        0 8px 20px rgba(83,55,190,.25);
}

.vote-heading h2 {
    font-size: 27px;
    margin-bottom: 7px;
}

.vote-heading p {
    font-size: 18px;
    color: #68748c;
}


/* =================================
   CANDIDATE CARD
================================= */

.candidate-card {
    position: relative;

    width: 100%;

    min-height: 145px;

    display: flex;
    align-items: center;

    gap: 28px;

    padding:
        14px
        85px
        14px
        16px;

    margin-bottom: 18px;

    border-radius: 20px;

    background:
        linear-gradient(
            100deg,
            #ffffff,
            #f7f8fc
        );

    border: 1px solid #e4e7ee;

    box-shadow:
        0 6px 16px rgba(19,34,65,.07);

    cursor: pointer;

    transition:
        .25s ease;
}

.candidate-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(31,41,80,.12);
}

.candidate-card.active {
    border: 2px solid #5734df;

    box-shadow:
        0 10px 30px rgba(89,56,225,.15);
}

.candidate-card input {
    display: none;
}


/* IMAGE */

.candidate-image {
    width: 130px;
    height: 120px;

    flex-shrink: 0;

    border-radius: 16px;

    overflow: hidden;

    background: #e8ebf1;
}

.candidate-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* INFO */

.candidate-info {
    flex: 1;
}

.candidate-info h3 {
    font-size: 28px;

    margin-bottom: 9px;

    font-weight: 700;
}

.candidate-info p {
    font-size: 18px;

    color: #5f6b82;

    margin-bottom: 12px;
}

.candidate-info a {
    color: #4227aa;

    font-size: 17px;
    font-weight: 600;

    text-decoration: none;

    display: inline-flex;
    align-items: center;

    gap: 10px;
}


/* RADIO */

.custom-radio {
    position: absolute;

    width: 48px;
    height: 48px;

    right: 35px;

    border-radius: 50%;

    border: 2px solid #aab2c2;

    transition: .25s;
}

.candidate-card.active .custom-radio {
    border: 3px solid #5630d9;

    box-shadow:
        inset 0 0 0 8px white;

    background: #5630d9;
}


/* =================================
   SECURITY BOX
================================= */

.security-box {
    display: flex;
    align-items: center;

    gap: 18px;

    padding: 20px;

    margin:
        30px 0;

    border-radius: 18px;

    background:
        linear-gradient(
            90deg,
            #edf2fa,
            #f5f6f9
        );
}

.security-icon,
.lock-icon {
    width: 62px;
    height: 62px;

    border-radius: 50%;

    flex-shrink: 0;

    background: #e0e7f7;

    color: #3453b9;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
}

.security-content {
    flex: 1;
}

.security-content h3 {
    font-size: 20px;

    margin-bottom: 7px;
}

.security-content p {
    font-size: 16px;

    color: #5e687a;
}


/* =================================
   SUBMIT BUTTON
================================= */

.submit-vote {
    width: 100%;
    height: 86px;

    border: none;

    border-radius: 18px;

    cursor: pointer;

    color: white;

    font-size: 27px;
    font-weight: 700;

    letter-spacing: 1px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;

    background:
        linear-gradient(
            135deg,
            #6d35dd,
            #4722b9
        );

    box-shadow:
        0 12px 25px rgba(83,45,195,.28);

    transition: .25s;
}

.submit-vote:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 35px rgba(83,45,195,.35);
}

.submit-vote:active {
    transform: scale(.98);
}

.submit-vote i {
    font-size: 29px;

    animation: sendIcon 1.5s infinite;
}

@keyframes sendIcon {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }

}


/* PRIVACY */

.privacy-text {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;

    padding-top: 20px;

    color: #68748c;

    font-size: 16px;
}

.privacy-text i {
    color: #4c5770;
}


/* =================================
   TABLET
================================= */

@media (max-width: 768px) {

    .hero-section {
        padding:
            20px
            30px
            55px;
    }

    .hero-content {
        align-items: flex-end;
    }

    .vote-illustration {
        width: 250px;
        transform: scale(.85);
        transform-origin: bottom right;
    }

    .vote-container {
        padding:
            30px
            25px;
    }

    .candidate-image {
        width: 105px;
        height: 110px;
    }

    .candidate-info h3 {
        font-size: 23px;
    }

    .custom-radio {
        right: 20px;
    }

}


/* =================================
   MOBILE
================================= */

@media (max-width: 600px) {

    .app-wrapper {
        max-width: 100%;
    }

    .hero-section {
        min-height: auto;

        padding:
            25px
            22px
            75px;

        border-radius:
            0
            0
            32px
            32px;
    }

    .hero-content {
        display: block;
        padding-top: 25px;
    }

    .hero-text h1 {
        font-size: 43px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .trust-items {
        gap: 10px;
    }

    .trust-item {
        font-size: 14px;
        gap: 6px;
    }

    .trust-item i {
        font-size: 17px;
    }

    .trust-divider {
        height: 20px;
    }


    /* Hide illustration on smaller mobile */

    .vote-illustration {
        display: none;
    }


    .vote-container {
        margin-top: -35px;

        border-radius:
            30px
            30px
            0
            0;

        padding:
            25px
            16px
            25px;
    }


    /* HEADING */

    .vote-heading {
        gap: 13px;
    }

    .vote-icon {
        width: 55px;
        height: 55px;

        font-size: 22px;
    }

    .vote-heading h2 {
        font-size: 20px;
    }

    .vote-heading p {
        font-size: 14px;
    }


    /* CARD */

    .candidate-card {
        min-height: 112px;

        gap: 14px;

        padding:
            10px
            58px
            10px
            10px;

        border-radius: 16px;

        margin-bottom: 13px;
    }

    .candidate-image {
        width: 85px;
        height: 92px;

        border-radius: 13px;
    }

    .candidate-info h3 {
        font-size: 20px;

        margin-bottom: 5px;
    }

    .candidate-info p {
        font-size: 14px;

        line-height: 1.4;

        margin-bottom: 7px;
    }

    .candidate-info a {
        font-size: 14px;
    }


    /* RADIO */

    .custom-radio {
        width: 35px;
        height: 35px;

        right: 15px;
    }

    .candidate-card.active .custom-radio {
        box-shadow:
            inset 0 0 0 6px white;
    }


    /* SECURITY */

    .security-box {
        padding: 14px;

        gap: 12px;

        margin:
            22px 0;
    }

    .security-icon,
    .lock-icon {
        width: 45px;
        height: 45px;

        font-size: 18px;
    }

    .security-content h3 {
        font-size: 16px;
    }

    .security-content p {
        font-size: 12px;

        line-height: 1.5;
    }


    /* SUBMIT */

    .submit-vote {
        height: 65px;

        border-radius: 15px;

        font-size: 20px;
    }

    .submit-vote i {
        font-size: 22px;
    }

}


/* =================================
   SMALL MOBILE
================================= */

@media (max-width: 380px) {

    .hero-text h1 {
        font-size: 36px;
    }

    .candidate-image {
        width: 70px;
        height: 82px;
    }

    .candidate-info h3 {
        font-size: 18px;
    }

    .candidate-info p {
        font-size: 12px;
    }

    .candidate-info a {
        font-size: 13px;
    }

    .custom-radio {
        width: 30px;
        height: 30px;
    }

}

/* =========================================
   eVote System - Main Footer
   ========================================= */

.main-footer {
    width: 100%;
    background: #0f172a;
    color: #cbd5e1;
    border-top: 1px solid #1e293b;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    min-height: 70px;
    margin: 0 auto;
    padding: 18px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-links a {
    position: relative;

    color: #cbd5e1;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Separator between links */
.footer-links a + a::before {
    content: "";
    position: absolute;

    left: -13px;
    top: 50%;

    width: 1px;
    height: 16px;

    background: #334155;

    transform: translateY(-50%);
}


/* =========================================
   Tablet
   ========================================= */

@media (max-width: 768px) {

    .footer-content {
        padding: 18px 20px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .footer-content p {
        font-size: 13px;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-links a {
        font-size: 13px;
    }
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 480px) {

    .main-footer {
        margin-top: 30px;
    }

    .footer-content {
        min-height: auto;
        padding: 20px 15px;
    }

    .footer-content p {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-links a + a::before {
        display: none;
    }
}