@font-face {
  font-family: 'Canela';
  src: url('../assets/fonts/CanelaTextFamily/CanelaText-Regular-Trial.otf') format('otf');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Canela';
  src: url('../assets/fonts/CanelaDeckFamily/CanelaDeck-Medium-Trial.otf') format('otf');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Canela';
  src: url('../assets/fonts/CanelaFamily/Canela-Bold-Trial.otf') format('otf');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Canela';
  src: url('../assets/fonts/CanelaFamily/Canela-BoldItalic-Trial.otf') format('otf');
  font-weight: 700;
  font-style: italic;
}

:root {
  --bg-color: #e6eef6; 
  --orb-color-1: rgba(180, 195, 215, 0.6); 
  --orb-color-2: rgba(220, 230, 240, 0.6); 
  
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  --glass-shadow-hover: 0 24px 50px rgba(0, 0, 0, 0.06);
  --glass-blur: 24px;
  
  --text-dark: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  
  --action-bg: #0f172a;
  --action-text: #ffffff;
  
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Canela', serif;
  font-weight: 500;
  margin: 0;
  color: var(--text-dark);
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

/* Page Glow / Animated Background */
.page-bg {
  position: fixed;
  inset: -10vw; /* allow orbs to move offscreen slightly */
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  background: var(--bg-color);
}



main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Base Glass Class for reusability */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
}

/* Navigation - True Frosted Glass Pill */
.nav {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  max-width: 1600px;
  padding: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 32px;
  border-radius: 16px !important;
  background: rgba(220, 225, 235, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 6px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.4);
}

.nav-cta {
  background: var(--action-bg);
  color: var(--action-text);
  border: 1px solid transparent;
  margin-left: auto;
}

.nav-cta:hover {
  background: #1e293b;
  color: #fff;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  min-width: 220px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
  background: var(--glass-bg-hover);
  color: var(--text-dark);
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

/* Animated 3D/Dotted Background Container */
.hero-bg-anim {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dotted Wave Pattern */
.hero-dotted-wave {
  position: absolute;
  width: 200vw;
  height: 200vh;
  top: -50vh;
  left: -50vw;
  background-image: radial-gradient(rgba(15, 23, 42, 0.15) 2px, transparent 2px);
  background-size: 30px 30px;
  animation: waveDrift 60s linear infinite;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 60%);
}

@keyframes waveDrift {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

/* 3D Floating CSS Sphere */
.hero-3d-sphere {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e2e8f0 40%, #94a3b8 75%, #475569 100%);
  box-shadow: 
    inset -25px -25px 50px rgba(15, 23, 42, 0.25),
    inset 15px 15px 30px rgba(255, 255, 255, 0.9),
    0 40px 60px rgba(15, 23, 42, 0.08);
  animation: floatSphere 6s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes floatSphere {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-40px) rotate(3deg); }
}

/* Hero Content Text (No Glass Box) */
.hero-content-text {
  text-align: center;
  z-index: 10;
  padding: 0 20px;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  color: var(--action-bg);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content-text h2 {
  font-size: 1.6rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
  font-style: italic;
}

.hero-content-text h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-content-text p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Reveal Text Animation */
.reveal-txt {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.scroll-indicator span {
  display: block;
  width: 100%;
  height: 30px;
  background: rgba(15, 23, 42, 0.5);
  animation: scrollDrop 2s infinite;
}

@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
  100% { transform: translateY(200%); }
}

/* Selected Works */
.selected-work {
  padding: 120px 0;
}

.section-title {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 60px;
  text-align: center;
  color: var(--text-dark);
}

.selected-work-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

.selected-work-stepper {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stepper-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  text-align: left;
  padding: 14px 18px;
  border-left: 2px solid rgba(15, 23, 42, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  border-radius: 0 12px 12px 0;
}

.stepper-item:hover {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.3);
}

.stepper-item.is-active {
  color: var(--action-bg);
  border-left-color: var(--action-bg);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.05) 0%, transparent 100%);
  font-weight: 500;
}

.selected-work-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.selected-work-card {
  --sw-gap: 14px;
  --sw-row-1: clamp(220px, 22vw, 280px);
  --sw-row-2: clamp(200px, 20vw, 250px);
  --sw-row-3: clamp(150px, 14vw, 190px);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
  
  /* Frosted Glass Effect */
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.selected-work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-hover);
}

.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: var(--sw-row-1) var(--sw-row-2) var(--sw-row-3);
  gap: var(--sw-gap);
  grid-template-areas:
    "a a b"
    "c c c"
    "d e e";
}

