
  .search-box {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px;
    border-radius: 8px;
    max-width: 400px;
    margin: 20px auto;
  }

  .search-box i {
    margin-right: 10px;
    color: #555;
  }

  .search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
  }

  #searchResults {
    margin: 20px auto;
    max-width: 500px;
    color: #fff;
  }

  .result-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
  }








* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
}

header {
  background-color: #ffffff;
  padding: 15px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color:black;
}

#logoimg {
  height: 100px;
  width: 100px;
}

#textTrac {
  font-size: 30px;
  font-weight: bold;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 4px;
}

.search-box input {
  border: none;
  outline: none;
  margin-left: 8px;
  width: 180px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sign-up-btn {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.dark-mode-toggle {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #333;
}




:root {
    --primary: #00B8A9;
    --primary-light: #5CD6CC;
    --secondary: #2D4059;
    --accent1: #FF7043;
    --accent2: #5C6BC0;
    --accent3: #26A69A;
    --light: #F5F5F5;
    --dark: #333;
    --gray: #777;
    --success: #4CAF50;
    --warning: #FFC107;
    --danger: #F44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to right, #7aa6d2, #c4d8ed);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--primary);
    transition: all 0.3s ease;
}

header:hover {
    border-color: var(--accent1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    color: var(--secondary);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    font-size: 1rem;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Active link styling */
nav ul li a.active {
    color: var(--primary);
    font-weight: 600; /* Makes active link slightly bolder */
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%; /* Full width underline */
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

/* Optional: Add hover effect for non-active links */
nav ul li a:not(.active):hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 3px;
    transform: scaleX(0.8); /* Slightly smaller than active underline */
    transition: transform 0.2s ease;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f1f3f4;
    border-radius: 24px;
    padding: 8px 16px;
    width: 300px;
    transition: all 0.3s ease;
}

.search-box:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    padding: 5px;
    font-size: 0.95rem;
}

.sign-up-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.sign-up-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    background-image: url('./assets/BG_home.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    max-width: 600px;
}

.cta-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 8px;
}

.cta-button.primary {
    background-color: var(--primary);
    color: white;
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cta-button.primary:hover {
    background-color: var(--primary-light);
}

.cta-button.secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

.promo-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.promo-text i {
    font-size: 1.3rem;
    color: var(--primary-light);
}

/* Services Section */
.services {
    padding: 5rem 0;
    position: relative;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gray);
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    color: white;
    font-size: 2.5rem;
}

.service-card:hover .service-icon {
    animation: float 2s ease-in-out infinite;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary);
    position: relative;
    z-index: 2;
}

.service-desc {
    color: var(--gray);
    font-size: 1rem;
    margin-top: 10px;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.service-wave {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: all 0.6s ease;
}

.service-card:hover .service-wave {
    opacity: 0.15;
    transform: scale(2);
}

/* Dashboard Section */
.dashboard {
    padding: 5rem 0;
    background-color: white;
}

.dashboard-stats-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 1px;
    background-color: rgba(0,0,0,0.1);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stat-title {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

.dashboard-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-bar {
    display: flex;
    margin-bottom: 20px;
    flex-grow: 1;
    max-width: 500px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,184,169,0.2);
}

.search-bar button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    background-color: var(--primary-light);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.train-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.train-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.train-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.train-card[data-status="delayed"]::before {
    background-color: var(--warning);
}

.train-card[data-status="cancelled"]::before {
    background-color: var(--danger);
}

.train-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.train-number {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary);
}

.train-route {
    margin: 15px 0;
}

.route-stations {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--secondary);
}

.route-arrow {
    text-align: center;
    color: var(--primary);
    margin: 5px 0;
    font-size: 1.2rem;
}

.train-timing {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.timing-box {
    text-align: center;
    flex: 1;
}

.timing-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.timing-value {
    font-weight: 600;
    margin-top: 5px;
    color: var(--dark);
}

.train-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    gap: 5px;
}

.status-on-time {
    background-color: rgba(52, 168, 83, 0.1);
    color: var(--success);
}

.status-delayed {
    background-color: rgba(251, 188, 5, 0.1);
    color: var(--warning);
}

.status-cancelled {
    background-color: rgba(234, 67, 53, 0.1);
    color: var(--danger);
}

.btn-details {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-details:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Map container */
#map {
    height: 400px;
    border-radius: 8px;
    margin-top: 20px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    border: 1px solid #ddd;
    overflow: hidden;
    position: relative;
}

#map::before {
    content: 'Interactive Train Map';
    position: absolute;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Delay Forecast Section */
