/* Core CSS Design System */
:root {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --secondary: #1e293b;
  --text-dark: #334155;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-accent: #ccfbf1;
  --border-color: #e2e8f0;
  --font-base: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Georgia', serif;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: -4px 0 15px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Navbar Layout */
.navbar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  position: relative;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--secondary);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Mobile Toggle - Pushed to Far Right Corner */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002; /* Float above the slide drawer overlay */
  margin-left: auto; /* Guarantees positioning in far right corner */
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-accent);
  color: var(--primary);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-accent {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
}

/* Hero Section Grid & Image Controls */
.hero {
  padding: 4rem 0;
  background-color: var(--bg-card);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background-color: var(--bg-accent);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.hero-description {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  object-fit: cover;
  display: block;
}

/* Home Page Grid Layouts */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-box {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card-icon {
  font-weight: bold;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-title {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Standalone Profile Image Styling */
.profile-image-container {
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
}

.profile-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  object-fit: cover;
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: #f8fafc;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Responsive Styles & Mobile Slide-Over Drawer */
@media (max-width: 850px) {
  .mobile-menu-toggle {
    display: flex;
  }

  /* Compact Dropdown Drawer — small rounded panel anchored under the
     hamburger button, not a full-screen/full-height overlay. */
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 210px;
    max-width: calc(100vw - 2rem);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    box-shadow: var(--shadow-lg);
    z-index: 1001;

    /* Collapsed state: zero height, clipped, invisible */
    max-height: 0;
    padding: 0 1rem;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease;
  }

  .nav-links.active {
    max-height: 420px;
    padding: 0.5rem 1rem;
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0;
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
  }

  .nav-links a {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
  }

  /* Morph Hamburger Lines into "X" when Active */
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  /* Responsive Grid Stack Layouts */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}