/* Update color variables */
:root {
    --primary: #4461f2;
    --secondary: #7c3aed;
    --accent: #ff6b6b;
    --success: #2ecc71;
    --gradient-1: linear-gradient(135deg, #4461f2, #7c3aed);
    --gradient-2: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    --gradient-3: linear-gradient(135deg, #2ecc71, #3498db);
}

/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  z-index: 1000;
}

.navbar {
  max-width: 1400px;  /* Increased from 1200px */
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo-highlight {
  color: var(--primary);
  font-weight: 800;
}

.logo-dot {
  color: var(--secondary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #007bff, #00bfff);
  transition: width 0.3s ease;
}

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

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-2);
  border: none;
  box-shadow: 0 4px 15px rgba(236,72,153,0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(236,72,153,0.6);
}

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

.btn-book {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;  /* Added to remove any borders */
}

.btn-book:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.section.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-title {
  font-size: 4rem;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.8);
  color: white; /* Add this */
}

.hero-title .highlight {
  background: linear-gradient(45deg, #007bff, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-shadow: none; /* Add this */
  display: inline-block; /* Add this */
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 10px rgba(0,0,0,0.7);
}

.highlight {
  background: linear-gradient(45deg, #007bff, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-2);
  border: none;
  box-shadow: 0 4px 15px rgba(236,72,153,0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(236,72,153,0.6);
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,123,255,0.5);
}

.btn-outline:hover {
  background: white;
  color: #007bff;
  transform: translateY(-3px);
}

/* Dark Mode */
body.dark {
  background-color: var(--bg-dark);
  color: #f1f5f9;
}

body.dark header {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

body.dark .nav-link {
  color: #fff;
}

/* Hero Section */
.section.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 0 0.5rem;
  background-color: #000;
  color: white;
  margin-top: 64px;
}

.bg-slider-home {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate(-50%, -50%);
  transition: opacity 1s ease, transform 6s ease; /* Reduced from 2s and 10s */
  opacity: 0;
  filter: brightness(0.6);
  z-index: -1;
}

.bg-slider-home.visible {
  opacity: 1;
  animation: zoomInOut 6s ease forwards; /* Reduced from 10s */
}

@keyframes zoomInOut {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.03); } /* Reduced scale from 1.05 */
  100% { transform: translate(-50%, -50%) scale(1); }
}

.section.hero .container.content {
  max-width: 1000px;  /* Increased from 850px */
  z-index: 1;
  padding: 2rem 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
}


.section.hero h2 {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.8);
}

.section.hero p {
  font-size: 1.6rem;
  font-weight: 400;
  text-shadow: 1px 1px 10px rgba(0,0,0,0.7);
}

/* Sections General */
.section {
  padding: 4rem 1rem;
  max-width: 1400px;  /* Increased from 1200px */
  margin: auto;
  animation: fadeInUp 0.6s ease-out;
}

.section h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  color: #222;
  text-align: center;
  font-weight: 700;
}

.section h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* About Section */
#about p {
  max-width: 700px;
  margin: auto;
  font-size: 1.2rem;
  color: #555;
  line-height: 1.7;
}

/* About Section Styling */
.about-content {
  max-width: 1200px;  /* Increased from 1000px */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
  padding: 0 0.5rem;
}

.about-text h3 {
  font-size: 1.8rem;
  color: #007bff;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

.about-features {
  list-style: none;
  margin: 2rem 0;
}

.about-features li {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #333;
}

.about-mission {
  font-style: italic;
  border-left: 4px solid #007bff;
  padding-left: 1rem;
}

.about-stats {
  display: grid;
  gap: 1rem;  /* Reduced from 1.5rem */
  padding: 0.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;  /* Reduced from 1.5rem */
  border-radius: 8px;  /* Reduced from 12px */
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h4 {
  font-size: 2.2rem;  /* Reduced from 2.5rem */
  margin-bottom: 0.3rem;  /* Reduced from 0.5rem */
  position: relative; /* Add this */
  display: inline-block; /* Add this */
}

.counter {
  transition: color 0.3s ease;
  position: relative;
  padding-right: 15px; /* Add padding to make space for the + */
}

.counter:after {
  content: '+';
  position: absolute;
  right: -5px; /* Reduced from -12px to bring + closer */
  top: 0;
}

.stat-card p {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem; /* Add some space after the number */
  clear: both; /* Add this */
}

/* Services Section */
.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
  gap: 32px;
  margin-top: 32px;
}

/* Responsive: 2 per row on tablet, 1 per row on mobile */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  height: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.service-card-link:hover {
  transform: translateY(-5px);
}

.service-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,123,255,0.05), rgba(0,191,255,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.service-card:hover:before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.service-card h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-block;
  text-decoration: none;
  color: #007bff;
  padding: 10px 0;
  margin-top: 15px;
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
}

