@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@600&family=Roboto+Mono:wght@400;600&display=swap');

:root {
  --bg: #ffffff;
  --text: #1e1e1e;
  --accent: #2e5339;
  --overlay: rgba(0, 0, 0, 0.3);
}

body {
  margin: 0;
  background-color: var(--bg);
  font-family: 'Roboto Mono', monospace;
  color: var(--text);
  overflow-x: hidden;
}

/* === BACKGROUND VIDEO === */
.bg-image {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg);
}

.bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}


/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
}

.nav-links {
  display: none;
}

.menu-toggle {
  display: block;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  z-index: 999;
}

@media screen and (min-width: 769px) {
  .nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Roboto Mono', monospace;
  }

  .nav-links li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.show {
    display: none !important;
  }
}

/* === MOBILE NAV === */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 250px;
  background-color: #ffffff;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  padding: 100px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.3s ease-in-out;
  z-index: 998;
}

.mobile-nav a {
  font-family: 'Roboto Mono', monospace;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
}

.mobile-nav.show {
  right: 0;
}

/* === LANDING === */
.landing-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-text {
  text-align: center;
  padding: 20px 40px;
  border-radius: 12px;
  color: #ddd;
}

.main-name {
  font-family: 'EB Garamond', serif;
  font-size: 4rem; /* was 3.5rem — now larger */
  color: #ffffff;
  font-weight: bold;
  margin: 0;
  animation: fadeInUp 1.6s ease-out;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4); /* adds depth on light backgrounds */
}

.sub-tagline {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.5rem; /* was 1.2rem — now bigger */
  color: #ffffff;
  font-weight: bold;
  margin-top: 12px;
  animation: fadeInUp 2s ease-out;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
}

/* Shift the landing text up slightly */
.landing-text {
  text-align: center;
  padding: 20px 40px;
  border-radius: 12px;
  color: #ddd;
  transform: translateY(-10%); /* pushes it up */
}


/* === ANIMATIONS === */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === SECTION LAYOUT === */
.section {
  padding: 100px 20px;
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.section h2 {
  font-family: 'EB Garamond', serif;
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

/* === ABOUT === */
.video-container video {
  width: 100%;
  max-height: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-text p {
  font-size: 1.1rem;
  font-family: 'Roboto Mono', monospace;
  line-height: 1.6;
  color: var(--text);
}
.about-text {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.about-text.animate {
  opacity: 1;
  transform: translateY(0);
}
.gallery-grid {
  column-count: 3;
  column-gap: 20px;
  padding: 20px 0;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.caption {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 6px;
  text-align: center;
}

/* Responsive stacking */
@media screen and (max-width: 768px) {
  .gallery-grid {
    column-count: 1;
  }
}

/* === WORK SECTION === */
.work-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.work-card {
  width: 300px;
  height: 300px;
  background-color: #ffffffcc;
  border: 1px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.work-image {
  width: 100%;
  height: 60%;
  object-fit: cover;
}

.work-info {
  padding: 20px;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-info h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: var(--accent);
}

.work-info p {
  font-size: 1rem;
  font-family: 'Roboto Mono', monospace;
  margin: 0;
  line-height: 1.4;
}

.writing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.writing-card {
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.writing-card:hover {
  transform: translateY(-5px);
}

.writing-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.writing-text {
  padding: 20px;
  font-family: 'Roboto Mono', monospace;
}

.writing-text h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

.writing-text p {
  font-size: 1rem;
  margin: 10px 0 20px;
}

.writing-text a {
  text-decoration: underline;
  color: var(--accent);
  font-weight: 600;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content.pdf-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;  /* was 800px */
  height: 75vh;       /* was 90vh */
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}


.poetry-preview {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}


.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  color: #333;
  cursor: pointer;
  font-weight: bold;
}

/* Responsive layout: stack vertically on mobile */
@media screen and (min-width: 700px) {
  .writing-card {
    flex-direction: row;
  }

  .writing-image {
    width: 40%;
    height: 100%;
  }

  .writing-text {
    width: 60%;
  }
}




/* === FIND ME === */
.find-me .tagline {
  font-size: 1.2rem;
  font-family: 'Roboto Mono', monospace;
  color: black;
  margin-bottom: 40px;
}

.find-me {
  position: relative;
  overflow: hidden;
  color: rgb(8, 8, 8);
}

.find-me-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.find-me-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.find-me-content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  backdrop-filter: blur(2px); /* optional for readability */
}

.find-me .tagline,
.find-me h2,
.find-me a {
  color: #fff;
}


.social-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.social-links a {
  text-decoration: none;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.2rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--accent);
  padding: 12px 24px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent);
  color: #fff;
}

.social-links i {
  font-size: 1.5rem;
}

@media screen and (max-width: 768px) {
  /* 1. Restore centered overlay */
  .landing-screen {
    justify-content: center !important; /* vertical center */
    align-items: center !important;     /* horizontal center */
    padding: 20px 10px;                 /* tighten padding for small screens */
    height: 100vh;                      /* keep full-height video behind */
    box-sizing: border-box;
  }

  /* 2. Let the text block scale to fit */
  .landing-text {
    max-width: 90%;
    padding: 0;
  }

  /* 3. Shrink your heading & subtext */
  .main-name {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  .sub-tagline {
    font-size: 1rem !important;
    line-height: 1.4;
    margin-top: 6px;
  }

  /* 4. Optional: make video fill width so overlay always sits on it */
  .bg-video video {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
  }
}
.resume-button {
  display: inline-block;
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.resume-button:hover {
  background-color: var(--accent);
  color: #fff;
}