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

:root {
  --teal: #00C9A7;
  --teal-dark: #00897B;
  --teal-light: #E0FAF5;
  --navy: #0D1B2A;
  --navy-mid: #1A2E42;
  --navy-light: #253D52;
  --white: #FFFFFF;
  --off-white: #F7FAFA;
  --gray-50: #F2F7F6;
  --gray-100: #E4EDEB;
  --gray-300: #A8C0BB;
  --gray-500: #5A7A74;
  --gray-700: #2D4A44;
  --text-main: #0D1B2A;
  --text-secondary: #3D5A54;
  --text-muted: #7A9E98;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --shadow-sm: 0 2px 8px rgba(0,201,167,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ===== NAV ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,201,167,0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.nav-logo span { color: var(--teal); letter-spacing: -0.01em; }
.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--teal-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(0,201,167,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,201,167,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy);
  color: white;
}

.btn-dark:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
  background: var(--off-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0,201,167,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0,137,123,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0,201,167,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,167,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-light);
  border: 1px solid rgba(0,201,167,0.3);
  color: var(--teal-dark);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.stat-item .num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}

.stat-item .num span { color: var(--teal); }
.stat-item .label { font-size: 0.8rem; color: var(--text-muted); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease 0.2s both;
}

.hero-card-stack {
  position: relative;
  width: 440px;
  height: 520px;
}

.float-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.float-card.main {
  width: 280px;
  top: 130px;
  left: 50px;
  z-index: 3;
  animation: floatY 5s ease-in-out infinite;
}

.float-card.top-right {
  width: 170px;
  top: 0;
  right: 10px;
  z-index: 4;
  animation: floatY 4s ease-in-out infinite 1s;
}

.float-card.bottom-left {
  width: 160px;
  bottom: 0;
  left: 10px;
  z-index: 4;
  animation: floatY 4s ease-in-out infinite 2s;
}

.card-icon {
  width: 40px; height: 40px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.card-title { font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.card-sub { font-size: 0.75rem; color: var(--text-muted); }

.progress-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  border-radius: 3px;
  transition: width 1s ease;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 5%;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-light);
}

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

.service-icon {
  width: 56px; height: 56px;
  background: var(--teal-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ===== PROJECTS ===== */
.projects-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--gray-100);
  background: white;
  color: var(--text-secondary);
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 28px;
  position: relative;
}

.project-cat-badge {
  display: inline-block;
  background: rgba(0,201,167,0.2);
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.project-header h3 {
  color: white;
  font-size: 1.1rem;
}

.project-body { padding: 24px; }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-client { font-size: 0.8rem; color: var(--text-muted); }

.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.status-badge.completed { background: #D1FAE5; color: #065F46; }
.status-badge.live { background: #D1FAE5; color: #065F46; }
.status-badge.in-progress { background: #FEF3C7; color: #92400E; }

.project-desc { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }

.tech-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chip {
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--gray-100);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 44px; height: 44px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item .label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-item .value { font-size: 0.9rem; color: var(--navy); font-weight: 500; }

.contact-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-main);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(0,201,167,0.1);
}

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

select.form-control { cursor: pointer; }

/* ===== DASHBOARD ===== */
.dash-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}

.sidebar {
  width: 260px;
  background: var(--navy);
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 24px 0;
  z-index: 100;
}

.sidebar-section {
  padding: 0 16px;
  margin-bottom: 8px;
}

.sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  padding: 16px 12px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(0,201,167,0.15);
  color: var(--teal);
}

.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.dash-content {
  margin-left: 260px;
  flex: 1;
  padding: 32px;
  background: var(--gray-50);
  min-height: calc(100vh - 72px);
}

.dash-header {
  margin-bottom: 32px;
}

