html {
  scroll-behavior: smooth;
}
/* =====================
   CSS VARIABLES
===================== */
:root {
  --color-bg-main: #0d1f2d;
  --color-bg-secondary: #546a7b;
  --color-text-main: #f1f1f1;
  --color-text-muted: #9ea3b0;
  --color-accent: #e4c3ad;

  --font-main: 'Inter', system-ui, sans-serif;
}

/* =====================
   GLOBAL RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  overflow-x: hidden;
}

/* =====================
   NAVIGATION
===================== */
.main-nav {
  height: 88px;
  padding: 4rem 3rem;
  background: linear-gradient(
    to bottom,
    rgba(13, 31, 45, 0.75),
    rgba(13, 31, 45, 0.45)
  );
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  z-index: 100;
}

.nav-logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.nav-cta {
  color: var(--color-accent);
}
.nav-menu a {
  position: relative;
}

/* underline cinematic */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.35s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--color-accent);
}
.nav-mobile{
  display: none;
}
/* =====================
   PANELS / SECTIONS
===================== */
.panel {
  height: 100vh;
  position: relative;
  transform-origin: center center;
  will-change: transform, opacity, clip-path;
}

.panel-home {
  background: var(--color-bg-main);
}

.panel-about,
.panel-resume {
  background: #102637;
}

.panel-services,
.panel-portfolio {
  background: #0b1a26;
}

.panel-contact {
  background: var(--color-bg-secondary);
}
.panel-services {
  opacity: 1 !important;
}
/* =====================
   TYPOGRAPHY
===================== */
.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.section-text {
  max-width: 820px;
  color: var(--color-text-muted);
}
/* =====================
   ABOUT
===================== */

.panel-about {
  background: #102637;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

/* TEXT */
.about-content {
  max-width: 520px;
}

/* IMAGE */
.about-image {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: end;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

/* subtle glow frame */
.about-image::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
/* =====================
   PORTFOLIO
===================== */
.panel-portfolio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 320px);
  gap: 3rem;
}

.portfolio-card {
  position: relative;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: #0d1f2d;
  transition: transform .4s ease;
  pointer-events: auto;
}

.portfolio-card:hover {
  transform: scale(1.05);
}

.portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,31,45,.15),
    rgba(13,31,45,.9)
  );
  pointer-events: none;
}

.portfolio-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 2;
  pointer-events: none;
}

.portfolio-text h3 {
  margin: 0;
  font-size: 1.4rem;
}

.portfolio-text span {
  opacity: .7;
  font-size: .9rem;
}

/* MODAL */
.portfolio-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,20,30,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9999;
}

.portfolio-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #0d1f2d;
  padding: 2rem;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  text-align: center;
}

.modal-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* =====================
   SPLIT TEXT
===================== */
.split-text .line {
  overflow: hidden;
}

.split-text .line span {
  display: inline-block;
}
/* =====================
   WHAT I DO - HORIZONTAL
===================== */
.panel-services {
  overflow: hidden;
}

.services-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
}

.services-track {
  display: flex;
  gap: 6rem;
  padding-left: 10vw;
  padding-right: 10vw;
}

.service-item {
  min-width: 60vw;
}

.service-item h3 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-item p {
  max-width: 420px;
  color: var(--color-text-muted);
}
/* =====================
   RESUME
===================== */

.panel-resume {
  padding: 6rem 0 8rem; 
  overflow: visible;   
}

.resume-header {
  max-width: 520px;
  margin-bottom: 4rem;
}

.resume-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 2rem;

  margin-top: 4rem;
}
.resume-track::-webkit-scrollbar {
  display: none;
}

/* CARD */
.resume-card {
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
}

.resume-date {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.resume-card h3 {
  margin-bottom: 0.5rem;
}

.resume-company {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.resume-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}
/* =====================
   CONTACT / LET'S TALK
===================== */

.panel-contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

/* RIGHT SIDE */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Resume button */
.btn-outline {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  width: fit-content;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Social links */
.contact-socials {
  display: flex;
  gap: 1.5rem;
}

.contact-socials a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--color-text-muted);
  position: relative;
}

.contact-socials a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.contact-socials a:hover::after {
  width: 100%;
}
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  margin: 0 auto;
}

/* =====================
   RESPONSIVE < 1200PX
===================== */
@media (max-width: 1200px) {

  /* NAV */
  .nav-menu {
    gap: 1.5rem;
  }

  /* ABOUT */
  .about-grid {
    gap: 3rem;
  }

  /* PORTFOLIO */
  .portfolio-grid {
    grid-template-columns: repeat(3, 280px);
    gap: 2rem;
  }

  /* SERVICES */
  .service-item h3 {
    font-size: 2.5rem;
  }

  /* RESUME */
  .resume-track {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* =====================
   RESPONSIVE < 992px
===================== */
@media (max-width: 992px) {

  /* NAV */
  .nav-menu {
    display: none;
  }

  .main-nav {
    padding: 2.5rem 1.5rem;
    height: auto;
  }
  .panel {
    height: auto;
    min-height: 100vh;
  }
  /* HERO */
  .hero-title {
    margin-top: 300px;
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  /* ABOUT */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .about-image {
    justify-self: center;
    max-width: 360px;
  }

  /* SERVICES */
  .service-item {
    min-width: 80vw;
  }

  /* PORTFOLIO */
  .panel-portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6rem 1.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .portfolio-card {
    height: 380px;
  }

  /* RESUME */
  .resume-track {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .panel-resume {
    padding-bottom: 6rem;
  }

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
/* =====================
   RESPONSIVE < 576px
===================== */
@media (max-width: 576px) {

  /* NAV */
  .main-nav {
    padding: 2.5rem 1.5rem;
    display: none;
  }

  .nav-mobile {
    display: block;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
  }

  .nav-mobile-bar {
    height: 72px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13,31,45,0.85);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 3000; 
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    background: #0d1f2d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .mobile-menu.active {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-menu a {
    font-size: 1.6rem;
    color: #fff;
    text-decoration: none;
  }
  /* BURGER */
  .burger {
    width: 32px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3001;
  }

  .burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 0.4s ease, top 0.4s ease;
  }

  .burger span:nth-child(1) {
    top: 6px;
  }

  .burger span:nth-child(2) {
    top: 16px;
  }

  .burger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
  }

  .burger.active span:nth-child(2) {
    top: 11px;
    transform: rotate(-45deg);
  }
  /* HERO */
  .hero-title {
    font-size: 2.4rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* SECTION TITLES */
  .section-title {
    font-size: 2.2rem;
  }

  /* PORTFOLIO */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    height: 340px;
  }

  /* SERVICES */
  .service-item h3 {
    font-size: 2rem;
  }

  /* RESUME */
  .resume-card {
    padding: 2rem;
  }

  /* CONTACT */
  .contact-actions {
    align-items: flex-start;
  }
}
