/* ============================================
   RAMSEY GHAZZAWI — PORTFOLIO
   ============================================ */

:root {
  --black: #0a0a0a;
  --white: #f5f5f5;
  --bg: #fafafa;
  --accent: #FF4B33;
  --gray: rgba(10, 10, 10, 0.5);
  --gray-light: rgba(10, 10, 10, 0.15);
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  line-height: 1.4;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

/* ---- HERO ---- */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0) 30%,
    rgba(10, 10, 10, 0.7) 100%
  );
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: 3rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--white);
  line-height: 1.1;
}

.hero-text .title {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(245, 245, 245, 0.7);
  margin-top: 0.75rem;
}

/* ---- BIO ---- */

.bio {
  padding: 5rem 3rem;
  max-width: 700px;
}

.bio p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.75);
  letter-spacing: 0.01em;
}

.available {
  margin-top: 2.5rem;
}

.available-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--gray);
  display: block;
  margin-bottom: 1rem;
}

.available-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.available-list li {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--black);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--gray-light);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.available-list li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- CONTENT WRAPPER (projects + mood strip) ---- */

.content-wrapper {
  display: flex;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
}

/* ---- PROJECTS ---- */

.projects {
  flex: 1;
  padding: 0 3rem 6rem 3rem;
  max-width: 800px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--gray);
  margin-bottom: 3rem;
}

/* Single project */

.project {
  border-top: 1px solid var(--gray-light);
}

.project:last-child {
  border-bottom: 1px solid var(--gray-light);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.project-header:hover .project-name {
  color: var(--accent);
}

.project-name {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.project-toggle {
  font-size: 1.5rem;
  font-weight: 200;
  color: var(--gray);
  transition: transform 0.4s ease, color 0.3s ease;
  user-select: none;
}

.project.active .project-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

/* Expand area */

.project-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project.active .project-expand {
  max-height: 2000px;
}

.project-details {
  padding: 0 0 2rem 0;
}

.project-role {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.project-description {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.7);
  max-width: 550px;
}

.project-gallery {
  margin-top: 1.5rem;
}

.project-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.project-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.project-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.project-gallery img:hover {
  opacity: 0.85;
}

.project-gallery img:only-child {
  grid-column: 1 / -1;
  height: 300px;
}

.gallery-placeholder {
  width: 100%;
  height: 200px;
  background: rgba(10, 10, 10, 0.03);
  border: 1px dashed var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  text-transform: uppercase;
  grid-column: 1 / -1;
}

/* ---- MOOD STRIP (right side) ---- */

.mood-strip {
  width: 220px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
  border-left: 1px solid var(--gray-light);
  background: var(--bg);
}

.mood-track {
  display: flex;
  flex-direction: column;
  animation: moodScroll 40s linear infinite;
}

.mood-logo {
  padding: 2rem 1.5rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mood-logo img {
  max-height: 50px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

@keyframes moodScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* ---- CONTACT / FOOTER ---- */

.contact {
  position: relative;
  padding: 6rem 3rem;
  border-top: 1px solid var(--gray-light);
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
}

.contact-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 250, 250, 1) 0%,
    rgba(250, 250, 250, 0.3) 40%,
    rgba(10, 10, 10, 0.5) 100%
  );
  z-index: 1;
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.contact-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.contact-label {
  color: rgba(245, 245, 245, 0.6);
}

.contact-left a,
.contact-right a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 245, 245, 0.3);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-left a:hover,
.contact-right a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
  .hero {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .hero-image img {
    object-position: center center;
  }

  .hero-text {
    padding: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
  }

  .hero-text .title {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }

  .bio {
    padding: 2.5rem 1.5rem;
    max-width: 100%;
  }

  .bio p {
    font-size: 0.95rem;
  }

  .available-list {
    gap: 0.4rem;
  }

  .available-list li {
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .mood-strip {
    width: 100%;
    height: 55px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-left: none;
    border-bottom: 1px solid var(--gray-light);
    background: var(--bg);
  }

  .mood-track {
    flex-direction: row;
    animation: moodScrollH 12s linear infinite;
  }

  .mood-logo {
    padding: 0.75rem 1.5rem;
    border-bottom: none;
    border-right: 1px solid var(--gray-light);
  }

  .mood-logo img {
    max-height: 28px;
    max-width: 100px;
  }

  @keyframes moodScrollH {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  .projects {
    padding: 0 1.5rem 4rem 1.5rem;
    max-width: 100%;
  }

  .project-name {
    font-size: 0.9rem;
  }

  .project-header {
    padding: 1.25rem 0;
  }

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

  .project-gallery img {
    height: 200px;
  }

  .project-gallery img:only-child {
    height: 220px;
  }

  .project-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .contact {
    padding: 4rem 1.5rem;
    min-height: 40vh;
  }

  .contact-inner {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .contact-left a,
  .contact-right a {
    font-size: 0.75rem;
  }
}
