/* Base & Typography */
:root {
  --primary: #0a2463;
  --accent: #3a7ca5;
  --accent-alt: #5bc0be;
  --bg: #f8f9fa;
  --text: #111827;
  --text-light: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

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

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

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

.img-fluid {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Layout */
.container {
  width: min(90%, 1200px);
  margin: 0 auto;
  padding: 0 1rem;
}

.flex-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.half-col {
  flex: 1;
  min-width: 300px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: var(--text);
  color: var(--text-light);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
}

.logo span {
  color: var(--accent-alt);
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  border-radius: 1px;
  transition: var(--transition);
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  margin: 4px 0;
  border-radius: 1px;
}

/* Main */
.main {
  min-height: 70vh;
}

/* Hero */
.hero {
  padding: 5rem 0;
  background: var(--gradient);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin: 0 0 2rem;
  opacity: 0.95;
}

.hero-alt {
  padding: 3rem 0;
  background: var(--gradient);
  color: var(--text-light);
  text-align: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero-title {
  font-size: 2.5rem;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 2rem;
  margin: 0 0 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--accent);
  color: var(--text-light);
}

.btn-primary {
  background: var(--gradient);
  color: var(--text-light);
}

.btn-light {
  background-color: white;
  color: var(--primary);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.btn-md {
  font-size: 1rem;
}

.btn-sm {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.btn-outline {
  background: none;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

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

.btn-block {
  width: 100%;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

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

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

.card h3 {
  margin: 0 0 0.75rem;
  color: var(--primary);
}

.card p {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

/* List styling */
.feature-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.2);
}

.form-group textarea {
  resize: vertical;
}

.password-input {
  position: relative;
}

.password-input .toggle-password {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.password-hint {
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  list-style: none;
}

.password-hint li {
  margin-bottom: 0.25rem;
}

.error {
  font-size: 0.85rem;
  color: #e53e3e;
  display: none;
}

.error.show {
  display: block;
}

/* Messages */
#form-message,
#login-message,
#signup-message {
  margin-top: 0.75rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
  background-color: var(--text);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.footer-col p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

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

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: block;
  font-size: 1.2rem;
}

/* Auth page */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-container {
  padding: 2rem 1rem;
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
}

.auth-header {
  margin-bottom: 1.5rem;
}

.auth-header h1 {
  margin: 0 0 0.5rem;
}

.auth-header p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.auth-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* CTA section */
.cta {
  background: var(--gradient);
  color: var(--text-light);
  padding: 4rem 0;
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
}

.cta-inner p {
  font-size: 1.1rem;
  margin: 0 0 2rem;
  opacity: 0.95;
}

.cta-section {
  background: var(--gradient);
  color: var(--text-light);
  padding: 4rem 0;
}

.cta-section .centered {
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--text);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list.active {
    display: flex;
  }

  .nav-link {
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }

  .flex-row {
    flex-direction: column;
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* Centered content */
.centered {
  text-align: center;
}

/* Background utilities */
.bg-light {
  background-color: #f8f9fa;
}

/* Icon box */
.icon-box {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Team section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--accent-alt);
}

.team-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.team-card p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* Stats section */
.stats-section {
  background: var(--gradient);
  color: var(--text-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-alt);
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Service list */
.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.service-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Services hero */
.services-hero {
  background: var(--gradient);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}

.services-hero-content h1 {
  font-size: 3rem;
  margin: 0 0 1rem;
}

.services-hero-content p {
  font-size: 1.25rem;
  margin: 0;
  opacity: 0.95;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Services preview */
.services-preview {
  padding: 4rem 0;
}

.services-preview .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .team-card, .stat-card {
  animation: fadeInUp 0.6s ease-out;
}
