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

/* ========== BASE ========== */
body {
 
  font-family: 'Cinzel', serif;

  color: #000;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #fff;
  padding-top: 70px;
}

/* ======== COMMON SCROLL EFFECT ========= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  will-change: opacity, transform;
}

.reveal-on-scroll.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ========== NAVIGATION - MOBILE FIRST ========== */
nav#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav.scrolled {
  background: rgba(0, 117, 94, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
}

.logo-img {
  height: 40px;
  object-fit: contain;
  z-index: 1001;
}

/* HAMBURGER - ALWAYS VISIBLE ON MOBILE */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 1001;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: #fff;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background: #fff;
}

/* MOBILE MENU - HIDDEN BY DEFAULT */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 117, 94, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.nav-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 10px 20px;
}

.nav-menu a:hover {
  color: #90EE90;
  transform: scale(1.1);
}

/* ========== HERO SECTION ========== */
.hero {
  background: url('images/qincorebackground.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  height: 100vh;
  min-height: 500px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 90%;
  width: 100%;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1rem;
  margin: 1rem 0 2rem;
  color: white;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ========== HERO BUTTON ========== */
.hero-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #00755E;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #00755E;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 0%;
  width: 100%;
  background-color: white;
  z-index: -1;
  transition: height 0.3s ease;
}

.hero-btn:hover {
  color: #00755E;
}

.hero-btn:hover::before {
  height: 100%;
}

/* ========== ANIMATIONS ========== */
@keyframes floatIn {
  0% {
      opacity: 0;
      transform: translateY(30px) scale(0.95);
  }
  100% {
      opacity: 1;
      transform: translateY(0) scale(1);
  }
}

.hero-content h1,
.hero-content .hero-subtitle,
.hero-content .hero-btn {
  opacity: 0;
  will-change: transform, opacity;
}

.hero-content.animate h1 {
  animation: floatIn 1s ease forwards;
  animation-delay: 0.3s;
}

.hero-content.animate .hero-subtitle {
  animation: floatIn 1s ease forwards;
  animation-delay: 0.6s;
}

.hero-content.animate .hero-btn {
  animation: floatIn 1s ease forwards;
  animation-delay: 0.9s;
}

/* ========== ABOUT ========== */
#about {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  color: #ffffff;
  padding: 40px 15px;
  z-index: 1;
}

#about .animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #00755E, #ffffff, #000000, #00755E, #ffffff, #000000, #00755E);
  background-size: 1400% 1400%;
  animation: gradientShift 15s ease infinite;
  z-index: -2;
}

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

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

#about .floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#about .floating-element {
  position: absolute;
  width: 15px;
  height: 15px;
  background: rgba(0, 117, 94, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

#about .floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
#about .floating-element:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; }
#about .floating-element:nth-child(3) { top: 80%; left: 20%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-15px) rotate(180deg); opacity: 0.8; }
}

#about .about-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

#about .main-title {
 
  font-family: 'Cinzel', serif;

  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #00755E, #ffffff, #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 15px rgba(0, 117, 94, 0.3)); }
  to { filter: drop-shadow(0 0 25px rgba(0, 117, 94, 0.5)); }
}

#about .sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2rem;
}

#about .section-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

#about .section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s;
}

#about .section-card:hover::before {
  left: 100%;
}

#about .section-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(0, 117, 94, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

#about .section-number {
  position: absolute;
  top: -5px;
  right: 15px;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 117, 94, 0.1);
  line-height: 1;
}

#about .section-title {

  font-family: 'Lora', serif;

  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #00755E;
  position: relative;
  z-index: 2;
}

#about .section-content {
  font-family: 'Merriweather', serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

#about .highlight-text {
  background: linear-gradient(135deg, #00755E, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

#about .quote-block {
  background: rgba(0, 117, 94, 0.1);
  border-left: 4px solid #00755E;
  padding: 15px;
  margin: 15px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 0.95rem;
  color: #ffffff;
  position: relative;
}

