/* ============================================
   KYLE STEFAN — AUTHENTIC PORTFOLIO
   Inspired by real portfolios. Photo-driven.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --cream: #faf9f6;
  --warm-white: #f5f2ed;
  --charcoal: #1a1a1a;
  --dark: #111111;
  --text-dark: #2c2c2c;
  --text-body: #4a4a4a;
  --text-light: #7a7a7a;
  --text-on-dark: #e8e6e1;
  --text-on-dark-muted: #a8a6a1;
  --accent: #5b7e95;
  --accent-light: #7d9fb5;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav.on-dark {
  background: transparent;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  transition: color 0.3s;
}

.nav.on-dark .nav-logo {
  color: white;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-body);
  transition: color 0.3s;
  padding-bottom: 2px;
}

.nav.on-dark .nav-links a {
  color: rgba(255, 255, 255, 0.75);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--charcoal);
}

.nav.on-dark .nav-links a:hover,
.nav.on-dark .nav-links a.active {
  color: white;
}

/* ============ FULL-WIDTH PHOTO SECTIONS ============ */
.photo-section {
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.photo-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.photo-section .content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

/* ============ TYPOGRAPHY ============ */
.heading-xl {
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.heading-md {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.2;
}

.heading-sm {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.3;
}

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.label-on-dark {
  color: rgba(255, 255, 255, 0.5);
}

.body-lg {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--text-body);
}

.body-md {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-body);
}

/* ============ BOLD SECTION HEADERS (Dylan-style) ============ */
.section-header-bold {
  font-family: var(--sans);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* ============ CONTAINERS ============ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-padding {
  padding: 100px 0;
}

/* ============ PHOTO GRID ============ */
.photo-grid {
  display: grid;
  gap: 12px;
}

.photo-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.photo-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.5s ease;
}

.photo-grid img:hover {
  transform: scale(1.02);
}

.photo-caption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
  font-style: italic;
}

/* ============ DIVIDER ============ */
.divider {
  width: 60px;
  height: 1px;
  background: var(--text-light);
  margin: 24px 0;
}

.divider-center {
  margin: 24px auto;
}

.divider-on-dark {
  background: rgba(255, 255, 255, 0.3);
}

/* ============ BUTTONS / LINKS ============ */
.text-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.text-link:hover {
  color: var(--charcoal);
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* ============ FOOTER ============ */
.footer {
  padding: 48px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-socials a {
  color: var(--text-light);
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: var(--charcoal);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

/* Dark footer variant */
.footer-dark {
  background: var(--dark);
  border-top: none;
  color: var(--text-on-dark-muted);
}

.footer-dark .footer-socials a {
  color: var(--text-on-dark-muted);
}

.footer-dark .footer-socials a:hover {
  color: white;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  .section-padding { padding: 72px 0; }
  .photo-grid-3 { grid-template-columns: 1fr; }
  .photo-grid-2 { grid-template-columns: 1fr; }
  .photo-section { min-height: 70vh; }
}
