/* ============================================
   PROCRASTINATING SLOTH — styles.css
   ============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text-primary); background: var(--bg-dark); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Custom Properties ---------- */
:root {
  --primary: #8fb5a3;
  --primary-bright: #5bbfb5;
  --primary-dark: #3d7a72;
  --bg-dark: #0f1117;
  --bg-section: #161922;
  --bg-card: #1e2230;
  --accent-cream: #e8dcc8;
  --accent-warm: #c4a46a;
  --text-primary: #f0ece4;
  --text-secondary: #a8b0b8;
  --text-heading: #ffffff;
  --border-color: rgba(95, 191, 181, 0.15);
  --overlay: rgba(15, 17, 23, 0.85);

  --font-heading: 'Poppins', sans-serif;
  /*--font-heading: 'YoungSerif', sans-serif;*/
  /*--font-body: 'Inter', sans-serif;*/
  --font-body: 'Montserrat', sans-serif;
  /*--font-brand: 'Pacifico', cursive;*/
  --font-brand: 'Damion', cursive;

  --container-width: 1200px;
  --container-padding: clamp(1.25rem, 4vw, 2rem);
  --section-padding: clamp(4rem, 8vw, 7rem);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-heading); line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

.section__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-bright);
  margin-bottom: 0.75rem;
}

.section__title {
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--primary-bright);
  color: var(--bg-dark);
}
.btn--primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(91, 191, 181, 0.3);
}

.btn--outline {
  border: 2px solid var(--accent-cream);
  color: var(--accent-cream);
}
.btn--outline:hover {
  background: var(--accent-cream);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  transform: translateX(-40px) translateY(0);
}
.reveal-left.revealed {
  transform: translateX(0) translateY(0);
}
.reveal-right {
  transform: translateX(40px) translateY(0);
}
.reveal-right.revealed {
  transform: translateX(0) translateY(0);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.header--scrolled {
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header__logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.header__brand {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  color: var(--accent-cream);
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-bright);
  transition: width var(--transition);
}
.nav__link:hover,
.nav__link--active {
  color: var(--text-heading);
}
.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--primary-bright);
  color: var(--bg-dark) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  overflow: hidden;
  margin-left: 1.5rem;
  flex-shrink: 0;
  cursor: pointer;
}

.lang-toggle__option {
  padding: 0.3rem 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  letter-spacing: 0.05em;
  pointer-events: none;
}

.lang-toggle__option--active {
  background: var(--primary-bright);
  color: var(--bg-dark);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 191, 181, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__content {
  text-align: center;
  z-index: 1;
  padding: 2rem var(--container-padding);
}

.hero__logo {
  width: clamp(160px, 25vw, 240px);
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  filter: drop-shadow(0 0 40px rgba(91, 191, 181, 0.2));
  animation: float 6s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--accent-cream);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--primary-bright);
  margin-bottom: 0.25rem;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.6;
}

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--bg-section);
}

.about__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about__image-wrapper {
  display: flex;
  justify-content: center;
}

.about__image-ring {
  position: relative;
  width: clamp(200px, 22vw, 320px);
  height: clamp(200px, 22vw, 320px);
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  box-shadow: 0 0 50px rgba(91, 191, 181, 0.15);
}

.about__image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.about__content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.about__content strong {
  color: var(--accent-cream);
}

.about__tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.tag {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-bright);
  background: rgba(91, 191, 181, 0.06);
}

/* ============================================
   WHAT I DO — ALTERNATING FEATURE BLOCKS
   ============================================ */
.what-i-do {
  background: var(--bg-dark);
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.feature-block:last-child {
  margin-bottom: 0;
}

/* Even blocks: swap order (image RIGHT, text LEFT) */
.feature-block:nth-child(even) .feature-block__image {
  order: 2;
}
.feature-block:nth-child(even) .feature-block__content {
  order: 1;
}

.feature-block__image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.feature-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.5s ease;
}
.feature-block__image:hover img {
  transform: scale(1.04);
}

.feature-block__title {
  color: var(--primary-bright);
  margin-bottom: 1rem;
}

.feature-block__content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   SKILLS
   ============================================ */
.skills {
  background: var(--bg-section);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-bright);
  box-shadow: 0 12px 30px rgba(91, 191, 181, 0.1);
}

.skill-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--primary-bright);
}
.skill-card__icon svg {
  width: 100%;
  height: 100%;
}

.skill-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.skill-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio {
  background: var(--bg-dark);
}

.portfolio__filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.portfolio__filter {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}
.portfolio__filter:hover,
.portfolio__filter--active {
  color: var(--bg-dark);
  background: var(--primary-bright);
  border-color: var(--primary-bright);
}

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

.portfolio__item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
}
.portfolio__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio__item:hover img {
  transform: scale(1.06);
}

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio__item:hover .portfolio__overlay,
.portfolio__item--active .portfolio__overlay {
  opacity: 1;
}

.portfolio__item-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--accent-cream);
}

.portfolio__item-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-color);
  padding-top: var(--section-padding);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__logo {
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.footer__brand-name {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.3rem;
  color: var(--accent-cream);
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-cream);
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer__links a:hover {
  color: var(--primary-bright);
}

.footer__email {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}
.footer__email:hover {
  color: var(--primary-bright);
}

.footer__socials {
  display: flex;
  gap: 1rem;
}
.footer__socials a {
  transition: transform var(--transition), opacity var(--transition);
  opacity: 0.8;
}
.footer__socials a:hover {
  transform: scale(1.15);
  opacity: 1;
}
.footer__socials img {
  width: 36px;
  height: 36px;
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
}
.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Remove backdrop-filter on mobile to prevent it from creating
     a containing block that traps the fixed-position nav overlay */
  .header--scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Lang toggle mobile */
  .lang-toggle {
    margin-left: auto;
    margin-right: 1rem;
  }
  /* Nav mobile */
  .header__hamburger {
    display: flex;
  }
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 23, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }
  .nav--open {
    opacity: 1;
    visibility: visible;
  }
  .nav__list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .nav__link {
    font-size: 1.3rem;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about__tags {
    justify-content: center;
  }

  /* Feature blocks */
  .feature-block {
    grid-template-columns: 1fr;
  }
  .feature-block:nth-child(even) .feature-block__image,
  .feature-block:nth-child(even) .feature-block__content {
    order: unset;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__socials {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }
  .portfolio__grid {
    grid-template-columns: 1fr;
  }
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
}
