/* ===== GLOBAL VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg-color: #fcfdff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --brand-blue: #0060c9;
  --brand-light: #e0f2fe;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.04);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .btn {
  font-family: 'Outfit', sans-serif;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== HEADER (Glassmorphism) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding: 20px 0;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { height: 80px; width : auto; cursor: pointer; transition: opacity 0.3s; }
.logo:hover { opacity: 0.7; }

.nav { display: flex; gap: 8px; }

.nav button {
  background: transparent; border: none;
  color: var(--text-dark);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 50px; /* Pill shape */
  transition: all 0.3s ease;
}

.nav button:hover { background: var(--brand-light); color: var(--brand-blue); }

/* ===== HERO (Airy & Sleek) ===== */
.hero {
  padding: 160px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background gradient orb */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,96,201,0.05) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.hero p {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px auto;
  font-weight: 300;
}

.btn-primary {
  background: var(--brand-blue); color: white; border: none;
  padding: 12px 30px; border-radius: 50px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 96, 201, 0.2);
}
.btn-primary:hover {
  transform: scale(1.02); /* Prevents the mouse from slipping off */
  box-shadow: 0 8px 25px rgba(0, 96, 201, 0.3);
}
.btn-secondary {
  background: transparent; color: var(--brand-blue);
  border: 2px solid var(--brand-blue); padding: 10px 25px;
  border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.btn-secondary:hover { background: var(--brand-light); }

/* FORM & SUCCESS MESSAGE STYLES */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.form-control { width: 100%; padding: 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-family: 'Inter'; outline: none; background: #fff; }
.form-control:focus { border-color: var(--brand-blue); }
.success-message {
  display: none; background: #dcfce7; color: #166534; padding: 20px;
  border-radius: 12px; font-weight: 500; margin-top: 20px; text-align: center;
}

/* ===== SERVICES GRID (Floating Cards) ===== */
.services {
  padding: 100px 20px;
  position: relative;
}

.section-tag {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--brand-blue);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.services h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 60px;
  letter-spacing: -1px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.card {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.02);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.card-icon {
  width: 50px; height: 50px;
  background: var(--brand-light);
  color: var(--brand-blue);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 30px;
}

.card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== SCROLL TO TOP BUTTON ===== */
#scrollTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 99;
  font-size: 22px;
  font-weight: bold;
  border: none;
  outline: none;
  background-color: var(--brand-blue);
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Makes it a circle */
  box-shadow: 0 10px 25px rgba(0, 96, 201, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  align-items: center;
  justify-content: center;
}

#scrollTopBtn:hover {
  background-color: var(--text-dark);
  transform: translateY(-5px); /* Pops up slightly on hover */
}

/* On smaller mobile screens, move it slightly so it doesn't crowd the thumb */
@media (max-width: 768px) {
  #scrollTopBtn { bottom: 20px; right: 20px; }
}

/* HAMBURGER MENU STYLES */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  position: relative; /* REQUIRED FOR Z-INDEX TO WORK */
  z-index: 2500; /* Keeps the X visible on top of everything */
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--brand-blue);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.job-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  gap: 20px;
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 96, 201, 0.08);
}
.job-meta {
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero { padding: 120px 20px 60px; }
  .card { padding: 30px 25px; }
  .logo { height: 55px; } /* Ensures logo fits on mobile */


/* Mobile Job Cards - Auto Expand & Stack */
  .job-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .job-card .btn-secondary {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
  .job-meta {
    flex-direction: column; /* Stacks the domain, location, etc. */
    gap: 8px;
  }
  .job-meta span.separator {
    display: none; /* Hides the '|' symbol on mobile */
  }
  
  /* Show the Hamburger Icon */
  .hamburger { display: flex; }

  /* The Sliding Glass Navigation Menu */
  .nav {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen by default */
    width: 250px; /* Width of the mobile menu */
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1500;
  }
  
  /* Class applied by JavaScript to slide it in */
  .nav.active { right: 0; }
  
  /* Make buttons large and clickable on mobile */
  .nav button {
    display: block; 
    font-size: 18px;
    width: 80%;
    padding: 15px;
    text-align: center;
  }

  /* Animate Hamburger into an 'X' when open */
  .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--brand-orange); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--brand-orange); }
}