.service-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0.5rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  font-style: italic;
  color: #333;
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.testimonial-card strong {
  display: block;
  margin-top: 1rem;
  font-weight: 700;
  color: #007bff;
  text-align: right;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

.contact-form input,
.contact-form textarea {
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0,123,255,0.3);
}

.contact-form button {
  background: linear-gradient(45deg, #007bff, #00bfff);
  color: white;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.contact-form button:after {
  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.5s;
}

.contact-form button:hover:after {
  left: 100%;
}

.contact-form button:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,123,255,0.4);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.8rem 1rem;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Dark Mode */
body.dark {
  background-color: var(--bg-dark);
  color: #f1f5f9;
}

body.dark header {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

body.dark .service-card,
body.dark .stat-card {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255,255,255,0.05);
}

body.dark .section h2 {
  color: #f1f5f9;
}

/* Dark Mode Adjustments */
body.dark .about-text p {
  color: #b0b0b0;
}

body.dark .about-features li {
  color: #ddd;
}

body.dark .stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.08);
}

/* Added Animations */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-primary {
  background-size: 200% auto;
  animation: gradientFlow 4s ease infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 0.8rem;
  }

  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .section {
    padding: 3rem 0.8rem;
  }

  .about-content {
    padding: 0 0.5rem;
    gap: 1.5rem;
  }

  .about-stats {
    gap: 0.8rem;
  }
  
  .stat-card {
    padding: 0.8rem;
  }
  
  .stat-card h4 {
    font-size: 2rem;
  }

  .nav-buttons {
    gap: 1rem;
  }
  
  .btn-book {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 1rem 0.5rem;
  }

  .section {
    padding: 2.5rem 0.5rem;
  }
}

/* 3D Printing Page Styles */
.service-intro {
    padding: 80px 0 40px;
    background: #ffffff;
    text-align: center;
}

.service-intro h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-intro p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    border: 1px solid #eee;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.step {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: transparent;  /* Changed to transparent */
    color: black;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    border: none;  /* Removed border */
    box-shadow: none;  /* Removed shadow */
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: none;  /* Removed hover shadow */
}

