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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #f8fafc;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

/* ==================== */
/* LOGO STYLES */
/* ==================== */

.logo-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
}

.logo-container-mobile {
  background: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 50px;
  width: auto;
}

.company-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.logo-container-mobile .company-name {
  color: #1d6481;
}

/* ==================== */
/* DESKTOP LAYOUT */
/* ==================== */

.desktop-layout {
  display: block;
}

/* Banner Section - Desktop */
.banner-section {
  background-image: url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  min-height: 600px;
  position: relative;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  padding-top: 100px;
}

/* Banner Grid for Desktop */
.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  width: 100%;
}

.banner-content {
  color: white;
  padding-top: 2rem;
}

.banner-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.banner-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Contact Form Side - Desktop */
.contact-form-side {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 1rem;
}

.contact-form-container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 380px;
  margin-top: -1rem;
}

.contact-form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1d6481;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* ==================== */
/* MOBILE LAYOUT */
/* ==================== */

.mobile-layout {
  display: none;
}

/* Mobile Banner */
.banner-section-mobile {
  background-image: url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 50vh;
  min-height: 400px;
  position: relative;
}

.banner-overlay-mobile {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.banner-content-mobile {
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.banner-title-mobile {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.banner-subtitle-mobile {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.contact-form-mobile-section {
  background: #f8fafc;
}

/* ==================== */
/* COMMON STYLES */
/* ==================== */

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1d6481;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 3xl;
  margin: 0 auto;
}

/* About Section */
.about-section {
  height: fit-content;
}

/* News Section */
.news-section {
  height: fit-content;
}

.news-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #418ea3;
  transition: all 0.3s ease;
  position: relative;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-title {
  color: #1d6481;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.news-text {
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.news-date {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Contact Form */
.form-input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #418ea3;
  box-shadow: 0 0 0 2px rgba(65, 142, 163, 0.1);
}

.form-submit-btn {
  width: 100%;
  background: #1d6481;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  background: #418ea3;
  transform: translateY(-1px);
}

/* ==================== */
/* CAROUSEL SECTION */
/* ==================== */

.carousel-section { 
  margin: 0; 
  padding: 3rem 0;
  background: linear-gradient(135deg, #1d6481 0%, #418ea3 100%);
  position: relative;
  overflow: hidden;
}

.carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(132, 164, 173, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(132, 164, 173, 0.2) 0%, transparent 50%);
  background-size: 100% 100%;
}

.carousel-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s ease-in-out;
  will-change: transform;
  gap: 1.5rem;
}

.carousel-img {
  flex: 0 0 20%;
  width: 20%;
  height: 220px;
  object-fit: cover;
  background: #f8fafc;
  display: block;
  transition: all 0.4s ease;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.carousel-img:hover {
  transform: scale(1.08) translateY(-5px);
  z-index: 10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #1d6481;
  font-size: 1.8rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  width: 55px;
  height: 55px;
  backdrop-filter: blur(10px);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:hover { 
  background: white;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ==================== */
/* SERVICES SECTION */
/* ==================== */

.services-section {
  background: linear-gradient(135deg, #1d6481 0%, #418ea3 100%);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(132, 164, 173, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.service-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #84a4ad, #ffffff);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-symbol {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
  /* Icons will now show in their original colors */
}

.service-item:hover .service-symbol {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-description {
  color: #e2e8f0;
  line-height: 1.6;
  font-size: 0.95rem;
  font-weight: 400;
}

.services-section .section-title,
.services-section .section-subtitle {
  color: white;
}

.services-section .section-subtitle {
  color: #e2e8f0;
}

/* ==================== */
/* CHARACTERISTICS SECTION */
/* ==================== */

.characteristics-section {
  background: linear-gradient(135deg, #418ea3 0%, #84a4ad 100%);
  position: relative;
  overflow: hidden;
}

.characteristics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(132, 164, 173, 0.3) 0%, transparent 50%);
}

.characteristics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.characteristic-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.characteristic-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffffff, #e2e8f0);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.characteristic-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.characteristic-item:hover::before {
  transform: scaleX(1);
}

.characteristic-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
  /* Icons will now show in their original colors */
}

.characteristic-item:hover .characteristic-icon {
  transform: scale(1.1);
}

.characteristic-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.characteristic-description {
  color: #f1f5f9;
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
}

.characteristics-section .section-title,
.characteristics-section .section-subtitle {
  color: white;
}

.characteristics-section .section-subtitle {
  color: #f1f5f9;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1d6481 0%, #418ea3 100%);
}

/* ==================== */
/* RESPONSIVE BREAKPOINTS */
/* ==================== */

/* Mobile Styles */
@media (max-width: 768px) {
  .desktop-layout {
    display: none;
  }
  
  .mobile-layout {
    display: block;
  }
  
  .banner-section-mobile {
    height: 50vh;
    min-height: 400px;
    background-image: url('images/banner.jpg');
  }
  
  .banner-title-mobile {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }
  
  .banner-subtitle-mobile {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
    max-width: 100%;
    margin-top: 0;
  }
  
  .contact-form-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  /* Carousel Mobile */
  .carousel-section {
    padding: 2rem 0;
  }
  
  .carousel-img {
    flex: 0 0 50%;
    width: 50%;
    height: 150px;
  }
  
  .carousel-track {
    gap: 0.8rem;
  }
  
  .carousel-container {
    padding: 0 1rem;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
  
  .carousel-btn.prev { left: 5px; }
  .carousel-btn.next { right: 5px; }
  
  .logo-img {
    height: 40px;
  }
  
  .company-name {
    font-size: 1.5rem;
  }
  
  /* Services & Characteristics Mobile */
  .services-grid,
  .characteristics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .service-item,
  .characteristic-item {
    padding: 2rem 1.5rem;
  }
  
  .service-symbol,
  .characteristic-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
  }
  
  .service-title,
  .characteristic-title {
    font-size: 1.2rem;
  }
  
  .service-description,
  .characteristic-description {
    font-size: 0.9rem;
  }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .banner-title {
    font-size: 2.5rem;
  }
  
  .banner-subtitle {
    font-size: 1.1rem;
  }
  
  /* Carousel Tablet */
  .carousel-img {
    flex: 0 0 25%;
    width: 25%;
    height: 180px;
  }
  
  .carousel-track {
    gap: 1rem;
  }
  
  .logo-img {
    height: 45px;
  }
  
  .company-name {
    font-size: 1.6rem;
  }
  
  .contact-form-container {
    margin-top: -0.5rem;
    max-width: 360px;
  }
  
  .services-grid,
  .characteristics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .carousel-img {
    flex: 0 0 50%;
    width: 50%;
    height: 130px;
  }
  
  .carousel-section {
    padding: 1.5rem 0;
  }
  
  .banner-title-mobile {
    font-size: 1.6rem;
  }
  
  .banner-subtitle-mobile {
    font-size: 0.95rem;
  }
}

/* Success/Error Messages */
.success-message {
  background: #10b981;
  color: white;
  padding: 0.8rem;
  border-radius: 6px;
  margin: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.error-message {
  background: #ef4444;
  color: white;
  padding: 0.8rem;
  border-radius: 6px;
  margin: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Loading State */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Add these styles to your style.css */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Form message styles */
.success-message {
  background: #10b981 !important;
  color: white !important;
}

.error-message {
  background: #ef4444 !important;
  color: white !important;
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-weight: 500;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

/* Loading state for form */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
}

/* Add these performance optimizations */

/* Critical above-the-fold CSS */
.logo-container, .banner-section, .banner-content {
  will-change: transform;
}

/* Reduce layout shifts */
.carousel-img {
  aspect-ratio: 16/9;
  background: #f8fafc;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}