.bento {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.bento-a { grid-area: a; }
.bento-b { grid-area: b; }
.bento-c { grid-area: c; }
.bento-d { grid-area: d; }
.bento-e { grid-area: e; }

.bento img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  will-change: transform;
  transition: transform 180ms ease-out;
}

.selected-work-card:hover .bento img {
  transform: scale(1.02);
}

.project-content h3 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.project-content li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
  display: flex;
}

.project-content li strong {
  color: var(--text-primary);
  margin-right: 6px;
}

.project-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.metric {
  background: rgba(255, 255, 255, 0.3);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.metric span {
  display: block;
  color: var(--action-bg);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.metric p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 14px 28px;
  background: var(--action-bg);
  color: var(--action-text);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  background: #1e293b;
}


/* Minimalist Pill About Section */
.about-section {
  padding: 120px 0 60px;
  display: flex;
  justify-content: center;
}

.about-pill-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.about-minimalist-pill {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  padding: 24px 32px 24px 28px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.4s ease;
}

.about-minimalist-pill:hover {
  transform: translateY(-4px);
}

.about-pill-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.about-pill-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-pill-text {
  font-family: inherit;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.about-pill-text strong {
  color: #ffffff;
  font-weight: 600;
}

.about-pill-resume {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}

.about-pill-resume:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
}

/* Learning / Capabilities */
.learning-section {
  padding: 80px 0 160px;
}

.learning-header {
  text-align: center;
  margin-bottom: 60px;
}

.learning-header h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.learning-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.learning-card {
  padding: 36px 32px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.learning-card:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-hover);
}

.learning-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.learning-card h3 span {
  font-size: 1rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.learning-card ul {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.learning-card li {
  color: var(--text-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.learning-card li::before {
  content: "→";
  color: var(--action-bg);
  font-size: 1rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  color: var(--text-secondary);
  font-size: 0.95rem;
}


/* Mobile Menu Toggle (hidden by default) */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #475569;
  cursor: pointer;
  padding: 6px;
  transition: color 0.3s ease;
}
.mobile-menu-toggle:hover {
  color: #0f172a;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .selected-work-layout {
    grid-template-columns: 1fr;
  }
  .selected-work-stepper {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  }
  .stepper-item {
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 12px 12px 0 0;
    white-space: nowrap;
  }
  .stepper-item.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--action-bg);
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.05) 0%, transparent 100%);
  }
  .selected-work-card {
    grid-template-columns: 1fr;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-actions {
    justify-content: center;
  }
  .learning-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  main {
    padding: 0 16px;
  }
  .nav {
    top: 20px;
    padding: 0 16px;
  }
  .nav-inner {
    padding: 10px 20px;
    justify-content: space-between;
    width: 100%;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 5%;
    width: 90%;
    gap: 12px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(245, 248, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    align-items: stretch;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links .nav-link {
    font-size: 1.05rem;
    padding: 12px;
    text-align: left;
    justify-content: flex-start;
  }
  .nav-links .nav-cta {
    margin-left: 0;
    justify-content: center;
  }
  .nav-links .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0,0,0,0.02);
    padding: 8px;
    margin-top: 8px;
  }
  .hero-content-text {
    padding: 40px 24px;
  }
  .hero-content-text h1 {
    font-size: 2.2rem;
  }
  .hero-3d-sphere {
    width: 320px;
    height: 320px;
  }
  .selected-work-card {
    padding: 24px;
    gap: 30px;
    --sw-row-1: 160px;
    --sw-row-2: 130px;
    --sw-row-3: 100px;
    --sw-gap: 10px;
  }
  .project-metrics {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .project-metrics .metric {
    flex: 1 1 calc(50% - 8px);
  }
  .about-container {
    padding: 32px 24px;
  }
  .about-image img {
    width: 220px;
    height: 280px;
  }
  .learning-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content-text h1 {
    font-size: 1.8rem;
  }
  .hero-3d-sphere {
    width: 250px;
    height: 250px;
  }
  .selected-work-card {
    --sw-row-1: 120px;
    --sw-row-2: 90px;
    --sw-row-3: 70px;
    --sw-gap: 6px;
  }
  .project-metrics .metric {
    flex: 1 1 100%;
  }
  .about-actions {
    flex-direction: column;
    width: 100%;
  }
  .about-actions a {
    width: 100%;
    justify-content: center;
  }
}