/* ========================================
   Custom Design Improvements & Responsiveness
   ======================================== */

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

/* Improved body typography */
body {
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   SLIDER IMPROVEMENTS
   ======================================== */

/* Better slider image loading and display */
.main-slider-one__single .image-layer {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

/* Enhanced slider content visibility */
.main-slider-one__content {
  position: relative;
  z-index: 10;
}

.main-slider-one__content .title h2 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  line-height: 1.2;
}

/* Improved button styling */
.thm-btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.thm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Better navigation arrows for slider */
.owl-nav button {
  transition: all 0.3s ease;
}

.owl-nav button:hover {
  opacity: 1 !important;
}

/* ========================================
   HEADER IMPROVEMENTS
   ======================================== */

/* Sticky header smooth transition */
.stricky-header {
  transition: all 0.3s ease;
}

/* Better header contact info layout */
.main-header__contact-info ul li {
  padding: 10px 0;
}

/* Improved logo sizing */
.logo-box-one img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

/* Mobile menu improvements */
.mobile-nav__toggler {
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-nav__toggler:hover {
  opacity: 0.8;
}

/* ========================================
   FEATURE SECTIONS
   ======================================== */

/* Better card design */
.feature-one__single {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.feature-one__single:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.shanthi-home-quick img {
  transition: transform 0.3s ease;
}

.feature-one__single:hover .shanthi-home-quick img {
  transform: scale(1.1);
}

/* ========================================
   IMAGE OVERLAYS
   ======================================== */

.single-img {
  position: relative;
  overflow: hidden;
}

.single-img .image {
  transition: transform 0.5s ease;
  display: block;
  width: 100%;
  height: auto;
}

.single-img:hover .image {
  transform: scale(1.05);
}

.img-overlay {
  transition: opacity 0.3s ease;
}

.single-img:hover .img-overlay {
  opacity: 1;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-one__img img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.about-one__img:hover img {
  transform: scale(1.02);
}

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

.case-one__single {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.case-one__single:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.case-one__single-img img {
  transition: transform 0.5s ease;
}

.case-one__single:hover .case-one__single-img img {
  transform: scale(1.1);
}

/* ========================================
   FOOTER
   ======================================== */

.scroll-to-top {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN - TABLETS
   ======================================== */

@media (max-width: 991px) {
  /* Header adjustments */
  .main-header-one__top {
    padding: 15px 0;
  }

  .main-header__contact-info ul {
    flex-direction: column;
    gap: 10px;
  }

  .main-header__contact-info ul li {
    width: 100%;
    text-align: center;
  }

  .logo-box-one img {
    max-height: 60px;
  }

  /* Slider text adjustments */
  .main-slider-one__content .title h2 {
    font-size: 32px;
    line-height: 1.3;
  }

  /* Feature cards */
  .feature-one__single {
    margin-bottom: 30px;
  }

  /* About section */
  .about-one__content {
    margin-bottom: 30px;
  }

  /* Services grid */
  .case-one__single {
    margin-bottom: 30px;
  }

  /* SPB section */
  .spb-box {
    margin-top: 30px;
    padding: 20px;
  }

  .spb-img {
    max-width: 100%;
    height: auto;
  }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

@media (max-width: 767px) {
  /* Typography */
  body {
    font-size: 14px;
  }

  /* Header */
  .main-header-one__top-middle {
    display: none;
  }

  .main-header-one__top-left {
    width: 100%;
    text-align: center;
  }

  .logo-box-one {
    text-align: center;
  }

  .logo-box-one img {
    max-height: 50px;
  }

  .main-header-one__bottom-right {
    display: none;
  }

  /* Slider */
  .main-slider-one {
    min-height: 400px;
  }

  .main-slider-one__single {
    min-height: 400px;
  }

  .main-slider-one__content {
    padding: 20px;
  }

  .main-slider-one__content .title h2 {
    font-size: 24px;
    line-height: 1.4;
  }

  .btn-box {
    margin-top: 20px;
  }

  .thm-btn {
    padding: 12px 25px;
    font-size: 14px;
  }

  /* Feature cards */
  .feature-one__single {
    margin-bottom: 20px;
  }

  .feature-one__single-content h2 {
    font-size: 20px;
  }

  .feature-one__single-content p {
    font-size: 14px;
    min-height: auto !important;
  }

  /* Section titles */
  .sec-title__title {
    font-size: 24px;
    line-height: 1.3;
  }

  /* About section */
  .about-one {
    padding: 40px 0;
  }

  .about-one__content-text p {
    font-size: 14px;
    text-align: left !important;
  }

  .about-one__img {
    margin-top: 30px;
  }

  /* Image grid */
  .nopad {
    padding: 0 !important;
  }

  .col-md-3.nopad {
    width: 50%;
    float: left;
  }

  .text-hover {
    font-size: 14px;
    padding: 10px;
  }

  /* Services */
  .case-one {
    padding: 40px 0;
  }

  .case-one__single-content h2 {
    font-size: 18px;
  }

  /* SPB Section */
  .spb {
    margin-top: 40px !important;
  }

  .spb-box h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .spb-box p {
    font-size: 14px;
  }

  /* Gallery section */
  .gallery-one__top-inner-txt {
    font-size: 16px !important;
    padding: 0 15px;
  }

  /* Mobile navigation */
  .mobile-nav__content {
    width: 280px;
  }

  .mobile-nav__contact a {
    font-size: 12px;
    word-break: break-word;
  }
}

/* ========================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ======================================== */

@media (max-width: 575px) {
  /* Slider */
  .main-slider-one {
    min-height: 350px;
  }

  .main-slider-one__single {
    min-height: 350px;
  }

  .main-slider-one__content .title h2 {
    font-size: 20px;
  }

  /* Feature cards */
  .shanthi-home-quick img {
    max-width: 60px;
  }

  /* Section spacing */
  section {
    padding: 30px 0;
  }

  /* Image grid - stack vertically on very small screens */
  .col-md-3.nopad {
    width: 100%;
    float: none;
  }

  /* Buttons */
  .thm-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ========================================
   LOADING OPTIMIZATION
   ======================================== */

/* Lazy loading improvements */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent layout shift */
.image-layer {
  min-height: 400px;
}

@media (max-width: 767px) {
  .image-layer {
    min-height: 350px;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus states */
a:focus,
button:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Better contrast for text */
.main-slider-one__content .title h2 {
  color: #ffffff;
}

/* Skip to content link for screen readers */
.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-to-content:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .main-header,
  .mobile-nav__wrapper,
  .scroll-to-top,
  .main-slider {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU acceleration for animations */
.feature-one__single,
.case-one__single,
.thm-btn,
.scroll-to-top {
  will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
