/* ============================= */
/* Variables & Base Styles */
/* ============================= */
:root {
  --text: #4b0039;
  --highlight: #e94f37;
  --font-body: 'Inter', sans-serif;

  /* Default blob colors (used if no per-page override) */
  --blob-left: #002fff;
  --blob-right: #b6b3ff;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
}

/* ============================= */
/* Homepage (surf background) */
/* ============================= */
body.homepage {
  height: 100vh;
  overflow: hidden;
  background: url('images/surfbackground.jpg') no-repeat center center fixed;
  background-size: cover;
}

.container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.nav-area {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.nav-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(252, 248, 242, 0.7);
  z-index: 0;
}

/* Floating nav links on homepage */
.nav-link {
  position: absolute;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  z-index: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  color: var(--highlight);
  transform: scale(1.05);
}

.nav-about { top: 60%; left: 45%; animation: float1 7s ease-in-out infinite alternate; }
.nav-work { top: 30%; left: 65%; animation: float2 6s ease-in-out infinite alternate; }
.nav-contact { top: 70%; left: 55%; animation: float3 8s ease-in-out infinite alternate; }
.nav-shop { top: 50%; left: 30%; animation: float4 5.5s ease-in-out infinite alternate; }
.nav-name {
  top: 45%;
  left: 50%;
  font-size: 1.5rem;
  color: var(--highlight);
  transform: translate(-50%, -50%);
  animation: float7 9s ease-in-out infinite alternate;
}

footer {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-size: 0.9rem;
  color: var(--text);
}

/* Floating animations */
@keyframes float1 { 0% { transform: translate(0, 0);} 100% { transform: translate(8px, -6px);} }
@keyframes float2 { 0% { transform: translate(0, 0);} 100% { transform: translate(-6px, -4px);} }
@keyframes float3 { 0% { transform: translate(0, 0);} 100% { transform: translate(5px, -7px);} }
@keyframes float4 { 0% { transform: translate(0, 0);} 100% { transform: translate(-4px, -5px);} }
@keyframes float7 { 0% { transform: translate(-50%, -50%);} 100% { transform: translate(-48%, -58%);} }

/* ============================= */
/* Subpages (blob backgrounds) */
/* ============================= */
body.subpage {
  position: relative;
  min-height: 100vh;
  background-color: #ffe8d1;
  overflow-x: hidden;
}

.blob-left, .blob-right {
  position: fixed;
  width: 500px;
  height: 300px;
  border-radius: 50% 40% 60% 50% / 55% 60% 40% 45%;
  filter: blur(30px);
  z-index: -1;
}

.blob-left {
  top: 50px;
  left: -50px;
  background: var(--blob-left);
}

.blob-right {
  bottom: 150px;
  right: 650px;
  background: var(--blob-right);
}

/* ============================= */
/* Per-page blob colors */
/* ============================= */
body.subpage-about {
  --blob-left: #3f3ff2;
  --blob-right: #00d4ff;
}

body.subpage-work {
  --blob-left: #eaff61;
  --blob-right: #ffcc99;
}

body.subpage-contact {
  --blob-left: #fc783f;
  --blob-right: #adedca;
}

/* ============================= */
/* Floating Nav (subpages) */
/* ============================= */
nav.floating-nav {
  position: fixed;
  top: 24px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 100;
}

nav.floating-nav a {
  font-size: 1rem;
  color: #111;
  text-decoration: none;
}

nav.floating-nav a.active {
  text-decoration: underline;
}

/* ============================= */
/* About Page Layout */
/* ============================= */
.about-container {
  max-width: 600px;
  margin: 20vh auto;
  padding: 0 1rem;
  line-height: 1.7;
}

.about-container h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ============================= */
/* Work Page Layout */
/* ============================= */
main.work-container {
  max-width: 900px;
  margin: 20vh auto 4rem;
  padding: 0 1rem;
  line-height: 1.7;
}

main.work-container h1 {
  text-align: center;
  font-weight: 500;
  margin-bottom: 1rem;
}

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

.filters button {
  background: none;
  border: 2px solid #002fff;
  color: #002fff;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.filters button.active,
.filters button:hover {
  background-color: #002fff;
  color: white;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery figure {
  margin: 0;
  cursor: pointer;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
  text-align: left;
}

/* ============================= */
/* Footer */
/* ============================= */
footer {
  position: fixed;
  bottom: 16px;
  left: 32px;
  font-size: 0.85rem;
  color: #666;
}
.contact-section {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--bg-left);
  border: 2px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-section h1 {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1.2rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: white;
  color: var(--text);
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--highlight);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 79, 55, 0.2);
}

.contact-form button {
  background: var(--highlight);
  color: white;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.contact-form button:hover {
  background: #c23d2c;
}
.face-pop {
  position: fixed;       /* stays in place even when scrolling */
  bottom: -20px;         /* sticks slightly off bottom */
  left: -30px;           /* sticks slightly off left */
  width: 300px;          /* adjust to your PNG size */
  z-index: 10;           /* make sure it's above blobs/content */
  pointer-events: none;  /* prevents blocking clicks on nav/links */
}

/* Optional subtle floating animation with CSS only */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.face-pop {
  animation: floaty 4s ease-in-out infinite;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .face-pop {
    width: 220px;
    bottom: -10px;
    left: -15px;
  }
}
/* ============================= */
/* Modal Styles for Work Page */
/* ============================= */
/* Modal container */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centers it */
  width: 90%;
  height: 90%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: auto;
}

/* Modal content box */
.modal-content {
  display: flex;
  max-width: 90%;
  max-height: 90%;
  background: #effa91; /* work page background */
  border: 1px solid #f2acf2;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  overflow-y: auto;
  padding: 1rem;
  gap: 1rem;
}

/* Left panel (description) */
.modal-left {
  flex: 1;
  min-width: 200px;
  font-size: 0.85rem;        /* smaller font */
  line-height: 1.2;          /* tighter line-height */
  letter-spacing: 0;          /* no letter spacing */
  color: #333;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Close button inside modal-left */
.modal-close {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--highlight);
  cursor: pointer;
  margin-bottom: 0.5rem; /* adds space below × */
  padding: 0;
}

/* Title and description */
.modal-left h2 {
  font-size: 0.85rem;
  margin-top: 2rem; /* space from × */
  margin-bottom: 0.5rem;
}

.modal-left p {
  font-size: 0.85rem;
  line-height: 1.2;
  margin: 0;
}

/* Right panel (vertical images) */
.modal-right {
  flex: 3;
}

.modal-right .images img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

/* Optional: subtle scroll for modal content */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* Ensure images stack vertically */
.modal-right .images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
