/* ========================================
   MARK TECHNO COM - Custom Styles
   File: css/style.css
   ======================================== */

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* For sticky header */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent zoom on form inputs (iOS) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider .swiper-slide {
  background-size: cover;
  background-position: center;
}

.hero-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
  background: white;
  width: 24px;
  border-radius: 5px;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: white;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-blur-sm;
  transition: all 0.3s ease;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
  font-size: 18px;
  font-weight: 600;
}

/* ========================================
   NAVIGATION & HEADER
   ======================================== */
#header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
  backdrop-blur-sm;
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #1e40af;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
#mobileMenu {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

#mobileMenu.active {
  max-height: 400px;
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.service-card {
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card:hover .w-14 {
  transform: scale(1.05);
}

/* ========================================
   FORM STYLES
   ======================================== */
#contactForm input:focus,
#contactForm textarea:focus,
#contactForm select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

#contactForm input:invalid:not(:placeholder-shown),
#contactForm textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

/* Checkbox styling */
input[type="checkbox"] {
  cursor: pointer;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
  animation: pulse 2s infinite;
  bottom: 1.25rem;
  right: 1.25rem;
}

.whatsapp-float:hover {
  animation: none;
  transform: scale(1.1) rotate(5deg);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
  
  /* Hide tooltip on mobile */
  .whatsapp-float span {
    display: none !important;
  }
}

/* ========================================
   UTILITY & ANIMATIONS
   ======================================== */
.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth hover for links */
a {
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}

/* Reduce motion for accessibility */
@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;
  }
}

/* Print styles */
@media print {
  .whatsapp-float,
  #header,
  .hero-slider,
  #enquiry {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
}