/* =============================================
   CSS RESET & CUSTOM PROPERTIES
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -----------------------------------------------
   THEME
   Primary: #333D79 (deep indigo-blue)
   Secondary / bg: #FAEBEF (soft blush)
----------------------------------------------- */
:root {
  --primary:      #333D79;
  --primary-dark: #252d5e;
  --secondary:    #FAEBEF;
  --accent:       #5560a4;
  --success:      #1a7a3c;

  --bg:           #FAEBEF;
  --bg-card:      #ffffff;
  --bg-section:   #f3dde3;

  --text:         #12152e;
  --text-muted:   #6b5b6e;
  --border:       #e0c8d0;
  --white:        #ffffff;

  --font:         'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 8px 32px rgba(51, 61, 121, 0.12);
  --transition:   0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--bg-section);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--primary);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(51, 61, 121, 0.08);
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--primary);
  background: var(--bg-section);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition),
              box-shadow var(--transition),
              background var(--transition);
}

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

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(51, 61, 121, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(51, 61, 121, 0.25);
}

/* =============================================
   PAGE LAYOUT
   ============================================= */
.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-header__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* =============================================
   HOME PAGE — HERO
   ============================================= */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
}

.hero__badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Info Cards Grid ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.card__title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* =============================================
   ABOUT PAGE — CONTENT
   ============================================= */
.content {
  max-width: 760px;
  margin: 0 auto;
}

.content__section {
  margin-bottom: 2.5rem;
}

.content__section h2 {
  color: var(--text);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.content__section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.content__list {
  color: var(--text-muted);
  padding-left: 1.5rem;
}

.content__list li {
  margin-bottom: 0.5rem;
}

.content__list strong {
  color: var(--primary);
}

/* Code block */
.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.code-block pre {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  white-space: pre;
}

.content__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  color: var(--text);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form h2 {
  color: var(--text);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(51, 61, 121, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* =============================================
   404 PAGE
   ============================================= */
.not-found {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.not-found__icon  { font-size: 4rem; display: block; margin-bottom: 1.5rem; }
.not-found__title { font-size: 2.4rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; }
.not-found__text  { color: var(--text-muted); margin-bottom: 2rem; }

.not-found__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  margin-top: auto;
}

.footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =============================================
   RESPONSIVE — TABLET (max 768px)
   ============================================= */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav__links { gap: 1rem; }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (max 480px)
   ============================================= */
@media (max-width: 480px) {
  .page { padding: 1rem; }

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

  .hero__actions,
  .content__actions,
  .not-found__actions {
    flex-direction: column;
    align-items: center;
  }
}
