/* RideRadar.ph Main Stylesheet */
:root {
  --primary-color: #ff6b35;
  --secondary-color: #2a7fff;
  --dark-color: #333;
  --light-color: #f4f4f4;
  --success-color: #5cb85c;
  --error-color: #d9534f;
  --header-height: 80px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

/* Header Styles */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  transition: all 0.3s ease;
}

header.scrolled {
  height: 60px;
  background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

header.scrolled .logo img {
  height: 40px;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

header.scrolled .logo h1 {
  font-size: 1.5rem;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

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

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark-color);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1558981806-ec527fa84c39?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  padding-top: var(--header-height);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #e55a2a;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--secondary-color);
  margin-left: 15px;
}

.btn-secondary:hover {
  background-color: #1a66e0;
}

/* Feature Section */
.features {
  padding: 80px 0;
  background-color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.section-header p {
  color: #777;
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.feature-img {
  height: 200px;
  overflow: hidden;
}

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

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

.feature-content {
  padding: 25px;
}

.feature-content h4 {
  margin-bottom: 15px;
  color: var(--dark-color);
  font-size: 1.3rem;
}

.feature-content p {
  color: #777;
  margin-bottom: 20px;
}

/* Gaming Section */
.gaming-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.game-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-img {
  height: 180px;
  overflow: hidden;
}

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

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

.game-content {
  padding: 20px;
}

.game-content h4 {
  color: var(--dark-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.game-content p {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.game-content a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.game-content a:hover {
  color: var(--primary-color);
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: #fff;
}

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

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  top: -15px;
  left: -15px;
  border-radius: 10px;
  z-index: -1;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.about-content p {
  margin-bottom: 15px;
  color: #555;
}

.about-features {
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.feature-icon {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-icon {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  margin-top: 20px;
}

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

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-img {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 70%;
    height: calc(100vh - var(--header-height));
    background-color: #fff;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: 30px;
  }
  
  nav ul li {
    margin: 0 0 20px 0;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .btn-secondary {
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .section-header h3 {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
