/* ═══════════════════════════════════════════════════════
   ALEX WILDER – Wildlife Photography Portfolio
   styles.css
═══════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg-primary: #06292e;
  --bg-secondary: #08363c;
  --bg-card: #0a3f46;
  --accent-orange: #ff8c42;
  --accent-teal: #1a7a87;
  --text-primary: #f0ece4;
  --text-secondary: #9db8bd;
  --text-muted: #5a8289;
  --font: 'Montserrat', sans-serif;
  --nav-h: 72px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(6, 41, 46, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 122, 135, 0.15);
  transition: background 0.4s var(--transition);
}

.navbar.scrolled {
  background: rgba(6, 41, 46, 0.98);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

/* Brand */
.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Center links */
.nav-links {
  display: flex;
  gap: 2.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-orange);
  transition: width 0.35s var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Social Icons (vertical bar on the right) */
.nav-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-icon:hover {
  color: var(--accent-orange);
  transform: scale(1.2);
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.35s var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 20% 50%, #0c4a52 0%, var(--bg-primary) 70%);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
  height: 68vh;
  min-height: 420px;
  max-height: 620px;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  will-change: transform;
}

/* Hero Content */
.hero-content {
  position: relative;
}

.hero-heading {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.heading-accent {
  color: var(--accent-orange);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 2rem;
}

/* Floating decorative images */
.hero-floats {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.float-images {
  display: flex;
  position: relative;
  width: 140px;
  height: 80px;
}

.float-img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  position: absolute;
}

.float-img-1 {
  top: 0;
  left: 0;
  z-index: 2;
}

.float-img-2 {
  top: 12px;
  left: 45px;
  z-index: 1;
  filter: brightness(0.85);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 140, 66, 0.12);
  border: 1.5px solid var(--accent-orange);
  color: var(--accent-orange);
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.pill-btn:hover {
  background: var(--accent-orange);
  color: #fff;
  transform: translateY(-2px);
}

/* Circular Contact Badge */
.contact-badge {
  position: absolute;
  right: -10px;
  top: -20px;
  width: 90px;
  height: 90px;
  cursor: pointer;
  z-index: 5;
}

.badge-ring {
  width: 90px;
  height: 90px;
  position: relative;
  animation: spin 12s linear infinite;
}

.badge-text-svg {
  width: 90px;
  height: 90px;
  position: absolute;
  inset: 0;
}

.badge-arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-orange);
  animation: spin-reverse 12s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

/* Ticker */
.hero-ticker {
  background: rgba(255, 140, 66, 0.08);
  border-top: 1px solid rgba(255, 140, 66, 0.2);
  border-bottom: 1px solid rgba(255, 140, 66, 0.2);
  overflow: hidden;
  padding: 0.65rem 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-orange);
  padding-right: 2rem;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Floating animation for hero image */
@keyframes float-bob {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════ */
.about {
  padding: 6rem 4rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 122, 135, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Portrait */
.about-img-wrap {
  position: relative;
}

.about-portrait {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.about-badge {
  position: absolute;
  left: -30px;
  bottom: 60px;
}

/* About Text */
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.8rem;
}

.about-text p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

/* Circular arrow buttons */
.circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
  font-size: 1.3rem;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  margin-top: 1.5rem;
  cursor: pointer;
}

.circle-btn:hover {
  background: var(--accent-orange);
  color: #fff;
  transform: scale(1.12) rotate(15deg);
  box-shadow: 0 0 28px rgba(255, 140, 66, 0.4);
}

.circle-btn-arrow {
  line-height: 1;
}

/* ════════════════════════════════════════════════════════
   GALLERY
════════════════════════════════════════════════════════ */
.gallery-section {
  padding: 5rem 3rem 6rem;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 3rem;
  gap: 3rem;
}

.gallery-title-wrap {
  flex: 0 0 auto;
}

.gallery-desc-wrap {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.gallery-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
  flex: 1;
}

/* Masonry Grid */
.masonry-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.grid-sizer,
.masonry-item {
  width: calc(33.333% - 10px);
}

.masonry-item {
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--transition);
}

/* Varying heights via intrinsic ratio */
.masonry-item img {
  min-height: 220px;
  max-height: 280px;
}

.masonry-item--tall img {
  min-height: 340px;
  max-height: 420px;
}

/* Image Overlay */
.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 26, 30, 0.88) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem 1rem;
  opacity: 0;
  transition: opacity 0.4s var(--transition);
}

.img-overlay span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.masonry-item:hover img {
  transform: scale(1.06);
}

.masonry-item:hover .img-overlay {
  opacity: 1;
}

/* ════════════════════════════════════════════════════════
   EXHIBITIONS
════════════════════════════════════════════════════════ */
.exhibitions {
  padding: 6rem 3rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.exhibitions-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
  position: relative;
}

.exhibitions-header .section-title {
  margin-bottom: 0.75rem;
}

.exhibitions-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 550px;
}

.exhibitions-badge {
  position: absolute;
  right: 0;
  top: 0;
}

