/* =========================================================
   Gersen Medina, portfolio
   Pure HTML/CSS/JS, replicating the original design
   No Bootstrap, no jQuery, no OwlCarousel
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --primary: #0BCEAF;
  --primary-hover: #09b99d;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --dark: #343a40;
  --text: #6c757d;
  --heading: #343a40;
  --light: #ffffff;
  --border: #dee2e6;
  --muted: #adb5bd;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1140px;
  --gutter: 15px;
  --nav-height: 76px;
  --radius: 6px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; color: var(--heading); font-weight: 500; line-height: 1.2; }
p { margin: 0 0 1rem; }

.text-primary { color: var(--primary); }
.bg-primary { background: var(--primary); }
.bg-warning { background: var(--warning); }
.bg-danger { background: var(--danger); }
.bg-info { background: var(--info); }
.bg-dark { background: var(--dark); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--dark); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Container & sections ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .section { padding: 5rem 0; }
  :root { --gutter: 30px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 25px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 400;
  font-family: inherit;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-outline-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--primary); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .3s var(--ease);
}
.navbar-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
}
.brand h1 {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.brand h1 .text-primary { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  padding: 25px 5px;
  font-weight: 500;
  color: var(--heading);
  transition: color .2s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--primary); }
.nav-cta {
  padding: 8px 24px;
  margin-left: 15px;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
  }
  .nav-links.is-open { max-height: 80vh; }
  .nav-link { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
  .nav-cta { margin: 15px 0 10px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Animated aurora blobs, pure CSS perpetual animation */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero::before {
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle at 30% 30%, #6fffd1 0%, #0BCEAF 45%, transparent 70%);
  animation: blobA 18s ease-in-out infinite;
}
.hero::after {
  width: 45vw;
  height: 45vw;
  max-width: 620px;
  max-height: 620px;
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle at 70% 70%, #a8ffea 0%, #16e2b8 50%, transparent 75%);
  animation: blobB 22s ease-in-out infinite;
}

/* Extra floating orb via gradient layer on hero */
.hero {
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.15) 0%, transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255,235,150,.2) 0%, transparent 40%),
    var(--primary);
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: heroShift 14s ease-in-out infinite;
}

@keyframes heroShift {
  0%, 100% { background-position: 0% 50%, 100% 50%, 0 0; }
  50%      { background-position: 100% 50%, 0% 50%, 0 0; }
}
@keyframes blobA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(8vw, 6vh) scale(1.08); }
  66%      { transform: translate(-4vw, 10vh) scale(.95); }
}
@keyframes blobB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-6vw, -5vh) scale(1.1); }
  66%      { transform: translate(5vw, 3vh) scale(.92); }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .hero::before, .hero::after { animation: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 4fr 7fr;
    gap: 3rem;
  }
}

.hero-avatar {
  padding: 0 2rem;
  display: flex;
  justify-content: center;
}
@media (min-width: 992px) {
  .hero-avatar { padding: 0; }
}
.profile-avatar {
  width: 100%;
  max-width: 327px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  background: #fff;
}

.hero-text {
  text-align: center;
}
@media (min-width: 992px) {
  .hero-text { text-align: left; }
}

