/* ============================================
   COSMIC MINIMALIST - Work Profile
   Cinematic SaaS Dark Mode Landing
   ============================================ */

:root {
  --midnight: #020617;
  --white: #FFFFFF;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --white-10: rgba(255, 255, 255, 0.1);
  --white-5: rgba(255, 255, 255, 0.05);
  --white-2: rgba(255, 255, 255, 0.02);
  
  --font-display: 'Sora', -apple-system, system-ui, sans-serif;
  --font-body: 'Sora', -apple-system, system-ui, sans-serif;
  
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--midnight);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   FLOATING NAVIGATION
   ============================================ */
.cosmic-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0.35rem;
  background: var(--white-5);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--white-10);
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.cosmic-nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.35rem 0.875rem;
}

.cosmic-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--white);
}

.cosmic-nav__dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.8);
}

.cosmic-nav__text {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cosmic-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cosmic-nav__link {
  padding: 0.375rem 0.875rem;
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: color 0.3s ease, background 0.3s ease;
}

.cosmic-nav__link:hover {
  color: var(--white);
  background: var(--white-5);
}

.cosmic-nav__cta {
  padding: 0.375rem 1rem;
  background: var(--white);
  color: var(--midnight);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cosmic-nav__cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.5);
}

/* Style menu button as white CTA for cosmic nav */
.cosmic-nav__inner .menu-trigger {
  padding: 0.375rem 1rem;
  background: var(--white);
  color: var(--midnight);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-left: 0.5rem;
}

.cosmic-nav__inner .menu-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.5);
  opacity: 1;
}

/* ============================================
   HERO PORTAL SECTION
   ============================================ */
.hero-portal {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem;
}

.portal-background {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.portal-pulse {
  position: absolute;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.4) 0%, rgba(2, 6, 23, 1) 70%);
  border-radius: 50%;
  animation: portal-pulse 8s ease-in-out infinite;
}

@keyframes portal-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* Ring wrapper handles the spin animation so JS can distort the SVG independently */
.portal-ring-wrapper {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-ring-wrapper--outer {
  width: 110vmin;
  height: 110vmin;
  max-width: 1100px;
  max-height: 1100px;
  animation: portal-rotate 25s linear infinite;
}

.portal-ring-wrapper--inner {
  width: 75vmin;
  height: 75vmin;
  max-width: 750px;
  max-height: 750px;
  animation: portal-rotate 35s linear infinite reverse;
}

.portal-ring {
  width: 100%;
  height: 100%;
  transition: transform 0.15s ease-out;
}

@keyframes portal-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
}

.metallic-text {
  background: linear-gradient(to bottom, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.8;
  color: var(--slate-400);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 0.75rem 2rem;
  background: var(--white);
  color: var(--midnight);
  border: none;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.25);
}

.btn-glass {
  padding: 0.75rem 2rem;
  background: var(--white-5);
  backdrop-filter: blur(20px);
  color: var(--white);
  border: 1px solid var(--white-10);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: var(--white-10);
  transform: translateY(-2px);
}

/* ============================================
   TRUST MARQUEE
   ============================================ */
.trust-marquee {
  padding: 2.5rem 0;
  border-top: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
  overflow: hidden;
  background: var(--midnight);
  position: relative;
  z-index: 30;
  margin-top: -12vh;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-700);
  white-space: nowrap;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  background: var(--slate-700);
  border-radius: 50%;
  align-self: center;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--midnight) 0%, rgba(8, 14, 30, 1) 100%);
  position: relative;
  /* z-index removed to avoid trapping child stacking contexts below the cursor */
}

.skills-cosmic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.skill-cosmic-card {
  background: var(--white-2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  z-index: 20;
}

.skill-cosmic-card:hover {
  background: var(--white-5);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.skill-cosmic-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.skill-cosmic-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.skill-cosmic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-cosmic-tag {
  padding: 0.375rem 0.875rem;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: var(--slate-400);
  transition: all 0.3s ease;
}

.skill-cosmic-tag:hover {
  background: var(--white-10);
  color: var(--white);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(8, 14, 30, 1) 0%, var(--midnight) 100%);
}

.projects-cosmic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.project-cosmic-card {
  background: var(--white-2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.project-cosmic-card:hover {
  background: var(--white-5);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.project-cosmic-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white-10);
  line-height: 1;
}

.project-cosmic-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.project-cosmic-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate-400);
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-cosmic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--slate-400);
}

.project-cosmic-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.project-cosmic-link:hover {
  gap: 0.5rem;
  color: var(--white);
}

/* ============================================
   WRITEUPS SECTION
   ============================================ */
.writeups-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--midnight) 0%, rgba(8, 14, 30, 1) 100%);
}

.writeups-cosmic-list {
  max-width: 800px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.writeup-cosmic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--white-2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: 1.25rem;
  text-decoration: none;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  z-index: 20;
}

.writeup-cosmic-item:hover {
  background: var(--white-5);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.writeup-cosmic-content {
  flex: 1;
}

.writeup-cosmic-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.writeup-cosmic-meta {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.writeup-cosmic-arrow {
  font-size: 1.5rem;
  color: var(--slate-600);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.writeup-cosmic-item:hover .writeup-cosmic-arrow {
  color: var(--white);
  transform: translateX(4px);
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(8, 14, 30, 1) 0%, var(--midnight) 100%);
}

.timeline-cosmic {
  max-width: 800px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.timeline-cosmic::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--white-10) 0%, transparent 100%);
}

