/*
Theme Name: Fabricio Gaspari Portfolio
Theme URI: https://storymkt.com.br
Author: Fabrício Gaspari
Description: Dark cinematic portfolio theme inspired by Netflix browsing interface.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: fabricio-portfolio
*/

/* ============================================
   IMPORTS & VARIABLES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Dancing+Script:wght@700&display=swap');

:root {
  --bg: hsl(220, 15%, 16%);
  --bg-lighter: hsl(220, 15%, 20%);
  --bg-card: hsl(220, 15%, 22%);
  --fg: hsl(0, 0%, 95%);
  --fg-muted: hsl(0, 0%, 65%);
  --primary: hsl(25, 90%, 55%);
  --primary-fg: hsl(0, 0%, 100%);
  --border-color: hsl(220, 10%, 25%);
  --radius: 0.5rem;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.font-display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.25em;
}

.font-script {
  font-family: 'Dancing Script', cursive;
  letter-spacing: 0.02em;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsla(220, 15%, 16%, 0.3) 0%,
    hsla(220, 15%, 16%, 0.5) 60%,
    hsla(220, 15%, 16%, 1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 0;
}

.hero__subtitle {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.4em;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.hero__title {
  font-family: 'Dancing Script', cursive;
  color: var(--primary);
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1;
}

.hero__projects {
  position: relative;
  z-index: 10;
  padding: 0 1.5rem 4rem;
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
}

.hero__projects-title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.25em;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero__btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.hero__btn:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: 5rem 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.about__title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.25em;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
}

.about__text {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 4rem;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.about__tag {
  padding: 0.75rem 2.5rem;
  border-radius: 9999px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
}

/* ============================================
   CLIENT SECTION
   ============================================ */
.client-section {
  padding-bottom: 4rem;
}

.client-banner {
  padding: 2.5rem 1.5rem;
  margin-bottom: 2rem;
}

.client-banner__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .client-banner__inner {
    flex-direction: row;
  }
}

.client-banner__logo {
  flex-shrink: 0;
  width: 12rem;
  height: 6rem;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-banner__logo h2 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.25em;
  font-size: 1.5rem;
  text-align: center;
  line-height: 1.2;
}

.client-banner__desc {
  flex: 1;
  color: hsla(0, 0%, 95%, 0.8);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ============================================
   NETFLIX ROW
   ============================================ */
.netflix-row {
  position: relative;
  margin-bottom: 0.5rem;
}

.netflix-row__title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .netflix-row__title {
    padding: 0 3rem;
  }
}

.netflix-row__scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 1.5rem;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.netflix-row__scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .netflix-row__scroll {
    padding: 0.25rem 3rem;
  }
}

.netflix-row__card {
  flex-shrink: 0;
  width: 9rem;
  height: 10rem;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s;
  position: relative;
  background: var(--bg-card);
}

@media (min-width: 768px) {
  .netflix-row__card {
    width: 12rem;
    height: 14rem;
  }
}

.netflix-row__card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.netflix-row__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.netflix-row__card--compact {
  width: 7rem;
  height: 9rem;
}

@media (min-width: 768px) {
  .netflix-row__card--compact {
    width: 9rem;
    height: 11rem;
  }
}

.netflix-row__desc {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  padding: 0.75rem 1.5rem 0;
}

@media (min-width: 768px) {
  .netflix-row__desc {
    padding: 0.75rem 3rem 0;
  }
}

/* Scroll arrows */
.netflix-row__arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(220, 15%, 16%, 0.6);
  border: none;
  color: var(--fg);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 1.5rem;
}

.netflix-row:hover .netflix-row__arrow {
  opacity: 1;
}

.netflix-row__arrow--left {
  left: 0;
}

.netflix-row__arrow--right {
  right: 0;
}

/* ============================================
   OTHER PROJECTS SECTION
   ============================================ */
.other-projects {
  padding: 4rem 0;
  background: hsl(40, 5%, 22%);
}

.other-projects__title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.25em;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary);
  margin-bottom: 3rem;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .other-projects__title {
    padding: 0 3rem;
  }
}

.other-project {
  margin-bottom: 3rem;
}

.other-project__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .other-project__header {
    padding: 0 3rem;
  }
}

.other-project__avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--primary);
  margin-top: 1.5rem;
}

.other-project__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.other-project__desc {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  padding: 0.5rem 1.5rem 0 calc(3.5rem + 1rem + 1.5rem);
}

@media (min-width: 768px) {
  .other-project__desc {
    padding: 0.5rem 3rem 0 calc(3.5rem + 1rem + 3rem);
  }
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience {
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .experience {
    padding: 5rem 3rem;
  }
}

.experience__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.experience__header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .experience__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.experience__title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.25em;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.experience__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.experience__cta-line {
  width: 4rem;
  height: 2px;
  background: var(--primary);
}

.experience__cta-arrow {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid var(--primary);
}

.experience__cta-text {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.25em;
  font-size: 1.5rem;
}

.experience__grid {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width: 768px) {
  .experience__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.experience__grid::before {
  content: '';
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
}

.experience__grid::after {
  content: '';
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

@media (min-width: 768px) {
  .experience__grid::before,
  .experience__grid::after {
    display: block;
  }
}

.experience__card {
  padding: 1.5rem;
  border: 2px solid var(--primary);
}

.experience__card h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.15em;
  font-size: 1.25rem;
}

.experience__card .period {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.experience__card p {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Grid border adjustments for 2x2 layout */
@media (min-width: 768px) {
  .experience__card:nth-child(1) { border-right: none; border-bottom: none; }
  .experience__card:nth-child(2) { border-left: none; border-bottom: none; }
  .experience__card:nth-child(3) { border-right: none; border-top: none; }
  .experience__card:nth-child(4) { border-left: none; border-top: none; }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .contact {
    padding: 5rem 3rem;
  }
}

.contact__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .contact__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__info {
  background: hsla(220, 15%, 22%, 0.5);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__info-title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.25em;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2.5rem;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color 0.3s;
}

.contact__link:hover {
  color: var(--primary);
}

.contact__link-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-fg);
}

.contact__link-label {
  text-decoration: underline;
  font-size: 1rem;
}

.contact__link-emoji {
  font-size: 1.5rem;
  margin-left: 0.5rem;
}

.contact__cta {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 25rem;
}

.contact__cta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__cta-overlay {
  position: absolute;
  inset: 0;
  background: hsla(0, 0%, 0%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.contact__cta-text {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.2em;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.contact__cta-script {
  font-family: 'Dancing Script', cursive;
  color: var(--primary);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  margin-top: 0.5rem;
}

/* ============================================
   MEDIA MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: hsla(220, 15%, 16%, 0.9);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  position: relative;
  max-width: 48rem;
  width: 100%;
  background: var(--bg-lighter);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0.5rem;
  border-radius: 9999px;
  background: hsla(220, 15%, 16%, 0.8);
  color: var(--fg);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.3s;
}

.modal__close:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

.modal__media {
  position: relative;
  aspect-ratio: 16/9;
}

.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__play-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: hsla(25, 90%, 55%, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.modal__body {
  padding: 1.5rem;
}

.modal__type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.modal__title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.15em;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.modal__desc {
  color: var(--fg-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
