/* 
 * Cool Makers - Master CSS Stylesheet
 * Modern Cooling & Technology Theme
 * Karaikudi, Tamil Nadu
 */

:root {
  --primary-dark: #0b192c;
  --primary-navy: #1e3e62;
  --brand-blue: #0284c7;
  --brand-cyan: #06b6d4;
  --accent-light: #38bdf8;
  --bg-gradient-start: #f0f9ff;
  --bg-gradient-end: #e0f2fe;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(2, 132, 199, 0.12), 0 10px 10px -5px rgba(2, 132, 199, 0.04);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: #f8fafc;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-blue);
  border-radius: 5px;
}

/* Navbar */
.navbar-cool {
  background: rgba(11, 25, 44, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 0;
  transition: var(--transition);
}

.navbar-cool .navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-light) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 3px;
}

/* Buttons */
.btn-cool-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.75rem;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-cool-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5);
  background: linear-gradient(135deg, #0270ac 0%, #0891b2 100%);
}

.btn-cool-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.75rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-cool-secondary:hover {
  background: #ffffff;
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
}

.btn-cool-outline {
  background: transparent;
  color: var(--brand-blue) !important;
  border: 2px solid var(--brand-blue);
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.5rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-cool-outline:hover {
  background: var(--brand-blue);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  position: relative;
  padding: 5rem 0 6rem 0;
  color: #ffffff;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(11, 25, 44, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(6, 182, 212, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(11, 25, 44, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-md);
}

.hero-float-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Service Cards */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  color: var(--brand-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  color: var(--primary-dark);
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #ffffff;
  transform: scale(1.08);
}

.service-name {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Why Choose Us Cards */
.why-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.why-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: var(--bg-gradient-end);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Brands Section */
.brand-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.brand-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Technician Hiring Banner */
.recruitment-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0369a1 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.recruitment-banner::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.job-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.job-pill:hover {
  background: #ffffff;
  color: var(--primary-dark);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mobile Quick Action Bar */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1000;
  padding: 0.6rem 0.5rem;
}

.mobile-action-bar .btn-mobile-action {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 0.25rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #ffffff;
  text-decoration: none;
}

.mobile-action-bar .btn-mobile-call {
  background: var(--brand-blue);
}

.mobile-action-bar .btn-mobile-wa {
  background: #25d366;
}

.mobile-action-bar .btn-mobile-contact {
  background: var(--brand-cyan);
}

/* Contact Page Specifics */
.contact-info-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  height: 100%;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-gradient-end);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

.form-control, .form-select {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  font-size: 0.98rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #cbd5e1;
  height: 380px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4.5rem 0 2rem 0;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 0.75rem;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition);
}

footer ul li a:hover {
  color: var(--accent-light);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-section {
    padding: 3.5rem 0;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-float-card {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: 1rem;
    justify-content: center;
  }
  .recruitment-banner {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 70px;
    right: 15px;
    width: 52px;
    height: 52px;
    font-size: 1.75rem;
  }
  .mobile-action-bar {
    display: flex;
    gap: 0.4rem;
  }
  body {
    padding-bottom: 60px; /* offset mobile action bar */
  }
  footer {
    margin-top: 3rem;
    padding-bottom: 4rem;
  }
}
