/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Services Page Navbar */
.services-navbar {
  display: flex;
  justify-content: space-between;
  font-family: 'Michroma', sans-serif;
  align-items: center;
  padding: 20px 50px;
  background: #000;
  border: 2px solid #777;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 1200px;
  position: sticky;
  top: 20px;
  z-index: 1000;
  transition: border 0.3s, background 0.3s;
}

.services-navbar:hover {
  border-color: rgb(126, 9, 126);
  background: #111;
}

.services-logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
  font-family: 'Michroma', sans-serif;
}

.services-logo img {
  height: 35px;
  margin-right: 10px;
}

.services-nav-links {
  display: flex;
  gap: 30px;
}

.services-nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 5px;
  font-family: 'Michroma', sans-serif;
  transition: color 0.3s ease;
}

.services-nav-links a:hover {
  color: #f9a825;
}

.services-nav-links a.services-active {
  color: #f9a825;
  border-bottom: 2px solid #f9a825;
}

.services-page-top {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 50vh;
  min-height: 400px;
}

.services-page-top h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Michroma', sans-serif;
  line-height: 1.1;
}

.services-page-top span {
  color: #f9a825;
}

.services-page-top p {
  font-size: clamp(14px, 2vw, 16px);
  color: #aaa;
  margin-bottom: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  max-width: 600px;
}

/* Services Grid Layout */
.services-main-grid {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.services-content-box {
  background: transparent;
}

.services-content-box h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Michroma', sans-serif;
  line-height: 1.2;
}

.services-content-box p {
  font-size: clamp(14px, 2vw, 16px);
  color: #aaa;
  margin-bottom: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
}

.services-button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.services-btn {
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

.services-btn.services-explore {
  background: #333;
  color: #fff;
  border: 2px solid #333;
}

.services-btn.services-explore:hover {
  background: #444;
  border-color: #444;
  transform: translateY(-2px);
}

.services-btn.services-contact {
  background: #f9a825;
  color: #000;
  font-weight: bold;
  border: 2px solid #f9a825;
}

.services-btn.services-contact:hover {
  background: #ffb300;
  border-color: #ffb300;
  transform: translateY(-2px);
}

/* Services Image Boxes */
.services-image-container {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.services-image-container:hover {
  transform: translateY(-5px);
}

.services-image-container img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* VFX Section */
.services-vfx-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.services-vfx-text h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  font-family: 'Michroma', sans-serif;
}

.services-vfx-text p {
  margin: 20px 0;
  color: #bbb;
  font-size: clamp(14px, 2vw, 16px);
  max-width: 500px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
}

.services-vfx-image img {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 5px 20px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

.services-vfx-image img:hover {
  transform: scale(1.02);
}

/* Testimonials Section - Keep original class names for Firebase compatibility */
.testimonials {
  max-width: 1200px;
  margin: 100px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.testimonials-left {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.testimonials-left h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  font-family: 'Michroma', sans-serif;
}

.testimonials-left span {
  color: #f9a825;
}

.testimonials-left p {
  margin-top: 20px;
  font-size: clamp(14px, 2vw, 16px);
  color: #bbb;
  max-width: 500px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
}

.testimonials-left .testimonial-card {
  max-width: 450px;
}

.testimonials-right {
  display: grid;
  gap: 25px;
}

.testimonial-card {
  background: #111;
  border-radius: 14px;
  padding: 25px;
  color: #ccc;
  transition: all 0.3s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border: 2px solid transparent;
}

.testimonial-card:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.testimonial-card.highlighted {
  border: 2px solid #00aaff;
}

.testimonial-card p {
  font-size: clamp(14px, 1.8vw, 16px);
  margin-bottom: 20px;
  line-height: 1.5;
}

.author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author h4 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}

.author span {
  font-size: 13px;
  color: #aaa;
}

/* Firebase testimonial specific styles */
.testimonial-content {
  font-size: clamp(14px, 1.8vw, 16px);
  margin-bottom: 20px;
  line-height: 1.5;
  color: #ccc;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.client-info {
  flex-grow: 1;
}

.client-info h4 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}

.client-info p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
}

.rating {
  color: #f9a825;
  font-size: 16px;
}

.loading, .error, .no-testimonials {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.error {
  color: #ff6b6b;
}

/* --- COMPREHENSIVE RESPONSIVE DESIGN --- */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  .services-navbar {
    padding: 25px 60px;
    max-width: 1400px;
  }
  
  .services-page-top {
    max-width: 1400px;
    height: 60vh;
  }
  
  .services-main-grid,
  .services-vfx-section,
  .testimonials {
    max-width: 1400px;
    gap: 60px;
  }
  
  .services-content-box h2 {
    font-size: 2.2rem;
  }
  
  .services-btn {
    padding: 14px 28px;
    font-size: 16px;
  }
}

/* Desktop (1200px to 1439px) - Default styles already optimized for this range */

