@font-face {
  font-family: 'Filson Pro';
  src: url('./ASSETS/FONTS/FilsonProBook.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Filson Pro';
  src: url('./ASSETS/FONTS/FilsonProRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Filson Pro';
  src: url('./ASSETS/FONTS/FilsonProMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Filson Pro';
  src: url('./ASSETS/FONTS/FilsonProBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Filson Pro';
  src: url('./ASSETS/FONTS/FilsonProBlack.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

:root {
  --accent-color: #FF1044;
  --bg-color: #ffffff;
  /* User requested white background */
  --text-color: #111111;
  --text-muted: #555555;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.1);
  --font-main: 'Filson Pro', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: url('./ASSETS/VECTORS/Star_cursor.svg') 31 34, auto;
}

a,
button,
.interactive {
  cursor: url('./ASSETS/VECTORS/Star_cursor.svg') 31 34, pointer;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--text-muted);
}

.container {
  padding: calc(211px - 7.5vh) 5% 50px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header / Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 100;
  /* Since background is white, we don't need difference blend mode unless requested */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.logo {
  grid-column: 2;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 101px;
  width: auto;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  grid-column: 1;
  justify-self: start;
}

.social-icons img {
  height: 24px;
  width: auto;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.email-copy-container {
  position: relative;
}

.email-tooltip {
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translate(-50%, 15px);
  height: 40px;
  width: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.email-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: 'Filson Pro', sans-serif;
  color: var(--text-color);
  text-decoration: none;
  font-weight: normal;
  text-transform: lowercase;
  font-size: 20pt;
  letter-spacing: 0.1em;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--accent-color);
}

/* Background Video */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

/* Homepage Centered UI */
.homepage-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
}

.portal-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.portal-link:hover {
  transform: scale(1.05);
}

.portal-link img.click-me {
  margin-bottom: 1rem;
}

/* Projects Folder Layout */
.reel-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 4rem auto;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.reel-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.projects-reel-section {
  padding-top: 7.5vh;
  text-align: center;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2rem;
  max-width: 1920px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.folder-item {
  display: block;
  text-decoration: none;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.folder-main {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.folder-item:hover .folder-main {
  transform: scale(1.04);
}

.category-tag {
  position: absolute;
  bottom: calc(100% - 1px);
  right: 5%;
  width: 31.3%;
  aspect-ratio: 176 / 55;
  z-index: -1;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.folder-item:hover .category-tag {
  transform: translateY(0);
  opacity: 1;
}

.category-tag img {
  width: 100%;
  height: 100%;
  display: block;
}

.category-tag span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FF1044;
  font-weight: 700;
  font-size: clamp(0.6rem, 0.8vw, 0.78rem);
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.name-tag {
  position: relative;
  width: 58.5%;
  aspect-ratio: 329 / 57;
  z-index: 3;
  margin-bottom: -1px;
}

.name-tag img {
  width: 100%;
  height: 100%;
  display: block;
}

.name-tag span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-family: 'Filson Pro', sans-serif;
  font-weight: 450;
  font-size: clamp(0.55rem, 0.8vw, 0.78rem);
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-body {
  position: relative;
  width: 100%;
  aspect-ratio: 562 / 366;
  z-index: 3;
}

.folder-shape-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.1));
}

.folder-thumb-container {
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  z-index: 2;
  -webkit-mask-image: url('./ASSETS/VECTORS/folder_shape.svg');
  -webkit-mask-size: 100% 100%;
  mask-image: url('./ASSETS/VECTORS/folder_shape.svg');
  mask-size: 100% 100%;
}

.folder-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About Page composition */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-top: 7.5vh;
  align-items: flex-start;
}

/* Left: text */
.about-text {
  text-align: left;
}

.about-text h1 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 15pt;
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-text p.intro-bold {
  font-weight: 700;
}

/* Right: image collage */
.about-images-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.collage-wrapper {
  position: relative;
  width: 60%;
  margin-top: 5%;
  overflow: visible;
}

.img-vitoria {
  position: relative;
  width: 100%;
  border-radius: 20px;
  z-index: 1;
  display: block;
}

.img-cat {
  position: absolute;
  bottom: -16%;
  left: -21%;
  width: 57%;
  border-radius: 12px;
  z-index: 5;
  transform: rotate(-10deg);
  transition: transform 0.3s ease;
}

.img-cat:hover {
  transform: rotate(-10deg) scale(1.08);
  z-index: 10;
}

.img-coffee {
  position: absolute;
  bottom: -24%;
  right: -9%;
  width: 63%;
  border-radius: 12px;
  z-index: 6;
  transform: rotate(-8deg);
  transition: transform 0.3s ease;
}

.img-coffee:hover {
  transform: rotate(0deg) scale(1.08);
  z-index: 10;
}

.star-deco {
  position: absolute;
  z-index: 3;
  transition: transform 0.5s ease-in-out;
}

.star-deco:hover {
  transform: rotate(360deg);
}

/* Extracted from SVG coordinates */
.star-red {
  width: 25%;
  top: 25%;
  left: -18%;
}

.star-green {
  width: 12%;
  top: -2%;
  right: 2%;
}

.star-blue {
  width: 20%;
  bottom: 22%;
  right: -12%;
}

/* Hamburger Menu (Hidden by default on desktop) */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 45px;
  height: 45px;
  background-color: #FF1044;
  border: none;
  cursor: pointer;
  z-index: 1100;
  grid-column: 3;
  justify-self: end;
  padding: 12px 10px;
  border-radius: 8px;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.75);
  /* 20% more transparent */
  backdrop-filter: blur(25px);
  /* Increased blur */
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.4s ease-in-out;
}

.mobile-drawer.is-open {
  right: 0;
}

.close-drawer {
  position: absolute;
  top: 1.5rem;
  right: 5%;
  background: transparent;
  border: none;
  font-size: 3rem;
  color: var(--text-color);
  cursor: pointer;
  z-index: 1100;
  transition: color 0.3s ease;
}

.close-drawer:active {
  color: #FF1044;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav a {
  font-size: 1.28rem;
  /* 20% smaller */
  color: var(--text-color);
  text-decoration: none;
  font-weight: 400;
  /* Regular */
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav a:active {
  color: #FF1044;
}

.email-copy-container-mobile {
  position: relative;
}

/* Responsive */
@media (max-width: 768px) {

  .container {
    padding: 90px 5% 50px;
  }
  /* Hide Desktop elements */
  .social-icons,
  .desktop-nav {
    display: none;
  }

  /* Show Hamburger */
  .hamburger-menu {
    display: flex;
  }

  .logo img {
    height: 48px;
  }

  /* Homepage Portal */
  .portal-link img {
    height: 212px;
    /* 15% smaller than 250px */
  }

  /* Projects Grid (Main Page) */
  .folders-grid {
    grid-template-columns: 1fr;
    /* 1 column */
    gap: 12px 8px;
    /* Reduced by 50% */
  }


  .name-tag span {
    font-size: 12px;
    white-space: nowrap;
  }

  .folder-item.is-visible .category-tag {
    transform: translateY(0);
    opacity: 1;
  }

  /* About Page Mobile */
  .about-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text p {
    font-size: 14px;
    /* Reduced text size */
  }

  .about-images-container {
    margin-top: 0;
    min-height: auto;
  }

  /* Project Page Boxes and Media adjustments */
  .project-info-layout {
    flex-direction: column;
    gap: 8px;
  }

  .project-details-box {
    background-size: cover;
    min-height: auto;
    width: 100%;
  }

  .details-content {
    padding: 20px 25px;
  }

  .browser-content {
    padding: 20px 25px;
  }

  .project-main-title {
    font-weight: 700;
    margin-bottom: 2rem;
  }

  /* Make sure grids break down to 1 column */
  .project-media-grid {
    grid-template-columns: 1fr;
  }

  .layout-hero-left .media-item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Project Page Layout */
.project-page-section {
  padding-top: 5.76vh;
  padding-bottom: 5vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-main-title {
  font-size: clamp(1.875rem, 4vw, 3.375rem);
  text-transform: none;
  color: var(--text-color);
  margin-bottom: 3rem;
  font-weight: 450;
  text-align: center;
}

.project-info-layout {
  display: flex;
  width: 100%;
  gap: 24px;
  margin-bottom: 4rem;
  align-items: stretch;
}

.project-details-box {
  flex: 1;
  position: relative;
  background: url('./ASSETS/VECTORS/boundingBox_PROJECTS.svg') no-repeat center;
  background-size: 100% 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.details-content {
  padding: 30px 40px;
  width: 100%;
}

.details-content p {
  color: var(--text-color);
  font-size: clamp(0.85rem, 1vw, 1rem);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.details-content p strong {
  font-weight: 700;
}

.project-browser-box {
  flex: 2;
  position: relative;
  background: none;
  border: 1px solid #1CD5F4;
  border-radius: 25px;
  overflow: hidden;
}

.project-browser-box::before {
  content: '';
  display: block;
  width: 100%;
  height: 38px;
  background-color: #1CD5F4;
  background-image:
    radial-gradient(circle at 28.5px 19px, #FF1044 6.5px, transparent 6.5px),
    radial-gradient(circle at 50.5px 19px, #F3FF89 6.5px, transparent 6.5px),
    radial-gradient(circle at 72.5px 19px, #72FCBA 6.5px, transparent 6.5px);
}

.browser-content {
  padding: 30px 40px;
  width: 100%;
  display: flex;
  align-items: center;
}

.browser-content p {
  color: var(--text-color);
  font-size: clamp(0.85rem, 1vw, 1rem);
  line-height: 1.6;
}

.project-media-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.media-item {
  background: #D9D9D9;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* gives nice rectangular proportions */
}

.media-item.full-width {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  /* 1920x1080 aspect ratio */
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Specific Layouts */
.project-media-grid.layout-hero-left {
  grid-template-columns: 1fr 1fr 1fr;
}

.layout-hero-left .media-item:first-child {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  aspect-ratio: auto;
  height: 100%;
}

.layout-hero-left .media-item {
  aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
  .project-info-layout {
    flex-direction: column;
  }

  .project-media-grid {
    grid-template-columns: 1fr;
  }

  .project-media-grid.layout-hero-left {
    grid-template-columns: 1fr;
  }

  .layout-hero-left .media-item:first-child {
    grid-column: auto;
    grid-row: auto;
    height: auto;
  }

  .layout-hero-left .media-item {
    aspect-ratio: auto;
  }

  .media-item.full-width {
    aspect-ratio: 16 / 9;
  }

  .browser-content {
    padding: 20px 25px;
  }

  .project-page-section {
    padding-top: 4vh;
  }
}

/* iPad Pro / Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1200px) {
  .container {
    padding-top: calc(188px + 2.5vh);
  }
  .project-page-section,
  .projects-reel-section,
  .about-section {
    padding-top: 0;
  }
  .project-page nav a {
    font-size: 12pt;
  }
  .about-text p {
    font-size: 12pt;
  }
  .folders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.2rem;
  }
  .name-tag span {
    font-size: 0.72rem;
  }
  .folder-item.is-visible .category-tag {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Widescreen ONLY */
@media (min-width: 1560px) {
  .category-tag span {
    font-size: 0.55rem;
  }
}