/* Eng Hup Builders - Clean Wireframe Design */

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 400;
}

/* Modern Navigation */
.navbar {
  background-color: #ffffff;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 1000;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: floatIn 1s ease-out;
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) translateZ(0);
  }
}

.navbar.scrolled {
  background-color: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 217, 61, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  height: 60px;
}

.nav-right {
  flex: 0 0 auto;
}

.nav-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.slider-dot.active {
  background: #ffffff;
  transform: scale(1.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.slider-dot:hover {
  background: #ffffff;
  opacity: 0.9;
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .slider-container {
    padding: 0 50px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Logo Styling */
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 3px;
  font-family: 'Montserrat', sans-serif;
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Montserrat', sans-serif;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.2), rgba(255, 193, 7, 0.2));
  border-radius: 25px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-links a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-links a:hover {
  color: #1a1a1a;
  transform: translateY(-2px);
}

/* Icon Buttons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.icon-btn {
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  opacity: 0.6;
}

/* Hero Section */
.hero {
  background-image: url('images/stairs.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Changed for mobile performance */
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem;
  padding-top: calc(2rem + 80px);
  position: relative;
}

@media (min-width: 1024px) {
  .hero {
    background-attachment: fixed; /* Only use fixed on desktop */
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 600px;
  color: #ffffff;
}

.hero-category {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.3em; 
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.hero-text h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 0.9;
  margin-bottom: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.hero-text p {
  font-size: 1.2rem;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

.cta-button {
  display: inline-block;
  background: #FFD93D;
  color: #1a1a1a;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: capitalize;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 20px rgba(255, 217, 61, 0.3);
}

.cta-button:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 217, 61, 0.4);
}

/* About Section */
.about {
  padding: 6rem 0;
  background-image: url('images/aboutus_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}

/* About Section Logo Styling - Performance Optimized */
.about-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  animation: logoFloat 6s ease-in-out infinite; /* Increased from 3s to 6s */
}

.about-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 217, 61, 0.4));
  transition: transform 0.3s ease; /* Removed filter transition for performance */
  will-change: transform; /* Hint browser for optimization */
}

.about-logo:hover img {
  transform: scale(1.1) rotate(5deg) translateZ(0);
}

/* Optimized floating animation for the logo */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px) translateZ(0); /* Add translateZ for hardware acceleration */
  }
  50% {
    transform: translateY(-8px) translateZ(0);
  }
}

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

.about-text h2 {
  color: #FFC107;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
}

.about-text p {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
}

/* Company History Styling */
.company-history {
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.15), rgba(255, 193, 7, 0.1));
  padding: 2rem 2.5rem;
  border-radius: 12px;
  margin-top: 2.5rem;
  border: 1px solid rgba(255, 217, 61, 0.4);
  position: relative;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 20px rgba(255, 217, 61, 0.2);
}

.company-history::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #FFD93D, #FFC107);
  border-radius: 2px;
}

.company-history p {
  color: #1a1a1a;
  font-weight: 600;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
}

