/* ===========================
   Profile Page Styles
   =========================== */

:root {
  --profile-orange: #DC6228;
  --profile-burgundy: #A64458;
  --profile-dark-bg: #1a1a19;
  --profile-text-light: #e8dccf;
}

/* Reset and base */
.profile-page {
  background: var(--profile-dark-bg);
  min-height: 100vh;
}

/* Ensure body has dark background */
body.profile-template {
  background: var(--profile-dark-bg) !important;
}

/* Custom Header for Profile Page */
body.profile-template #gh-head {
  position: absolute !important;
  width: 100%;
  z-index: 1000;
  background: #d12a20 !important;
  border-bottom: none !important;
  height: 180px !important;
  min-height: 180px !important;
}

body.profile-template #gh-head.gh-head.outer {
  background: #d12a20 !important;
  height: 180px !important;
  min-height: 180px !important;
}

body.profile-template #gh-head .gh-head-inner {
  height: 100% !important;
  align-items: center !important;
}

/* Make logo bigger */
body.profile-template #gh-head .gh-head-logo img {
  max-height: 180px !important;
  width: auto !important;
  max-width: none !important;
  height: 180px !important;
}

body.profile-template #gh-head .gh-head-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

body.profile-template #gh-head .gh-head-brand {
  order: 1 !important;
  flex: 0 0 auto !important;
}

body.profile-template #gh-head .gh-head-menu {
  order: 3 !important;
  flex: 1 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

body.profile-template #gh-head .gh-head-actions {
  order: 2 !important;
  margin-left: auto !important;
}

body.profile-template #gh-head .gh-burger {
  display: none !important;
}

/* Make nav links visible on profile page */
body.profile-template #gh-head .gh-head-menu nav {
  display: flex !important;
}

@media (max-width: 768px) {
  body.profile-template #gh-head .gh-burger {
    display: block !important;
  }
  
  body.profile-template #gh-head .gh-head-menu {
    display: none !important;
  }
  
  body.profile-template.gh-head-open #gh-head .gh-head-menu {
    display: flex !important;
  }
}

/* Hero Section */
.profile-hero {
  position: relative;
  width: 100%;
  min-height: auto;
  background: linear-gradient(135deg, var(--profile-orange) 0%, var(--profile-burgundy) 100%);
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 0 0;
  margin-top: 0;
  margin-bottom: 0;
}

.profile-hero-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1;
  padding: 0 0 0 0;
}

.profile-hero-main {
  display: flex;
  gap: 60px;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 0;
  padding-left: 0;
}

.profile-hero-image-container {
  position: relative;
  width: 517px;
  height: auto;
  flex-shrink: 0;
  align-self: flex-end;
  z-index: 1001;
  line-height: 0;
  margin-bottom: 0;
  margin-top: 10px;
}

.profile-hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  vertical-align: bottom;
  margin: 0;
  padding: 0;
}

.profile-header-info {
  flex: 1;
  max-width: 700px;
  text-align: left;
  padding-bottom: 20px;
  padding-right: clamp(20px, 5vw, 80px);
  align-self: flex-end;
}

.profile-name {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  color: #FFD700;
  margin: 0 0 1.5rem 0;
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.profile-tagline {
  font-size: clamp(18px, 3vw, 24px);
  color: white;
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
}

/* Dynamic Bulletin Board */
.profile-bulletin-board {
  position: relative;
  min-height: 60px;
  margin-top: 2rem;
}

.bulletin-item {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  font-size: 18px;
  line-height: 1.5;
  color: white;
  cursor: pointer;
  display: none;
}

.bulletin-item.active {
  opacity: 1;
  display: block;
}

.bulletin-label {
  color: #FFD700;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-right: 8px;
}

.bulletin-item:hover {
  color: #FFD700;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2.5rem;
}

/* Mobile CTAs - hidden by default */
.profile-mobile-ctas {
  display: none;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 50px;
  color: #FFD700;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-transform: uppercase;
}

.badge-icon {
  font-size: 1rem;
  display: inline-block;
}

.badge-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #FFD700;
  color: #000;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
}

.profile-hero-cta {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 30px clamp(20px, 5vw, 80px) 60px;
}

.profile-cta-button {
  display: inline-block;
  padding: 18px 48px;
  background: #FFD700;
  color: #000;
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.05em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.profile-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5);
}

.profile-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #333 0%, #555 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Tabs */
.profile-nav {
  background: var(--profile-dark-bg);
  border-bottom: 3px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
  margin-top: 0;
}

.profile-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 clamp(20px, 5vw, 80px);
}

.profile-nav-link {
  padding: 24px 32px;
  color: #888;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  text-transform: uppercase;
}

.profile-nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.profile-nav-link.active {
  color: white;
  border-bottom-color: var(--profile-orange);
}

/* Content Section */
.profile-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px clamp(20px, 5vw, 80px);
  min-height: 60vh;
  background: var(--profile-dark-bg);
}

/* Footer styling for profile template */
body.profile-template footer.site-footer.outer,
body.profile-template .site-footer.outer {
  background: #0a0a09 !important;
  background-color: #0a0a09 !important;
  color: #e8dccf !important;
}

