@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --color-primary-blue: #00529A;
  --color-primary-red: #E0201B;
  
  /* Neutral Colors */
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text: #111827;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00529A 0%, #00386b 100%);
  --gradient-dark: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 1) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary-blue); }
.text-danger { color: var(--color-primary-red); }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--color-primary-red);
  border-radius: 2px;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary-blue);
  color: white;
}

.btn-primary:hover {
  background-color: #004380;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: var(--color-primary-red);
  color: white;
}

.btn-danger:hover {
  background-color: #c51c17;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--color-text);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: padding var(--transition-normal);
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-primary-red);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary-red);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 0;
  background: var(--gradient-dark);
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 82, 154, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards 0.2s;
}

.hero-title span {
  color: var(--color-primary-red);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards 0.4s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards 0.6s;
}

/* ==========================================================================
   Features/Services Section
   ========================================================================== */
.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--color-surface);
}

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

.service-card {
  background: var(--color-surface);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border-bottom: 4px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--gradient-primary);
  z-index: -1;
  transition: height var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--color-primary-red);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-icon {
  color: white;
}

.service-icon {
  font-size: 3rem;
  color: var(--color-primary-blue);
  margin-bottom: 1.5rem;
  transition: color var(--transition-normal);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: color var(--transition-normal);
}

.service-card p {
  color: var(--color-text-muted);
  transition: color var(--transition-normal);
}

/* ==========================================================================
   TRP Dealer Section
   ========================================================================== */
.trp-section {
  background-color: var(--color-primary-blue);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 10px 20px -10px rgba(0,0,0,0.3);
}

.trp-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.trp-content h2 {
  color: white;
}

.trp-content h2::after {
  background-color: var(--color-primary-red);
}

.trp-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.trp-image-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.trp-image-wrapper img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.trp-image-wrapper:hover img {
  transform: scale(1.05);
}

.trp-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: bold;
  color: var(--color-primary-blue);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   About Page specific
   ========================================================================== */
.page-header {
  padding: 10rem 0 6rem;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--color-primary-blue);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Contact Page specific
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 82, 154, 0.1);
  color: var(--color-primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--color-text-muted);
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  background-color: var(--color-bg);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 154, 0.1);
  background-color: white;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
  margin-top: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #111827;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-about {
  color: #9CA3AF;
  max-width: 400px;
}

.footer-title {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9CA3AF;
}

.footer-links a:hover {
  color: var(--color-primary-red);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #9CA3AF;
}

/* ==========================================================================
   Brand Marquee Section
   ========================================================================== */
.brand-marquee-section {
  padding: 4rem 0;
  background-color: white;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  z-index: 5;
}

.brand-marquee-section::before,
.brand-marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.brand-marquee-section::before {
  left: 0;
  background: linear-gradient(to right, white 0%, rgba(255,255,255,0) 100%);
}

.brand-marquee-section::after {
  right: 0;
  background: linear-gradient(to left, white 0%, rgba(255,255,255,0) 100%);
}

.marquee-container {
  display: flex;
  width: fit-content;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-container:hover {
  animation-play-state: paused;
}

.brand-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo:nth-child(odd) {
  color: var(--color-primary-red);
}

.brand-logo:nth-child(even) {
  color: var(--color-primary-blue);
}

.brand-logo:nth-child(odd):hover {
  color: var(--color-primary-blue);
  transform: scale(1.1);
}

.brand-logo:nth-child(even):hover {
  color: var(--color-primary-red);
  transform: scale(1.1);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .trp-container, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    gap: 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title { font-size: 2.5rem; }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
