/* ============================================
   ROBERTINO BIKE SERVICE - MODERN CSS
   Design: Vibrant, energetic, cycling-inspired
   ============================================ */

/* CSS Variables - Color Palette */
:root {
  /* Primary Colors - Electric Blue & Orange */
  --primary-blue: #0066ff;
  --primary-cyan: #00d4ff;
  --primary-orange: #ff6b35;
  --primary-yellow: #ffb627;

  /* Accent Colors */
  --accent-green: #00e676;
  --accent-purple: #7c4dff;

  /* Neutral Colors */
  --dark: #0a0e27;
  --dark-blue: #1a1f3a;
  --mid-gray: #64748b;
  --light-gray: #e2e8f0;
  --white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-cyan) 100%
  );
  --gradient-warm: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--primary-yellow) 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    #0066ff 0%,
    #00d4ff 50%,
    #ff6b35 100%
  );

  /* Typography */
  --font-primary: "Outfit", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ============================================
   CONTAINER
   ============================================ */

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

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* ============================================
   MOBILE PHONE BAR - STICKY
   ============================================ */

.mobile-phone-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gradient-primary);
  padding: 0.75rem 1rem;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.phone-link:hover {
  transform: scale(1.05);
}

.phone-link svg {
  animation: ring 2s ease infinite;
}

@keyframes ring {
  0%,
  100% {
    transform: rotate(0deg);
  }
  10%,
  30% {
    transform: rotate(-10deg);
  }
  20%,
  40% {
    transform: rotate(10deg);
  }
}

@media (min-width: 769px) {
  .mobile-phone-bar {
    display: none;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-warm);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 6rem;
    min-height: auto;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;

  /* Background Image - add your image path here */
  background-image: url("../images/hero-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Fallback gradient if image doesn't load */
  background-color: #0066ff;
}

/* Dark overlay for better text contrast */
/*
.hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.85) 0%,
    rgba(0, 212, 255, 0.75) 50%,
    rgba(255, 107, 53, 0.8) 100%
  );
  z-index: 1;
}
*/
/* Alternative: lighter overlay if you want the image more visible */

.hero-background::before {
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.6) 0%,
    rgba(0, 212, 255, 0.5) 50%,
    rgba(255, 107, 53, 0.6) 100%
  );
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-cyan), transparent);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-orange), transparent);
  bottom: -150px;
  right: -150px;
  animation-delay: 2s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--primary-yellow), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.highlight {
  background: linear-gradient(135deg, #ffb627 0%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  text-shadow: none;
  font-weight: 900;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.6s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.8s both;
}

@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 1s both;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  color: var(--dark);
}

.feature-badge svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

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

/* ============================================
   UNIQUE SERVICE SECTION
   ============================================ */

.unique-service {
  padding: 4rem 0;
  background: var(--gradient-primary);
  color: var(--white);
}

.service-card {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.service-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.service-highlight {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.7;
  margin-bottom: 3rem;
  opacity: 0.95;
}

.accent {
  font-weight: 800;
  font-size: 1.1em;
  text-decoration: underline;
  text-decoration-color: var(--primary-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.step {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  min-width: 150px;
  transition: all 0.3s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-yellow);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.step p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.arrow {
  font-size: 2rem;
  font-weight: 800;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .arrow {
    display: none;
  }

  .step {
    min-width: calc(50% - 0.5rem);
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  padding: 5rem 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--mid-gray);
  font-size: 1.2rem;
}

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

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.service-item {
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--light-gray);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;

  /* Support for background images - add class .with-image to enable */
}

.service-item.with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Gradient overlay for service items with images */
.service-item.with-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 0;
  transition: opacity 0.3s ease;
}

.service-item.with-image:hover::after {
  opacity: 0.9;
}

/* Make text visible on image background */
.service-item.with-image h3,
.service-item.with-image p {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.service-item.with-image .service-emoji {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 2;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-cyan);
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-item h3 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-item p {
  color: var(--mid-gray);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #fffbeb 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* On mobile, image comes first */
  .about-image {
    order: -1;
  }
}

.about-text h2 {
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--dark);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.quote {
  padding: 2rem;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-yellow);
  font-weight: 600;
  font-size: 1.3rem;
  font-style: italic;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

/* About Image Container */
.about-image {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 125%; /* 4:5 aspect ratio for portrait */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--light-gray);
}

.about-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Decorative elements around image */
.about-image::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-cyan);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-image::after {
  content: "🚴";
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 4rem;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
  .about-image {
    max-width: 350px;
  }

  .about-image::before {
    top: -10px;
    left: -10px;
    border-width: 2px;
  }

  .about-image::after {
    font-size: 3rem;
    bottom: -15px;
    right: -15px;
  }
}

/* ============================================
   BRANDS SECTION
   ============================================ */

.brands {
  padding: 4rem 0;
  background: var(--white);
  text-align: center;
}

.brands h3 {
  color: var(--dark);
  margin-bottom: 2rem;
}

.brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.brand-tag {
  padding: 0.75rem 1.5rem;
  background: var(--light-gray);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--dark);
  transition: all 0.3s ease;
}

.brand-tag:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.05);
}

.bike-types {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.bike-types span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--mid-gray);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  padding: 5rem 0;
  background: var(--dark);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-methods {
  margin: 2rem 0;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.method-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.contact-method strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--primary-cyan);
}

.contact-method span {
  color: rgba(255, 255, 255, 0.8);
}

.cta-box {
  background: var(--gradient-warm);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.cta-box h3 {
  margin-bottom: 0.5rem;
}

.cta-box p {
  margin: 0;
  opacity: 0.9;
}

.map-container h3 {
  margin-bottom: 1.5rem;
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1rem;
}

.map-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 1rem 0 0 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 3rem 0 1.5rem;
  background: var(--dark-blue);
  color: var(--white);
}

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

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand h3 {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.social-link svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* Facebook - Blue */
.social-link.facebook:hover {
  background: #1877f2;
}

.social-link.facebook:hover::before {
  opacity: 0;
}

/* Instagram - Gradient */
.social-link.instagram:hover {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.social-link.instagram:hover::before {
  opacity: 0;
}

/* Strava - Orange */
.social-link.strava:hover {
  background: #fc4c02;
}

.social-link.strava:hover::before {
  opacity: 0;
}

/* Active state for all social links */
.social-link:active {
  transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--primary-cyan);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--white);
  font-weight: 600;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