body.profile-template footer.site-footer.outer .inner,
body.profile-template .site-footer.outer .inner {
  background: transparent !important;
  background-color: transparent !important;
}

body.profile-template footer.site-footer.outer .copyright,
body.profile-template .site-footer.outer .copyright,
body.profile-template footer.site-footer.outer .site-footer-nav,
body.profile-template .site-footer.outer .site-footer-nav,
body.profile-template footer.site-footer.outer .gh-powered-by,
body.profile-template .site-footer.outer .gh-powered-by {
  background: transparent !important;
  background-color: transparent !important;
  color: #d1bba6 !important;
}

body.profile-template footer.site-footer.outer .copyright a,
body.profile-template .site-footer.outer .copyright a {
  color: #e8dccf !important;
  background: transparent !important;
}

body.profile-template footer.site-footer.outer a,
body.profile-template .site-footer.outer a {
  color: #d1bba6 !important;
  background: transparent !important;
}

body.profile-template footer.site-footer.outer a:hover,
body.profile-template .site-footer.outer a:hover {
  color: #e8dccf !important;
}

.profile-section {
  display: none;
}

.profile-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--profile-text-light);
  margin: 0 0 40px 0;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

/* Cards Grid */
.profile-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.profile-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Card 1: Featured (red) */
.profile-card-featured {
  background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

/* Card 2: AI (blue/navy with image) */
.profile-card-ai {
  background: #1a3a52;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

/* Card 3: Reflection (navy with image) */
.profile-card-reflection {
  background: #0d1b2a;
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

/* Card 4: Experimentation (orange/yellow) */
.profile-card-experiment {
  background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.profile-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.profile-card:hover .profile-card-image {
  opacity: 0.8;
}

.profile-card-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

.profile-card-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.3;
  color: white;
}

.profile-card-subtitle {
  font-size: 16px;
  margin: 0 0 20px 0;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.profile-card-link {
  display: inline-flex;
  align-items: center;
  color: #FFD700;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.profile-card-link:hover {
  transform: translateX(4px);
}

/* Writing Section */
.profile-writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.profile-writing-card {
  background: var(--profile-dark-bg);
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-writing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-writing-image-link {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.profile-writing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-writing-card:hover .profile-writing-image {
  transform: scale(1.05);
}

.profile-writing-content {
  padding: 20px;
}

.profile-writing-tag {
  display: inline-block;
  background: var(--profile-orange);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.profile-writing-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.profile-writing-title a {
  color: var(--profile-text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.profile-writing-title a:hover {
  color: #fff;
}

.profile-writing-excerpt {
  color: #999;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.profile-writing-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  padding-top: 12px;
  border-top: 1px solid #333;
}

.profile-no-content {
  color: #999;
  font-size: 16px;
  text-align: center;
  padding: 40px 20px;
}

/* Threads/Notes Section */
.profile-threads-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Contact Section */
.profile-contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 20px;
}

.profile-contact-content {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  border-radius: 12px;
  padding: 48px 40px;
}

.profile-contact-intro {
  font-size: 20px;
  line-height: 1.6;
  color: var(--profile-text-light);
  margin: 0 0 32px;
}

.profile-contact-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--profile-orange);
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.profile-contact-button:hover {
  background: #e8742f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 98, 40, 0.4);
}

.contact-icon {
  font-size: 24px;
}

.profile-contact-note {
  font-size: 14px;
  color: #999;
  margin: 24px 0 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .profile-contact-content {
    padding: 40px 30px;
  }
  
  .profile-contact-intro {
    font-size: 18px;
  }
  
  .profile-contact-button {
    font-size: 16px;
    padding: 14px 32px;
  }
}

/* Overview Section */
.profile-overview-section {
  margin-bottom: 60px;
}

.profile-section-header-with-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
}

.profile-view-all-link {
  color: var(--profile-orange);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
}

.profile-view-all-link:hover {
  color: #fff;
}

.profile-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.profile-threads-preview {
  max-height: 400px;
  overflow: hidden;
  position: relative;
}

.profile-threads-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--profile-dark-bg));
  pointer-events: none;
}

/* About and Bio section */
.profile-about-section {
  margin-bottom: 80px;
}

.profile-bio {
  max-width: 1000px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--profile-text-light);
}

.profile-bio p {
  margin: 0;
}

/* Projects Section */
.profile-projects-section {
  margin-bottom: 60px;
}

.profile-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.profile-project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.profile-project-card {
  background: #1a1a19;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.profile-project-card-link:hover .profile-project-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.profile-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.profile-project-card-image .profile-project-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.profile-project-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  margin-top: auto;
}

.profile-project-card-image .profile-project-content {
  padding-top: 220px;
}

.profile-project-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.3;
  color: white;
}

.profile-project-subtitle {
  font-size: 14px;
  margin: 0 0 16px 0;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.profile-project-link {
  display: inline-flex;
  align-items: center;
  color: #FFD700;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.profile-project-link:hover {
  transform: translateX(4px);
}

/* Responsive Design */

/* Large Desktop to Medium Desktop: 1001px - 1200px */
@media (max-width: 1200px) and (min-width: 1001px) {
  .profile-hero-main {
    gap: 40px;
    align-items: flex-end;
  }
  
  .profile-hero-image-container {
    width: 450px;
    align-self: flex-end;
    margin-top: 0;
  }
  
  .profile-name {
    font-size: clamp(32px, 8vw, 64px);
  }
  
  .profile-tagline {
    font-size: clamp(16px, 3vw, 20px);
  }
  
  .profile-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .profile-writing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .profile-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .profile-overview-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Tablet Portrait: 769px - 1000px */
@media (max-width: 1000px) and (min-width: 769px) {
  body.profile-template #gh-head,
  body.profile-template #gh-head.gh-head.outer {
    height: 100px !important;
    min-height: 100px !important;
  }
  
  body.profile-template #gh-head .gh-head-logo img {
    max-height: 100px !important;
    height: 100px !important;
  }
  
  .profile-hero {
    padding: 100px 0 0;
    min-height: auto;
  }
  
  .profile-hero-content {
    align-items: center;
    position: relative;
  }
  
  .profile-hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
    padding: 0;
  }
  
  .profile-hero-image-container {
    width: 80%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  
  .profile-header-info {
    text-align: center;
    max-width: 80%;
    padding: 0 20px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
  }
  
  .profile-name {
    font-size: clamp(28px, 8vw, 48px);
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
  }
  
  .profile-tagline {
    font-size: clamp(16px, 3vw, 20px);
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  /* Hide badges on tablet, show mobile CTAs */
  .profile-badges {
    display: none;
  }
  
  .bulletin-item {
    font-size: 16px;
  }
  
  .bulletin-label {
    font-size: 12px;
  }
  
  .profile-mobile-ctas {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 1.5rem;
    justify-content: center;
    width: 100%;
    padding-bottom: 2rem;
  }
  
  .profile-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
  body.profile-template #gh-head,
  body.profile-template #gh-head.gh-head.outer {
    height: 80px !important;
    min-height: 80px !important;
  }
  
  body.profile-template #gh-head .gh-head-logo img {
    max-height: 80px !important;
    height: 80px !important;
  }
  
  .profile-hero {
    min-height: auto;
    padding: 80px 0 0;
  }
  
  .profile-hero-content {
    align-items: center;
    position: relative;
  }
  
  .profile-hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
    padding: 0;
  }
  
  .profile-hero-image-container {
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  
  .profile-header-info {
    text-align: center;
    max-width: 90%;
    padding: 0 20px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
  }
  
  .profile-name {
    font-size: clamp(32px, 10vw, 56px);
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
  }
  
  .profile-tagline {
    font-size: clamp(16px, 4vw, 22px);
    line-height: 1.5;
    margin-bottom: 2rem;
  }
  
  /* Hide badges on mobile */
  .profile-badges {
    display: none;
  }
  
  .bulletin-item {
    font-size: 15px;
  }
  
  .bulletin-label {
    font-size: 11px;
    display: block;
    margin-bottom: 4px;
  }
  
  /* Show mobile CTAs */
  .profile-mobile-ctas {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 1.5rem;
    justify-content: center;
    width: 100%;
    padding-bottom: 2rem;
  }
  
  .profile-mobile-cta {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
    text-transform: uppercase;
  }
  
  .profile-mobile-cta-primary {
    background: #d12a20;
    color: white;
    border: 2px solid #d12a20;
  }
  
  .profile-mobile-cta-secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
  }
  
  .profile-mobile-cta:active {
    transform: scale(0.95);
  }
  
  .profile-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-card-featured,
  .profile-card-ai,
  .profile-card-reflection,
  .profile-card-experiment {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
  }
  
  .profile-nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
  }
  
  .profile-nav-link {
    padding: 18px 20px;
    font-size: 13px;
  }
  
  .profile-nav {
    margin-top: 0;
  }
  
  .profile-content {
    padding: 60px 20px;
  }
  
  .profile-card {
    min-height: 250px;
  }
  
  .profile-card-content {
    padding: 30px;
  }
  
  .profile-projects-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-writing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .profile-overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .profile-overview-projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .profile-section-header-with-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
}

/* Extra Small Mobile: 480px and below */
@media (max-width: 480px) {
  .profile-name {
    font-size: clamp(28px, 10vw, 48px);
  }
  
  .profile-tagline {
    font-size: clamp(14px, 3.5vw, 18px);
  }
  
  .profile-mobile-cta {
    padding: 12px 24px;
    font-size: 13px;
  }
  
  .profile-nav-link {
    padding: 16px 18px;
    font-size: 12px;
  }
  
  .profile-content {
    padding: 40px 16px;
  }
  
  .profile-cards-grid {
    gap: 20px;
  }
  
  .profile-card {
    min-height: 200px;
  }
  
  .profile-card-content {
    padding: 24px;
  }
  
  .profile-card-title {
    font-size: 18px;
  }
  
  .profile-card-subtitle {
    font-size: 14px;
  }
}
