:root {
  --bg: #050608;
  --bg-elevated: #101218;
  --bg-soft: #151821;
  --text: #f5f5f5;
  --muted: #a0a0a0;
  --accent: #3af2a7;
  --accent-soft: rgba(58, 242, 167, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.55);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --line: #383838;
  --smalltext: 14px;
  --subtitle: 16px;
}

.theme-light {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --bg-soft: #eef1f7;
  --text: #101218;
  --muted: #555b6d;
  --accent: #0f9d58;
  --accent-soft: rgba(15, 157, 88, 0.12);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 16px 30px rgba(0, 0, 0, 0.08);
}

/* Global reset */

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

p{
    line-height: 30px;
}

h4 {
  margin: 0 0 4px;
  font-size: var(--smalltext);
}


.sub-title {
  font-size: var(--subtitle);
  margin-bottom: 10px;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 32px 0; /* ajustable */
}

.smalltext {
  margin: 0;
  font-size: var(--smalltext);
  color: var(--muted);
}

.title{
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 400;
}

span{
    color: var(--accent);
}

.case-video {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.onlymobile{
    display: none;
}


.metric{
    margin: 0 0 8px;
    font-size: 90px;
    font-weight: 200;
    color:var(--accent);
    line-height: 140px;
}

.list{
    line-height: 30px;
}

.borderradius{
    border-radius: var(--radius-lg);
}


/* Layout */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */

.sidebar {
  width: 300px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 32px 28px;
  background: var(--bg);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 511px;
  justify-content: space-between;
}

.brand-block{
    display: flex;
    justify-content: space-between;
}

.brand-name {
  margin: 0;
  width: 50%;
}

.brand-name:hover {
  cursor: pointer;
}

.sidebar-bio {
  margin: 32px 0;
  font-size: var(--smalltext);
  line-height: 1.6;
  color: var(--muted);
  border-top: solid thin #383838;
  padding-top: 20px;
}

.sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.sidebar-link {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  border-top: solid thin #383838;
  padding: 7px 0px 3px 0px;
  transition: color var(--transition-fast);
}

.sidebar-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.sidebar-link:hover {
  color: var(--accent);
}

.sidebar-link:hover::after {
  width: 100%;
}

/* Main shell */

.main-shell {
  margin-left: 290px;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Top nav */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px 16px;
  background: var(--bg);
  backdrop-filter: blur(16px);
}

.main-nav ul {
  display: flex;
  gap: 35%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}

.nav-link {
  font-size: 18px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 10px;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-link.is-active::after {
  width: 100%;
}

/* Theme toggle */

.theme-toggle {
  border: none;
  background: var(--bg-soft);
  color: var(--accent);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

}

.theme-toggle:hover {
  background: var(--accent-soft);
}

.theme-icon {
  font-size: 15px;
}

/* Scrollable content */

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 130px 40px 48px;
}

/* Sections */

.section {
  margin-bottom: 130px;
  border-top: solid thin #383838;
}

#work{
    border-top: none; 
}

.section-block {
  margin-bottom: 28px;
  line-height: 30px;
}

.section-intro {
  margin-bottom: 24px;
}

/* Work cards */

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    padding: 32px 80px;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-origin: center;
    text-align: center;
    min-height: 320px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.project-card-inner {
  position: relative;
  z-index: 1;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.75;
  mix-blend-mode: screen;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 400;
}

.project-meta {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  filter: saturate(1.1);
}

/* Gradient themes */

