/* =====================
   RESET & BASE (Mobile First)
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg: #0a0a0a;
  --clr-surface: #111;
  --clr-border: #1e1e1e;
  --clr-text: #f0f0f0;
  --clr-muted: #888;
  --clr-accent: #e8923a;
  --clr-accent2: #f5c77e;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --nav-h: 64px;
  --max-w: 1200px;
  --ease: cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =====================
   NAV (Mobile First)
   ===================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(12px);
  border-color: var(--clr-border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--clr-text);
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: transparent;
  padding: 16px 24px;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}

.nav-links li {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.nav-links li a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 400;
}

.nav-links::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 120%;
  background: linear-gradient(to left, rgba(0,0,0,.95), transparent);
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

#navbar.scrolled .nav-links.open::before {
  opacity: 1;
  transform: translateX(0);
}

.nav-links.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility 0s 0s;
}

.nav-links.open li {
  opacity: 1;
  transform: translateY(0);
}

.nav-links.open li:nth-child(1) { transition-delay: .05s; }
.nav-links.open li:nth-child(2) { transition-delay: .1s; }
.nav-links.open li:nth-child(3) { transition-delay: .15s; }
.nav-links.open li:nth-child(4) { transition-delay: .2s; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================
   BUTTONS (Mobile First)
   ===================== */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid #e8923a;
  color: #e8923a;
  background: rgba(232, 146, 58, .15);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: background .3s, color .3s, transform .3s var(--ease);
  min-width: 120px;
}

.btn-outline:hover {
  background: #e8923a;
  color: var(--clr-bg);
  transform: translateY(-2px);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--clr-accent);
  color: var(--clr-bg);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: opacity .3s, transform .3s var(--ease);
  min-width: 120px;
}

.btn-solid:hover { opacity: .85; transform: translateY(-2px); }

/* =====================
   HERO (Mobile First)
   ===================== */
#hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-bg {
  position: absolute;
  inset: -20%;
  background: var(--clr-bg);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('Website Images/GTRPortrait.png') center / cover no-repeat;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.98) 0%, transparent 55%);
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--clr-bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 24px 16px;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: -80px -60px 0 -40px;
  background: transparent;
  z-index: -1;
}

.hero-eyebrow {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #e8923a;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}

.hero-content h1 em {
  font-style: italic;
  color: #e8923a;
  font-weight: 400;
}

.hero-buttons {
  margin-top: 400px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .6rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--clr-muted);
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* =====================
   SECTION COMMONS (Mobile First)
   ===================== */
section { padding: 60px 16px; max-width: 100%; overflow-x: hidden; }

.section-header {
  margin-bottom: 24px;
}

.section-label {
  display: block;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: -6px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  margin: 0;
}

/* =====================
   PORTFOLIO GRID (Mobile First)
   ===================== */
#work {
  max-width: var(--max-w);
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 16px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}

.filter-btn:hover {
  border-color: var(--clr-text);
  color: var(--clr-text);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #e8923a;
  border-color: #e8923a;
  color: var(--clr-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232,146,58,.35);
}

.grid {
  position: relative;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--clr-bg));
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.grid.expanded {
  max-height: 5000px;
}

.grid.expanded::after {
  opacity: 0;
}

.grid-sizer {
  width: calc(50% - 4px);
}

.grid-item {
  width: calc(50% - 4px);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  float: left;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.grid-item.reveal {
  animation: slideUpFade 0.5s cubic-bezier(.16,1,.3,1) both;
}

.grid-item img {
  width: 100%;
  display: block;
}

.grid-more-wrap {
  text-align: center;
  padding-top: 24px;
  clear: both;
}

.grid-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  gap: 16px;
  color: var(--clr-muted);
  font-size: .85rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--clr-border);
  border-top-color: var(--clr-accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.grid-more-wrap.hidden {
  display: none;
}


/* =====================
   SERVICES (Mobile First)
   ===================== */
#services {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

#services .section-header,
#services .services-grid {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 16px;
}

.service-card {
  background: var(--clr-surface);
  padding: 24px 16px;
  border: 1px solid var(--clr-border);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}

.service-card:hover {
  background: #1a1a1a;
  border-color: var(--clr-accent);
  transform: translateY(-4px);
}

.service-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--clr-accent);
  margin-bottom: 12px;
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.service-card p {
  font-size: .85rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* =====================
   ABOUT (Mobile First)
   ===================== */
#about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  max-width: 100%;
  min-height: auto;
}

.about-img {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.about-text {
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.about-text .section-label { margin-bottom: 8px; }

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 20px;
}

.about-text p {
  font-size: .9rem;
  color: var(--clr-muted);
  margin-bottom: 16px;
  max-width: 100%;
}

.about-text .btn-solid { margin-top: 16px; align-self: flex-start; }

/* =====================
   CONTACT (Mobile First)
   ===================== */
#contact {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 300;
  outline: none;
  transition: border-color .25s;
  resize: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #444;
}

.contact-form .btn-outline { align-self: flex-start; }

/* =====================
   FOOTER (Mobile First)
   ===================== */
footer {
  border-top: 1px solid var(--clr-border);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
}

.footer-copy {
  font-size: .75rem;
  color: var(--clr-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  transition: color .25s;
}

.footer-links a:hover { color: var(--clr-text); }

/* =====================
   SCROLL ANIMATIONS
   ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}


/* =====================
   LIGHTBOX
   ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s .3s;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s var(--ease), visibility 0s 0s;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  transition: transform .15s ease-out;
  cursor: default;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: .9;
  transition: opacity .2s, background .2s;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox-close:hover { 
  opacity: 1; 
  background: rgba(0, 0, 0, 0.7);
}

/* =====================
   CHRISTIAN ELEMENTS (Mobile First)
   ===================== */
.hero-verse {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: #f5c77e;
  opacity: 1;
  text-align: center;
  max-width: 85%;
  z-index: 10;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
  letter-spacing: .02em;
  padding: 0 16px;
}

.footer-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--clr-accent);
  opacity: .85;
  margin-bottom: 10px;
}

/* =====================
   DESKTOP BREAKPOINTS
   ===================== */

@media (min-width: 900px) {
  .hero-overlay {
    background: url('Website Images/GTRLandscape.png') center / cover no-repeat;
  }
  
  .hero-overlay::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, transparent 50%), linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 40%);
  }
  
  .hero-content {
    text-align: left;
    padding-left: 80px;
  }
  
  #hero {
    justify-content: flex-start;
  }
  
  .hero-buttons {
    margin-top: 24px;
  }
  
  #about {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-img {
    margin: 0 auto;
    aspect-ratio: 3/4;
  }
}
