
@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}


:root {
    /*Colors*/
    --white-color :#fff;
    --dark-color :#252525;
    --primary-color :#3b141c;
    --secondary-color : #f3961c;
    --light-pink-color : #faf4f5;
    --medium-gray-color :#ccc;

    /* Font size*/
    --font-size-s: clamp(0.8rem, 0.9vw, 0.95rem);
    --font-size-n: clamp(1rem, 1vw, 1.1rem);
    --font-size-m: clamp(1.12rem, 1.2vw, 1.25rem);
    --font-size-l: clamp(1.5rem, 2vw, 1.8rem);
    --font-size-xl: clamp(2rem, 3vw, 2.5rem);
    --font-size-xxl: clamp(2.3rem, 4vw, 3rem);

    /*Font weight*/
     --font-weight-normal :400;
     --font-weight-semibold:600;
     --font-weight-medium:500;
     --font-weight-bold :700;


     /*Border redius*/
     --border-radius-s :8px;
     --border-radius-m :30px;
     --border-radius-circle :50%;
     
     /*Site max width*/
     --site-max-width :1300px;
}

/*styling for whole site*/
ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}


img {
    width: 100%;
}


.section-content {
    margin:  0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}



/*navbar styling*/

header {
    position: fixed;
    width: 100%;
    z-index: 5;
    background: var(--primary-color);
}

header .navbar {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
}

.navbar .nav-logo .logo-text {
    color: var(--white-color);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.navbar .nav-menu {
    display: flex;
    gap: 10px;
}

.navbar .nav-menu .nav-link {
    padding: 10px 18px;
    border-radius: var(--border-radius-m);
    font-size: var(--font-size-m);
    color: dark var(--dark-color);
    transition: 0.3s ease;
}

.navbar .nav-menu .nav-link:hover {
    color: var(--primary-color);
    background: var(--secondary-color);
}

#menu-open-button {
    display: block;
    font-size: var(--font-size-l);
    color: var(--white-color); /* Color of hamburger icon */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    position: relative;
    margin-left: 15px;
}

#menu-close-button {
    display: block;
    font-size: var(--font-size-xl);
    color: var(--primary-color); /* Separate color for close icon */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
    position: absolute;
    top: 30px;
    right: 30px;
}

#menu-open-button {
    margin-left: 15px;
}

#menu-close-button {
    position: absolute;
    top: 30px;
    right: 30px;
}


/* Backdrop when menu is open */
body.show-mobile-menu header::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.2);
    z-index: 4;
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    background: var(--white-color);
    transition: left 0.2s ease;
    z-index: 5;
}

body.show-mobile-menu .nav-menu {
    left: 0;
}

.nav-menu .nav-link {
    color: var(--dark-color);
    display: block;
    margin-top: 17px;
    font-size: var(--font-size-l);
}

/*hero section styling*/
.hero-section {
    min-height: 100vh;
    background: var(--primary-color);
}

.hero-section .section-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    color: var(--white-color);
    justify-content: space-between;
}

.hero-section .hero-details .title {
    font-size: var(--font-size-xxl);
    color: var(--secondary-color);
    font-family: "Miniver" , sans-serif;
}

.hero-section .hero-details .subtitle {
    margin-top: 8px;
    max-width: 70%;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.hero-section .hero-details .description {
    max-width: 70%;
    margin: 24px 0 40px;
    font-size: var(--font-size-m);
}

.hero-section .hero-details .buttons {
    display: flex;
    gap: 23px;
}

.hero-section .hero-details .button {
    padding: 10px 26px;
    border: 2px solid transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius-m);
    background: var(--secondary-color);
    font-weight: var(--font-weight-medium);
    transition: 0.3s ease;
}

.hero-section .hero-details .button {
    padding: 10px 26px;
    border: 2px solid transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius-m);
    background: var(--secondary-color);
    font-weight: var(--font-weight-medium);
    transition: 0.3s ease;
}

/* Shared hover style for all buttons */
.hero-section .hero-details .button:hover {
    color: var(--white-color);
    border-color: var(--white-color);
    background: transparent;
}

