/* styles.css */
:root {
  --primary-color: #e53935; /* Red */
  --secondary-color: #4a90e2; /* Blue */
  --tertiary-color: #ffb300; /* Amber/Yellow */
  --quaternary-color: #388e3c; /* Green */
  --dark-color: #333;
  --darker-grey: #2c2c2c; /* For slider background */
  --light-color: #f8f9fa;
  --white-color: #fff;
  --grey-color: #f1f1f1;
  --text-color: #333;
  --text-light: #555;
  --border-color: #e0e0e0;
  --shadow-light: 0 4px 10px rgba(0,0,0,0.08);
  --shadow-medium: 0 6px 15px rgba(0,0,0,0.12);
  --modal-overlay-color: rgba(0, 0, 0, 0.6);
}

/* --- Base Styles --- */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: var(--white-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* --- Header Styles --- */
header {
  background-color: var(--white-color);
  padding: 15px 0;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
}

.logo {
  height: 60px; /* Adjusted logo size */
  vertical-align: middle;
  max-width: 100%;
}

/* --- Menu Toggle Button (Hamburger) --- */
.menu-toggle {
  display: none; /* Hidden by default */
  background: none; border: none; cursor: pointer;
  padding: 10px; margin-left: auto; z-index: 1050;
}
.menu-toggle .bar {
  display: block; width: 25px; height: 3px;
  background-color: var(--dark-color); margin: 5px 0;
  transition: all 0.3s ease-in-out;
}
.menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Navigation Styles (Desktop Default) --- */
nav#main-nav {
   /* Ensure it's visible by default on desktop */
   display: block;
}
nav#main-nav ul {
  list-style: none; display: flex; align-items: center;
  padding: 0; margin: 0; gap: 25px; flex-wrap: wrap;
}
nav#main-nav ul li a {
  text-decoration: none; color: var(--text-color); font-weight: 500;
  padding: 8px 4px; transition: color 0.3s ease; display: block;
}
nav#main-nav ul li a:hover,
nav#main-nav ul li a:focus { color: var(--primary-color); }

/* Style for Login Button in Nav */
.btn-nav-login {
  padding: 6px 18px; font-size: 0.9em; background-color: var(--primary-color);
  color: var(--white-color); border-radius: 20px; text-decoration: none;
  font-weight: 500; transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border: none; cursor: pointer;
}
.btn-nav-login:hover,
.btn-nav-login:focus {
  background-color: #c62828; color: var(--white-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- Hero Slider Section --- */
.hero-slider-section {
  padding: 0; width: 100%; height: 65vh; min-height: 400px;
  position: relative; overflow: hidden;
}
.hero-slider { width: 100%; height: 100%; }
.swiper-slide {
  text-align: center; font-size: 18px; background-color: var(--darker-grey);
  background-size: contain; background-position: center; background-repeat: no-repeat;
  display: flex; justify-content: center; align-items: center;
  position: relative; color: var(--white-color);
}
/* Ensure .png extensions and files exist */
.slide-1 { background-image: url('images/hero-bg.png'); }
.slide-2 { background-image: url('images/aeps-banner.png'); }
.slide-3 { background-image: url('images/recharge-banner.png'); }

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.55); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); }
.hero-content h1 { font-size: 3em; margin-bottom: 15px; font-weight: 700; }
.hero-content p { font-size: 1.2em; margin-bottom: 30px; font-weight: 400; }
.swiper-button-prev, .swiper-button-next { color: var(--white-color); background-color: rgba(0, 0, 0, 0.3); border-radius: 50%; width: 44px; height: 44px; transition: background-color 0.3s ease; --swiper-navigation-size: 24px; }
.swiper-button-prev:hover, .swiper-button-next:hover { background-color: rgba(0, 0, 0, 0.5); }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1.2rem; font-weight: bold; }
.swiper-pagination-bullet { background-color: rgba(255, 255, 255, 0.6); opacity: 1; width: 10px; height: 10px; transition: background-color 0.3s ease, transform 0.3s ease; }
.swiper-pagination-bullet-active { background-color: var(--white-color); transform: scale(1.2); }

