:root {
  --primary-blue: #0891b2;
  --secondary-blue: #0e7490;
  --accent-blue: #06b6d4;
  --light-blue: #e0f7fa;
  --dark-blue: #164e63;
  --dark-gray: #1f2937;
  --light-gray: #f8fafc;
  --text-gray: #4b5563;
  --text-dark: #111827;
  --white: #ffffff;
  --footer-bg: #1e3a8a;
  --gradient-start: #0891b2;
  --gradient-end: #164e63;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.navbar {
  background: #ffffff !important;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-brand {
  text-decoration: none;
}

.navbar .brand-logo {
  display: flex;
  align-items: center;
}

.navbar .logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.navbar .brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-blue) !important;
  letter-spacing: 0.5px;
}

.navbar .navbar-brand:hover .brand-text {
  color: var(--secondary-blue) !important;
}

.navbar .nav-link {
  font-weight: 600;
  color: var(--text-dark) !important;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin: 0 1rem;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary-blue) !important;
  background-color: rgba(8, 145, 178, 0.1) !important;
}

.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.btn-login {
  background: linear-gradient(135deg, #00bcd4, #0097a7) !important;
  color: white !important;
  border: none !important;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-login:hover {
  background: linear-gradient(135deg, #0097a7, #00838f) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:active {
  transform: translateY(-1px) scale(1.02);
}

.hero-section {
  background: linear-gradient(rgba(0, 188, 212, 0.1), rgba(0, 151, 167, 0.1)), url('../images/bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  min-height: 100vh;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 249, 255, 0.9) 50%, rgba(255, 255, 255, 0.85) 100%);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 2rem 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
  animation: fadeInUp 0.8s ease-out;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-gray);
  animation: fadeInUp 0.8s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-buttons {
  animation: fadeInUp 0.8s ease-out 0.4s;
  animation-fill-mode: both;
}

.btn-login-hero {
  background: linear-gradient(135deg, #00bcd4, #0097a7) !important;
  color: white !important;
  border: none !important;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-login-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-login-hero:hover {
  background: linear-gradient(135deg, #0097a7, #00838f) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
}

.btn-login-hero:hover::before {
  left: 100%;
}

.btn-learn-more {
  background: transparent !important;
  color: #2d3748 !important;
  border: 2px solid #2d3748 !important;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-learn-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #2d3748;
  transition: left 0.3s;
  z-index: -1;
}

.btn-learn-more:hover {
  color: white !important;
  border-color: #2d3748 !important;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px rgba(45, 55, 72, 0.4);
}

.btn-learn-more:hover::before {
  left: 0;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features-section {
  background: linear-gradient(rgba(0, 188, 212, 0.05), rgba(0, 151, 167, 0.05)), url('../images/bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 6rem 0 5rem 0;
  margin-top: -2rem;
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 50%, rgba(248, 250, 252, 0.95) 100%);
  z-index: 0;
}

.features-section .container {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #e2e8f0;
  animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon.consumption {
  background: #fef5e7;
}

.feature-icon.consumption i {
  color: #f6ad55;
  font-size: 2rem;
}

.feature-icon.billing {
  background: var(--light-blue);
}

.feature-icon.billing i {
  color: var(--primary-blue);
  font-size: 2rem;
}

.feature-icon.payments {
  background: #f0fff4;
}

.feature-icon.payments i {
  color: #48bb78;
  font-size: 2rem;
}

.feature-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.about-section {
  background: linear-gradient(rgba(0, 188, 212, 0.03), rgba(0, 151, 167, 0.03)), url('../images/bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.97) 0%, rgba(226, 232, 240, 0.97) 50%, rgba(248, 250, 252, 0.97) 100%);
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-content .lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary-blue);
}

.about-content .about-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-gray);
}

.mission-vision h3 {
  color: var(--dark-gray);
  font-weight: 600;
  margin-bottom: 1rem;
}

.mission-vision p {
  color: var(--text-gray);
  line-height: 1.6;
}

.footer-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
  color: white;
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(8, 145, 178, 0.1), rgba(6, 182, 212, 0.1));
  z-index: 0;
}

.footer-section .container {
  position: relative;
  z-index: 1;
}

.footer-section h4,
.footer-section h5,
.footer-section h6 {
  color: white;
  font-weight: 600;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.footer-description {
  color: #cbd5e0;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #0d8aa8;
  transform: translateY(-2px);
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-blue);
}

.contact-info {
  color: #cbd5e0;
  line-height: 1.6;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.opening-hours h6 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.opening-hours p {
  color: #cbd5e0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-divider {
  border-color: #4a5568;
  margin: 2rem 0 1rem;
}

.footer-copyright,
.footer-developer {
  color: #cbd5e0;
  font-size: 0.9rem;
}

.footer-copyright a,
.footer-developer a {
  color: var(--primary-blue);
  text-decoration: none;
}

.footer-copyright a:hover,
.footer-developer a:hover {
  text-decoration: underline;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.6);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-card {
    margin-bottom: 2rem;
  }

  /* Mobile navbar fixes */
  .navbar .brand-text {
    font-size: 0.85rem;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar .logo-img {
    width: 28px;
    height: 28px;
  }

  .navbar .nav-link {
    margin: 0;
    padding: 0.75rem 1rem !important;
    text-align: center;
  }

  .navbar .btn-login {
    margin: 0.5rem auto;
    display: block;
    width: fit-content;
  }

  /* Hero section mobile */
  .hero-section {
    padding-top: 80px;
    min-height: auto;
  }

  .hero-content {
    text-align: center;
    padding: 1.5rem 0;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .btn-login-hero,
  .btn-learn-more {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .hero-image {
    margin-top: 2rem;
  }

  /* Footer mobile */
  .footer-section .col-lg-4 {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-copyright,
  .footer-developer {
    text-align: center !important;
  }
}

/* Mobile Navigation Fix - Ensure all menu items visible */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #fff;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
    margin: 0.25rem 0;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    border-radius: 6px;
    display: block;
    width: 100%;
  }

  .navbar-nav .nav-item.ms-3 {
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }

  .navbar-nav .btn-login {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .navbar .brand-text {
    font-size: 0.6rem;
    max-width: none;
    white-space: normal;
    line-height: 1.2;
    word-wrap: break-word;
    display: block;
  }

  .navbar .brand-logo {
    flex-wrap: nowrap;
    max-width: calc(100vw - 100px);
    align-items: center;
  }

  .navbar .logo-img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .btn-login-hero,
  .btn-learn-more {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .about-content .lead {
    font-size: 1.1rem;
  }

  .about-content .about-description {
    font-size: 1rem;
  }
}