@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --bg-color: #050505;
  --surface-color: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  
  /* Brand Colors */
  --brand-orange-new: #EA7319;
  --brand-blue-new: #2364AA;
  --accent-gradient: linear-gradient(135deg, var(--brand-orange-new), #ff9f43);
  --orange-gradient: linear-gradient(135deg, var(--brand-orange-new), #ffca85);
  --blue-gradient: linear-gradient(135deg, var(--brand-blue-new), #38bdf8);
  --green-gradient: linear-gradient(135deg, #5FD69D, #48b885);
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-blur: 12px;
  
  --container-width: 1100px;
  --section-spacing: 120px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  border-radius: 24px;
}

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.secondary-gradient-text {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Header/Nav */
header {
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

header .container {
  height: 100%;
  display: flex;
  align-items: center;
}

header.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  /* Remove overflow: hidden to allow glows to bleed */
}

.hero-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-blob {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(234, 115, 25, 0.2) 0%, rgba(234, 115, 25, 0) 70%);
  filter: blur(100px);
  animation: float 20s infinite alternate;
}

.hero-blob-2 {
  bottom: 0;
  right: -100px;
  background: radial-gradient(circle, rgba(35, 100, 170, 0.2) 0%, rgba(35, 100, 170, 0) 70%);
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 50px); }
}

.hero-content {
  max-width: 700px;
}

.hero-tagline {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-orange-new);
  margin-bottom: 16px;
  display: block;
}

.hero h1 {
  font-size: 72px;
  line-height: 1.2;
  margin-bottom: 24px;
  padding-bottom: 10px; /* Extra space for descenders */
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent-gradient);
  border-radius: 30px;
  font-weight: 600;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(234, 115, 25, 0.3);
}

/* Sections */
section {
  padding: var(--section-spacing) 0;
}

.section-title {
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 40px;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 18px;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 32px;
}

.project-card {
  height: 500px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.uplifting-card {
  box-shadow: 0 10px 40px rgba(234, 115, 25, 0.05);
}

.headsup-card {
  box-shadow: 0 10px 40px rgba(35, 100, 170, 0.05);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.25);
}

.uplifting-card:hover {
  box-shadow: 0 20px 60px rgba(234, 115, 25, 0.2);
}

.headsup-card:hover {
  box-shadow: 0 20px 60px rgba(35, 100, 170, 0.15);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.project-title-meta {
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 28px;
  line-height: 1.2;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.project-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.project-link {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.project-tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  width: fit-content;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange-new);
  display: inline-block;
}

.tag-dot.blue { background: var(--brand-blue-new); }

.project-card.disabled-card {
  cursor: default;
  pointer-events: none;
  opacity: 0.8;
}

.project-card.disabled-card:hover {
  transform: none;
  border-color: var(--border-color);
  box-shadow: none;
}

.project-card.disabled-card .project-link {
  opacity: 0.5;
  text-decoration: none;
}

/* Specific Project Accents */
.community-card .gradient-text { background: var(--orange-gradient); -webkit-background-clip: text; background-clip: text; }
.zen-card .gradient-text { background: var(--blue-gradient); -webkit-background-clip: text; background-clip: text; }
.moneygirl-card .gradient-text { background: var(--orange-gradient); -webkit-background-clip: text; background-clip: text; }

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h3 {
  font-size: 32px;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  padding: 8px 16px;
  background: var(--surface-color);
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid var(--border-color);
}

/* Footer */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 20px;
}

.social-links a:hover {
  color: var(--text-primary);
}

.copyright {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1), transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 48px; }
  .about-content { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { height: auto; min-height: 400px; }

  /* Mobile Nav */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 18px;
  }
}

/* Subpage Styles */
.case-study-page .gradient-text,
.case-study-page .secondary-gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.case-study-page .cta-button {
  background: var(--accent-gradient);
}