.timeline-cosmic-item {
  display: flex;
  gap: 2rem;
  position: relative;
}

.timeline-cosmic-marker {
  position: absolute;
  left: -4px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-cosmic-content {
  flex: 1;
  padding-left: 2rem;
  padding-bottom: 1rem;
}

.timeline-cosmic-year {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: 0.5rem;
}

.timeline-cosmic-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.timeline-cosmic-company {
  font-size: 0.9375rem;
  color: var(--slate-400);
  margin-bottom: 0.75rem;
}

.timeline-cosmic-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate-400);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--midnight) 0%, rgba(15, 23, 42, 1) 100%);
}

.contact-cosmic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cosmic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: var(--white-2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: 1.5rem;
  text-decoration: none;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  z-index: 20;
}

.contact-cosmic-card:hover {
  background: var(--white-5);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.contact-cosmic-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-5);
  border-radius: 50%;
  color: var(--white);
}

.contact-cosmic-icon svg {
  width: 24px;
  height: 24px;
}

.contact-cosmic-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.contact-cosmic-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}

/* ============================================
   3D DASHBOARD SHOWCASE
   ============================================ */
.dashboard-showcase {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--slate-400);
  margin-bottom: 3rem;
}

.dashboard-3d {
  perspective: 2000px;
  padding: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--white-10);
  border-radius: 1.5rem;
  padding: 1.25rem;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.dashboard-panel {
  background: var(--white-2);
  border: 1px solid var(--white-10);
  border-radius: 1rem;
  padding: 1.25rem;
}

.dashboard-panel--left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 9999px;
  color: var(--slate-400);
}

.search-bar svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--slate-600);
}

.recent-collections {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.collection-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: 0.25rem;
}

.collection-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--white-2);
  border-radius: 0.5rem;
  transition: background 0.2s ease;
  cursor: pointer;
}

.collection-item:hover {
  background: var(--white-5);
}

.collection-icon {
  font-size: 1rem;
}

.collection-name {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
}

.collection-time {
  font-size: 0.6875rem;
  color: var(--slate-600);
}

.dashboard-panel--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--white-5) 0%, var(--white-2) 100%);
}

.play-button {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.4);
}

.play-button svg {
  width: 32px;
  height: 32px;
  transform: translateX(2px);
}

.session-info {
  text-align: center;
}

.session-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.session-subtitle {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.dashboard-panel--right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calendar-widget {
  padding: 0.875rem;
  background: var(--white-2);
  border-radius: 0.75rem;
}

.calendar-header {
  margin-bottom: 0.5rem;
}

.calendar-month {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
}

.calendar-date {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.calendar-day {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.calendar-weekday {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--white-2);
  border-radius: 0.5rem;
}

.task-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.task-name {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ============================================
   MASTERY BENTO GRID
   ============================================ */
.mastery-grid {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--midnight) 0%, rgba(15, 23, 42, 1) 100%);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.bento-card {
  background: var(--white-2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: all 0.4s var(--ease-smooth);
}

.bento-card:hover {
  background: var(--white-5);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.bento-card--span-2 {
  grid-column: span 2;
}

.bento-card--horizontal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.bento-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-5);
  border-radius: 1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.bento-icon svg {
  width: 28px;
  height: 28px;
}

.bento-icon--small {
  width: 44px;
  height: 44px;
}

.bento-icon--small svg {
  width: 22px;
  height: 22px;
}

.bento-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.bento-description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate-400);
}

.bento-media {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  border-radius: 1rem;
}

.cloud-icon-gradient {
  color: var(--white);
  opacity: 0.5;
}

.cloud-icon-gradient svg {
  width: 56px;
  height: 56px;
}

.bento-content {
  flex: 1;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
  padding: 5rem 0;
}

.faq-section .section-title {
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white-2);
  border: 1px solid var(--white-10);
  border-radius: 1.25rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--white-5);
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--slate-400);
}

/* ============================================
   FOOTER
   ============================================ */
.cosmic-footer {
  border-top: 1px solid var(--white-10);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  color: var(--slate-400);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
  color: var(--slate-600);
}

.footer-link {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--white-10);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--slate-600);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-social:hover {
  color: var(--white);
  background: var(--white-5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .bento-card--span-2 {
    grid-column: span 2;
  }

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

  .skills-cosmic-grid,
  .projects-cosmic-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

  .writeups-cosmic-list {
    padding: 0 1rem;
  }

  .timeline-cosmic-content {
    padding-left: 1.5rem;
  }
}

@media (max-width: 768px) {
  .cosmic-nav__inner {
    gap: 0.75rem;
  }

  .cosmic-nav__links {
    display: none;
  }

  .hero-portal {
    padding: 5rem 1rem;
  }

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

  .bento-card--span-2 {
    grid-column: span 1;
  }

  .bento-card--horizontal {
    flex-direction: column;
  }

  .bento-media {
    width: 100%;
    height: 120px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .skills-cosmic-grid,
  .projects-cosmic-grid,
  .contact-cosmic-grid {
    grid-template-columns: 1fr;
  }

  .writeup-cosmic-item {
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .writeup-cosmic-arrow {
    align-self: flex-end;
  }

  .timeline-cosmic::before {
    left: 1rem;
  }

  .timeline-cosmic-marker {
    left: 0.6rem;
  }

  .timeline-cosmic-content {
    padding-left: 3rem;
  }
}