#about .quote-block::before {
  content: '"';
  font-size: 2.5rem;
  color: rgba(0, 117, 94, 0.3);
  position: absolute;
  top: -5px;
  left: 8px;
}

#about .mission-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

#about .mission-list li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

#about .mission-list li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 1rem;
  animation: pulse 2s infinite;
}

#about .mission-list li:hover {
  color: #00755E;
  transform: translateX(5px);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

#about .dynasty-banner {
  background: linear-gradient(135deg, rgba(0, 117, 94, 0.2), rgba(255, 255, 255, 0.1));
  border: 2px solid rgba(0, 117, 94, 0.3);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#about .dynasty-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 117, 94, 0.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#about .dynasty-text {
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* ========== SERVICES SECTION STYLING ========== */
.services-section {
  padding: 40px 15px;
  min-height: 50vh;
}

.services-section .section-title {
  
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #00755E, #005244, #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: glow 2s ease-in-out infinite alternate;
  
  /* Initial state for smoother animation */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.services-section .section-title.title-animated {
  font-family: 'Cinzel', serif;
  opacity: 1;
  transform: translateY(0);
}

.services-section .services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  
  /* Prevent grid collapse while cards are hidden */
  min-height: 200px;
}

.services-section .service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  
 
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  
  
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.services-section .service-card.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.services-section .service-card:hover {
  transform: translateY(-8px) scale(1.03);
  transition: transform 0.2s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.services-section .image-container {
  position: relative;
  overflow: hidden;
  height: 180px; 
}

.services-section .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.services-section .service-card:hover .image-container img {
  transform: scale(1.05);
}


.services-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.services-section .icon {
  font-size: 2rem;
  color: #fff;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}


.services-section .service-card:hover .overlay {
  opacity: 1;
}

.services-section .service-card:hover .icon {
  transform: scale(1);
}


.services-section .service-card h3 {
  
  font-family: 'Lora', serif;

  font-size: 1.1rem;
  margin: 15px 15px 8px;
  color: #00755E;
  transition: color 0.3s ease;
}

.services-section .service-card:hover h3 {
  color: #005244;
}

.services-section .service-card p {
  font-family: 'Merriweather', serif;
  font-size: 0.9rem;
  padding: 0 15px 20px;
  color: #555;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.services-section .service-card:hover p {
  color: #333;
}
/* ========== WHY US ========== */
.why-us-section {
  position: relative;
  background: #0a0a0a;
  color: #ffffff;
  padding: 40px 15px;
  z-index: 1;
  overflow: hidden;
}

.why-us-section .animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      45deg,
      #001c1a,
      #002421,
      #002e28,
      #001614,
      #000a09,
      #000000,
      #001c1a
  );
  background-size: 1400% 1400%;
  animation: gradientShift 15s ease infinite;
  z-index: -1;
}

.why-us-section .container {
  max-width: 1200px;
  margin: auto;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.image-column {
  width: 100%;
  max-width: 400px;
}

.image-column .expert-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.info-column {
  width: 100%;
}

.main-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #00755E, #ffffff, #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: glow 2s ease-in-out infinite alternate;
}

