/* Modern TECHTONIC SOLUTIONS CSS - 2025 Design */

:root {
  --color-primary: #3b82f6;
  --color-accent: #7c3aed; 
  --color-gradient-start: #3b82f6;
  --color-gradient-end: #7c3aed;
  --color-muted: #6b7280;
  --surface: #ffffff;
  --radius-lg: 16px;
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #0f172a;
}

/* Mobile Menu Animations */
#mobile-menu {
  transition: all 0.3s ease-in-out;
  transform-origin: top;
}

#mobile-menu.hidden {
  opacity: 0;
  transform: scaleY(0);
  max-height: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  transform: scaleY(1);
  max-height: 500px;
}

#menu-btn svg {
  transition: all 0.3s ease-in-out;
}

#menu-btn .hamburger-icon,
#menu-btn .close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#menu-btn {
  position: relative;
  width: 24px;
  height: 24px;
}

/* Header improvements */
header {
  transition: all 0.3s ease-in-out;
}

header.-translate-y-full {
  transform: translateY(-100%);
}

/* Map container improvements */
.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 300px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
    min-height: 250px;
  }
}

/* Modern Typography */
.text-shadow {
  text-shadow: 0 4px 8px rgba(15, 23, 42, 0.12);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Floating Elements Animation */
.floating-element {
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 8s;
}

.floating-element:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 7s;
}

.floating-element:nth-child(4) {
  animation-delay: -1s;
  animation-duration: 9s;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1); 
  }
  33% { 
    transform: translateY(-15px) rotate(2deg) scale(1.05); 
  }
  66% { 
    transform: translateY(-5px) rotate(-1deg) scale(0.95); 
  }
}

/* Hero Background */
.hero-bg {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(600px circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(800px circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(400px circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Modern Card Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  border-radius: var(--radius-lg);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-large);
}

/* Button Styles */
.btn-modern {
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

/* Navigation Enhancements */
.nav-link-modern {
  position: relative;
  overflow: hidden;
}

.nav-link-modern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.3s ease;
}

.nav-link-modern:hover::after {
  width: 100%;
}

/* Testimonial Cards */
.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

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

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

/* Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Pulse Animation for CTA */
.pulse-animation {
  animation: pulse 2s infinite;
}

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

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .floating-element {
    display: none; /* Hide floating elements on mobile for better performance */
  }
  
  .hero-bg {
    padding: 3rem 1rem;
  }
  
  .glass-card {
    backdrop-filter: blur(10px); /* Reduce blur on mobile */
  }
}

@media (min-width: 1024px) {
  .hero-bg {
    padding: 5rem 2rem;
  }
}

/* Print Styles */
@media print {
  .floating-element,
  .glass-card,
  .btn-modern,
  .hover-lift {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .floating-element,
  .hover-lift,
  .fade-in,
  .pulse-animation {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid black;
  }
  
  .gradient-text {
    -webkit-text-fill-color: initial;
    color: var(--color-primary);
  }
}
.icon-circle{ width: 80px; height: 80px; display:inline-flex; align-items:center; justify-content:center; border-radius:50% }

/* Contrast fixes */
.text-muted { color: #64748b !important; } /* darker for better contrast on light bgs */
.card .text-muted { color: #64748b !important; } /* ensure in cards */