.dash-title {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.dash-sub { color: var(--text-muted); font-size: 0.9rem; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card .s-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-card .s-icon.teal { background: var(--teal-light); }
.stat-card .s-icon.navy { background: rgba(13,27,42,0.08); }
.stat-card .s-icon.warning { background: #FEF3C7; }
.stat-card .s-icon.success { background: #D1FAE5; }

.stat-card .s-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
}

.stat-card .s-label { font-size: 0.8rem; color: var(--text-muted); }

/* ===== TABLES ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-100);
}

.data-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.data-table td {
  padding: 14px 20px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gray-50);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--gray-50); }

/* ===== TASK BOARD ===== */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.kanban-col {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.kanban-col-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-count {
  background: var(--gray-100);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.task-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: grab;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.task-priority {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.priority-high { color: var(--danger); }
.priority-medium { color: var(--warning); }
.priority-low { color: var(--success); }

.task-title { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.task-assignee { font-size: 0.78rem; color: var(--text-muted); }

.checklist-preview {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.check-item.done { text-decoration: line-through; color: var(--gray-300); }
.check-dot {
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.check-dot.done {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  font-size: 0.6rem;
}

.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-50);
}

.task-deadline { font-size: 0.72rem; color: var(--text-muted); }

/* ===== HR PANEL ===== */
.emp-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.emp-card:hover { box-shadow: var(--shadow-md); }

.emp-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.emp-name { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.emp-role { font-size: 0.8rem; color: var(--text-muted); }
.emp-dept { font-size: 0.75rem; color: var(--teal-dark); font-weight: 600; background: var(--teal-light); padding: 2px 8px; border-radius: 100px; }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(0,201,167,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0,201,167,0.08) 0%, transparent 60%);
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.auth-title { font-size: 1.6rem; color: var(--navy); margin-bottom: 6px; }
.auth-sub { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 32px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-300);
  font-size: 0.8rem;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-switch a { color: var(--teal-dark); font-weight: 600; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  animation: fadeInUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-title { font-size: 1.2rem; color: var(--navy); }

.modal-close {
  width: 32px; height: 32px;
  background: var(--gray-50);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover { background: var(--gray-100); }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  color: white;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.82rem;
  text-align: center;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--teal); }
.toast.error { border-left: 4px solid var(--danger); }

/* ===== SCHOOL PAGE ===== */
.school-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.module-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.module-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(0,201,167,0.12);
  transform: translateY(-4px);
}

.module-icon { font-size: 2rem; margin-bottom: 12px; }
.module-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.module-desc { font-size: 0.8rem; color: var(--text-muted); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== UTILITY ===== */
.text-teal { color: var(--teal-dark); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-100); padding: 24px; }

.page-hero {
  padding: 140px 5% 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(0,201,167,0.12) 0%, transparent 70%);
}

.page-hero h1 { color: white; font-size: clamp(2rem, 4vw, 3rem); position: relative; }
.page-hero p { color: rgba(255,255,255,0.6); margin-top: 12px; font-size: 1.05rem; position: relative; }

/* Mobile */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .dash-content { margin-left: 0; }
  .nav-links { display: none; }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.add-checklist { display: flex; gap: 8px; margin-top: 12px; }
.add-checklist input { flex: 1; }

.emp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}

.nav-overlay.open { display: block; }

.mobile-nav-cta { display: none; }

/* ===== FULL MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
  /* Navbar */
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .mobile-login-btn { display: inline-flex !important; margin-right: 6px; }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: white;
    padding: 90px 28px 40px;
    gap: 0;
    z-index: 1000;
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    visibility: hidden;
  }

  .nav-links.open { right: 0; visibility: visible; }

  .nav-links li { border-bottom: 1px solid var(--gray-100); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
  }

  .mobile-nav-cta {
    display: flex;
    gap: 10px;
    padding: 20px 0 0;
    border-bottom: none !important;
    flex-wrap: wrap;
  }
}

/* ===== HERO RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 90px 5% 50px;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 0.96rem; margin: 0 auto 28px; }
  .hero-badge { margin: 0 auto 16px; }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  .hero-stats {
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero-visual { display: none; }

  /* Sections */
  .section { padding: 50px 0; }
  .section-title { font-size: 1.6rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Flex between */
  .flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* CTA section */
  .cta-section { padding: 60px 5%; }

  /* Footer */
  .footer { padding: 50px 5% 24px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Page hero */
  .page-hero { padding: 110px 5% 50px; }
  .page-hero h1 { font-size: 1.8rem; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr; }

  /* Dashboard */
  .sidebar { transform: translateX(-100%); }
  .dash-content { margin-left: 0; }
  .kanban { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }

  /* School modules */
  .school-modules { grid-template-columns: 1fr 1fr; }

  /* Employee grid */
  .emp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.4rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .stat-cards { grid-template-columns: 1fr; }
  .school-modules { grid-template-columns: 1fr; }

  .btn-lg { padding: 12px 24px; font-size: 0.92rem; }

  .auth-card { padding: 32px 24px; }
}

/* ===== FAQ ===== */
.faq-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  padding: 22px 24px;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(0,201,167,0.08); }
.faq-q {
  font-family: 'Syne', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.faq-a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== SERVICE DETAIL ROW MOBILE ===== */
@media (max-width: 768px) {
  .service-detail-row {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    margin-bottom: 50px !important;
  }
}

/* Mobile Login Button */
.mobile-login-btn { display: none; }

/* ===== PROFILE DROPDOWN ===== */
.profile-dropdown { position: relative; display: flex; align-items: center; }

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid var(--gray-100);
  border-radius: 100px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
}
.profile-btn:hover { border-color: var(--teal); background: var(--teal-light); }

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 220px;
  z-index: 2000;
  overflow: hidden;
}
.profile-menu.open { display: block; }

.profile-menu-header {
  padding: 16px 18px;
  background: var(--gray-50);
}
.profile-menu-name { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.profile-menu-email { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.profile-menu-divider { height: 1px; background: var(--gray-100); }

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.profile-menu-item:hover { background: var(--gray-50); }

.logout-item { color: var(--danger) !important; }
.logout-item:hover { background: #FEF2F2 !important; }
