:root {
  --primary: #28a745;
  --dark: #2c3e50;
  --light: #e9ecef;
  --accent: #ff6b35;
  --text: #2d3436;
  --gray: #636e72;
  --border: #ced4da;
  --dark-bg: #2c3e50;
  --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
}

/* === TOP CONTACT BAR (DARK) === */
.top-contact-bar {
  background: var(--dark-bg);
  color: #ecf0f1;
  padding: 14px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #34495e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top-contact-bar a {
  color: #bdc3c7;
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.3s;
}

.top-contact-bar a:hover {
  color: var(--primary);
}

.top-contact-bar .social-icons a {
  font-size: 1.1rem;
  margin: 0 8px;
}

@media (max-width: 768px) {
  .top-contact-bar .text-end {
    text-align: center !important;
    margin-top: 8px;
  }
  .top-contact-bar a {
    margin: 0 6px;
    font-size: 0.85rem;
  }
}

/* === REVISED NAVBAR WITH LOGO & DROPDOWN === */
.navbar-3d {
  position: relative; 
  background-color: #dbd6d6;
  border-bottom: 2px solid #e0e0e0;
  padding: 10px 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 1000;
}

.navbar-brand {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--primary) !important;
  text-decoration: none;
}

.navbar-brand img {
  height: 99px;
  width: auto;
  display: block;
  margin-right: 10px;
  transition: transform 0.3s;
}

.navbar-brand:hover img {
  transform: scale(1.1);
}

.navbar-3d .nav-link {
  color: var(--text) !important;
  font-weight: 600;
  margin: 0 15px; 
  position: relative;
  transition: all 0.3s;
}

/* === RESPONSIVE LOGO SIZE INCREASE (MOBILE ONLY) === */
@media (max-width: 992px) {
  .navbar-brand {
    position: static;
    transform: none;
  }
  
  .navbar-brand img {
    height: 100px; /* Increased from 70px */
    width: auto;
  }    
}

@media (max-width: 768px) {
  .navbar-brand img {
    height: 100px; /* Increased from 36px */
    width: auto;
  }
}

/* Dropdown */
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 200px;
}

.dropdown-item {
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.dropdown-item:hover {
  background: var(--primary);
  color: white;
}

#joinUsBtn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

#joinUsBtn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40,167,69,0.4);
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  perspective: 1000px;
  background: var(--light);
}

.slide-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.75) contrast(1.15);
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 15px;
  transform-style: preserve-3d;
}

.hero-text {
  max-width: 720px;
  transform: translateZ(80px);
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-text h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #f0f0f0;
}

