/* (unchanged from your version) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Base HTML & Body --- */
html, body {
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  /* Deep dark blue → black gradient with SVG texture overlay */
  background-color: #0b1020;
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(30, 58, 138, 0.35), transparent 60%),
    radial-gradient(800px 400px at 110% 10%, rgba(2, 8, 23, 0.6), transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #06080f 30%, #000 100%),
    url('/images/bg-veo3.svg');
  background-blend-mode: screen, normal, normal, multiply;
  background-attachment: fixed, fixed, fixed, fixed;
  background-size: cover, cover, cover, 1200px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  color: #e2e8f0; /* slate-200 */
  line-height: 1.6;
}

/* --- Layout Wrappers --- */
.body-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.main-content {
  flex: 1;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* --- Header & Navigation --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Glassy dark navy header */
  background: linear-gradient(90deg, rgba(10, 17, 35, 0.85) 0%, rgba(0, 0, 0, 0.85) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  color: #e5e7eb;
  padding: 14px 20px; /* Slightly higher header for mobile nav space */
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  overflow: visible; /* Ensure header content is fully visible */
  min-width: 0; /* Allow flex shrinking */
  position: relative; /* Ensure proper positioning context */
  flex-wrap: nowrap; /* Prevent wrapping */
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #3b82f6;
  overflow: visible; /* Ensure logo is fully visible */
  min-width: 0; /* Allow flex shrinking */
  flex-shrink: 0; /* Prevent logo from shrinking */
  order: 1; /* Always first (left side) */
  margin-right: auto; /* Push everything else to the right */
  margin-left: -5px; /* Move logo slightly more to the left */
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap; /* Prevent text wrapping */
  overflow: visible; /* Ensure text is fully visible */
  text-overflow: clip; /* Don't truncate text */
  min-width: 0; /* Allow flex shrinking */
  flex-shrink: 0; /* Prevent text from shrinking */
}

.nav {
  order: 2; /* Center position */
  flex: 1; /* Take remaining space */
  display: flex;
  justify-content: center;
  margin-right: auto; /* Push toggle button to the right */
}

.nav ul {
  list-style: none;
  display: flex;
}

/* Spacing between nav items */
.nav ul li {
  margin-left: 10px;
}

/* Nav links */
.nav ul li a {
  color: #e5e7eb;
  text-decoration: none;
  padding: 8px 16px;
  display: block;
  transition: background-color 0.3s;
}

/* Hover effect for nav links */
.nav ul li a:hover {
  background-color: rgba(59, 130, 246, 0.18);
  border-radius: 4px;
}

/* Hamburger toggle - hidden on desktop */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  order: 3; /* Always last (right side) */
  flex-shrink: 0; /* Prevent shrinking */
}

/* --- Modern Image Container Hero Section --- */
.hero {
  margin-bottom: 24px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: imageFloat 15s ease-in-out infinite;
  filter: brightness(0.8) contrast(1.1);
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(15, 23, 42, 0.4)),
    radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.2), transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.2), transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleSlideUp 1s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: #cbd5e1;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
  margin-bottom: 32px;
  animation: subtitleSlideUp 1s ease-out 0.4s both;
}

.hero-description {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  animation: descriptionSlideUp 1s ease-out 0.6s both;
}

/* Disable animations for section pages (not home page) */
body:not(.home-page) .hero-title {
  animation: none !important;
}

body:not(.home-page) .hero-subtitle {
  animation: none !important;
}

body:not(.home-page) .hero-description {
  animation: none !important;
}

/* Floating Elements */
.hero-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.floating-element {
  position: absolute;
  opacity: 0.85;
  filter: drop-shadow(0 6px 18px rgba(59, 130, 246, 0.3));
}

.floating-element.tech-icon { 
  font-size: 2.8rem; /* bigger hero icons (emoji) */
  line-height: 1;
}

.floating-element.tech-icon svg {
  display: block;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
}

.floating-element.geometric {
  width: 80px;
  height: 80px;
  background: radial-gradient(closest-side, rgba(59,130,246,0.35), rgba(15, 23, 42, 0.0)) ,
              radial-gradient(closest-side, rgba(139,92,246,0.35), rgba(15, 23, 42, 0.0));
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.45), inset 0 0 30px rgba(59, 130, 246, 0.25);
  animation: blobPulse 8s ease-in-out infinite, floatElement 10s ease-in-out infinite;
}