.section-title {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.section-description {
  font-family: 'Merriweather', serif;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.feature-card {
  background: linear-gradient(135deg, rgba(0, 117, 94, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  padding: 20px;
  border: 1px solid rgba(0, 117, 94, 0.3);
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 12px;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #00755E;
  box-shadow: 0 10px 25px rgba(0, 117, 94, 0.2);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00755E, #00a693);
}

.feature-card .icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00755E, #00a693);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 117, 94, 0.3);
}

.feature-card h3 {
  font-family: 'Lora', serif;
  margin: 0;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 600;
}

.feature-card p {
  font-family: 'Merriweather', serif;
  margin: 0;
  font-size: 0.9rem;
  color: #ddd;
  line-height: 1.5;
}

/* ========== CONTACT ========== */
.contact-section {
  padding: 40px 15px;
}

.contact-section .section-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #00755E, #005244, #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: soft-glow 2.5s ease-in-out infinite alternate;
}

@keyframes soft-glow {
  from {
      filter: drop-shadow(0 0 5px rgba(0, 117, 94, 0.2));
  }
  to {
      filter: drop-shadow(0 0 12px rgba(0, 117, 94, 0.4));
  }
}

/* Layout */
.contact-content {
  font-family: 'Merriweather', serif;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  font-size: 1rem;
  order: 2;
}

.contact-form {
  font-family: 'Lora', serif;
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 117, 94, 0.2);
  border: 1px solid rgba(0, 117, 94, 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  order: 1;
}

.contact-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 117, 94, 0.3);
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.contact-info i {
  color: #00755E;
  font-size: 1.1rem;
}

.contact-info a {
  color: #00755E;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.map-container {
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Floating Label Style */
.contact-form .form-group {
  position: relative;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 10px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: transparent;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  padding: 0 5px;
  font-size: 0.9rem;
  color: #666;
  transition: 0.3s;
  pointer-events: none;
}

/* Focus and not empty input styles */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00755E;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 0.8rem;
  color: #00755E;
}

/* Submit Button */
.submit-btn {
  font-family: 'Lora', serif;
  background-color: #00755E;
  color: #fff;
  padding: 12px 25px;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #005e4a;
}

.contact-info iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 117, 94, 0.2);
}

.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #333;
}

.contact-info .info-item i {
  color: #00755E;
  font-size: 1.1rem;
}

/* =========== FOOTER ============= */
.footer {
  background-color: #00755E;
  color: #fff;
  padding: 30px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
}

.footer-logo h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-logo p {
  font-family: 'Merriweather', serif;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-socials h3 {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.social-icons {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  justify-content: center;
}

.social-icons a {
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffffffb2;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #ffffff30;
  font-size: 0.8rem;
  color: #e0e0e0;
  width: 100%;
  font-family: 'Merriweather', serif;
}

/* ========== DESKTOP MEDIA QUERIES ========== */

/* Tablet and up */
@media (min-width: 768px) {
  body {
      padding-top: 80px;
  }

  /* NAVIGATION - Hide hamburger, show desktop menu */
  .hamburger {
      display: none;
  }

  .nav-menu {
      position: static;
      height: auto;
      background: transparent;
      flex-direction: row;
      justify-content: flex-end;
      align-items: center;
      gap: 2rem;
      transform: none;
      opacity: 1;
      visibility: visible;
      z-index: auto;
  }

  .nav-menu a {
      color: black;
      font-size: 1rem;
      font-weight: normal;
      padding: 0;
      position: relative;
  }

  .nav-menu a:hover {
      color: #90EE90;
      transform: translateY(-2px);
  }

  .nav-menu a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: #011f08;
      transition: width 0.3s ease;
  }

  .nav-menu a:hover::after {
      width: 100%;
  }

  /* HERO */
  .hero-content h1 {
      font-size: 3rem;
  }

  .hero-subtitle {
      font-size: 1.2rem;
  }

  .hero-btn {
      font-size: 1.1rem;
  }

  /* ABOUT */
  #about {
      padding: 60px 30px;
  }

  #about .main-title {
      font-size: 3rem;
      margin-bottom: 3rem;
  }

  #about .sections-grid {
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 30px;
  }

  #about .section-card {
      padding: 30px;
  }

  #about .section-title {
      font-size: 1.8rem;
  }

  #about .section-content {
      font-size: 1rem;
  }

  #about .section-number {
      font-size: 4rem;
      top: -10px;
      right: 20px;
  }

  /* SERVICES */
  .services-section {
      padding: 60px 30px;
  }

  .services-section .section-title {
      font-size: 3rem;
      margin-bottom: 3rem;
  }

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

  .services-section .image-container img {
      height: 200px;
  }

  .services-section .service-card h3 {
      font-size: 1.2rem;
  }

  .services-section .service-card p {
      font-size: 1rem;
  }

  /* WHY US */
  .why-us-section {
      padding: 60px 30px;
  }

  .content-wrapper {
      flex-direction: row;
      text-align: left;
      gap: 40px;
  }

  .image-column {
      flex: 1 1 300px;
  }

  .image-column .expert-image {
      height: 400px;
  }

  .info-column {
      flex: 2 1 600px;
  }

  .main-title {
      font-size: 3rem;
      margin-bottom: 3rem;
  }

  .section-title {
      font-size: 2rem;
  }

  .section-description {
      font-size: 1rem;
  }

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

  .feature-card {
      flex-direction: row;
      text-align: left;
      padding: 25px;
  }

  .feature-card .icon {
      width: 50px;
      height: 50px;
      font-size: 2rem;
  }

  .feature-card h3 {
      font-size: 1.2rem;
  }

  .feature-card p {
      font-size: 1rem;
  }

  /* CONTACT */
  .contact-section {
      padding: 60px 30px;
  }

  .contact-section .section-title {
      font-size: 3rem;
      margin-bottom: 3rem;
  }

  .contact-content {
      flex-direction: row;
      gap: 40px;
  }

  .contact-info {
      flex: 1 1 350px;
      order: 1;
  }

  .contact-form {
      flex: 1 1 350px;
      padding: 40px 30px;
      order: 2;
  }

  .contact-form input,
  .contact-form textarea {
      padding: 14px 12px;
      font-size: 1rem;
  }

  .contact-form label {
      font-size: 1rem;
      left: 14px;
      top: 14px;
  }

  .contact-form input:focus + label,
  .contact-form input:not(:placeholder-shown) + label,
  .contact-form textarea:focus + label,
  .contact-form textarea:not(:placeholder-shown) + label {
      top: -10px;
      left: 12px;
      font-size: 0.85rem;
  }

  .submit-btn {
      font-size: 1rem;
  }

  .contact-info p {
      font-size: 1.1rem;
  }

  .contact-info iframe {
      height: 200px;
  }

  /* FOOTER */
  .footer {
      padding: 40px 30px;
  }

  .footer-container {
      flex-direction: row;
      justify-content: space-between;
      align-items: flex-start;
      text-align: left;
      gap: 40px;
  }

  .footer-logo h2 {
      font-size: 1.8rem;
  }

  .footer-logo p {
      font-size: 1rem;
  }

  .footer-socials h3 {
      font-size: 1.4rem;
  }

  .social-icons {
      justify-content: flex-start;
  }

  .social-icons a {
      font-size: 1.5rem;
  }

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

