/* ==========================================================================
   ATTITUDE 360 - Premium Lava Lamp Design System & Cursors
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables: Warm Glowing Lava Lamp Theme --- */
:root {
  /* Rich Organic Lava Palette */
  --bg-main: #0c0404;           /* Warm dark fluid backdrop (Chocolate Black) */
  --bg-card: rgba(24, 10, 10, 0.75); /* Warm organic translucent brown card */
  --bg-card-hover: rgba(38, 15, 15, 0.9);
  
  --primary: #f59e0b;           /* Glowing Lava Amber */
  --primary-hover: #f97316;     /* Bright Crimson Orange */
  --primary-glow: rgba(245, 158, 11, 0.25);
  
  --accent-coral: #f43f5e;      /* Melting Coral Pink */
  --accent-gold: #fbbf24;       /* Liquid Gold */
  
  --border-light: rgba(245, 158, 11, 0.15); /* Soft amber-tinted borders */
  --border-dark: #f59e0b;       /* Sharp glowing amber borders */
  
  --text-primary: #ffffff;      /* Stark white for key headings */
  --text-secondary: #fcd34d;    /* Warm liquid gold for subheadings */
  --text-muted: #d1d5db;        /* Highly readable light grey body */
  
  /* Fonts */
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- Lava Lamp Canvas Background & Custom Cursors --- */
#antigravity-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none; /* Let clicks pass through */
  opacity: 0.9;
}

.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.15s, height 0.15s, background-color 0.15s;
  display: none; /* Hidden by default, activated on desktop by JS */
}

.custom-cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
  display: none; /* Activated by JS */
}

/* Hover state over interactive buttons/anchors */
.custom-cursor.hovered {
  width: 12px;
  height: 12px;
  background-color: var(--accent-coral);
}

.custom-cursor-follower.hovered {
  width: 48px;
  height: 48px;
  background-color: rgba(245, 158, 11, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Hide default mouse pointer on desktop screens */
@media (min-width: 1024px) {
  .custom-cursor, .custom-cursor-follower {
    display: block;
  }
  body, a, button, select, input, textarea, [role="button"] {
    cursor: none !important;
  }
}

/* --- Layout Elements & Helper Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-coral) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism organic warm panels */
.glass-panel {
  background: rgba(24, 10, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.25);
}

.glass-nav {
  background: rgba(12, 4, 4, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

/* --- Custom Stark Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-display);
}

.btn-primary {
  background: var(--primary);
  color: #0c0404;
  border: 1.5px solid var(--primary);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--primary);
}

.btn-secondary:hover {
  background: rgba(245, 158, 11, 0.05);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--primary) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.5);
  filter: brightness(1.1);
}

/* --- Card Styles --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2.25rem 1.75rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

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

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  border: 1px solid var(--border-light);
}

/* --- Job Board / Search CSS --- */
.job-search-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(24, 10, 10, 0.6);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.search-input-group {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(12, 4, 4, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.search-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.search-input-group select {
  width: 100%;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.search-input-group select option {
  background: var(--bg-main);
  color: var(--text-primary);
}

.job-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(24, 10, 10, 0.5);
  transition: var(--transition-smooth);
}

.job-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.job-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  margin-bottom: 1rem;
  align-self: flex-start;
  text-transform: uppercase;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border-light);
  background: rgba(12, 4, 4, 0.7);
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* --- Modal Popup Style --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 4, 4, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  border-radius: 16px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #180a0a !important;
  color: #ffffff !important;
  border: 1.5px solid var(--primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-primary);
}

/* --- Dynamic Toast Notification --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  background: var(--primary);
  color: #0c0404;
  box-shadow: 0 10px 30px rgba(245,158,11,0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(150%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 110;
  font-weight: 700;
  max-width: min(420px, calc(100vw - 3rem));
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.toast-message {
  font-size: 0.85rem;
  line-height: 1.45;
  flex: 1;
}

.toast-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
}

.toast-close:hover {
  opacity: 1;
}

/* --- Dynamic Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* --- Header / Footer Accent styling --- */
.header-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.header-link:hover, .header-link.active {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

/* Floating Contact Banner Below Navbar */
.contact-flash-bar {
  background: rgba(24, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-top: none;
  padding: 0.4rem 1.25rem;
  border-radius: 0 0 12px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 40;
}

/* Floating WhatsApp Widget */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem; /* Kept on left so it doesn't overlap the toast which triggers on the right! */
  background-color: #25d366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: var(--transition-bounce);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed #25d366;
  opacity: 0.8;
  animation: pulse-whatsapp 2s infinite linear;
  pointer-events: none;
}

@keyframes pulse-whatsapp {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stat-number {
    font-size: 2.5rem;
  }
  .contact-flash-bar {
    display: none; /* Hide flash bar on mobile to keep space clean */
  }
  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}
