:root {
  --primary-color: #003580;
  --secondary-color: #0071c2;
  --accent-color: #ffb700;
  --text-color: #333;
  --light-bg: #f4f4f4;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}
header {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
nav {
  max-width: 1200px;
  margin: 0 auto;
  margin-left:10px;
  display: flex;
  font-size: 18px;
  justify-content: space-between;
  align-items: center;
}
.logo-text{
  color:white;
  font-size: 35px;
  margin-top:13px;
}
.dot-com{
  color:#0071c2;
}
.logo {
  margin-top:7px;
  height:90px;
  width:90px;
  margin-left:20px;
  display:flex;
  font-size: 2rem;
}
.logo img {
  height: 70px;
}
.nav-links {
  margin-right:-220px;
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease-in;
}
.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a:hover::after {
  width: 100%;
}
footer {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  margin-top: auto;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.footer-section h3 {
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: white;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-color);
}
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  font-size: 1.5rem;
}
.hero {
  height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
  font-size:40px;
}
.search-box {
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}
.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.search-form input,
.search-form select,
.search-form button {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
}
.search-form button {
  background: var(--accent-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.search-form button:hover {
  background: #ff9900;
}
.card-grid {
  max-width: 1200px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}
.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 1.5rem;
}
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .logo {
    margin-bottom: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  .hero-content {
    font-size: 2rem;
  }

  .front-pic {
    font-size: 2rem;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .card-content h3 {
    font-size: 1.2rem;
  }

  .card-content p {
    font-size: 0.9rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h3 {
    font-size: 1.2rem;
  }

  .social-icons {
    justify-content: center;
  }
}
.logo12{
  width:70px;
  background-size: cover;
}
.front_pic{
  font-size: 200px;
}
.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.2); 
}
.social-icons a:hover.acebook {
  color: #1877f2; 
  text-shadow: 0 0 10px rgba(24, 119, 242, 0.5); 
}

.social-icons a:hover.titter {
  color: #1da1f2; 
  text-shadow: 0 0 10px rgba(29, 161, 242, 0.5);
}

.social-icons a:hover.istagram {
  color: #e4405f; 
  text-shadow: 0 0 10px rgba(228, 64, 95, 0.5);
}

.social-icons a:hover.inkedin {
  color: #0d4f92;
  text-shadow: 0 0 10px rgba(10, 102, 194, 0.5)
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.modal-content p {
  margin-bottom: 1.5rem;
  color: #333;
}

.modal-content button {
  padding: 0.75rem 1.5rem;
  background: #003580;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-content button:hover {
  background: #0071c2;
}

.heading1{
  margin-top:20px;
  align-items: center;
  font-size: 50px;
  display: flex;
  justify-content: center;
}
.train-details {
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #555;
}

.train-details p {
  margin: 0.5rem 0;
}

.book-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.75rem;
  background-color: #003580;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.3s;
}

.book-btn:hover {
  background-color:#0071c2;
}
.booking-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.booking-section h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-form h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-color);
}

.form-group input {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.book-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.book-btn:hover {
  background: var(--secondary-color);
}
/* Confirmation Section */
.confirmation-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.confirmation-section h1 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.confirmation-details {
  margin-bottom: 2rem;
}

.confirmation-details p {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: var(--text-color);
}

.book-btn {
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.book-btn:hover {
  background: var(--secondary-color);
}
/* Payment Page */
.payment-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* OTP Page */
.otp-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.otp-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
/* Success Page */
.success-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  text-align: center;
}

.success-animation {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #4caf50; /* Green background */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: scaleUp 0.5s ease-in-out;
}

.checkmark {
  width: 50px;
  height: 25px;
  margin-top:-5px;
  border-left: 5px solid white;
  border-bottom: 5px solid white;
  transform: rotate(-45deg);
  animation: drawCheckmark 0.5s ease-in-out;
}

@keyframes scaleUp {
  0% {
      transform: scale(0);
  }
  100% {
      transform: scale(1);
  }
}

@keyframes drawCheckmark {
  0% {
      height: 0;
      width: 0;
      opacity: 0;
  }
  50% {
      height: 0;
      width: 50px;
      opacity: 1;
  }
  100% {
      height: 25px;
      width: 50px;
      opacity: 1;
  }
}



.success-section p {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #333;
}

.book-button {
  margin-top: 2rem;
  padding: 1rem 2rem;
  background-color: #0071c2;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