.btn-3d {
  display: inline-block;
  padding: 14px 32px;
  margin: 0 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  transform: translateZ(30px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary-3d {
  background: linear-gradient(135deg, var(--primary), #218838);
  color: white;
  border: 2px solid var(--primary);
}

.btn-outline-3d {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-3d:hover {
  transform: translateY(-5px) translateZ(50px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.btn-3d::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.6s;
}

.btn-3d:hover::before { left: 100%; }

/* === SECTIONS === */
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px; left: 50%;
  width: 80px; height: 4px;
  background: var(--primary);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* About Us */
.about-section {
  padding: 100px 0;
  background: #e2e0e0;
}

.about-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  transform: translateZ(20px);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.about-img:hover img {
  transform: scale(1.05);
}

/* Ride Cards */
.ride-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s;
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.ride-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.ride-card img {
  height: 200px;
  object-fit: cover;
  transition: all 0.5s;
}

.ride-card:hover img {
  transform: scale(1.1);
}

.ride-card h4 {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary);
}

/* Why Ride With Us */
.why-ride {
  padding: 100px 0;
  background: #f8fafc;
}

.why-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(40,167,69,0.12);
  border-color: var(--primary);
}

.why-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* === MEET OUR TEAM === */
.team-section {
  padding: 60px 0;
  background: var(--light);
}

.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.team-img {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
  transform: scale(1.08);
}

.team-card h5 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.25rem 0 0.5rem;
}

.team-card p {
  color: var(--gray);
  font-size: 0.95rem;
  padding: 0 1rem 1.5rem;
  margin: 0;
  flex-grow: 1;
  line-height: 1.5;
}

/* Responsive Team */
@media (max-width: 992px) {
  .team-img { height: 250px; }
}
@media (max-width: 768px) {
  .team-section { padding: 50px 0; }
  .team-img { height: 220px; }
  .team-card h5 { font-size: 1.15rem; margin: 1rem 0 0.4rem; }
  .team-card p { font-size: 0.9rem; padding: 0 0.8rem 1.2rem; }
}
@media (max-width: 576px) {
  .team-img { height: 200px; }
  .team-card h5 { font-size: 1.1rem; }
  .team-card p { font-size: 0.85rem; }
}

/* === UPCOMING EVENTS & RACES === */
.events-section {
  padding: 100px 0;
  background: #f8fafc;
}

.event-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s;
  border: 1px solid var(--border);
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.event-img {
  height: 180px;
  overflow: hidden;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.event-card:hover .event-img img {
  transform: scale(1.1);
}

.event-date {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 12px 12px;
  display: inline-block;
  margin-bottom: 1rem;
}

.event-card .card-body {
  padding: 1.5rem;
}

.event-card h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.event-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.btn-event {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.btn-event:hover {
  background: var(--primary);
  color: white;
}

/* === MODAL === */
.modal-overlay {
  display: none;
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 2147483647 !important;
  padding: 20px;
}

.modal-overlay.active { display: flex !important; }

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border);
}

@keyframes popIn {
  from { transform: translateY(-50px) scale(0.9); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
  position: absolute; top: 15px; right: 15px; font-size: 1.5rem;
  color: #aaa; cursor: pointer; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #f1f1f1; transition: 0.3s;
}

.modal-close:hover { background: #ddd; color: #333; }

.registration-form h3 {
  font-family: 'Orbitron', sans-serif; color: var(--primary);
  text-align: center; margin-bottom: 1.5rem;
}

.form-group {
  position: relative; margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 12px 12px 40px; border: 2px solid #ddd;
  border-radius: 12px; font-size: 1rem; transition: all 0.3s;
  background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary); background: white; outline: none;
  box-shadow: 0 0 0 3px rgba(40,167,69,0.1);
}

.form-group label {
  position: absolute; top: 50%; left: 40px; transform: translateY(-50%);
  font-size: 0.95rem; color: #777; pointer-events: none; transition: all 0.3s;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  top: -10px; left: 12px; font-size: 0.75rem; background: white;
  padding: 0 6px; color: var(--primary); font-weight: 600;
}

.form-group i {
  position: absolute; top: 14px; left: 12px; color: var(--primary); font-size: 1.1rem;
}

.btn-full {
  background: var(--primary); color: white; border: none; padding: 12px;
  border-radius: 12px; font-weight: 600; font-size: 1rem; width: 100%;
  transition: all 0.3s;
}

.btn-full:hover {
  background: #218838; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40,167,69,0.3);
}

/* === FOOTER (DARK) === */
footer {
  background: var(--dark-bg);
  color: #ecf0f1;
  padding: 3rem 0 1rem;
  border-top: 1px solid #34495e;
}

footer a {
  color: #bdc3c7;
  text-decoration: none;
}

footer a:hover {
  color: var(--primary);
}

footer h5 {
  color: white;
  font-weight: 700;
}

footer hr {
  border-color: #34495e;
}

/* === MOBILE RESPONSIVE (GENERAL) === */
@media (max-width: 992px) {
  .hero-text h1 { font-size: 3.2rem; }
  .team-img { width: 130px; height: 130px; }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.8rem; }
  .hero-text p { font-size: 1.1rem; }
  .btn-3d { padding: 12px 20px; font-size: 0.9rem; margin: 5px; }
  .section-title { font-size: 2rem; }
  .about-img, .team-img { margin-top: 2rem; width: 400px; height: 300px; }
  .event-img { height: 150px; }
  .navbar-brand { font-size: 1.5rem; }
}