@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 ===== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-teal: #0d9488;
  --accent-teal-dark: #0f766e;
  --accent-orange: #f97316;
  --accent-orange-dark: #ea580c;
  --border-subtle: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; color: var(--text-primary); line-height: 1.2; }
a { color: var(--accent-teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-orange); }
img { max-width: 100%; display: block; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.75rem;
  color: var(--accent-teal-dark);
}
.navbar-brand .logo-icon { font-size: 2rem; }
.navbar-links { display: flex; gap: 24px; align-items: center; }
.navbar-links a {
  font-weight: 600; font-size: 1rem; color: var(--text-secondary);
  transition: var(--transition); position: relative;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--accent-teal); }
.navbar-links a::after {
  content: ''; position: absolute; width: 0; height: 2px;
  bottom: -4px; left: 0; background-color: var(--accent-orange);
  transition: width 0.3s ease;
}
.navbar-links a:hover::after, .navbar-links a.active::after { width: 100%; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md); font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--accent-teal); color: white; }
.btn-primary:hover { background: var(--accent-teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); color: white;}
.btn-outline { background: transparent; color: var(--accent-teal); border: 2px solid var(--accent-teal); }
.btn-outline:hover { background: var(--accent-teal); color: white; transform: translateY(-2px); }
.btn-orange { background: var(--accent-orange); color: white; }
.btn-orange:hover { background: var(--accent-orange-dark); color: white; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ===== HERO SECTION ===== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media(min-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}
.hero-content { max-width: 600px; }
.hero h1 { font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 800; margin-bottom: 24px; color: var(--text-primary); line-height: 1.1; }
.hero h1 span { color: var(--accent-teal); }
.hero p { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); object-fit: cover; max-height: 500px; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; position: relative; display: inline-block;}
.section-header h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--accent-orange); border-radius: 2px;}
.section-header p { color: var(--text-secondary); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-card); transition: var(--transition);
  border: 1px solid var(--border-subtle);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--accent-teal); }
.card-icon { font-size: 3rem; margin-bottom: 24px; color: var(--accent-teal); }
.card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.card p { color: var(--text-secondary); }

/* ===== JOB CARDS (Existing styling updated to match theme) ===== */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.job-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent-teal); }
.job-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.job-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.job-type-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; background: #e0f2fe; color: #0284c7; }
.job-type-badge.part-time { background: #fef3c7; color: #d97706; }
.job-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; font-size: 0.875rem; color: var(--text-secondary); }
.job-meta-item { display: flex; align-items: center; gap: 4px; }
.job-description { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border-subtle); }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: center; }
.stat-item h3 { font-size: 3rem; color: var(--accent-teal); margin-bottom: 8px; }
.stat-item p { font-size: 1.125rem; font-weight: 500; color: var(--text-secondary); }

/* ===== FORMS ===== */
.form-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card); max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; transition: var(--transition); background: #f8fafc; }
.form-control:focus { outline: none; border-color: var(--accent-teal); box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1); background: white; }

/* ===== MODAL & TOAST ===== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 2000; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal { background: white; padding: 40px; border-radius: var(--radius-lg); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 16px 24px; border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-hover); font-weight: 500; display: flex; align-items: center; gap: 12px; transform: translateX(120%); transition: transform 0.3s ease; border-left: 4px solid var(--accent-teal); }
.toast.error { border-left-color: #ef4444; }

/* ===== FOOTER ===== */
.footer { background: #0f172a; color: #94a3b8; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-brand h2 { color: white; font-size: 1.5rem; margin-bottom: 16px; }
.footer h4 { color: white; margin-bottom: 20px; font-size: 1.125rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: var(--accent-teal); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid #1e293b; }

/* Admin specifics */
.admin-tabs { display: flex; gap: 16px; margin-bottom: 32px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 16px; }
.admin-tab { background: none; border: none; font-size: 1.125rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; padding: 8px 16px; border-radius: var(--radius-md); }
.admin-tab.active { background: var(--accent-teal); color: white; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-card { background: white; border: 1px solid var(--border-subtle); padding: 24px; border-radius: var(--radius-md); margin-bottom: 16px; }
.apps-table { width: 100%; border-collapse: collapse; }
.apps-table th, .apps-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.apps-table th { font-weight: 600; color: var(--text-primary); }

.loader { display: flex; justify-content: center; padding: 40px; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border-subtle); border-top-color: var(--accent-teal); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Helpers */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.text-center { text-align: center; }

/* ===== HERO TAGLINE ===== */
.hero-tagline {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: linear-gradient(135deg, rgba(13,148,136,0.1), rgba(249,115,22,0.1));
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(13,148,136,0.2);
}

/* ===== ABOUT PREVIEW (Homepage) ===== */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.about-preview-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.commitment-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.commitment-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
}
.commitment-item:hover {
  transform: translateX(8px);
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-card);
}
.commitment-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ===== SERVICES MINI GRID (Homepage) ===== */
.services-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.service-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: default;
}
.service-mini-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-teal);
}
.service-mini-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.service-mini-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== MOBILE HAMBURGER MENU ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .navbar-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 2px solid var(--accent-teal);
    box-shadow: var(--shadow-hover);
  }
  .navbar-links.active { display: flex; }
  .navbar-links a {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
  }
  .navbar-links a:hover,
  .navbar-links a.active {
    background: rgba(13, 148, 136, 0.08);
  }
  .navbar-links a::after { display: none; }
  .hero { padding: 120px 0 60px; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-preview-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-mini-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .form-card { max-width: 100%; }
}