/* Advanced orbiting for first four tech icons */
.hero-floating-elements { perspective: 800px; }
.floating-element.tech-icon:nth-child(1),
.floating-element.tech-icon:nth-child(2),
.floating-element.tech-icon:nth-child(3),
.floating-element.tech-icon:nth-child(4) {
  top: 50%;
  left: 50%;
  transform-origin: center center;
}
.floating-element.tech-icon:nth-child(1) { --r: 120px; --d: 14s; animation: orbit var(--d) linear infinite, glow 3s ease-in-out infinite; }
.floating-element.tech-icon:nth-child(2) { --r: 170px; --d: 18s; animation: orbit var(--d) linear infinite reverse, glow 3.5s ease-in-out infinite; }
.floating-element.tech-icon:nth-child(3) { --r: 210px; --d: 22s; animation: orbit var(--d) linear infinite, glow 4s ease-in-out infinite; }
.floating-element.tech-icon:nth-child(4) { --r: 260px; --d: 28s; animation: orbit var(--d) linear infinite reverse, glow 4.5s ease-in-out infinite; }

/* Geometric blobs placed subtly */
.floating-element.geometric:nth-child(5) { top: 25%; left: 12%; }
.floating-element.geometric:nth-child(6) { bottom: 18%; right: 10%; }

/* Animations */
@keyframes imageFloat {
  0%, 100% { transform: scale(1.05) translateY(0px); }
  50% { transform: scale(1.1) translateY(-10px); }
}

@keyframes titleSlideUp {
  0% { 
    transform: translateY(20px); 
  }
  100% { 
    transform: translateY(0); 
  }
}

@keyframes subtitleSlideUp {
  0% { 
    transform: translateY(15px); 
  }
  100% { 
    transform: translateY(0); 
  }
}

@keyframes descriptionSlideUp {
  0% { 
    transform: translateY(10px); 
  }
  100% { 
    transform: translateY(0); 
  }
}

@keyframes floatElement {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 0.7;
  }
  25% { 
    transform: translateY(-15px) rotate(5deg); 
    opacity: 0.9;
  }
  50% { 
    transform: translateY(-8px) rotate(-3deg); 
    opacity: 0.5;
  }
  75% { 
    transform: translateY(-20px) rotate(8deg); 
    opacity: 1;
  }
}

/* New orbits around center */
@keyframes orbit {
  0% { transform: rotate(0deg) translate(var(--r)) rotate(0deg); }
  100% { transform: rotate(360deg) translate(var(--r)) rotate(-360deg); }
}

/* Soft pulsing glow for icons */
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(59,130,246,0.45)) drop-shadow(0 0 18px rgba(59,130,246,0.25)); }
  50% { filter: drop-shadow(0 0 14px rgba(59,130,246,0.7)) drop-shadow(0 0 28px rgba(59,130,246,0.45)); }
}

/* Organic blob pulse */
@keyframes blobPulse {
  0%, 100% { transform: scale(1) translateY(0px); filter: blur(0px); }
  50% { transform: scale(1.12) translateY(-8px); filter: blur(1px); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: 460px; /* taller so animation fits */
    border-radius: 16px;
    padding: 15px;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 12px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
  
  .hero-description {
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 100%;
  }
  
  .hero-image-overlay {
    padding: 20px 12px;
  }
  
  .hero-content {
    max-width: 100%;
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 350px;
    border-radius: 12px;
    padding: 12px;
  }
  
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.1;
    margin-bottom: 10px;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }
  
  .hero-description {
    font-size: 0.75rem;
    line-height: 1.3;
    max-width: 100%;
  }
  
  .hero-image-overlay {
    padding: 12px 8px;
  }
  
  .hero-content {
    max-width: 100%;
    padding: 0 5px;
  }
  
  .floating-element { transform: scale(0.75); transform-origin: center; }
}