.subpage-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.app-header-large {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.app-icon-large {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.icon-floating-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.app-icon-large.floating {
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.beta-tag {
  display: inline-block;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--surface-color);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.hero-visual {
  margin-top: 80px;
}

.screenshot-container {
  padding: 12px;
  border-radius: 24px;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.main-screenshot {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.screenshot-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Problem Section */
.centered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.problem-card {
  padding: 40px;
  text-align: center;
  transition: transform 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-8px);
}

.problem-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

/* Feature Rows */
.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(6, 158, 252, 0.1);
  color: var(--brand-blue);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.feature-row.reverse .feature-badge {
  background: rgba(95, 214, 157, 0.1);
  color: var(--brand-green);
}

.glass-bg-section {
  background: rgba(255, 255, 255, 0.02);
  padding: 100px 0;
}

.privacy-box {
  padding: 60px;
  text-align: center;
}

.privacy-item {
  margin-top: 20px;
}

.privacy-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.final-cta {
  text-align: center;
  padding: 120px 0;
}

.final-cta .cta-button.large {
  padding: 20px 48px;
  font-size: 20px;
}

/* Stretched Link Utility */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.project-links {
  position: static; /* allow stretched-link to cover the card */
  z-index: 2; /* Ensure other links are clickable */
}

/* Ensure secondary links sit above the stretched link layer */
.project-link {
  position: relative;
  z-index: 2;
}

/* However, the stretched link itself needs to be capable of being the "background" */
.project-link.stretched-link {
  position: static; /* Allows the ::after to reference the card container */
  z-index: auto;
}

@media (max-width: 900px) {
  .centered-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .cta-group {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Headshot Styles for Hyperfixation.dev */
.headshot-container {
  position: relative;
  overflow: hidden;
  padding: 0 !important; /* Override Glass padding if needed, forcing no padding for full bleed */
}

.headshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%; /* Shift crop to center face */
  display: block;
}

.headshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(234, 115, 25, 0.4), rgba(35, 100, 170, 0.4));
  mix-blend-mode: overlay; /* or soft-light/screen depending on preference */
  opacity: 0.6;
  pointer-events: none;
}

.secondary-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.secondary-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* Secondary Button Style */
.cta-button.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: var(--text-primary);
}

.cta-group.centered {
  justify-content: center;
  margin-top: 40px;
}

/* Screenshot Carousel */
.carousel-section {
  padding: 40px 0;
  overflow: hidden;
}

.container.expanded {
  max-width: 1400px;
}

.carousel-wrapper {
  overflow-x: auto;
  padding-bottom: 20px; /* Space for scrollbar */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.carousel-wrapper::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.carousel-track {
  display: flex;
  gap: 32px;
  padding: 0 40px;
}

.carousel-item {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-8px);
}

.carousel-item img {
  width: 100%;
  display: block;
}

/* Carousel Controls & Hero placement */
.carousel-container-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 56px;
  height: 56px;
  min-width: 56px; /* Prevent squashing */
  min-height: 56px; /* Prevent squashing */
  flex-shrink: 0;   /* Prevent squashing */
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Narrative Section */
.narrative-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  text-align: left;
  line-height: 1.8;
  border-radius: 24px;
}

.narrative-content p {
  margin-bottom: 24px;
  font-size: 18px;
  color: var(--text-secondary);
}

.narrative-content p:last-child {
  margin-bottom: 0;
}

/* Grids */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: 24px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Scoped Feature Badges */
.uplifting-page .feature-badge {
  background: rgba(195, 48, 221, 0.1);
  color: var(--brand-purple);
}

.uplifting-page .feature-row.reverse .feature-badge {
  background: rgba(255, 159, 67, 0.1);
  color: var(--brand-orange);
}

@media (max-width: 768px) {
  .grid-2-col {
    grid-template-columns: 1fr;
  }
  .carousel-btn {
    display: none; /* Hide buttons on mobile, rely on touch scroll */
  }
}

/* Hyperfixation Callout */
.hyperfixation-callout {
  padding: 120px 0;
}

.callout-card {
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.callout-card:hover {
  transform: translateY(-12px);
  border-color: rgba(255, 255, 255, 0.3);
}

.callout-content {
  position: relative;
  z-index: 2;
}

.callout-logo {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  display: block;
}

.callout-card h2 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.callout-card p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.callout-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(234, 115, 25, 0.1), rgba(35, 100, 170, 0.1));
  z-index: 1;
}

@media (max-width: 768px) {
  .callout-card { padding: 60px 24px; }
  .callout-card h2 { font-size: 32px; }
  .callout-card p { font-size: 18px; }
}