/* --- General Button Styles --- */
.btn { display: inline-block; padding: 12px 35px; text-decoration: none; border-radius: 30px; font-weight: bold; transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; cursor: pointer; border: none; font-size: 1em; text-align: center; }
.btn-primary { background-color: var(--primary-color); color: var(--white-color); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.btn-primary:hover, .btn-primary:focus { background-color: #c62828; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }
.btn-secondary { background-color: var(--secondary-color); color: var(--white-color); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.btn-secondary:hover, .btn-secondary:focus { background-color: #3a7ac2; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

/* --- Section Base Styles --- */
section { padding: 70px 0; }
section:first-of-type { padding-top: 0; }
section h2 { text-align: center; font-size: 2.4em; margin-bottom: 50px; font-weight: 700; color: var(--dark-color); }
.section-title-alt { text-align: center; font-size: 2.4em; margin-bottom: 50px; font-weight: 700; color: var(--primary-color); position: relative; padding-bottom: 15px; }
.section-title-alt::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--secondary-color); border-radius: 2px; }

/* --- Features (Services) Section --- */
.features { background-color: var(--light-color); }
.feature-grid { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.feature { flex: 1 1 320px; max-width: 360px; background: var(--white-color); padding: 0; border-radius: 12px; box-shadow: var(--shadow-light); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; overflow: hidden; display: flex; flex-direction: column; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.feature-image-container {
  width: 100%; height: 250px; background-size: contain;
  background-position: center center; background-repeat: no-repeat;
  background-color: var(--grey-color); border-bottom: 1px solid var(--border-color);
}
.feature-text-content { padding: 15px 20px 20px 20px; flex-grow: 1; }
.feature h3 { margin: 0 0 8px 0; font-size: 1.4em; color: var(--primary-color); }
.feature p { margin: 0; color: var(--text-light); font-size: 0.9em; line-height: 1.5; }

/* --- "Why Choose Us" Section --- */
.why-us { background-color: var(--white-color); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 35px; }
.benefit { background-color: var(--white-color); padding: 30px 25px; border-radius: 10px; box-shadow: var(--shadow-light); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; border-top: 4px solid transparent; }
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.benefit-icon-wrapper { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 25px auto; display: flex; justify-content: center; align-items: center; color: var(--white-color); font-size: 2.2em; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.benefit:nth-child(1) { border-top-color: var(--secondary-color); } .benefit-icon-wrapper.icon-secure { background-color: var(--secondary-color); }
.benefit:nth-child(2) { border-top-color: var(--primary-color); } .benefit-icon-wrapper.icon-fast { background-color: var(--primary-color); }
.benefit:nth-child(3) { border-top-color: var(--tertiary-color); } .benefit-icon-wrapper.icon-retailer { background-color: var(--tertiary-color); }
.benefit:nth-child(4) { border-top-color: var(--quaternary-color); } .benefit-icon-wrapper.icon-easy { background-color: var(--quaternary-color); }
.benefit h3 { font-size: 1.35em; margin-bottom: 10px; color: var(--dark-color); }
.benefit p { font-size: 0.95em; color: var(--text-light); line-height: 1.5; }

/* --- About Section --- */
.about { background-color: var(--light-color); }
.about p { max-width: 800px; margin: 0 auto; font-size: 1.1em; text-align: center; line-height: 1.7; }

/* --- Contact Section --- */
.contact-section { background-color: var(--light-color); padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: stretch; }
.contact-details { background-color: var(--secondary-color); color: var(--white-color); padding: 35px 30px; border-radius: 10px; box-shadow: var(--shadow-medium); }
.contact-details .contact-heading { font-size: 1.4em; margin-top: 0; margin-bottom: 10px; color: var(--white-color); display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 8px; }
.contact-details .contact-heading:not(:first-of-type) { margin-top: 25px; }
.contact-details .icon-left { margin-right: 12px; font-size: 1.1em; width: 20px; text-align: center; }
.contact-details p { margin-bottom: 0; margin-left: 32px; line-height: 1.6; font-size: 0.95em; }
.contact-details a { color: var(--white-color); text-decoration: underline; transition: opacity 0.3s ease; }
.contact-details a:hover, .contact-details a:focus { opacity: 0.8; text-decoration: none; }
.contact-map-container { background-color: var(--white-color); padding: 15px; border-radius: 10px; box-shadow: var(--shadow-medium); min-height: 400px; display: flex; }
.contact-map-container iframe { width: 100%; height: 100%; min-height: 450px; border: 0; border-radius: 6px; }

/* --- Footer Styles --- */
footer { background-color: var(--dark-color); color: #ccc; padding: 30px 0; text-align: center; margin-top: 0; font-size: 0.9em; }
footer p { line-height: 1.7; margin: 0; }
footer a { color: var(--white-color); text-decoration: none; margin: 0 8px; transition: color 0.3s ease; }
footer a:hover, footer a:focus { color: var(--secondary-color); }

/* --- Login Modal Styles --- */
.modal { display: none; position: fixed; z-index: 1100; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: var(--modal-overlay-color); align-items: center; justify-content: center; }
.modal-content { background-color: var(--white-color); margin: auto; padding: 30px 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); width: 90%; max-width: 400px; position: relative; animation: slideDown 0.4s ease-out; }
@keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-button { color: #aaa; position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; line-height: 1; cursor: pointer; border: none; background: transparent; padding: 0; }
.close-button:hover, .close-button:focus { color: var(--dark-color); text-decoration: none; }
.modal-content h2 { text-align: center; margin-top: 0; margin-bottom: 25px; color: var(--primary-color); }
.modal-content .form-group { margin-bottom: 18px; }
.modal-content label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9em; }
.modal-content input[type="text"], .modal-content input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 5px; box-sizing: border-box; font-size: 1em; }
.modal-content input[type="text"]:focus, .modal-content input[type="password"]:focus { border-color: var(--secondary-color); outline: none; box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2); }
.modal-login-btn { width: 100%; padding: 12px; font-size: 1.1em; margin-top: 10px; }
.modal-extra-links { text-align: center; margin-top: 20px; font-size: 0.9em; }
.modal-extra-links a { color: var(--secondary-color); text-decoration: none; margin: 0 5px; }
.modal-extra-links a:hover { text-decoration: underline; color: var(--primary-color); }


/* ===========================
   Mobile Responsiveness
   =========================== */

/* == Tablet & Menu Collapse Point == */
@media (max-width: 768px) {
  /* Logo size on smaller screens */
  .logo { height: 50px; }

  /* Show Hamburger */
  .menu-toggle { display: block; }

  /* Style Mobile Nav Container - Hide by default */
  nav#main-nav {
    order: 3;
    width: 100%;
    max-height: 0; /* Hidden state for transition */
    overflow: hidden;
    background-color: var(--white-color);
    transition: max-height 0.4s ease-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
     /* IMPORTANT: No display: none here; use max-height */
  }
  nav#main-nav.active {
    max-height: 500px; /* Or large enough value */
    padding: 10px 0; /* Apply padding only when active */
  }

  /* Style Mobile Nav List */
  nav#main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }
  nav#main-nav ul li { width: 100%; text-align: center; }
  nav#main-nav ul li a {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid var(--grey-color);
    width: 100%;
    box-sizing: border-box;
  }
  nav#main-nav ul li:last-child a { border-bottom: none; }
  nav#main-nav ul li a.btn-nav-login {
    display: inline-block; width: auto;
    margin: 10px auto; padding: 8px 25px;
  }

  /* --- Other Tablet Adjustments --- */
  .hero-slider-section { height: 60vh; min-height: 400px; }
  .hero-content h1 { font-size: 2.2em; }
  .hero-content p { font-size: 1.05em; }
  section { padding: 60px 0; }
  section:first-of-type { padding-top: 0; }
  section h2, .section-title-alt { font-size: 2em; margin-bottom: 40px; }
  .feature { flex-basis: calc(50% - 15px); max-width: none; }
  .feature-image-container { height: 220px; }
  .benefits-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
  .contact-grid { gap: 30px; }
  .contact-map-container iframe { min-height: 350px; }
}