.delay-forecast {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.container1 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section1 {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    padding: 25px;
    transition: all 0.3s ease;
}

.section1:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.section1-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section1-title i {
    color: var(--primary);
}

.delay-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.delay-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.route {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.route i {
    font-size: 0.9rem;
    color: var(--primary);
}

.on-time {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.high-percentage {
    color: var(--success);
}

.medium-percentage {
    color: var(--warning);
}

.low-percentage {
    color: var(--danger);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

select, input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

select:focus, input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,184,169,0.2);
}

.search-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Destinations Section */
.destinations {
    padding: 5rem 0;
    background-color: white;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.destination-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s ease;
    height: 300px;
}

.destination-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.destination-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .destination-img {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.destination-card:hover .destination-overlay {
    transform: translateY(0);
}

.destination-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.destination-overlay p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.book-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.book-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-column p {
    margin-bottom: 15px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes wave {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-stats-horizontal {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .stat-item::after {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .search-box {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: auto;
        padding: 100px 0;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-container {
        justify-content: center;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .footer-column {
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-item {
        flex: 0 0 100%;
    }
    
    .destination-card {
        height: 250px;
    }
    
    .footer-column {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Vibrant Dark Mode Variables */
:root {
    --dark-bg: #0f0e17;         /* Deep navy blue */
    --dark-card: #1a1a2e;       /* Slightly lighter navy */
    --dark-text: #fffffe;       /* Bright white for text */
    --dark-primary: #7f5af0;    /* Vibrant purple */
    --dark-primary-light: #a78bfa; /* Lighter purple */
    --dark-secondary: #2cb67d;  /* Teal green */
    --dark-accent1: #ff8ba7;    /* Pink accent */
    --dark-accent2: #ff8906;    /* Orange accent */
    --dark-accent3: #f9bc60;    /* Gold accent */
    --dark-border: #332940;     /* Purple-tinged border */
    --dark-hover: #242438;      /* Hover state color */
  }

  /* Vibrant Dark Mode Toggle */
.theme-toggle-container {
    margin-left: 20px;
    display: flex;
    align-items: center;
  }
  
  .dark-mode-toggle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent1) 100%);
    border: none;
    border-radius: 50px;
    width: 50px;
    height: 26px;
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(127, 90, 240, 0.3);
  }
  .dark-mode .logo{
    color:white;
  }
  .dark-mode-toggle .toggle-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: white;
  }
  
  .dark-mode-toggle .moon {
    left: 4px;
    opacity: 1;
    transform: rotate(0deg);
  }
  
  .dark-mode-toggle .sun {
    right: 4px;
    opacity: 0;
    transform: rotate(90deg);
  }
  
  /* Dark mode state */
  body.dark-mode .dark-mode-toggle {
    background: linear-gradient(135deg, var(--dark-accent2) 0%, var(--dark-accent3) 100%);
  }
  
  body.dark-mode .dark-mode-toggle .moon {
    opacity: 0;
    transform: rotate(-90deg);
  }
  
  body.dark-mode .dark-mode-toggle .sun {
    opacity: 1;
    transform: rotate(0deg);
  }

  /* Vibrant Dark Mode Base */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark-mode header {
  background-color: var(--dark-card);
  box-shadow: 0 2px 20px rgba(15, 14, 23, 0.5);
}

body.dark-mode .logo-text {
  color: var(--dark-text);
}

body.dark-mode nav ul li a {
  color: var(--dark-text);
}

body.dark-mode nav ul li a:hover,
body.dark-mode nav ul li a.active {
  color: var(--dark-primary);
  text-shadow: 0 0 8px rgba(127, 90, 240, 0.4);
}

body.dark-mode .search-box {
  background-color: var(--dark-card);
  border: 2px solid var(--dark-border);
}

body.dark-mode .search-box input {
  color: var(--dark-text);
}

body.dark-mode .search-box i {
  color: var(--dark-primary);
}

body.dark-mode .sign-up-btn {
  background-color: var(--dark-primary);
  color: var(--dark-text);
  box-shadow: 0 4px 15px rgba(127, 90, 240, 0.3);
}


body.dark-mode .hero {
    background-image: url('./assets/BG_home.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
  
  body.dark-mode .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  }
  
  /* Adjust text colors for better visibility on dark background */
  body.dark-mode .hero-title {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  }
  
  body.dark-mode .hero-subtitle {
    color: var(--dark-primary-light);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  }
  
  body.dark-mode .hero-text {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  body.dark-mode .cta-button.primary {
    background-color: var(--dark-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(127, 90, 240, 0.5);
  }
  
  body.dark-mode .cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
  }
  
  body.dark-mode .cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  body.dark-mode .promo-text {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    backdrop-filter: blur(5px);
  }

  .hero {
    transition: background-image 0.5s ease;
  }

  @media (max-width: 768px) {
    .hero {
      background-attachment: scroll;
    }
  }


/* Cards & Services */
body.dark-mode .service-card,
body.dark-mode .train-card,
body.dark-mode .card,
body.dark-mode .section1 {
  background-color: var(--dark-card);
  border: 1px solid var(--dark-border);
  box-shadow: 0 5px 15px rgba(15, 14, 23, 0.5);
}

body.dark-mode .service-card:hover,
body.dark-mode .train-card:hover,
body.dark-mode .destination-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(127, 90, 240, 0.2);
  background-color: var(--dark-hover);
}

/* Status Pills */
body.dark-mode .status-pill {
  color: #121212;
  font-weight: 600;
}

body.dark-mode .status-on-time {
  background-color: var(--dark-secondary);
}

body.dark-mode .status-delayed {
  background-color: var(--dark-accent2);
}

body.dark-mode .status-cancelled {
  background-color: var(--dark-accent1);
}

/* Buttons */
body.dark-mode .btn-details {
  background-color: var(--dark-primary);
  color: var(--dark-text);
}

body.dark-mode .search-btn {
  background-color: var(--dark-primary);
  color: var(--dark-text);
}

/* Footer */
body.dark-mode footer {
  background-color: var(--dark-card);
  border-top: 1px solid var(--dark-border);
}

body.dark-mode .footer-column h3 {
  color: var(--dark-primary-light);
}

body.dark-mode .social-links a {
  color: var(--dark-text);
}

body.dark-mode .social-links a:hover {
  color: var(--dark-primary);
  transform: translateY(-3px);
}


/* Dark mode styles for destinations section */
body.dark-mode .destinations {
    background-color: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
  }
  
  body.dark-mode .destination-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  body.dark-mode .destination-overlay {
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, transparent 100%);
  }
  
  body.dark-mode .destination-overlay h3 {
    color: var(--dark-primary-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  body.dark-mode .destination-overlay p {
    color: #d1d5db;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  body.dark-mode .book-btn {
    background-color: var(--dark-primary);
    box-shadow: 0 2px 10px rgba(127, 90, 240, 0.3);
  }




/* Dark mode styles for form inputs */
body.dark-mode select,
body.dark-mode input[type="text"],
body.dark-mode input[type="date"] {
  background-color: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--dark-text);
}

body.dark-mode select:focus,
body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="date"]:focus {
  border-color: var(--dark-primary);
  box-shadow: 0 0 0 2px rgba(127, 90, 240, 0.3);
  outline: none;
}

body.dark-mode .search-btn {
  background-color: var(--dark-primary);
  color: var(--dark-text);
}

body.dark-mode .search-btn:hover {
  background-color: var(--dark-primary-light);
}

/* Style the select dropdown arrow in dark mode */
body.dark-mode select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8c2cc'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
}


/* Additional dark mode improvements */
body.dark-mode .delay-forecast {
    background-color: var(--dark-bg);
  }
  
  body.dark-mode .section1 {
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
  }
  
  body.dark-mode .delay-item {
    border-bottom: 1px solid var(--dark-border);
  }
  
  body.dark-mode .route {
    color: var(--dark-primary-light);
  }
  
  body.dark-mode .on-time {
    font-weight: 500;
  }
  
  body.dark-mode .high-percentage {
    color: var(--dark-secondary);
  }
  
  body.dark-mode .medium-percentage {
    color: var(--dark-accent3);
  }
  
  body.dark-mode .low-percentage {
    color: var(--dark-accent1);
  }


  :root {
    /* ... your existing variables ... */
    
    /* Vibrant Dark Mode Variables */
    --dark-bg: #0f0e17;         /* Deep navy blue */
    --dark-card: #1a1a2e;       /* Slightly lighter navy */
    --dark-text: #fffffe;       /* Bright white for text */
    --dark-primary: #7f5af0;    /* Vibrant purple */
    --dark-primary-light: #a78bfa; /* Lighter purple */
    --dark-secondary: #2cb67d;  /* Teal green */
    --dark-accent1: #ff8ba7;    /* Pink accent */
    --dark-accent2: #ff8906;    /* Orange accent */
    --dark-accent3: #f9bc60;    /* Gold accent */
    --dark-border: #332940;     /* Purple-tinged border */
    --dark-hover: #242438;      /* Hover state color */
  }


/* ------------------ */
/* Theme Toggle Container */
.theme-toggle-container {
    margin-left: 20px;
    display: flex;
    align-items: center;
  }
  
  /* Toggle Button Base */
  .dark-mode-toggle {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
  }
  
  /* Toggle Icon Container */
  .toggle-icon {
    position: relative;
    width: 24px;
    height: 24px;
  }
  
  /* Individual Icons */
  .light-icon,
  .dark-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
  }
  
  /* Light Mode (default) - Show Moon */
  .light-icon {
    opacity: 1;
    transform: rotate(0deg);
    color: var(--primary); /* Your primary color */
  }
  
  .dark-icon {
    opacity: 0;
    transform: rotate(-90deg);
    color: #ffc107; /* Yellow for sun */
  }
  
  /* Dark Mode - Show Sun */
  body.dark-mode .light-icon {
    opacity: 0;
    transform: rotate(90deg);
  }
  
  body.dark-mode .dark-icon {
    opacity: 1;
    transform: rotate(0deg);
  }
  
  /* Button Hover Effects */
  .dark-mode-toggle:hover {
    background: rgba(127, 90, 240, 0.1); /* Primary color with 10% opacity */
  }
  
  body.dark-mode .dark-mode-toggle:hover {
    background: rgba(255, 193, 7, 0.1); /* Sun color with 10% opacity */
  }
  
  /* Button Animation */
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
  
  .dark-mode-toggle:active {
    animation: pulse 0.3s ease;
  }

  /* Ensure text visibility in dark mode */
body.dark-mode {
  color: #fffffe; /* Bright white for text */
}

body.dark-mode .section-title,
body.dark-mode .section-subtitle,
body.dark-mode .service-title,
body.dark-mode .service-desc,
body.dark-mode .train-number,
body.dark-mode .route-stations span,
body.dark-mode .timing-label,
body.dark-mode .timing-value,
body.dark-mode .card-title,
body.dark-mode .section1-title,
body.dark-mode .route,
body.dark-mode .on-time,
body.dark-mode label,
body.dark-mode .destination-overlay p,
body.dark-mode .footer-column p,
body.dark-mode .footer-column ul li a,
body.dark-mode .copyright {
  color: #fffffe !important;
}

/* Special cases for colored text that should remain colored */
body.dark-mode .promo-text,
body.dark-mode .status-pill,
body.dark-mode .hero-title,
body.dark-mode .footer-column h3,
body.dark-mode .destination-overlay h3 {
  /* These will keep their special colors */
}

/* Dark mode adjustments for Services and Dashboard sections */
body.dark-mode .services {
    background-color: var(--dark-bg);
  }
  
  body.dark-mode .dashboard {
    background-color: var(--dark-bg);
  }
  
  body.dark-mode .section-title {
    color: var(--dark-primary-light) !important;
  }
  
  body.dark-mode .section-subtitle {
    color: #b8c2cc !important; /* Lighter gray for better visibility */
  }
  
  body.dark-mode .service-card {
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
  }
  
  body.dark-mode .service-title {
    color: var(--dark-primary-light) !important;
  }
  
  body.dark-mode .service-desc {
    color: #b8c2cc !important; /* Lighter gray for better visibility */
  }
  
  body.dark-mode .dashboard-stats-horizontal {
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
  }
  
  body.dark-mode .stat-title {
    color: #b8c2cc !important;
  }
  
  body.dark-mode .filter-btn {
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
  }
  
  body.dark-mode .filter-btn.active {
    background-color: var(--dark-primary);
    color: var(--dark-text);
  }
  
  body.dark-mode .filter-btn:hover {
    border-color: var(--dark-primary);
    color: var(--dark-primary);
  }
  
  body.dark-mode .search-bar input {
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
  }
  
  body.dark-mode .train-card {
    background-color: var(--dark-card);
    border-left-color: var(--dark-primary);
  }
  
  body.dark-mode .train-number,
  body.dark-mode .route-stations span,
  body.dark-mode .timing-value {
    color: var(--dark-text) !important;
  }
  
  body.dark-mode .train-header,
  body.dark-mode .train-footer {
    border-color: var(--dark-border) !important;
  }
  
  body.dark-mode .btn-details {
    background-color: var(--dark-primary);
  }
  
  /* Make sure all text is visible in cards */
  body.dark-mode .timing-label,
  body.dark-mode .route-arrow {
    color: #b8c2cc !important;
  }
  
  /* Make the map placeholder text visible */
  body.dark-mode #map::before {
    color: var(--dark-text);
  }


  /* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sign Up Button */
.sign-up-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    white-space: nowrap;
}

.sign-up-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Dark Mode Toggle */
.theme-toggle-container {
    margin-left: 0;
}

.dark-mode-toggle {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: rgba(127, 90, 240, 0.1);
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(255, 193, 7, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-actions {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        margin-top: 15px;
    }
    
    .search-box {
        order: 4;
        width: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .header-actions {
        justify-content: space-between;
    }
    
    .sign-up-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}