@media (max-width: 360px) {
  .hero {
    height: 320px;
    border-radius: 10px;
    padding: 10px;
  }
  
  .hero-title {
    font-size: 1.4rem;
    line-height: 1.1;
    margin-bottom: 8px;
  }
  
  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  
  .hero-description {
    font-size: 0.7rem;
    line-height: 1.2;
    max-width: 100%;
  }
  
  .hero-image-overlay {
    padding: 10px 6px;
  }
  
  .hero-content {
    max-width: 100%;
    padding: 0 2px;
  }
}

/* Hero Animations */
@keyframes heroImageZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes heroTitleSlide {
  0% { 
    opacity: 0; 
    transform: translateY(-30px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes heroSubtitleSlide {
  0% { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes heroAnimationFloat {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-10px); }
}

@keyframes glow {
  0% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.6); }
  100% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.9), 0 0 60px rgba(59, 130, 246, 0.4); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(4deg); }
  50% { transform: translateY(-4px) rotate(-2deg); }
  75% { transform: translateY(-12px) rotate(2deg); }
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    height: 400px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-animation {
    right: 20px;
    transform: scale(0.8) translateY(-50%);
  }
}

@media (max-width: 480px) {
  .hero {
    height: 350px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-animation {
    display: none;
  }
}

.hero h1 {
  margin-bottom: 10px;
}

/* --- Cards Container & Cards --- */
.cards-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  max-width: 1200px;
  flex-wrap: wrap;
}

.card {
  width: 300px;
  height: auto; /* Changed from fixed height to auto */
  min-height: 320px; /* Set minimum height instead of fixed */
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  text-align: center;
  padding: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #e5e7eb;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute content evenly */
  position: relative; /* Ensure proper positioning context */
  overflow: hidden; /* Prevent content overflow */
}

.card h2 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #3b82f6;
  flex-shrink: 0; /* Prevent title from shrinking */
}

.card:hover {
  border-color: #38bdf8; /* sky-400 */
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.25);
  transform: translateY(-3px) scale(1.03);
}

/* Remove default link style in cards */
.cards-container .card a,
.cards-container .card a:visited,
.cards-container .card a:hover,
.cards-container .card a:focus {
  color: inherit;
  text-decoration: none;
}

/* --- Pagination (optional) --- */
.pagination {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  gap: 4px;
}

.pagination a {
  color: #e5e7eb;
  background-color: rgba(30, 41, 59, 0.8);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.pagination a.active {
  background-color: #3b82f6;
  color: #f8fafc;
}

.pagination a:hover {
  background-color: rgba(59, 130, 246, 0.5);
}

/* --- Footer --- */
.footer {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(2, 8, 23, 0.9));
  color: #cbd5e1;
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* --- Enhanced Footer Layout --- */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 12px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  text-align: left;
  margin: 16px 0;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: #93c5fd;
  margin-bottom: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin: 6px 0;
}

.footer-col ul li a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #93c5fd;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.social-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background-color: rgba(2, 6, 23, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  background-color: rgba(2, 6, 23, 0.7);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: #e5e7eb;
}