/* == Mobile Phones == */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .logo { height: 45px; } /* Smaller logo */

  /* Header/Nav adjustments handled by 768px breakpoint */
  nav#main-nav ul li a.btn-nav-login { width: 80%; } /* Wider button */

  /* Hero adjustments */
  .hero-slider-section { height: 55vh; min-height: 350px; }
  .hero-content h1 { font-size: 1.9em; }
  .hero-content p { font-size: 1em; }
  .hero-content .btn { padding: 10px 25px; font-size: 0.95em; }
  .swiper-button-prev, .swiper-button-next { width: 36px; height: 36px; }
  .swiper-button-prev::after, .swiper-button-next::after { font-size: 1rem; }

  /* Section adjustments */
  section { padding: 50px 0; }
  section:first-of-type { padding-top: 0; }
  section h2, .section-title-alt { font-size: 1.8em; margin-bottom: 30px; }
  .section-title-alt::after { width: 60px; height: 3px; }

  /* Feature/Benefit adjustments */
  .feature-grid, .benefits-grid { gap: 20px; }
  .feature { flex-basis: 100%; }
  .feature-image-container { height: 200px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-icon-wrapper { width: 70px; height: 70px; font-size: 2em; margin-bottom: 20px; }

  /* Contact adjustments */
  .contact-grid { gap: 25px; }
  .contact-details, .contact-map-container { padding: 25px 20px; }
  .contact-map-container { padding: 10px; }
  .contact-map-container iframe { min-height: 300px; }

  /* Footer Fix */
  footer { padding: 25px 15px; font-size: 0.9em; }
  footer p {
    text-align: center;
    line-height: 1.8; /* Increased line height */
    /* Ensure no flex rules */
  }
  footer p a { margin: 0 5px; /* Adjust spacing slightly */ }

  /* Modal on mobile */
  .modal-content { padding: 25px 20px; }
}