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

/* Support for devices with notch */
html {
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Improve iOS tap highlighting */
* {
  -webkit-tap-highlight-color: rgba(74, 144, 184, 0.2);
  -webkit-touch-callout: none;
}

/* Prevent horizontal scroll on mobile */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

:root {
  --primary-color: #2980b9; /* Celeste mediano */
  --secondary-color: #3498db; /* Celeste claro */
  --accent-color: #5dade2; /* Celeste suave */
  --light-blue: #ebf3fd; /* Celeste muy claro */
  --dark-blue: #1f4e79; /* Celeste oscuro */
  --white: #ffffff;
  --light-gray: #f8fafb;
  --dark-gray: #34495e;
  --text-dark: #2c3e50;
  --gradient: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--accent-color) 100%
  );
  --shadow: 0 10px 30px rgba(41, 128, 185, 0.15);
  --shadow-hover: 0 20px 40px rgba(41, 128, 185, 0.25);
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo h2 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.8rem;
}

.logo span {
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 100px 20px 50px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  position: relative;
  animation: slideInLeft 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  -webkit-background-clip: text;
  background-clip: text;
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
  color: #ffffff !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-color);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background: var(--light-blue);
  color: var(--primary-color);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.floating-card {
  width: 400px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
  position: relative;
}

.floating-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-color), var(--light-blue));
  border-radius: 22px;
  z-index: -1;
}

.floating-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.floating-card:hover img {
  transform: scale(1.05);
}

/* Services Section */
.services {
  padding: 100px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
  position: relative;
  color: var(--primary-color) !important;
  text-shadow: none;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

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

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(74, 144, 184, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary-color) !important;
}

.service-card p {
  color: var(--dark-gray);
  line-height: 1.6;
  color: var(--dark-gray) !important;
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
  background: var(--light-blue);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  opacity: 0.8;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 300px;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(41, 128, 185, 0.2) 0%,
    rgba(41, 128, 185, 0.6) 60%,
    rgba(41, 128, 185, 0.9) 100%
  );
  color: var(--white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.gallery-overlay p {
  font-size: 0.9rem;
  color: #ffffff;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: var(--white);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item i {
  font-size: 2rem;
  color: var(--accent-color);
  width: 60px;
  text-align: center;
}

.contact-item h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color) !important;
}

.contact-item p {
  color: var(--dark-gray);
  color: var(--dark-gray) !important;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Form Validation Styles */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
  background-color: #fdf2f2;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.error-message::before {
  content: "⚠";
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--light-gray);
  color: var(--dark-gray) !important;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: var(--white);
  transform: translateY(-2px);
}

.submit-btn {
  width: 100%;
  background: var(--gradient);
  color: var(--white);
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Button Loading State */
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.submit-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  min-width: 300px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateX(450px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-success {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.notification-error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification-info {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.notification-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Notification Adjustments */
@media (max-width: 768px) {
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
    transform: translateY(-100px);
  }

  .notification.show {
    transform: translateY(0);
  }
}

/* Enhanced Form Focus States */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
  background-color: #fafbfc;
}

/* Success State for Form */
.form-group.success input,
.form-group.success textarea {
  border-color: #27ae60;
  background-color: #f8fff9;
}

/* Loading Animation for Submit Button */
.submit-btn.loading {
  position: relative;
  color: transparent;
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

/* Footer */
.footer {
  background: var(--dark-blue);
  color: var(--white);
  padding: 60px 0 20px;
  border-top: 1px solid rgba(41, 128, 185, 0.2);
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.footer-section p {
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--light-blue);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-dark);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.footer-section ul li i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(41, 128, 185, 0.2);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.8;
  color: var(--text-dark);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

/* Modal Responsive Improvements */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

.close:hover {
  color: var(--accent-color);
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ffffff;
  padding: 15px 10px;
  height: auto;
  min-height: 60px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  margin-top: 20px;
}

#caption h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#caption p {
  color: #ffffff;
  font-size: 1rem;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Additional text visibility improvements */
.hero-title {
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  color: #ffffff !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.cta-button {
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ensure all section titles are visible */
.section-title {
  color: var(--primary-color) !important;
  text-shadow: none;
}

/* Service cards text */
.service-card h3 {
  color: var(--primary-color) !important;
}

.service-card p {
  color: var(--dark-gray) !important;
}

/* Contact section improvements */
.contact-item h4 {
  color: var(--primary-color) !important;
}

.contact-item p {
  color: var(--dark-gray) !important;
}

/* Footer text visibility */
.footer-section h3,
.footer-section h4 {
  color: #ffffff !important;
}

.footer-section p,
.footer-section ul li a {
  color: #ffffff !important;
}

.footer-bottom {
  color: #ffffff !important;
}

/* Form improvements */
.form-group input,
.form-group textarea {
  color: var(--dark-gray) !important;
  background: #ffffff !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888888 !important;
}

/* Responsive Design */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3rem;
  }

  .floating-card {
    width: 350px;
    height: 450px;
  }
}

/* Tablet Landscape */
@media (max-width: 991px) {
  .nav-container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 15px 40px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .floating-card {
    width: 320px;
    height: 420px;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 20px 50px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .floating-card {
    width: 300px;
    height: 400px;
    margin-top: 2rem;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

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

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
  }

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

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

  .service-card {
    padding: 2rem 1.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .container {
    padding: 0 15px;
  }
}

/* Mobile Landscape */
@media (max-width: 576px) {
  .nav-container {
    height: 70px;
    padding: 0 10px;
  }

  .logo h2 {
    font-size: 1.5rem;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .hero {
    padding: 90px 15px 30px;
    min-height: 90vh;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

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

  .floating-card {
    width: 280px;
    height: 350px;
    margin-top: 1.5rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-icon i {
    font-size: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .contact-item i {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 10px;
  }

  /* Modal adjustments for mobile */
  .modal-content {
    width: 95%;
    max-height: 70vh;
  }

  .close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }

  #caption {
    width: 95%;
    font-size: 0.9rem;
    height: auto;
    padding: 15px 0;
  }

  /* Improve touch targets */
  .gallery-item {
    min-height: 200px;
  }

  .cta-button,
  .submit-btn {
    padding: 12px 24px;
    font-size: 1rem;
    min-height: 44px;
  }

  /* Form improvements */
  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Small Mobile */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .floating-card {
    width: 250px;
    height: 320px;
  }

  .service-card,
  .contact-form {
    padding: 1.2rem 0.8rem;
  }

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

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .logo h2 {
    font-size: 1.3rem;
  }

  /* Ultra mobile optimizations */
  .modal-content {
    width: 98%;
    max-height: 60vh;
  }

  .close {
    top: 5px;
    right: 15px;
    font-size: 25px;
  }

  .gallery-item {
    min-height: 180px;
  }

  .hero {
    padding: 80px 10px 20px;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 8px;
  }
}

/* Extra improvements for very small screens */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.1;
  }

  .floating-card {
    width: 220px;
    height: 280px;
  }

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

  .service-card {
    padding: 1rem 0.6rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .logo h2 {
    font-size: 1.2rem;
  }

  .nav-container {
    height: 65px;
  }

  .nav-menu {
    top: 65px;
    height: calc(100vh - 65px);
  }
}
