/* ════════════════════════════════
   styles.css — shared styles
   aran · portfolio
════════════════════════════════ */

/* ─────────────────────────────
   GLOBAL
───────────────────────────── */

body { padding-bottom: 80px; }

:focus-visible {
  outline: 3px solid #f5c518;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────────────────
   SKIP LINK
───────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ─────────────────────────────
   NAVIGATION — shared
───────────────────────────── */

.btn-hamburger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.btn-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 4px auto;
}

.menu-fullscreen {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 1.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-fullscreen.active {
  opacity: 1;
  pointer-events: all;
}
.menu-fullscreen a {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.menu-fullscreen .btn-hamburger span { background: #111; }

/* ─────────────────────────────
   NAVIGATION — projects page
───────────────────────────── */

.site-nav {
  background: #0d0d0d;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ─────────────────────────────
   HERO (index)
───────────────────────────── */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1699662585308-fcb113a0a4ba?w=1600&q=85');
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  z-index: 0;
}
.hero-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
}
.hero-content { max-width: 780px; }

/* ─────────────────────────────
   PROJECT CARDS (index)
───────────────────────────── */

.project-card {
  min-height: 380px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}
.project-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
}
.project-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
}
.projects-heading {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 1;
}
.project-card-wide { min-height: 380px; }
@media (min-width: 768px) {
  .project-card-wide { min-height: 280px; }
}

/* ─────────────────────────────
   SERVICE CARDS — What I do (index)
───────────────────────────── */

.service-card {
  --rot: 0deg;
  opacity: 0;
  transform: rotate(var(--rot)) translateY(50px);
  transition: opacity 0.65s ease, transform 0.65s ease, box-shadow 0.3s ease;
}
.service-card.card-rotate-left  { --rot: -3deg; }
.service-card.card-rotate-right { --rot:  3deg; }
.service-card.visible {
  opacity: 1;
  transform: rotate(var(--rot)) translateY(0);
}
.service-card:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.03);
  box-shadow: 0 28px 56px rgba(0,0,0,0.18);
}
.services-heading-band { background: #e0e0e0; padding: 2.5rem; }
.services-heading {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  font-style: italic;
  margin: 0;
}
.service-card-title { font-size: 1.2rem; }

/* ─────────────────────────────
   GALLERY PAGE
───────────────────────────── */

.page-heading {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 1;
}

.filter-btn {
  border: 1.5px solid #ccc;
  border-radius: 999px;
  padding: 5px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover img { transform: scale(1.04); }

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-card-overlay.always-on {
  opacity: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.12) 60%, transparent 100%);
  padding: 2rem;
}

.card-label {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
}
.card-label-sm { font-size: .95rem; }

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  backdrop-filter: blur(4px);
}

.proj-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  font-family: monospace;
  letter-spacing: 1px;
}

/* gallery row heights */
.h-feat { height: 500px; }
.h-half { height: 250px; }
.h-tall { height: 420px; }
.h-mid  { height: 300px; }
.h-sm   { height: 220px; }

@media (max-width: 767px) {
  .h-feat { height: 280px; }
  .h-half { height: 220px; }
  .h-tall { height: 260px; }
  .h-mid  { height: 240px; }
  .h-sm   { height: 180px; }
}

/* ─────────────────────────────
   SHARED COMPONENTS
───────────────────────────── */

.project-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.88);
  color: #111;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 999px;
  padding: 4px 14px;
}

.contact-email { transition: color 0.2s; }
.contact-email:hover { color: #fff !important; }

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.scroll-top-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ─────────────────────────────
   UTILITY CLASSES
───────────────────────────── */

/* section backgrounds */
.bg-111    { background: #111; }
.bg-0f0f0f { background: #0f0f0f; }
.bg-0d0d0d { background: #0d0d0d; }
.bg-f5f5f5 { background: #f5f5f5; }
.bg-contact-band {
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}

/* text */
.text-white-dim   { color: rgba(255,255,255,0.5); }
.text-white-faint { color: rgba(255,255,255,0.35); }
.text-white-hint  { color: rgba(255,255,255,0.55); }
.ls-wide { letter-spacing: 1px; }

/* images */
.photo-grayscale { filter: grayscale(100%); object-fit: cover; }
.photo-profile-sm {
  width: 80px;
  height: 80px;
  filter: grayscale(100%);
}

/* layout */
.page-desc      { max-width: 280px; line-height: 1.6; }
.footer-tagline { max-width: 160px; line-height: 1.4; }
.icon-circle-sm { width: 28px; height: 28px; flex-shrink: 0; }
.skill-card-light { background: #f5f5f5; color: #0d0d0d; }
