/* ============================================================
   MILDRED REBECCA — COMPLETE DESIGN SYSTEM
   ============================================================ */

/* ------------------------------------------------------------
   CSS CUSTOM PROPERTIES (LIGHT MODE)
   ------------------------------------------------------------ */
:root {
  --bg-main:       #F7F9FC;
  --bg-surface:    #FFFFFF;
  --text-primary:  #0B1220;
  --text-muted:    #475569;
  --border:        #E2E8F0;
  --navy:          #0F2A44;
  --navy-hover:    #12385C;
  --teal:          #13B4B1;
  --teal-hover:    #0FA3A0;
  --teal-soft:     #D7F5F4;

  --radius-card:   12px;
  --radius-btn:    8px;
  --shadow-card:   0 2px 12px rgba(11, 18, 32, 0.06);
  --shadow-hover:  0 8px 32px rgba(11, 18, 32, 0.12);
  --transition:    all 0.25s ease;
}

/* ------------------------------------------------------------
   DARK MODE
   ------------------------------------------------------------ */
[data-theme="dark"] {
  --bg-main:       #07111E;
  --bg-surface:    #0B1B2B;
  --text-primary:  #EAF2FF;
  --text-muted:    #A7B4C6;
  --border:        #18314B;
  --navy:          #13B4B1;
  --navy-hover:    #0FA3A0;
  --teal:          #13B4B1;
  --teal-hover:    #0FA3A0;
  --teal-soft:     #0D2A29;
  --shadow-card:   0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-hover:  0 8px 36px rgba(0, 0, 0, 0.55);
}

/* ------------------------------------------------------------
   GLOBAL RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; }
button { font-family: inherit; }

/* ------------------------------------------------------------
   TYPOGRAPHY SCALE
   ------------------------------------------------------------ */
h1 { font-size: 42px;  font-weight: 800; line-height: 1.15; color: var(--text-primary); }
h2 { font-size: 28px;  font-weight: 700; line-height: 1.25; color: var(--text-primary); }
h3 { font-size: 20px;  font-weight: 600; line-height: 1.35; color: var(--text-primary); }
p  { font-size: 17px;  line-height: 1.6;  color: var(--text-muted); }

/* ------------------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 100px 0; }

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.section-intro {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 48px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 80px;
  background-color: #0F2A44;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand {
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
  border-bottom-color: #13B4B1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: #FFFFFF;
  cursor: pointer;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 80px; left: 0; right: 0;
  background-color: #0F2A44;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0 16px;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: #13B4B1;
  background: rgba(255, 255, 255, 0.04);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background-color: #0F2A44;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid #0F2A44;
  transition: var(--transition);
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background-color: #12385C;
  border-color: #12385C;
}

[data-theme="dark"] .btn-primary {
  background-color: #13B4B1;
  border-color: #13B4B1;
  color: #07111E;
}

[data-theme="dark"] .btn-primary:hover {
  background-color: #0FA3A0;
  border-color: #0FA3A0;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: #0F2A44;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid #0F2A44;
  transition: var(--transition);
  cursor: pointer;
  font-family: inherit;
}

.btn-outline:hover {
  background-color: #0F2A44;
  color: #FFFFFF;
}

[data-theme="dark"] .btn-outline {
  color: #EAF2FF;
  border-color: #13B4B1;
}

[data-theme="dark"] .btn-outline:hover {
  background-color: #13B4B1;
  color: #07111E;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background-color: var(--bg-main);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-greeting {
  font-size: 16px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0;
  line-height: 1.4;
}

.hero-greeting strong {
  color: var(--text-primary);
  font-weight: 800;
}

.hero-left h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}

.hero-subheading {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-creds {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.1px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-hover);
}

.hero-image-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, #0F2A44 0%, #163859 60%, #13B4B1 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

.hero-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.02) 20px,
    rgba(255,255,255,0.02) 40px
  );
}

.hero-image-placeholder svg {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background-color: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-highlight-box {
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-card);
  padding: 28px;
  position: sticky;
  top: 104px;
}

.about-highlight-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 16px;
}

.about-highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-highlight-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
  font-weight: 500;
}

.about-highlight-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background-color: var(--teal);
  border-radius: 50%;
}

/* ============================================================
   EXPERIENCE SECTION
   ============================================================ */
