/* CSS Variables and Root Styles */
:root { --bg: #0f172a; --text: #f1f5f9; --muted: #94a3b8; --panel: #0b1224; --border: #1f2a44; --accent: #00baad; }
[data-theme="light"] { --bg: #ffffff; --text: #1a202c; --muted: #4a5568; --panel: #f8fafc; --border: #cbd5e1; --accent: #0a5c63; }

/* Base Styles */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body { margin: 0; font-family: "Roboto",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }

/* Folio Section Styles */
.folio-section { max-width: 1200px; margin: 0 auto clamp(18px,4vw,28px); padding: 0 clamp(20px,5vw,32px); }
.section-content { background: transparent; box-shadow: none; margin-top: 0; overflow: visible; transition: none; }

/* Theme Toggle */
.theme-toggle { position: fixed; right: clamp(20px,5vw,24px); top: clamp(20px,5vw,24px); z-index: 60; border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 999px; padding: clamp(8px,2vw,10px) clamp(10px,2vw,12px); cursor: pointer; transition: transform .15s,box-shadow .15s; min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.theme-toggle:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.theme-toggle .fa-lightbulb { color: var(--text); font-size: inherit; display: inline-block; vertical-align: middle; }
.theme-toggle-hidden { opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity 120ms,transform 120ms; }

/* Easter Egg Modal */
.easter-egg-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.easter-egg-modal.show {
  opacity: 1;
  visibility: visible;
}

.easter-egg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.easter-egg-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 6vw, 32px);
  max-width: clamp(300px, 85vw, 420px);
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 300ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.easter-egg-modal.show .easter-egg-content {
  transform: translate(-50%, -50%) scale(1);
}

.easter-egg-image {
  width: clamp(120px, 30vw, 180px);
  height: clamp(120px, 30vw, 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(12px, 3vw, 16px);
}

.easter-egg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.easter-egg-title {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 clamp(4px, 1vw, 6px);
  line-height: 1.3;
}

.easter-egg-subtext {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: var(--muted);
  margin: 0 0 clamp(20px, 5vw, 24px);
  line-height: 1.4;
}

.easter-egg-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: clamp(10px, 3vw, 12px) clamp(20px, 5vw, 24px);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 200ms ease, transform 150ms ease;
  min-height: 44px;
  min-width: 140px;
  margin-top: clamp(4px, 1vw, 8px);
}

.easter-egg-btn:hover {
  background: #2c7a7b;
  transform: translateY(-1px);
}

.easter-egg-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.easter-egg-btn:active {
  transform: translateY(0);
}

/* Layout */
.stacked { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px,5vw,32px); display: grid; grid-template-columns: 1.1fr 2fr; gap: clamp(32px,6vw,48px); align-items: start; }
.timeline-wrapper { display: flex; flex-direction: column; }

/* Timeline */
.timeline-col { position: relative; padding-top: clamp(8px,2vw,12px); }
.timeline-line { position: absolute; left: clamp(16px,4vw,16px); top: 0; width: 2.5px; height: 100%; background: var(--border); border-radius: 2px; z-index: 0; }
.wa-timeline { max-width: 700px; padding-bottom: clamp(8px,2vw,12px); }
.wa-details { position: relative; padding-left: clamp(32px,6vw,40px); padding-right: clamp(32px,6vw,40px); margin-bottom: clamp(16px,4vw,22px); scroll-margin-top: 32px; }
.wa-details summary { list-style: none; cursor: pointer; border: 1px solid var(--border); border-radius: clamp(8px,2vw,10px); padding: clamp(12px,3vw,16px) clamp(12px,3vw,16px) clamp(12px,3vw,16px) clamp(12px,3vw,16px); min-width: 0; background: var(--panel); display: flex; align-items: center; justify-content: flex-start; gap: clamp(12px,3vw,18px); font-size: clamp(1rem,2.5vw,1.13rem); position: relative; z-index: 1; transition: box-shadow .15s,border .15s,transform .15s; }
.wa-details summary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.wa-details summary:focus { box-shadow: 0 0 0 2px var(--accent); outline: none; }
.wa-details[open] summary { border-color: var(--accent); background: color-mix(in oklab,var(--panel) 88%,transparent); }
.wa-date { color: var(--muted); font-size: clamp(0.95rem,2.2vw,1.08rem); min-width: clamp(75px,15vw,90px); text-align: right; margin-right: clamp(1px,0.5vw,2px); font-weight: 500; letter-spacing: 0.01em; flex-shrink: 0; }
.wa-head { font-weight: 700; white-space: nowrap; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wa-content { padding: clamp(8px,2vw,12px) clamp(12px,3vw,16px); color: var(--muted); line-height: 1.5; font-size: clamp(0.9rem,2vw,0.95rem); }
.wa-details::before { display: none; }
.dot-btn { position: absolute; left: clamp(-39px,-8vw,-37px); top: 50%; transform: translateY(-50%); background: none; border: none; padding: 0; margin: 0; cursor: pointer; z-index: 2; width: clamp(28px,6vw,32px); height: clamp(28px,6vw,32px); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.dot-btn:hover { transform: translateY(-50%) scale(1.1); }
.dot-btn:focus .dot { box-shadow: 0 0 0 2px var(--accent); }
.dot { width: clamp(16px,4vw,18px); height: clamp(16px,4vw,18px); border-radius: 50%; border: 3px solid #222a35; outline: 2px solid var(--border); background: #fff; }
.wa-details[open] .dot { background: var(--accent); outline-color: var(--accent); }
.wa-details:hover .dot { border-color: var(--accent); outline-color: var(--accent); }
.wa-details summary:focus~.dot, .wa-details:focus-within .dot { border-color: #222a35; outline-color: var(--border); color: inherit; }
.wa-chevron { opacity: .8; font-size: clamp(1.6rem,3vw,1.8rem); transition: color .2s, transform .2s; color: inherit; display: flex; align-items: center; }
.wa-details[open] .wa-chevron { color: var(--accent); }
.wa-details summary:hover .wa-chevron { color: var(--accent); }
.wa-details summary:focus .wa-chevron { color: #fff; }
.wa-chevron .fa-chevron-down { display: none; }
.wa-details[open] .wa-chevron .fa-chevron-down { display: inline; }
.wa-chevron .fa-chevron-right { display: inline; }
.wa-details[open] .wa-chevron .fa-chevron-right { display: none; }

/* Section Headings */
.section-heading { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; margin: 0 0 clamp(14px,3vw,18px); color: var(--text); line-height: 1.18; margin-left: 36px; }
.section-heading i { margin-right: clamp(8px, 2vw, 12px); color: var(--accent); opacity: 0.9; }
#projectsTitle, .projects-col h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; margin: 0 0 clamp(12px,2vw,16px); color: var(--text); line-height: 1.22; }

/* Call to Action Button Styles */
.cta-btn { display: inline-block; font-size: 1.08rem; font-weight: 600; border-radius: 24px; padding: 0.7em 1.8em; margin-right: 12px; text-decoration: none; transition: background 0.2s, color 0.2s, border 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.07); cursor: pointer; }
.cta-btn i { margin-right: 8px; }
.cta-btn:hover { text-decoration: none; }
.cta-btn:focus { text-decoration: none; }
.cta-btn:active { text-decoration: none; }
.cta-btn * { text-decoration: none; }
.cta-primary { background: var(--accent); color: #fff; border: none; }
.cta-primary:hover { background: #2c7a7b; color: #fff; text-decoration: none; }
.cta-secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.cta-secondary:hover { background: var(--accent); color: #fff; text-decoration: none; }
.nav-cta { display: flex; gap: 12px; align-items: center; margin-top: 18px; margin-bottom: 18px; margin-left: 18px; }
.nav-cta button, .nav-cta-mobile button { display: flex; align-items: center; justify-content: center; text-align: center; }
.nav-cta-mobile { display: none; }

/* Footer */
.footer { width: 100%; background: var(--panel); color: var(--text); padding: 32px clamp(20px,5vw,32px) 24px; font-size: 1rem; font-weight: 400; letter-spacing: 0.01em; border-top: 1px solid rgba(0,0,0,0.07); box-shadow: 0 -2px 16px rgba(0,0,0,0.04); }
.footer .footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0; }
.footer .footer-socials { display: flex; gap: 16px; }
.footer .footer-socials a { color: var(--accent); font-size: 1.3em; transition: color 0.2s; }
.footer .footer-socials a:hover { color: var(--text); }
.footer .footer-copyright { font-size: 0.95rem; color: var(--muted); }

/* Project Cards */
.projects-col { max-width: none; transition: margin-top 0.25s cubic-bezier(.4,0,.2,1); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 45vw, 230px), 1fr)); gap: clamp(10px, 2.5vw, 14px); max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.card { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: clamp(10px, 2vw, 12px); overflow: hidden; text-decoration: none; color: inherit; transform: translateY(8px); opacity: 0; transition: transform .25s ease, opacity .25s ease, box-shadow .2s ease; position: relative; }
.card.show { transform: translateY(0); opacity: 1; }
.card:hover { box-shadow: 0 clamp(8px, 2vw, 14px) clamp(16px, 4vw, 28px) rgba(0,0,0,.25); transform: translateY(-2px); }
.card:focus { outline-offset: 2px; }
.card .cover { height: clamp(100px, 25vw, 140px); background: #0b1220; }
.project-card-img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: clamp(8px, 2vw, 10px) clamp(8px, 2vw, 12px); }
.card h4 { margin: 0 0 clamp(4px, 1vw, 6px); font-size: clamp(0.9rem, 2.2vw, 1rem); line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: clamp(0.8rem, 2vw, 0.9rem); line-height: 1.4; }
.card-badge { position: absolute; top: 10px; right: 12px; z-index: 2; background: #fff683; color: #222a35; border-radius: 999px; padding: 5px 7px 4px 7px; font-size: 1.05em; box-shadow: 0 2px 8px rgba(0,0,0,0.07); display: flex; align-items: center; justify-content: center; }
.card-highlight { border: 2px solid #fff683; box-shadow: 0 2px 16px 0 rgba(255,246,131,0.13); }
.grid.single-card-grid { grid-template-columns: 1fr; justify-items: start; }
.grid.single-card-grid .card { max-width: 340px; width: 100%; }

/* Mini Project Cards */
.mini-projects { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0 0; padding: 0; }
.mini-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 0.97em; color: var(--text); min-width: 0; flex: 1 1 120px; max-width: 48%; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; transition: box-shadow 0.18s, transform 0.18s; }
.mini-card:hover, .mini-card:focus { box-shadow: 0 4px 16px rgba(0,0,0,0.13); transform: translateY(-2px); }
.mini-card-title { font-weight: 600; margin-bottom: 2px; font-size: 1em; }
.mini-card-desc { font-size: 0.93em; color: var(--muted); }
.mini-card-cover { width: 100%; height: 70px; object-fit: cover; border-radius: 7px; margin-bottom: 6px; background: #f3f3f3; }
.mini-card.card-highlight { border: 2px solid #fff683; box-shadow: 0 2px 10px 0 rgba(255,246,131,0.13); position: relative; background: color-mix(in oklab, var(--panel) 97%, #fffde0); }
.mini-card-badge { position: absolute; top: 7px; right: 9px; z-index: 2; background: #fff683; color: #222a35; border-radius: 999px; padding: 3px 5px 2px 5px; font-size: 1em; box-shadow: 0 1px 4px rgba(0,0,0,0.07); display: flex; align-items: center; justify-content: center; }
.mini-card-badge .fa-star { font-size: 1em; line-height: 1; vertical-align: middle; }
.mini-projects-header { font-size: clamp(1.15rem, 5vw, 1.32rem); font-weight: 700; margin: 22px 0 10px 2px; color: var(--text); letter-spacing: -0.01em; text-align: left; line-height: 1.18; padding-left: 2px; }

/* Blog Cards (Substack Articles) */
.substack-section { max-width: 1200px; margin: 0 auto clamp(8px,3vw,18px); padding: 0 clamp(20px,5vw,32px); background: transparent; border-radius: 0; box-shadow: none; }
.substack-section .section-heading { margin-top: 0; margin-bottom: clamp(18px,3vw,24px); font-size: clamp(1.15rem,3vw,1.5rem); font-weight: 700; color: var(--text); }
.substack-articles { display: flex; flex-wrap: wrap; gap: clamp(18px,3vw,28px); margin-bottom: clamp(32px,6vw,48px); }
.substack-article { flex: 1 1 280px; min-width: 240px; max-width: 370px; background: linear-gradient(135deg, var(--panel) 80%, var(--bg) 100%); border-radius: 14px; box-shadow: 0 2px 16px rgba(0,0,0,0.08); padding: 24px 22px 20px 22px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow 0.2s, transform 0.2s; border: none; }
.substack-article:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.13); transform: translateY(-2px) scale(1.02); }
.substack-article h3 { font-size: 1.08rem; margin: 0 0 2px 0; font-weight: 700; color: var(--accent); letter-spacing: 0.01em; }
.substack-article a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
.substack-article a:hover { color: var(--text); text-decoration: underline; }
.substack-article p { color: var(--muted); font-size: 1rem; margin: 0; line-height: 1.6; }
.substack-actions { display: flex; justify-content: flex-end; margin-top: 32px; }
.section-cta-btn { width: 33%; box-sizing: border-box; font-size: 1.08rem; font-weight: 600; border-radius: 24px; padding: 0.7em 0; text-align: center; border: 2px solid var(--accent); background: transparent; color: var(--accent); transition: background 0.2s, color 0.2s, border 0.2s; margin: 0 auto; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.section-cta-btn i { margin-right: 8px; }
.section-cta-btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.section-cta-btn:focus { text-decoration: none; }
.section-cta-btn:active { text-decoration: none; }
.section-cta-btn * { text-decoration: none; }
.substack-article-img { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px 10px 0 0; margin-bottom: 12px; }

/* Light Theme Adjustments */
[data-theme="light"] .dot { border: 3px solid #fff; }
[data-theme="light"] .wa-details summary:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
[data-theme="light"] .wa-details summary:focus .wa-chevron { color: var(--accent); }
[data-theme="light"] .card-highlight { border: 2px solid var(--accent); box-shadow: 0 2px 16px 0 rgba(10, 92, 99, 0.15); }
[data-theme="light"] .section-cta-btn:hover { background: #cbd5e1; color: #222b3a; opacity: 1; text-decoration: none; }
[data-theme="light"] .substack-article { background: #e2e8f0; color: #222b3a; }
[data-theme="light"] .featured-project-banner { 
  background: linear-gradient(135deg, rgba(10, 92, 99, 0.12) 0%, rgba(10, 92, 99, 0.08) 100%);
  border: 3px solid rgba(10, 92, 99, 0.2);
}
[data-theme="light"] .featured-headline { 
  color: var(--text);
}
[data-theme="light"] .featured-description { 
  color: var(--muted);
}
[data-theme="light"] .featured-btn { 
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(10, 92, 99, 0.1);
}
[data-theme="light"] .featured-btn:hover { 
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(10, 92, 99, 0.2);
}

/* Featured Project Banner */
.featured-project-banner {
  max-width: 1200px;
  margin: 0 auto clamp(32px, 6vw, 48px);
  margin-left: clamp(20px,5vw,32px);
  margin-right: clamp(20px,5vw,32px);
  background: linear-gradient(135deg, rgba(0, 186, 173, 0.08) 0%, rgba(0, 186, 173, 0.04) 100%);
  border: 3px solid rgba(0, 186, 173, 0.15);
  border-radius: clamp(20px, 4vw, 24px);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.featured-project-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 186, 173, 0.25), 0 4px 16px rgba(0,0,0,0.1);
  border-color: rgba(0, 186, 173, 0.3);
}
.basil-logo-badge {
  position: absolute;
  top: clamp(24px, 5vw, 32px);
  right: clamp(24px, 5vw, 32px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.basil-logo-badge:hover {
  opacity: 0.8;
}
.basil-logo-img {
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  object-fit: contain;
  opacity: 0.8;
}
.basil-logo-light {
  display: block;
}
.basil-logo-dark {
  display: none;
}
[data-theme="light"] .basil-logo-light {
  display: none;
}
[data-theme="light"] .basil-logo-dark {
  display: block;
}

/* Mobile adjustments for basil logo */
@media (max-width: 900px) {
  .basil-logo-badge {
    position: static;
    display: inline-flex;
    margin-right: 12px;
    margin-bottom: 0;
    vertical-align: middle;
  }
  .basil-logo-img {
    width: clamp(44px, 10vw, 52px);
    height: clamp(44px, 10vw, 52px);
  }
  .featured-headline {
    display: flex;
    align-items: center;
    gap: 0;
    line-height: 1.2;
  }
}
.featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 48px);
  align-items: center;
  min-height: 280px;
padding-left: clamp(32px, 6vw, 48px);
padding-right: clamp(32px, 6vw, 48px);

}
.featured-text-section {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
  padding: clamp(16px, 3vw, 24px) 0;
  max-width: 75%;
}
.featured-headline {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  hyphens: auto;
}
.featured-description {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 400;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
}
.featured-cta {
  display: flex;
  align-items: center;
}
.featured-btn {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 24px;
  padding: clamp(12px, 3vw, 16px) clamp(24px, 5vw, 32px);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 186, 173, 0.1);
}
.featured-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 186, 173, 0.2);
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.basil-preview {
  position: absolute;
  right: 100px;
  bottom: -10px;
  width: 70%;
  height: 90%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.basil-banner {
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: clamp(12px, 3vw, 16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.basil-banner-light {
  display: block;
}
.basil-banner-dark {
  display: none;
}
[data-theme="dark"] .basil-banner-dark {
  display: block;
}
[data-theme="dark"] .basil-banner-light {
  display: none;
}

/* Responsive Design */
@media (max-width: 1100px) { .stacked { grid-template-columns: 1fr; } }
@media (min-width: 1025px) { #projectsTitle { padding-left: 0; margin-left: 0; text-align: left; } }
@media (max-width: 1024px) { #projectsTitle { display: none; } .grid { display: none; } .mini-card { align-items: flex-start; text-align: left; padding: 12px 10px 10px 10px; } .mini-card-title { font-size: 1.04em; margin-bottom: 3px; color: var(--text); letter-spacing: -0.01em; } .mini-card-desc { font-size: 0.95em; color: var(--muted); font-weight: 400; margin-bottom: 0; } .mini-projects { margin-left: 0; margin-right: 0; } }
@media (max-width: 900px) { .folio-section { padding: 0 clamp(20px,5vw,24px); } .folio-section + .folio-section { margin-top: clamp(48px,8vw,64px); } .stacked { padding: 0 clamp(20px,5vw,24px); } .substack-actions { justify-content: center; margin-top: 0; } .section-heading { font-size: clamp(1.8rem, 5vw, 2.5rem); } .section-heading i { font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin-right: clamp(10px, 2.5vw, 14px); } .mini-card { max-width: 100%; flex: 1 1 100%; } .substack-articles { flex-direction: column; gap: 16px; align-items: center; justify-content: center; display: flex; } .substack-section { padding: 0 clamp(20px,5vw,24px); } .featured-content { display: flex; flex-direction: column; gap: clamp(20px, 4vw, 28px); text-align: center; padding: clamp(24px, 5vw, 32px) clamp(20px, 4vw, 24px) 0; min-height: auto; } .featured-text-section { padding: 0; order: 1; max-width: 100%; } .featured-headline { text-align: left; font-size: 1.1rem; } .featured-description { text-align: left; } .featured-visual-section { order: 2; display: flex; justify-content: center; align-items: flex-end; height: clamp(180px, 35vw, 260px); padding: 0 clamp(16px, 4vw, 20px); } .basil-preview { position: relative; right: auto; bottom: 0; width: clamp(260px, 75vw, 300px); height: 100%; display: flex; align-items: flex-end; justify-content: center; } .basil-banner { width: 100%; height: auto; max-height: 100%; object-fit: cover; object-position: top center; border-radius: clamp(8px, 2vw, 12px); } .featured-actions .cta-btn { width: 100%; max-width: clamp(260px, 75vw, 300px); justify-content: center; margin: 0 auto; } }
@media (max-width: 900px) and (min-width: 701px) { .grid { grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 35vw, 220px), 1fr)); gap: clamp(12px, 3vw, 16px); } }
@media (max-width: 700px) { .theme-toggle { position: absolute; right: clamp(20px,5vw,24px); margin-top: 24px; font-size: 1em; } .timeline-line { left: clamp(10px,4vw,10px); } .timeline-wrapper { padding: 0; } .timeline-col { padding-top: clamp(8px,2vw,12px); padding-left: 0; padding-right: 0; } .wa-timeline { max-width: 100%; padding-bottom: clamp(8px,2vw,12px); } .wa-details { scroll-margin-top: 72px; } .section-heading { padding-left: 2px; text-align: center; margin-left: 0; } .nav-cta { display: none; } .nav-cta-mobile { display: flex; gap: 10px; align-items: center; margin-top: 16px; margin-bottom: 16px; width: 100%; justify-content: center; margin-left: 0; } .nav-cta-mobile .cta-btn { font-size: 1rem; padding: 0.7em 1.2em; border-radius: 18px; margin-right: 0; min-width: 120px; max-width: 180px; } .footer { padding: 18px clamp(20px,5vw,24px) 12px; font-size: 0.98rem; } .footer .footer-content { flex-direction: column; align-items: center; gap: 14px; } .footer .footer-socials { justify-content: center; gap: 12px; } .footer .footer-copyright { margin-top: 10px; font-size: 0.92rem; text-align: center; } }
@media (max-width: 600px) { .section-cta-btn { width: auto; min-width: 60vw; max-width: 90vw; margin-left: auto; margin-right: auto; display: flex; align-items: center; justify-content: center; } }