.project-card--blue {
  background: radial-gradient(circle at top left, #52a8ff, #0051ff);
}

.project-card--orange {
  background: radial-gradient(circle at top left, #ffb347, #ff6a00);
}

.project-card--green {
  background: radial-gradient(circle at top left, #65ff8f, #00a663);
}

.project-card--red {
  background: radial-gradient(circle at top left, #ff7d7d, #d4002e);
}

/* About */

.about-quote {
  margin-top: 18px;
  font-size: 16px;
}

.about-quote span {
  color: var(--accent);
  font-weight: 600;
}


.skill-columns {
  display: grid;
  gap: 18px;
}


/* Process */

.process-steps {
  display: grid;
  gap: 24px;
}

.process-step {
  padding-top: 16px;
}

/* Resume */

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 36px;
}

.resume-item {
  margin-bottom: 20px;
  display: inline-grid;
  gap: 15px;
}

.resume-item h4 {
  margin: 0 0 2px;
  font-size: 14px;
}

.resume-meta {
  margin: 0 0 6px;
  font-size: var(--smalltext);
  line-height: 25px;
  color: var(--muted);
}

.resume-item ul {
  margin: 0;
  padding-left: 18px;
  font-size: var(--smalltext);
  color: var(--muted);
  line-height: 25px;
}

/* Contact */

.contact-block {
  align-items: flex-start;
  padding-bottom: 218px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.form-field span {
  color: var(--muted);
}

input,
textarea {
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(58, 242, 167, 0.35);
}

.btn-primary {
  border-radius: var(--radius-pill);
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  background: var(--accent);
  color: #04110a;
  cursor: pointer;
  justify-self: flex-start;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

/* PROJECT PAGE */

.project-page {
  background: var(--bg);
}

.project-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px 14px;
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.project-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.project-nav-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 1px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.project-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.project-nav-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.project-nav-link:hover::after {
  width: 100%;
}

.project-theme-toggle {
  background: none;
}

.project-main {
  min-height: calc(100vh - 60px);
}

/* hero */

.gradient-hero {
  padding: 40px 0 36px;
}

.project-hero {
  display: flex;
  justify-content: center;
}

.project-hero-inner {
  width: min(1200px, 70vw);
  border-radius: 40px;
  padding: 56px 64px;
  background: radial-gradient(circle at top left, #52a8ff, #0051ff 55%, #0034a5 100%);
  color: #ffffff;
}

.project-hero-inner h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3vw, 40px);
}

.project-wrapper {
  width: min(1200px, 70vw);
  margin: 0 auto 80px;
  padding-bottom: 50px;
  padding-top: 60px;
}

.project-wrapper img{
    width: 100%;

}

.imgpadding{
    padding: 20px;
}

.project-card{
    width: 100%;
}

/* project sections */

.project-section {
  margin-top: 40px;
}

.project-section-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.project-meta-block {
  display: grid;
  gap: 18px;
}

.project-meta-block p {
  margin: 0;
  font-size: var(--smalltext);
  color: var(--muted);
}

.project-note {
  color: var(--muted);
}

/* grid utilities */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 24px;
}


.video-placeholder {
  margin-top: 16px;
  border-radius: 24px;
  border: 1px dashed var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.userflows{
    width: 60% !important;
    margin:0 auto;
}

/* UI flows links */

.ui-flow-links {
  margin-top: 4px;
}

.ui-flow-links a {
  display: inline-block;
  font-size: 13px;
  text-decoration: none;
  color: var(--accent);
  margin-right: 12px;
  position: relative;
  padding-bottom: 1px;
}

.ui-flow-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0.4);
  opacity: 0.8;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.ui-flow-links a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Smooth scrolling */

html {
  scroll-behavior: smooth;
}


/* GF Slider Container */
.gf-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 32px;
}



/* Track */
.gf-slider-track {
  display: flex;
  transition: transform 0.45s ease;
}

/* Slide */
.gf-slide {
  min-width: 100%;
  padding: 20px 0px 0px 0px;
  text-align: center;
}

.gf-step-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.gf-step-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.gf-slide-img {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
}

/* Controls */
.gf-slider-controls {
  position: relative;
}

/* Range Slider */
.gf-slider-range {
  width: 98%;
  appearance: none;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 10px;
  outline: none;
  margin-bottom: 14px;
  display: none;
}

.gf-slider-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Dots */
.gf-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 30px;
}

.gf-dots span {
  width: 10px;
  height: 10px;
  background: var(--border-subtle);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s;
}

.gf-dots span.active {
  background: var(--accent);
}

.gf-slider-arrows {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 12px 0;
}

.gf-arrow {
  background: var(--accent);
  color: #000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gf-arrow:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.gf-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

.particles{
    width: 30%;
    margin: 0 auto;
    display: block;
    padding: 40px;
    border-radius: 65px;
}

.gymyan_demo{
    width: 30%;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    border: #383838 solid thin;
}




/* Responsive */

@media (max-width: 1024px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .onlymobile{
    display: flex;
}

.gymyan_demo {
    width: 80%;
}

.particles {
    width: 100%;
}

.gf-slider-range {
  display: block;
}

.gf-dots {
    display: none;
}

.userflows{
    width: 80% !important;
    margin:0 auto;
}

  .sidebar-inner {
    gap: 24px;
  }

  .main-shell {
    margin-left: 0;
    height: auto;
  }

  .top-nav {
    padding-inline: 24px;
    display: none;
  }

  .main-content {
    padding-inline: 24px;
    padding: 30px 40px 48px;
  }

  .resume-grid,
  .contact-block,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

.grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); /* ≈ 70% / 30% */
  gap: 24px;
  align-items: start;
}

  .project-hero-inner,
  .project-wrapper {
    width: min(100% - 32px, 900px);
    padding-inline: 8px;
  }

    /* Break the two-column layout */
  .app-layout {
    display: block; /* <- ESTO es lo que faltaba */
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .main-shell {
    margin-left: 0; /* remove desktop offset */
    height: auto;
  }
}

@media (max-width: 720px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav ul {
    gap: 16px;
    flex-wrap: wrap;
  }

  .projects-list {
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card {
    padding: 24px 22px;
    border-radius: 24px;
  }

  .project-hero-inner {
    padding: 32px 24px;
  }

  .main-content {
    padding: 24px 18px 32px;
  }

  .section {
    margin-bottom: 56px;
  }

  
}