.experience-section {
  background-color: var(--bg-main);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background-color: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 38px;
  width: 10px;
  height: 10px;
  background-color: var(--teal);
  border-radius: 50%;
  border: 2px solid var(--bg-main);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.timeline-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.5;
  padding-top: 3px;
}

.timeline-role {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-bullets li {
  font-size: 15px;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
}

/* ============================================================
   SELECTED PROJECTS
   ============================================================ */
.projects-section {
  background-color: var(--bg-surface);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(19, 180, 177, 0.35);
}

.project-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  display: inline-block;
  background-color: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ============================================================
   RESEARCH & WRITING
   ============================================================ */
.research-section {
  background-color: var(--bg-main);
}

.research-list {
  display: flex;
  flex-direction: column;
}

.research-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
}

.research-item:first-child { padding-top: 0; }
.research-item:last-child  { border-bottom: none; }

.research-item:hover .research-title { color: var(--teal); }
.research-item:hover .research-arrow { transform: translateX(5px); }

.research-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: var(--teal-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.research-icon svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.research-body { flex: 1; }

.research-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: var(--transition);
}

.research-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.research-arrow {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--teal);
  margin-top: 4px;
  transition: transform 0.25s ease;
}

/* ============================================================
   HOW I CAN HELP (SERVICES)
   ============================================================ */
.services-section {
  background-color: var(--bg-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background-color: var(--bg-main);
  transition: var(--transition);
}

.service-item:hover {
  border-color: rgba(19, 180, 177, 0.35);
  box-shadow: var(--shadow-card);
}

.service-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background-color: var(--teal-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.service-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.service-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   MILDSEC HUB
   ============================================================ */
.mildsec-section {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mildsec-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.mildsec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 12px;
}

.mildsec-inner h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.mildsec-inner p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background-color: var(--bg-surface);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-left h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-left > p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-action {
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.contact-link:hover { color: var(--teal); }

.contact-link-icon {
  width: 36px;
  height: 36px;
  background-color: var(--teal-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-link:hover .contact-link-icon {
  background-color: var(--teal);
}

.contact-link-icon svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
  transition: var(--transition);
}

.contact-link:hover .contact-link-icon svg {
  color: #FFFFFF;
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
  appearance: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19, 180, 177, 0.12);
}

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

.form-submit {
  width: 100%;
  background-color: #0F2A44;
  color: #FFFFFF;
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  letter-spacing: 0.2px;
}

.form-submit:hover { background-color: #12385C; }

[data-theme="dark"] .form-submit {
  background-color: #13B4B1;
  color: #07111E;
}

[data-theme="dark"] .form-submit:hover {
  background-color: #0FA3A0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: #0F2A44;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(234, 242, 255, 0.08);
  margin-bottom: 32px;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  color: #EAF2FF;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(234, 242, 255, 0.5);
  line-height: 1.65;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(234, 242, 255, 0.4);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(234, 242, 255, 0.65);
  transition: var(--transition);
}

.footer-links a:hover { color: #13B4B1; }

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  color: rgba(234, 242, 255, 0.65);
  transition: var(--transition);
}

.footer-contact-link:hover { color: #13B4B1; }

.footer-contact-link svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  color: #13B4B1;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(234, 242, 255, 0.35);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 991px)
   ============================================================ */
@media (max-width: 991px) {
  h1 { font-size: 36px; }

  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 0;
  }

  .hero-right { order: -1; }

  .hero-image-placeholder,
  .hero-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-highlight-box { position: static; }

  .timeline-item {
    grid-template-columns: 120px 1fr;
    gap: 24px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .mildsec-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

/* ============================================================
   RESPONSIVE — MOBILE (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }

  .section-padding { padding: 72px 0; }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-item::before {
    left: -28px;
  }

  .timeline-date { font-size: 11px; }

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

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    text-align: center;
  }

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