.hero-eyebrow {
  color: #fff;
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.hero-title {
  color: var(--primary);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .5rem;
  line-height: 1;
  -webkit-text-stroke: 2px #fff;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  color: #fff;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  margin-bottom: 1.5rem;
  min-height: 2em;
}
.typed-cursor {
  display: inline-block;
  color: #fff;
  font-weight: 300;
  animation: blink .9s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hero-actions {
  margin-top: 1rem;
}

.scroll-to-bottom {
  position: absolute;
  bottom: 30px;
  left: calc(50% - 12px);
  color: #fff;
  animation: bounce 1s infinite alternate;
}
@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-to-bottom { animation: none; }
  .typed-cursor { animation: none; }
}

/* ---------- Section heading (clean, 2026 style) ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.heading-front {
  color: var(--primary);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  position: relative;
  display: inline-block;
  padding-bottom: .75rem;
}
.heading-front::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
@media (max-width: 575.98px) {
  .heading-front { font-size: 1.5rem; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 445/427;
  object-fit: cover;
}
.about-copy h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--heading);
  font-weight: 500;
}
.about-copy p {
  margin-bottom: 1.5rem;
}
.about-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: .25rem 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 576px) {
  .about-specs { grid-template-columns: 1fr 1fr; }
}
.spec {
  padding: .5rem 0;
}
.spec h6 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--heading);
}
.spec h6 span {
  font-weight: 400;
  color: var(--text);
  margin-left: .25rem;
}

/* ---------- Quality (timeline) ---------- */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 992px) {
  .quality-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.quality-kicker {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--primary);
  margin-left: .5rem;
}
.timeline li {
  position: relative;
  padding-top: .125rem;
  margin-bottom: 1.5rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -2.5rem;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
}
.timeline li::after {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(-2.5rem + 5px);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}
.timeline h5 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--heading);
}
.timeline .t-date {
  margin-bottom: .5rem;
  font-size: .95rem;
}
.timeline .t-date small {
  font-size: .85rem;
  color: var(--text);
}
.timeline .t-date strong {
  color: var(--heading);
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 3rem;
}
@media (min-width: 768px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}
.skill {
  margin-bottom: 1.5rem;
}
.skill-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .5rem;
}
.skill-head h6 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--heading);
}
.progress {
  height: 10px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 10px;
  transition: width 1.6s var(--ease);
}
.progress-bar.is-animated { /* width set inline from JS */ }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .services-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.service-item {
  padding: 0;
}
.service-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.service-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
}
.service-item h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
}
.service-item p {
  margin-bottom: 1rem;
}
.skill-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.skill-tags {
  display: inline-block;
  padding: .35rem .85rem;
  background: var(--danger);
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background .2s var(--ease);
}
.skill-tags:hover { background: #bd2130; }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 6fr 4fr;
    gap: 2rem;
  }
}
.portfolio-cover-wrap {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.portfolio-cover-wrap img {
  width: 100%;
  aspect-ratio: 540/352;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.portfolio-cover-wrap:hover img { transform: scale(1.03); }
.portfolio-copy p { margin-bottom: 1.5rem; }

/* ---------- Reviews (static grid) ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.review {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 0;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.review:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.quote-icon {
  color: var(--primary);
  margin: 0 auto 1rem;
  display: block;
}
.review blockquote {
  margin: 0 0 1.5rem;
  flex: 1;
}
.review blockquote p {
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--heading);
  line-height: 1.5;
  margin: 0;
}
.review figcaption {
  margin-top: auto;
}
.review figcaption img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .75rem;
}
.review figcaption h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--heading);
  letter-spacing: .02em;
}
.review figcaption span {
  font-size: .9rem;
  color: var(--text);
}

/* ---------- Brands ---------- */
.section-brands {
  padding: 2rem 0;
}
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
}
.brands-grid img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: .6;
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.brands-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- Contact ---------- */
.contact-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-wrap p { margin-bottom: 1.5rem; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 4rem 0 3rem;
  margin-top: 3rem;
  text-align: center;
}
.socials {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.btn-social:hover { transform: translateY(-3px); background: #f8f9fa; }
.copyright { margin: 0; color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--heading);
  border: 1px solid var(--dark);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 40;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.back-to-top.is-visible { display: flex; }
.back-to-top:hover {
  background: var(--dark);
  color: #fff;
}

/* ---------- Responsive extras ---------- */
@media (max-width: 575.98px) {
  .brand h1 { font-size: 1.5rem; }
  .hero-title { -webkit-text-stroke-width: 1.5px; }
  .service-head { gap: .75rem; }
  .service-icon { width: 50px; height: 50px; }
  .contact-actions .btn { flex: 1 1 140px; }
}

/* =========================================================
   my-work page, gallery
   ========================================================= */
.work-section {
  padding-top: calc(var(--nav-height) + 3rem);
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: .5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 100px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.filter-btn:hover {
  background: rgba(11, 206, 175, 0.08);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: var(--primary);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.gallery-item {
  margin: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.gallery-item.is-hidden {
  display: none;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #f5f5f5;
  transition: transform .6s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item figcaption {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}
.gallery-client {
  margin: 0 0 .25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.gallery-job {
  margin: 0;
  font-size: .9rem;
  color: var(--text);
  font-weight: 400;
}

.work-cta {
  text-align: center;
  padding: 2rem 0;
}

@media (max-width: 575.98px) {
  .gallery { grid-template-columns: 1fr; gap: 1.5rem; }
  .filter-btn { padding: .4rem 1rem; font-size: .85rem; }
}