/* Large Tablet (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .services-navbar {
    padding: 18px 40px;
    max-width: 100%;
    margin: 15px 20px;
  }
  
  .services-page-top {
    max-width: 100%;
    padding: 20px 40px;
  }
  
  .services-main-grid,
  .services-vfx-section,
  .testimonials {
    max-width: 100%;
    padding: 20px 40px;
    gap: 35px;
  }
  
  .services-image-container {
    max-width: 450px;
  }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .services-navbar {
    padding: 15px 30px;
    margin: 15px 20px;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .services-nav-links {
    gap: 20px;
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
  }
  
  .services-page-top {
    padding: 30px;
    height: 45vh;
    min-height: 350px;
  }
  
  .services-main-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 30px;
    text-align: center;
  }
  
  .services-content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .services-image-container {
    max-width: 400px;
    margin-bottom: 30px;
  }
  
  .services-vfx-section,
  .testimonials {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;
    text-align: center;
  }
  
  .services-vfx-text p,
  .testimonials-left p {
    margin: 20px auto;
  }
  
  .testimonials-right {
    margin-top: 30px;
  }
  
  .services-button-group {
    justify-content: center;
  }
}

/* Small Tablet (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .services-navbar {
    padding: 12px 20px;
    margin: 10px 15px;
    flex-direction: column;
    gap: 15px;
  }
  
  .services-logo {
    font-size: 1rem;
  }
  
  .services-logo img {
    height: 30px;
  }
  
  .services-nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .services-nav-links a {
    font-size: 12px;
  }
  
  .services-page-top {
    padding: 25px 20px;
    height: 40vh;
    min-height: 300px;
  }
  
  .services-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 25px 20px;
  }
  
  .services-content-box {
    text-align: center;
  }
  
  .services-image-container {
    max-width: 350px;
    margin: 0 auto 25px;
  }
  
  .services-vfx-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 25px 20px;
    margin: 60px auto;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 25px 20px;
    margin: 80px auto;
  }
  
  .services-button-group {
    justify-content: center;
    gap: 10px;
  }
  
  .services-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .testimonial-card {
    padding: 20px;
  }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
  .services-navbar {
    padding: 10px 15px;
    margin: 10px;
    flex-direction: column;
    gap: 12px;
    border-radius: 8px;
  }
  
  .services-logo {
    font-size: 0.9rem;
  }
  
  .services-logo img {
    height: 25px;
    margin-right: 8px;
  }
  
  .services-nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .services-nav-links a {
    font-size: 11px;
    padding: 5px 8px;
  }
  
  .services-page-top {
    padding: 20px 15px;
    height: auto;
    min-height: 250px;
    margin: 20px auto;
  }
  
  .services-page-top h1 {
    margin-bottom: 12px;
  }
  
  .services-page-top p {
    margin-bottom: 15px;
  }
  
  .services-main-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 15px;
    margin: 20px auto;
  }
  
  .services-content-box {
    text-align: center;
  }
  
  .services-content-box h2 {
    margin-bottom: 12px;
  }
  
  .services-content-box p {
    margin-bottom: 15px;
  }
  
  .services-image-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 20px;
  }
  
  .services-button-group {
    justify-content: center;
    gap: 8px;
    flex-direction: column;
    align-items: center;
  }
  
  .services-btn {
    padding: 10px 18px;
    font-size: 12px;
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
  
  .services-vfx-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px 15px;
    margin: 40px auto;
  }
  
  .services-vfx-text {
    text-align: center;
  }
  
  .services-vfx-text p {
    margin: 15px auto;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px 15px;
    margin: 60px auto;
  }
  
  .testimonials-left {
    text-align: center;
    gap: 20px;
  }
  
  .testimonials-left p {
    margin: 15px auto;
  }
  
  .testimonials-left .testimonial-card {
    max-width: 100%;
  }
  
  .testimonials-right {
    gap: 20px;
    margin-top: 20px;
  }
  
  .testimonial-card {
    padding: 18px;
    border-radius: 10px;
  }
  
  .testimonial-card p,
  .testimonial-content {
    margin-bottom: 15px;
  }
  
  .author,
  .testimonial-footer {
    gap: 12px;
  }
  
  .author img,
  .avatar {
    width: 45px;
    height: 45px;
  }
  
  .author h4,
  .client-info h4 {
    font-size: 14px;
  }
  
  .author span,
  .client-info p {
    font-size: 12px;
  }
}

/* Extra Small Mobile (up to 374px) */
@media (max-width: 374px) {
  .services-navbar {
    padding: 8px 12px;
    margin: 8px;
  }
  
  .services-logo {
    font-size: 0.8rem;
  }
  
  .services-logo img {
    height: 22px;
  }
  
  .services-nav-links a {
    font-size: 10px;
    padding: 4px 6px;
  }
  
  .services-page-top {
    padding: 15px 10px;
    min-height: 200px;
  }
  
  .services-main-grid,
  .services-vfx-section,
  .testimonials {
    padding: 15px 10px;
  }
  
  .services-image-container {
    max-width: 250px;
  }
  
  .services-btn {
    padding: 8px 15px;
    font-size: 11px;
  }
  
  .testimonial-card {
    padding: 15px;
  }
  
  .author img,
  .avatar {
    width: 40px;
    height: 40px;
  }
}

/* Landscape Phone Orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .services-page-top {
    height: auto;
    min-height: 200px;
    padding: 15px;
  }
  
  .services-page-top h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .services-navbar {
    position: relative;
    top: auto;
    margin: 5px auto;
  }
  
  .services-main-grid,
  .services-vfx-section,
  .testimonials {
    margin: 30px auto;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .services-image-container img,
  .services-vfx-image img,
  .author img,
  .avatar {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .services-btn {
    padding: 14px 24px;
    font-size: 16px;
  }
  
  .services-nav-links a {
    padding: 10px;
    font-size: 16px;
  }
  
  .testimonial-card:hover {
    transform: none;
  }
  
  .services-image-container:hover,
  .services-vfx-image img:hover {
    transform: none;
  }
}