/* Special hover style ONLY for .contact-us button */
.hero-section .hero-details .contact-us:hover {
    color: var(--white-color);
    background: var(--secondary-color);
    border-color: var(--white-color);
    background: transparent;
}


.hero-section .hero-image-wrapper {
    max-width: 500px;
    margin-right: 30px;
}


/* ABOUT SECTION STYLING */
.about-section {
    padding: 80px 20px;
    background: var(--light-pink-color);
    color: var(--dark-color);
    border: 2px solid;
}

.about-section .section-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-description {
    font-size: var(--font-size-n);
    line-height: 1.6;
    margin-bottom: 16px;
}

.about-image-wrapper {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.about-image {
    max-width: 100%;
    border-radius: var(--border-radius-s);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/*VOTE SECTON STYLING*/

.vote-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  color: #222;
  text-align: center;
  border: 2px solid;
}

.vote-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.vote-section label {
  font-size: 1.1rem;
  display: block;
  margin: 10px 0;
}

.vote-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #0077ff;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.vote-button:hover {
  background-color: #005edb;
}

.vote-result {
  margin-top: 20px;
  font-weight: bold;
  color: green;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/*CANDIDATES SECTION STYLING*/

.candidate-section  {
    text-align: center;
    padding: 80px 20px;
    background: var(--light-pink-color);
    color: var(--dark-color);
    border: 2px solid;
}

.headc {
    margin-bottom: 20px;
    
}

.candidate-section .candidate-container .candidate-card-1 {
    border: 2px solid;
    text-align: center;
    border-radius: 10px;
}

.candidate-section .candidate-container .candidate-card-2 {
    border: 2px solid;
    text-align: center;
    border-radius: 10px;
}

.candidate-section .candidate-container .candidate-card-3 {
    border: 2px solid;
    text-align: center;
    border-radius: 10px;
}

.candidate-section .candidate-container .candidate-card-4 {
    border: 2px solid;
    text-align: center;
    border-radius: 10px;
}

html {
    scroll-behavior: smooth;
}

.contact-section {
  background-color: var(--light-pink-color);
  padding: 100px 20px;
  text-align: center;
  border: 2px solid;
}

.contact-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #222;
}

.contact-section p {
  font-size: 16px;
  margin-bottom: 30px;
  color: #555;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.contact-form button {
  padding: 12px 15px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #444;
}


/* Register Section Styling */
#register .form-container {
  max-width: 400px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#register label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

#register input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#register button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background-color: #5b1d1d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/*resposive media query code*/
@media screen and (max-width:900px) {
    :root {
        --font-size-m: clamp(1rem);
    --font-size-l: clamp(1.3rem);
    --font-size-xl: clamp(1.5rem);
    --font-size-xxl: clamp(1.8rem);
    }

    body.show-mobile-menu header::before {
        content: "";
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        backdrop-filter: blur(5px);
        background: rgb(0, 0, 0, 0.2);
        z-index: 4;
    }

    #menu-close-button,
    #menu-open-button {
        font-size: var(--font-size-l);
        display: block;
    }

    .navbar #menu-close-button {
        position: absolute;
        right: 30px;
        top: 30px;
    }

    .navbar #menu-open-button {
        color: var(--white-color);
        
    }
    .navbar .nav-menu {
        display: block;
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background: var(--white-color);
        transition: left 0.2s ease;
    }

    body.show-mobile-menu .navbar .nav-menu {
        left: 0;
    }

    .navbar .nav-menu .nav-link {
    color: var(--dark-color);  /* ✅ Default black */
    padding: 10px 18px;
    border-radius: var(--border-radius-m);
    font-size: var(--font-size-m);
    transition: 0.3s ease;
}

    .hero-section .section-content {
        gap: 50px;
        text-align: center;
        padding: 30px 20px 20px;
        flex-direction: column-reverse;
        justify-content: center;
    }

    .hero-section .hero-details :is(.subtitle,
    .description) {
        max-width: 100%;
    }

    .hero-section .hero-details .buttons {
        justify-content: center;
    }

    .hero-section .hero-image-wrapper {
        max-width: 270px;
        margin-right: 0;
    }

}