/* Large Desktop */
@media (min-width: 1200px) {
  .nav-container {
      padding: 1rem 40px;
  }

  #about {
      padding: 80px 40px;
  }

  #about .main-title {
      font-size: 4rem;
      margin-bottom: 4rem;
  }

  #about .sections-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 40px;
  }

  #about .section-card {
      padding: 40px;
  }

  #about .section-title {
      font-size: 2.2rem;
  }

  #about .section-content {
      font-size: 1.1rem;
  }

  #about .section-number {
      font-size: 6rem;
  }

  .services-section {
      padding: 80px 40px;
  }

  .services-section .section-title {
      font-size: 4rem;
      margin-bottom: 4rem;
  }

  .services-section .services-grid {
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 30px;
  }

  .why-us-section {
      padding: 80px 40px;
  }

  .main-title {
      font-size: 4rem;
      margin-bottom: 4rem;
  }

  .section-title {
      font-size: 2.5rem;
  }

  .features-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .contact-section {
      padding: 80px 40px;
  }

  .contact-section .section-title {
      font-size: 4rem;
      margin-bottom: 4rem;
  }

  .footer {
      padding: 50px 40px;
  }
}

/* Prevent horizontal overflow */
* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure images don't break layout */
img {
  max-width: 100%;
  height: auto;
}

/* Text wrapping */
h1, h2, h3, h4, h5, h6, p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}





/* Responsive improvements */
@media (min-width: 768px) {
  .services-section .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (min-width: 1024px) {
  .services-section .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (min-width: 1200px) {
  .services-section .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Loading state improvement */
.services-section.loading .service-card {
  visibility: hidden;
}

.services-section:not(.loading) .service-card {
  visibility: visible;
}