.stats {
  padding: 5rem 0;
  background: #fffbf0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-box {
  padding: 3rem 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stat-box strong {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.stat-box span {
  font-size: 1.1rem;
  color: #1a1a1a;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

/* Services Section - Fixed Slider Layout */
.services {
  padding: 6rem 0;
  background: linear-gradient(135deg, #FFD93D 0%, #ffb54e 100%);
  position: relative;
}

.services h2 {
  position: relative;
  z-index: 2;
  color: #ffffff;
  margin-bottom: 3rem; /* Add more space below title */
}

.slider-container {
  position: relative;
  max-width: 100%;
  touch-action: pan-x;
  padding: 0 60px; /* Add padding for arrows */
  margin: 0 auto;
}

.slider-wrapper {
  overflow: hidden;
  border-radius: 15px;
  cursor: grab;
  user-select: none;
  pointer-events: auto;
  position: relative;
}

.slider-wrapper:active {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
  gap: 1.5rem;
  will-change: transform;
  pointer-events: none;
  width: fit-content;
  transform: translateZ(0);
}

.slider-track.dragging {
  transition: none;
}

/* Ensure service slides are properly sized */
.service-slide {
  min-width: 240px;
  max-width: 240px;
  background: #ffffff;
  padding: 0;
  border-radius: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  will-change: transform;
  transform: translateZ(0);
}

.service-slide:hover {
  transform: translateY(-8px) translateZ(0);
}

/* Service Image Styling */
.service-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  will-change: transform;
  transform: translateZ(0);
}

.service-slide:hover .service-image img {
  transform: scale(1.05) translateZ(0);
}

/* Service Content */
.service-slide h3 {
  color: #1a1a1a;
  margin: 1rem 1.5rem 0.5rem 1.5rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
}

.service-slide p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #666;
  font-family: 'Montserrat', sans-serif;
  margin: 0 1.5rem 1.5rem 1.5rem;
  flex-grow: 1;
}

/* Improved Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 217, 61, 0.3);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 15;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-weight: bold;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider-arrow:hover {
  background: #FFD93D;
  border-color: #FFD93D;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 217, 61, 0.4);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* Portfolio Section */
.portfolio {
  padding: 6rem 0;
  background: #ffffff;
}

/* Portfolio Header */
.portfolio-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio h2 {
  color: #1a1a1a;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.portfolio-subtitle {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid #e9ecef;
  color: #666;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #FFD93D;
  border-color: #FFD93D;
  color: #1a1a1a;
}

.filter-btn:focus {
  outline: 2px solid #FFD93D;
  outline-offset: 2px;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Portfolio Items - Optimized */
.portfolio-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: transform 0.2s ease; /* Reduced transition time and removed box-shadow */
  cursor: pointer;
  will-change: transform;
  transform: translateZ(0);
}

.portfolio-item:hover {
  transform: translateY(-4px) translateZ(0);
  border-color: #FFD93D;
  /* Removed box-shadow change for performance */
}

/* Portfolio Image Gallery */
.portfolio-image-gallery {
  width: 100%;
  position: relative;
}

.main-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.5rem;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease; /* Reduced from 0.3s */
  will-change: transform;
  transform: translateZ(0);
}

.portfolio-item:hover .gallery-main-img {
  transform: scale(1.05) translateZ(0);
}

.image-thumbnails {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 0.5rem;
}

.thumbnail {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.thumbnail.active {
  opacity: 1;
  border-color: #FFD93D;
  transform: translateY(-2px);
}

/* Keep original single image styles for projects without gallery */
.portfolio-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease; /* Reduced from 0.3s */
  will-change: transform;
  transform: translateZ(0);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05) translateZ(0);
}

/* Portfolio Content */
.portfolio-content {
  padding: 1.5rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-type {
  background: #FFD93D;
  color: #1a1a1a;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-year {
  color: #999;
  font-weight: 500;
}

.portfolio-content h3 {
  color: #1a1a1a;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-family: 'Montserrat', sans-serif;
}

.portfolio-content p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.project-location {
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

/* Portfolio CTA */
.portfolio-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: #ffffff;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.portfolio-cta h3 {
  color: #1a1a1a;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
}

.portfolio-cta .cta-button {
  display: inline-block;
  background: #FFD93D;
  color: #1a1a1a;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 20px rgba(255, 217, 61, 0.3);
}

.portfolio-cta .cta-button:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 217, 61, 0.4);
}

/* Filter Animation - Optimized */
.portfolio-item {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px) translateZ(0); /* Reduced from 20px */
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

.portfolio-item.hidden {
  display: none;
}

/* Certifications Section */
.certifications {
  padding: 6rem 0;
  background: #ffffff;
}

.certifications-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.certifications h2 {
  color: #1a1a1a;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.certifications-header p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.certifications-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  padding: 2rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Optimized certification items */
.certification-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease; /* Reduced from 0.3s */
  padding: 1rem;
  border-radius: 8px;
  will-change: transform;
  transform: translateZ(0);
}

.certification-item:hover {
  transform: translateY(-3px) translateZ(0); /* Reduced from -5px */
}

.cert-logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.cert-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

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

.cert-info h3 {
  color: #1a1a1a;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
}