.footer-copy {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* --- Form Styles (optional) --- */
form {
  max-width: 400px;
  margin: 20px 0;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  font-size: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background-color: rgba(2, 6, 23, 0.6);
  color: #e2e8f0;
  border-radius: 8px;
}

form button {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

form button:hover {
  background-color: #2563eb;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* --- Responsive Media Query for Mobile --- */
@media only screen and (max-width: 768px) {
  /* Note: Mobile navigation styles are defined later in the file */

  /* Cards stack vertically */
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .card {
    width: 90%;
    max-width: 400px;
    font-size: 1.3rem;
    padding: 24px;
    height: auto;
    margin: 0 auto;
  }

  .card h2 {
    font-size: 2rem;
  }

  /* Typically disable big hover transforms on mobile */
  .card:hover {
    transform: none;
  }

  /* Hero Section (if used) */
  .hero {
    margin-bottom: 20px;
  }

  .hero-image-container {
    height: 300px;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  /* Larger form elements on mobile */
  form {
    width: 90%;
    font-size: 1.2rem;
  }

  form input,
  form textarea {
    font-size: 1.2rem;
    padding: 12px;
  }

  form button {
    font-size: 1.3rem;
    padding: 12px 24px;
  }

  /* Footer spacing & text size */
  .footer {
    font-size: 1.3rem;
    padding: 30px 15px;
  }
}

/* --- Enhanced Content Styling --- */
.container {
  max-width: 1000px;
  margin: 0 auto;
}

.content-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.content-card h2 {
  color: #3b82f6;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  padding-bottom: 12px;
}

.content-card h3 {
  color: #60a5fa;
  font-size: 1.5rem;
  margin: 24px 0 16px 0;
  font-weight: 600;
}

.content-card h4 {
  color: #93c5fd;
  font-size: 1.2rem;
  margin: 20px 0 12px 0;
  font-weight: 600;
}

.content-card p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: #e2e8f0;
}

.content-card ul, .content-card ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content-card li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #cbd5e1;
}

.content-card strong {
  color: #93c5fd;
  font-weight: 600;
}

/* Feature Grids */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.feature-item {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

.feature-item h3 {
  color: #60a5fa;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.feature-item p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ styles moved to dedicated faq.css file */

/* Job Search */
.job-search {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-input,
.filter-select {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 200px;
}

.search-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(15, 23, 42, 0.8);
}

.search-input::placeholder {
  color: #64748b;
}

/* Job Listings */
.job-listing {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.job-listing:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

.job-listing h3 {
  color: #3b82f6;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.job-listing h4 {
  color: #60a5fa;
  margin: 16px 0 8px 0;
  font-size: 1.1rem;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 24px 0;
}

.contact-info {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.3), rgba(15, 23, 42, 0.3));
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 24px;
}

.contact-item {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contact-item h4 {
  color: #60a5fa;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.contact-form {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.3), rgba(15, 23, 42, 0.3));
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #93c5fd;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(15, 23, 42, 0.8);
}

.submit-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Social Contact */
.social-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.social-item {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.3), rgba(15, 23, 42, 0.3));
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.social-item:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.social-item h3 {
  color: #60a5fa;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.social-item p {
  color: #cbd5e1;
  margin-bottom: 12px;
}

.social-item ul {
  margin: 12px 0;
  padding-left: 20px;
}

.social-item li {
  color: #cbd5e1;
  margin-bottom: 6px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.stat-item {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #3b82f6;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: #93c5fd;
  font-size: 1rem;
  font-weight: 500;
}

/* CTA Links */
.cta-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.cta-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Last Updated */
.last-updated {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  text-align: center;
  color: #93c5fd;
  font-size: 0.9rem;
}

/* Form Messages */
.form-message {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.form-message.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.form-message.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.success-message h4 {
  color: #4ade80;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.success-message p {
  color: #86efac;
  margin-bottom: 0;
}

/* Button Loading States */
.btn-loading { display: none; }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Responsive adjustments for content */
@media only screen and (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .social-contact { grid-template-columns: 1fr; }
  .content-card { padding: 20px; margin: 16px; }
  .content-card h2 { font-size: 1.6rem; }
  .content-card h3 { font-size: 1.3rem; }
  .stats-grid { 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important; 
    max-width: 100% !important;
    padding: 0 20px !important;
  }
  .stat-item {
    min-height: 100px !important;
    padding: 20px !important;
    max-width: 350px !important;
    width: 100% !important;
  }
  .stat-number { font-size: 2rem !important; }
  .job-search { flex-direction: column; }
  .search-input, .filter-select { min-width: auto; width: 100%; }
}

/* Clickable category cards */
.clickable-category-card {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.clickable-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
  border-color: #3b82f6;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.8), rgba(15, 23, 42, 0.8));
}
.clickable-category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.clickable-category-card:hover::before { opacity: 1; }
.clickable-category-card:active { transform: translateY(-2px); transition: transform 0.1s ease; }
.clickable-category-card::after {
  content: '→';
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(59, 130, 246, 0.9);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.clickable-category-card:hover::after { opacity: 1; }

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 480px) {
  .body-wrapper { padding: 0; }
  .header { padding: 12px 16px; flex-direction: column; gap: 12px; }
  .logo { font-size: 20px; justify-content: center; }
  .logo-icon { width: 32px; height: 32px; }
  .nav ul { flex-direction: column; gap: 8px; text-align: center; }
  .nav-toggle { display: block; position: absolute; top: 16px; right: 16px; }
  .nav { display: none; }
  .nav.active { display: block; }
  .hero { padding: 40px 16px; text-align: center; word-wrap: break-word; overflow-wrap: break-word; }
  .heading-primary--main { font-size: 1.8rem; line-height: 1.2; word-wrap: break-word; overflow-wrap: break-word; max-width: 100%; }
  .heading-primary--sub { font-size: 0.95rem; line-height: 1.4; word-wrap: break-word; overflow-wrap: break-word; max-width: 100%; }
  .main-content { padding: 20px 12px; max-width: 100%; overflow-x: hidden; }
  .container { max-width: 100%; padding: 0; overflow-x: hidden; }
  .content-card { padding: 16px 12px; margin: 12px 0; max-width: 100%; overflow-x: hidden; word-wrap: break-word; }
  .content-card h2 { font-size: 1.4rem; margin-bottom: 12px; word-wrap: break-word; overflow-wrap: break-word; }
  .content-card h3 { font-size: 1.1rem; word-wrap: break-word; overflow-wrap: break-word; }
  .content-card p { font-size: 0.9rem; line-height: 1.5; word-wrap: break-word; overflow-wrap: break-word; }
  .stats-grid {
    gap: 16px !important;
    padding: 0 16px !important;
  }
  .stat-item {
    min-height: 90px !important;
    padding: 16px !important;
    max-width: 100% !important;
  }
  .stat-number { font-size: 1.8rem !important; }
  .stat-label { font-size: 0.9rem !important; }
  .footer { padding: 40px 20px; }
  .footer-inner { gap: 24px; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-col { text-align: center; }
  .footer-col h4 { font-size: 1.1rem; margin-bottom: 12px; }
  .footer-col ul { gap: 8px; }
  .footer-col a { font-size: 0.9rem; }
  .footer-social { justify-content: center; gap: 16px; }
  .social-icon { width: 40px; height: 40px; }
  .social-icon svg { width: 20px; height: 20px; }
  .footer-brand { font-size: 1rem; text-align: center; }
  .footer-copy { font-size: 0.8rem; text-align: center; }
}

/* Medium mobile devices (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .header { padding: 16px 20px; }
  .logo { font-size: 22px; }
  .logo-icon { width: 36px; height: 36px; }
  .nav ul { gap: 16px; }
  .hero { padding: 50px 30px; }
  .heading-primary--main { font-size: 2.5rem; }
  .heading-primary--sub { font-size: 1.1rem; }
  .main-content { padding: 30px 20px; }
  .container { max-width: 100%; padding: 0 20px; }
  .content-card { padding: 24px 20px; margin: 20px 0; }
  .footer { padding: 50px 30px; }
  .footer-links { gap: 30px; }
  .footer-col h4 { font-size: 1.2rem; }
  .footer-col a { font-size: 0.95rem; }
}

/* Large mobile devices and tablets (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .header { padding: 20px 30px; }
  .logo { font-size: 24px; }
  .logo-icon { width: 38px; height: 38px; }
  .nav ul { gap: 20px; }
  .hero { padding: 60px 40px; }
  .heading-primary--main { font-size: 3rem; }
  .heading-primary--sub { font-size: 1.2rem; }
  .main-content { padding: 40px 30px; }
  .container { max-width: 90%; padding: 0 30px; }
  .content-card { padding: 30px 25px; margin: 25px 0; }
  .footer { padding: 60px 40px; }
  .footer-links { gap: 40px; }
  .footer-col h4 { font-size: 1.3rem; }
  .footer-col a { font-size: 1rem; }
}

/* Desktop and larger screens (1025px and up) */
@media (min-width: 1025px) {
  .header { padding: 24px 40px; }
  .logo { font-size: 26px; }
  .logo-icon { width: 40px; height: 40px; }
  .nav ul { gap: 24px; }
  .hero { padding: 80px 50px; }
  .heading-primary--main { font-size: 3.5rem; }
  .heading-primary--sub { font-size: 1.3rem; }
  .main-content { padding: 50px 40px; }
  .container { max-width: 1200px; padding: 0 40px; }
  .content-card { padding: 40px 35px; margin: 30px 0; }
  .footer { padding: 80px 50px; }
  .footer-links { gap: 50px; }
  .footer-col h4 { font-size: 1.4rem; }
  .footer-col a { font-size: 1.05rem; }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 30px 20px; }
  .heading-primary--main { font-size: 2rem; }
  .heading-primary--sub { font-size: 1rem; }
  .main-content { padding: 20px 16px; }
  .footer { padding: 30px 20px; }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-icon { stroke-width: 1.5; }
  .social-icon svg { stroke-width: 1.5; }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .faq-question-container:hover { transform: none; }
  .faq-item.active .faq-icon { transform: none; }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .body-wrapper { background: linear-gradient(135deg, #0b1020 0%, #1e293b 100%); }
}

/* Print styles */
@media print {
  .header, .footer, .nav-toggle { display: none; }
  .body-wrapper { background: white; color: black; }
  .content-card { border: 1px solid #ccc; box-shadow: none; }
  .faq-answer { max-height: none !important; opacity: 1 !important; padding: 16px !important; }
}

/* Responsive Design for Header */
@media (max-width: 768px) {
  .header { 
    padding: 16px 0px; /* taller header so toggle has room */
    flex-wrap: nowrap; 
    overflow: visible;
    justify-content: space-between; /* Ensure proper spacing */
    align-items: flex-start; /* Align items to top */
    position: relative; /* For absolute positioning */
  }
  .logo { 
    flex-shrink: 0; 
    min-width: auto; 
    overflow: visible;
    order: 1; /* Always left */
    margin-right: 0; /* Reset margin on mobile */
    margin-top: 2px; /* Slightly down */
    margin-left: 15px; /* Keep some left margin for logo */
  }
  .logo-text { 
    font-size: 1.4rem; /* Smaller font size for mobile */
    flex-shrink: 0; 
    overflow: visible; 
    white-space: nowrap; 
    letter-spacing: 0.5px; /* Reduce letter spacing on mobile */
  }
  .nav { 
    display: none; /* Hide desktop nav on mobile */
    order: 2;
    margin-right: 0; /* Reset margin on mobile */
  }
  .nav-toggle {
    display: block !important; /* Show toggle on mobile */
    position: fixed; /* Fixed to viewport */
    top: 8px; /* Position with some space from top */
    right: 8px; /* Position with some space from right */
    order: 3; /* Always right */
    margin: 0; /* Reset all margins */
    padding: 0; /* Reset all padding */
    border-radius: 8px; /* Round all corners since not flush */
    z-index: 9999; /* Ensure it's above everything */
  }
  .hero-title{
    font-size: 1.44rem;
  }
}

@media (max-width: 480px) {
  .header { 
    padding: 14px 0px; /* Increase height on very small screens */
    justify-content: space-between; /* Ensure proper spacing */
    flex-wrap: nowrap; /* Prevent wrapping */
    align-items: flex-start; /* Align items to top */
    position: relative; /* For absolute positioning */
  }
  .logo { 
    margin-top: 1px; /* Slightly down */
    margin-left: 12px; /* Add some left margin for logo */
  }
  .logo-text { 
    font-size: 1.2rem; /* Even smaller font size for very small screens */
    letter-spacing: 0.3px; /* Minimal letter spacing */
  }
  .logo-icon { 
    width: 32px; /* Smaller icon for mobile */
    height: 32px; 
  }
  .nav-toggle {
    width: 40px; /* Slightly larger for tap target */
    height: 40px;
    font-size: 18px;
    position: absolute; /* Anchor to header */
    top: 8px; /* Space from top */
    right: 10px; /* Space from right */
    margin: 0; /* Reset all margins */
    padding: 0; /* Reset all padding */
    border-radius: 8px; /* Rounded */
    z-index: 9999; /* Ensure it's above everything */
  }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
  .header { 
    padding: 12px 0px; /* a bit taller */
  }
  .logo { 
    margin-top: 0px;
    margin-left: 10px;
  }
  .logo-text { 
    font-size: 1.1rem; /* Smallest font size for very small screens */
    letter-spacing: 0.2px;
  }
  .logo-icon { 
    width: 30px;
    height: 30px; 
  }
  .nav-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
    top: 6px;
    right: 8px;
  }
}