.step h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.step p {
    color: #666;
    font-size: 1rem;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

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

/* New Styles for Materials and Quality Sections */
.materials-section,
.quality-section {
    padding: 4rem 0;
    background: transparent; /* Changed from #f8f9fa to transparent */
}

.materials-grid,
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.material-card,
.quality-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.material-card::before,
.quality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

.material-card:hover,
.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.material-card h3,
.quality-card h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.price {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.price:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.feature-list,
.quality-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.feature-list li,
.quality-card ul li {
    padding: 0.8rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.feature-list li:before,
.quality-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.feature-list li:hover,
.quality-card ul li:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Update section headers */
.materials-section h2,
.quality-section h2 {
    color: #2d3748;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.materials-section h2:after,
.quality-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Add subtle animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.material-card,
.quality-card {
    animation: float 3s ease-in-out infinite;
}

/* Add colorful indicators for quality levels */
.quality-card:nth-child(1)::before {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

.quality-card:nth-child(2)::before {
    background: linear-gradient(45deg, #4461f2, #7c3aed);
}

.quality-card:nth-child(3)::before {
    background: linear-gradient(45deg, #2ecc71, #3498db);
}

/* Booking Form Styles */
.booking-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.booking-form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.booking-form-wrapper h2 {
    color: #2d3748;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.form-section {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.form-section:hover {
    transform: translateY(-5px);
}

.input-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #2d3748;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: -0.8rem;
    background: white;
    padding: 0 0.5rem;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.phone-input-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.country-code {
    background: #f8fafc;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    color: #2d3748;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn:not(:disabled) {
    animation: gradient 3s ease infinite;
    background-size: 200% 200%;
}

.submit-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    background: #e2e8f0;
    cursor: not-allowed;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Loading animation */
.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid white;
    border-radius: 50%;
    border-left-color: transparent;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hero Slider Styles */
.pcb-hero {
    position: relative;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.note-text {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-left: 3px solid var(--primary);
    border-radius: 4px;
}

.note-text p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}


.gallery-section {
    padding: 80px 0;
}

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    text-align: center;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20, 20, 20, 0.85);
  overflow-y: auto;
  transition: background 0.3s;
}
.modal-content {
  background: #fff;
  margin: 40px auto;
  padding: 32px 24px 24px 24px;
  border-radius: 14px;
  width: 95%;
  max-width: 900px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  animation: modalFadeIn 0.4s;
}
@keyframes modalFadeIn {
  from { transform: translateY(40px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.close {
  color: #333;
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.close:hover {
  color: #e74c3c;
}
.pcb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.pcb-gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  background: #f4f4f4;
}
.pcb-gallery-grid img:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(52,152,219,0.18);
  z-index: 1;
}
.modal-content h3 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #2d3a4a;
  text-align: center;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* Lightbox Gallery Styles */
.lightbox-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 24px 0 12px 0;
}
.lightbox-gallery img {
  width: 350px;
  max-width: 80vw;
  max-height: 60vh;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  object-fit: contain;
  background: #f4f4f4;
}
.arrow {
  font-size: 2.5rem;
  color: #2d3a4a;
  cursor: pointer;
  user-select: none;
  padding: 8px 16px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.arrow:hover {
  background: #eaf6ff;
  color: #0077cc;
}
.lightbox-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lightbox-thumbs .thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: border 0.2s, opacity 0.2s;
}
.lightbox-thumbs .thumb.active,
.lightbox-thumbs .thumb:hover {
  border: 2px solid #0077cc;
  opacity: 1;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 12px 4px 16px 4px;
  }
  .pcb-gallery-grid {
    gap: 8px;
  }
  .lightbox-gallery img { width: 98vw; }
  .arrow { font-size: 2rem; }
  .lightbox-thumbs .thumb { width: 36px; height: 36px; }
}

.lightbox-gallery {
    position: relative;
    margin: 20px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#printingLightboxImg,
#roboticsLightboxImg,
#automationLightboxImg {
    max-height: 60vh;
    transition: opacity 0.3s ease;
}

/* Add or update this CSS for service cards background images */

.service-card .service-icon {
    display: none; /* Hide the small icon/image */
}

.service-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
    min-height: 260px;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,195,255,0.10), 0 1.5px 6px rgba(24,28,50,0.07);
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s;
    padding-top: 32px;
    padding-bottom: 32px;
}

/* Overlay for better text visibility */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(24,28,50,0.7) 0%, rgba(0,195,255,0.3) 100%);
    z-index: 0;
    border-radius: 18px;
}

/* Content above overlay */
.service-card > * {
    position: relative;
    z-index: 1;
}

/* Set background images for each card using nth-child */
.services-grid > a:nth-child(1) .service-card {
    background-image: url('assets/pcb.jpeg');
}
.services-grid > a:nth-child(2) .service-card {
    background-image: url('assets/3dprinting.jpeg');
}
.services-grid > div:nth-child(3) {
    background-image: url('assets/robot.jpeg');
}
.services-grid > div:nth-child(4) {
    background-image: url('assets/automation.jpeg');
}
.services-grid > a:nth-child(5) .service-card {
    background-image: url('assets/iot.jpeg');
}
.services-grid > a:nth-child(6) .service-card {
    background-image: url('assets/ai.jpeg');
}
/* Make service card titles and text white for visibility on background images */
.service-card h3,
.service-card p,
.service-link {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}