.cert-info p {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

.cert-number {
  color: #999;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

.certifications-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.certifications-cta p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  font-style: italic;
  font-family: 'Montserrat', sans-serif;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: linear-gradient(135deg, #FFD93D 0%, #ffb54e 100%); 
}

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

.contact-info h2 {
  text-align: left;
  margin-bottom: 1rem;
  color: #1a1a1a; 
  font-family: 'Montserrat', sans-serif;
}

.contact-info p {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a1a; 
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.contact-item strong {
  color: #1a1a1a; 
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.contact-item span {
  color: #333; 
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
}

/* Contact Form */
.contact-form {
  background: #ffffff; 
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); 
}

.form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: 'Montserrat', sans-serif;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #FFD93D;
}

.contact-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  margin-bottom: 1rem;
}

.submit-btn {
  width: 100%;
  background: #FFD93D; 
  color: #1a1a1a;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.submit-btn:hover {
  background: #FFC107;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #1a1a1a;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

footer p {
  color: #ccc;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

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

  .navbar {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 25px;
  }

  .nav-container {
    padding: 0.6rem 1.5rem;
    height: 55px;
  }

  .nav-center {
    display: none;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-logo {
    width: 35px;
    height: 35px;
  }

  /* Disable animations on mobile for better performance */
  .about-logo {
    animation: none;
  }
  
  .service-slide:hover,
  .portfolio-item:hover,
  .certification-item:hover {
    transform: none; /* Disable hover effects on mobile */
  }
  
  .service-image img:hover,
  .gallery-main-img:hover,
  .portfolio-image img:hover {
    transform: none;
  }

  .service-slide {
    min-width: 220px;
    max-width: 220px;
    height: 260px;
  }

  .service-image {
    height: 120px;
  }
  
  .service-slide h3 {
    font-size: 1rem;
    margin: 0.8rem 1.2rem 0.4rem 1.2rem;
  }
  
  .service-slide p {
    font-size: 0.85rem;
    margin: 0 1.2rem 1.2rem 1.2rem;
  }

  .about-logo img {
    width: 70px;
    height: 70px;
  }
  
  .about-logo {
    margin-bottom: 1.5rem;
  }

  .hero {
    padding: 2rem 1rem;
    padding-top: calc(2rem + 80px);
    background-attachment: scroll;
  }

  .hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
  }

  .hero-text p {
    font-size: 1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .about-text h2 {
    font-size: 2.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .form-group {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 2rem;
  }

  .slider-arrow {
    display: none;
  }
  
  .slider-container {
    padding: 0 20px; /* Reduce padding on mobile */
  }


  .portfolio {
    padding: 4rem 0;
  }

  .portfolio h2 {
    font-size: 2rem;
  }

  .portfolio-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-image,
  .main-image {
    height: 200px;
  }

  .portfolio-content {
    padding: 1.2rem;
  }

  .portfolio-cta h3 {
    font-size: 1.3rem;
  }

  .certifications {
    padding: 4rem 0;
  }

  .certifications h2 {
    font-size: 2rem;
  }

  .certifications-grid {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .certification-item {
    padding: 0.75rem;
  }

  .cert-logo {
    width: 100px;
    height: 100px;
  }

  .company-history {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .company-history p {
    font-size: 1rem;
  }
}


@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .about-logo img {
    width: 60px;
    height: 60px;
  }
  
  .about-logo {
    margin-bottom: 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .portfolio-content {
    padding: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .slider-container {
    padding: 0 10px;
  }

  .service-slide {
    min-width: 200px;
    max-width: 200px;
    height: 240px;
  }
  
  .service-image {
    height: 100px;
  }
  
  .service-slide h3 {
    font-size: 0.95rem;
    margin: 0.6rem 1rem 0.3rem 1rem;
  }
  
  .service-slide p {
    font-size: 0.8rem;
    margin: 0 1rem 1rem 1rem;
  }

  .portfolio-header {
    margin-bottom: 3rem;
  }

  .portfolio-filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 200px;
  }

  .project-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .portfolio-content h3 {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .certifications-header {
    margin-bottom: 3rem;
  }

  .certifications-grid {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }

  .certification-item {
    padding: 0.5rem;
  }

  .cert-logo {
    width: 80px;
    height: 80px;
  }

  .cert-info h3 {
    font-size: 0.8rem;
  }

  .cert-info p {
    font-size: 0.7rem;
  }

  .cert-number {
    font-size: 0.65rem;
  }
}