/* Exhibition Grid Layout */
.exhibition-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  gap: 10px;
  position: relative;
}

.ex-item {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.ex-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
}

.ex-item:hover img {
  transform: scale(1.04);
}

/* Grid placement */
.ex-item--1 {
  grid-column: 1;
  grid-row: 1;
  height: 200px;
}

.ex-item--2 {
  grid-column: 2;
  grid-row: 1;
  height: 200px;
  position: relative;
}

.ex-item--3 {
  grid-column: 3;
  grid-row: 1;
  height: 200px;
}

.ex-item--4 {
  grid-column: 4;
  grid-row: 1;
  height: 200px;
}

.ex-item--center {
  grid-column: 2 / 4;
  grid-row: 2;
  height: 260px;
  z-index: 2;
  transform: translateY(-20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ex-item--6 {
  grid-column: 1;
  grid-row: 2;
  height: 240px;
}

.ex-item--7 {
  grid-column: 4;
  grid-row: 2;
  height: 240px;
}

.ex-item--8 {
  grid-column: 1 / 2;
  grid-row: 3;
  height: 200px;
}

.ex-item--9 {
  grid-column: 4;
  grid-row: 3;
  height: 200px;
}

/* Exhibition text overlay */
.ex-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(6, 26, 30, 0.95) 0%, transparent 80%);
}

.ex-text-overlay p {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════ */
.contact {
  padding: 6rem 4rem 4rem;
  background: var(--bg-primary);
  border-top: 1px solid rgba(26, 122, 135, 0.2);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-email-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-email {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.contact-email:hover {
  color: var(--accent-orange);
}

.circle-btn--contact {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

.circle-btn--about {
  margin-top: 2rem;
}

/* Footer nav */
.footer-nav {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 122, 135, 0.15);
}

.footer-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--accent-orange);
}

/* ════════════════════════════════════════════════════════
   SITE FOOTER
════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(26, 122, 135, 0.25);
  padding: 3.5rem 4rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(26, 122, 135, 0.15);
}

/* Brand */
.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 220px;
}

/* Center nav */
.footer-main-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-main-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-main-link:hover {
  color: var(--accent-orange);
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 122, 135, 0.35);
  color: var(--text-muted);
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-social-icon:hover {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-3px);
}

/* Bottom bar */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  gap: 1rem;
}

.footer-copy,
.footer-made {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Footer responsive */
@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .footer-main-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* ════════════════════════════════════════════════════════
   AOS OVERRIDES (for custom timing)
════════════════════════════════════════════════════════ */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */

/* Tablet – 2 col gallery */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-portrait {
    height: 380px;
  }

  .about-badge {
    left: auto;
    right: -10px;
    bottom: 20px;
  }

  .grid-sizer,
  .masonry-item {
    width: calc(50% - 7px);
  }

  .exhibition-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ex-item--4 {
    display: none;
  }

  .ex-item--9 {
    display: none;
  }

  .ex-item--center {
    grid-column: 1 / 3;
  }

  .ex-item--7 {
    grid-column: 3;
  }

  .gallery-header {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  /* Nav */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: rgba(6, 41, 46, 0.98);
    padding: 2rem 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--transition), opacity 0.4s var(--transition);
    z-index: 900;
    border-bottom: 1px solid rgba(26, 122, 135, 0.2);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .hamburger {
    display: flex;
  }

  .nav-social {
    flex-direction: row;
    gap: 1rem;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .hero-image-wrap {
    height: 52vw;
    max-height: 320px;
    min-height: 220px;
  }

  .hero-heading {
    font-size: 2.1rem;
  }

  .hero-floats {
    justify-content: center;
  }

  .contact-badge {
    right: 0;
    top: -15px;
  }

  /* About */
  .about {
    padding: 3.5rem 1.5rem;
  }

  .about-badge {
    right: 10px;
    bottom: 40px;
  }

  /* Gallery */
  .gallery-section {
    padding: 3rem 1rem 4rem;
  }

  .gallery-header {
    margin-bottom: 2rem;
  }

  .grid-sizer,
  .masonry-item {
    width: 100%;
  }

  /* Exhibitions */
  .exhibitions {
    padding: 3.5rem 1rem;
  }

  .exhibition-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ex-item--3,
  .ex-item--4 {
    display: none;
  }

  .ex-item--center {
    grid-column: 1 / 3;
  }

  .ex-item--6,
  .ex-item--7,
  .ex-item--8,
  .ex-item--9 {
    display: none;
  }

  .exhibitions-badge {
    display: none;
  }

  /* Contact */
  .contact {
    padding: 3rem 1.5rem;
  }

  .contact-email-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-nav {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

/* ════════════════════════════════════════════════════════
   UTILITY ANIMATIONS
════════════════════════════════════════════════════════ */
@keyframes float-hero-img {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.float-img-1 {
  animation: float-hero-img 4s ease-in-out infinite;
}

.float-img-2 {
  animation: float-hero-img 4s ease-in-out 0.8s infinite;
}