/* =========================================================
   ROBERT ENGEL CREATIVE MEDIA PORTFOLIO
   Color palette sampled from the Robert Engel Photography logo

   QUICK COLOR EDITS:
   Change the values in :root below to recolor the entire site.
========================================================= */

:root {
  /* Brand colors */
  --color-charcoal: #404040;
  --color-charcoal-dark: #282d2e;
  --color-charcoal-deep: #1d2122;
  --color-teal: #56a0ac;
  --color-teal-dark: #327783;
  --color-teal-light: #9fcfd6;
  --color-teal-pale: #e7f3f5;
  --color-silver: #d1d1d1;
  --color-white: #ffffff;

  /* Page colors */
  --color-page: #f5f7f7;
  --color-surface: #ffffff;
  --color-surface-muted: #edf3f4;
  --color-text: #303638;
  --color-text-soft: #667174;
  --color-border: #dce4e5;
  --color-overlay: rgba(29, 33, 34, 0.92);

  /* Effects */
  --shadow-small: 0 10px 28px rgba(29, 33, 34, 0.09);
  --shadow-medium: 0 18px 45px rgba(29, 33, 34, 0.14);
  --shadow-large: 0 28px 70px rgba(29, 33, 34, 0.22);
  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 28px;
  --transition: 180ms ease;

  /* Layout */
  --content-width: 1180px;
  --section-space: clamp(4.5rem, 8vw, 7.5rem);
}

/* =========================================================
   RESET & BASE
========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-page);
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.portfolio-modal-open {
  overflow: hidden !important;
}

img,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--color-teal);
  color: var(--color-white);
}

:focus-visible {
  outline: 3px solid var(--color-teal-light);
  outline-offset: 4px;
}

#about,
#photography,
#video,
#design,
#marketing,
#contact {
  scroll-margin-top: 88px;
}

.header-container,
.hero-container,
.about-container,
.photography-container,
.video-container,
.design-container,
.marketing-container,
.contact-container,
.footer-container,
.footer-bottom {
  width: min(calc(100% - 2.5rem), var(--content-width));
  margin-inline: auto;
}

.about-section,
.photography-section,
.video-section,
.design-section,
.marketing-section,
.contact-section {
  padding-block: var(--section-space);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.logo-name,
.footer-logo {
  font-family: Georgia, "Times New Roman", serif;
}

h1,
h2,
h3 {
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 600;
}

p {
  color: var(--color-text-soft);
}

.section-header {
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.06rem;
}

.section-eyebrow,
.video-category,
.marketing-category {
  margin-bottom: 0.7rem;
  color: var(--color-teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* =========================================================
   BUTTONS
========================================================= */

.primary-btn,
.secondary-btn,
.contact-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.primary-btn {
  padding: 0.95rem 1.45rem;
  background: var(--color-teal);
  color: var(--color-charcoal-deep);
  box-shadow: 0 10px 24px rgba(86, 160, 172, 0.24);
}

.primary-btn:hover {
  background: var(--color-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(86, 160, 172, 0.32);
}

.secondary-btn {
  padding: 0.95rem 1.45rem;
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.secondary-btn:hover {
  border-color: var(--color-teal);
  background: var(--color-teal-pale);
  color: var(--color-teal-dark);
  transform: translateY(-2px);
}

/* =========================================================
   HEADER & NAVIGATION
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(40, 45, 46, 0.95);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-teal),
    var(--color-white),
    var(--color-teal),
    transparent
  );
  content: "";
  opacity: 0.7;
}

.header-container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  color: var(--color-white);
}

.logo-name {
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo-title {
  margin-top: 0.35rem;
  color: var(--color-teal-light);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.5rem);
}

.nav-menu > a {
  position: relative;
  color: var(--color-silver);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  transition: color var(--transition);
}

.nav-menu > a:not(.contact-btn)::after {
  position: absolute;
  right: 0;
  bottom: -0.65rem;
  left: 0;
  height: 2px;
  background: var(--color-teal);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-menu > a:hover {
  color: var(--color-white);
}

.nav-menu > a:hover::after {
  transform: scaleX(1);
}

.nav-menu .contact-btn {
  min-height: 40px;
  padding: 0.75rem 1rem;
  background: var(--color-teal);
  color: var(--color-charcoal-deep);
}

.nav-menu .contact-btn:hover {
  background: var(--color-white);
}

.menu-toggle {
  width: 46px;
  height: 42px;
  padding: 10px;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-small);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  display: block;
  background: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle span + span {
  margin-top: 6px;
}

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

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

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

/* =========================================================
   HERO
========================================================= */

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5.5rem, 10vw, 9rem);
  background:
    radial-gradient(circle at 82% 18%, rgba(86, 160, 172, 0.23), transparent 31%),
    radial-gradient(circle at 12% 88%, rgba(86, 160, 172, 0.12), transparent 32%),
    linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-charcoal-dark) 70%);
  color: var(--color-white);
}

.hero-section::before,
.hero-section::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(86, 160, 172, 0.28);
  border-radius: 50%;
  content: "";
}

.hero-section::before {
  width: 430px;
  height: 430px;
  top: -245px;
  right: -95px;
}

.hero-section::after {
  width: 300px;
  height: 300px;
  bottom: -210px;
  left: -50px;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.hero-content {
  max-width: 730px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  color: var(--color-white);
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero-content h1 span {
  color: var(--color-teal-light);
}

.hero-description {
  max-width: 690px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.hero-buttons,
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-section .secondary-btn {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--color-white);
}

.hero-section .secondary-btn:hover {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-charcoal-deep);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  inset: -14px;
  z-index: -1;
  border: 1px solid rgba(86, 160, 172, 0.55);
  border-radius: calc(var(--radius-large) + 8px);
  content: "";
  transform: rotate(3deg);
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-large);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-profile-image {
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: var(--color-charcoal-deep);
}

.hero-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-card-content {
  padding: 1.5rem 1.5rem 0.65rem;
}

.hero-card-content h2 {
  margin-bottom: 0.35rem;
  color: var(--color-white);
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.hero-card-content p {
  margin-bottom: 0;
  color: var(--color-teal-light);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-tags {
  padding: 0.85rem 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span {
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--color-silver);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* =========================================================
   ABOUT
========================================================= */

.about-section {
  background: var(--color-surface);
}

.about-container {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(3rem, 7vw, 6rem);
}

.about-content h2 {
  max-width: 760px;
}

.about-content > p:not(.section-eyebrow) {
  max-width: 760px;
  font-size: 1.04rem;
}

.about-content > p:last-child {
  margin-bottom: 0;
  color: var(--color-teal-dark);
  font-weight: 800;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.highlight-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-page);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.highlight-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--color-teal);
  content: "";
}

.highlight-card:hover {
  border-color: var(--color-teal-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-small);
}

.highlight-card h3 {
  margin-bottom: 0.55rem;
  color: var(--color-charcoal-dark);
  font-size: 1.2rem;
}

.highlight-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================================================
   PHOTOGRAPHY
========================================================= */

.photography-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(86, 160, 172, 0.15), transparent 28%),
    var(--color-charcoal-dark);
  color: var(--color-white);
}

.photography-section .section-eyebrow {
  color: var(--color-teal-light);
}

.photography-section h2 {
  color: var(--color-white);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  background: var(--color-charcoal-deep);
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(29, 33, 34, 0.35), transparent 45%),
    linear-gradient(rgba(86, 160, 172, 0.08), rgba(86, 160, 172, 0.08));
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 500ms ease, filter 500ms ease;
}

.gallery-item:hover img {
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.035);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* =========================================================
   VIDEO
========================================================= */

.video-section {
  background: var(--color-page);
}

.featured-video {
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
  box-shadow: var(--shadow-medium);
}

.youtube-embed {
  aspect-ratio: 16 / 9;
  background: var(--color-charcoal-deep);
}

.youtube-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.featured-video-content {
  padding: clamp(1.8rem, 4vw, 3rem);
}

.featured-video-content h3 {
  color: var(--color-charcoal-dark);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.featured-video-content p:last-child {
  margin-bottom: 0;
}

.social-video-header {
  max-width: 710px;
  margin-bottom: 2rem;
}

.social-video-header h3 {
  margin-bottom: 0.6rem;
  font-size: 2rem;
}

.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
}

.tiktok-card {
  min-width: 0;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: var(--shadow-small);
}

.tiktok-card .tiktok-embed {
  width: 100%;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 auto 1rem !important;
}

.tiktok-card iframe {
  width: 100% !important;
  min-width: 0 !important;
}

.social-video-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.social-metric-box {
  padding: 0.9rem 0.75rem;
  border-radius: var(--radius-small);
  background: var(--color-teal-pale);
  text-align: center;
}

.social-metric-box strong {
  display: block;
  color: var(--color-teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.social-metric-box span {
  margin-top: 0.35rem;
  display: block;
  color: var(--color-text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* =========================================================
   DESIGN
========================================================= */

.design-section {
  background: var(--color-surface);
}

.design-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.design-piece {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background:
    linear-gradient(135deg, #eef2f2, #dfe7e8);
  box-shadow: var(--shadow-small);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.design-piece:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.design-piece img {
  width: 100%;
  height: 100%;
  padding: 0.6rem;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 400ms ease;
}

.design-piece:hover img {
  transform: scale(1.02);
}

/* =========================================================
   MARKETING & RESULTS
========================================================= */

.marketing-section {
  background:
    linear-gradient(135deg, rgba(86, 160, 172, 0.08), transparent 45%),
    var(--color-surface-muted);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.25rem;
}

.result-card {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: var(--shadow-small);
}

.result-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--color-teal);
  content: "";
}

.result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.result-number {
  color: rgba(86, 160, 172, 0.36);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1;
}

.result-card h3 {
  color: var(--color-charcoal-dark);
}

.result-card > p {
  flex-grow: 1;
}

.metric-row {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric-box:only-child {
  grid-column: 1 / -1;
}

.metric-box {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid rgba(86, 160, 172, 0.18);
  border-radius: var(--radius-small);
  background: var(--color-teal-pale);
}

.metric-box strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--color-teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.metric-box span {
  margin-top: 0.45rem;
  display: block;
  color: var(--color-text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.campaign-details {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  border-top: 1px solid var(--color-border);
}

.campaign-details span {
  color: var(--color-text-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(86, 160, 172, 0.25), transparent 28%),
    var(--color-charcoal);
  color: var(--color-white);
}

.contact-section::before {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -190px;
  bottom: -210px;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.contact-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.contact-content .section-eyebrow {
  color: var(--color-teal-light);
}

.contact-content h2 {
  color: var(--color-white);
}

.contact-content > p:not(.section-eyebrow) {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-content .secondary-btn {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.contact-content .secondary-btn:hover {
  background: var(--color-white);
  color: var(--color-charcoal-dark);
}

.contact-card {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-large);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-info-item {
  padding-block: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-info-item:first-child {
  padding-top: 0;
}

.contact-info-item > span {
  display: block;
  color: var(--color-teal-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-info-item a,
.contact-info-item p {
  margin: 0.35rem 0 0;
  color: var(--color-white);
}

.contact-info-item a:hover {
  color: var(--color-teal-light);
}

.contact-socials {
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-socials a {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--color-silver);
  font-size: 0.8rem;
  font-weight: 800;
  transition: background-color var(--transition), color var(--transition);
}

.contact-socials a:hover {
  background: var(--color-teal);
  color: var(--color-charcoal-deep);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding-top: 3.5rem;
  background: var(--color-charcoal-deep);
  color: var(--color-white);
}

.footer-container {
  padding-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 2.5rem;
}

.footer-logo {
  color: var(--color-white);
  font-size: 1.55rem;
}

.footer-brand p {
  max-width: 400px;
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.footer-links,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.75rem 1rem;
}

.footer-links a,
.footer-socials a {
  color: var(--color-silver);
  font-size: 0.8rem;
  font-weight: 700;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-socials a:hover {
  color: var(--color-teal-light);
}

.footer-bottom {
  padding-block: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
}

/* =========================================================
   FULL-SCREEN PORTFOLIO IMAGE MODAL
========================================================= */

#portfolioImageModal[hidden] {
  display: none !important;
}

#portfolioImageModal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  width: 100vw;
  height: 100vh;
  padding: 70px 70px 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 23, 24, 0.96);
}

.portfolio-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#portfolioModalImage {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 82vh;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  object-fit: contain;
  object-position: center;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.68);
  cursor: default;
}

#portfolioModalCaption {
  max-width: 900px;
  margin: 14px auto 0;
  color: var(--color-white);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

#portfolioModalClose {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2147483647;
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

#portfolioModalClose:hover {
  background: var(--color-teal-dark) !important;
  transform: rotate(4deg);
}

.portfolio-modal-arrow {
  position: fixed;
  top: 50%;
  z-index: 2147483647;
  width: 52px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color var(--transition);
}

.portfolio-modal-arrow:hover {
  background: var(--color-teal-dark) !important;
}

#portfolioModalPrevious {
  left: 16px;
}

#portfolioModalNext {
  right: 16px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1020px) {
  .nav-menu {
    gap: 0.8rem;
  }

  .nav-menu > a {
    font-size: 0.76rem;
  }

  .hero-container,
  .about-container,
  .contact-container {
    gap: 3rem;
  }

  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tiktok-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tiktok-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 560px);
    justify-self: center;
  }
}

/* =========================================================
   MOBILE NAVIGATION & LAYOUT
========================================================= */

@media (max-width: 850px) {
  .header-container {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    max-height: 0;
    padding: 0 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-charcoal-dark);
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 300ms ease,
      padding 300ms ease,
      opacity 200ms ease,
      visibility 200ms ease;
  }

  .nav-menu.active {
    max-height: 640px;
    padding-top: 0.8rem;
    padding-bottom: 1rem;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu > a {
    padding: 0.95rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    font-size: 0.9rem;
  }

  .nav-menu > a:not(.contact-btn)::after {
    display: none;
  }

  .nav-menu .contact-btn {
    margin-top: 0.8rem;
    border-bottom: 0;
  }

  .hero-container,
  .about-container,
  .contact-container,
  .featured-video {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: none;
  }

  .hero-visual {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .hero-profile-image {
    aspect-ratio: 16 / 12;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .photo-gallery,
  .design-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 600px) {
  :root {
    --section-space: 4.25rem;
  }

  .header-container,
  .hero-container,
  .about-container,
  .photography-container,
  .video-container,
  .design-container,
  .marketing-container,
  .contact-container,
  .footer-container,
  .footer-bottom {
    width: min(calc(100% - 1.5rem), var(--content-width));
  }

  .logo-title {
    letter-spacing: 0.12em;
  }

  .hero-section {
    padding-block: 4.75rem;
  }

  .hero-content h1 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
  }

  .hero-buttons,
  .contact-buttons {
    flex-direction: column;
  }

  .hero-buttons a,
  .contact-buttons a {
    width: 100%;
  }

  .hero-profile-image {
    aspect-ratio: 4 / 4.2;
  }

  .about-highlights,
  .metric-row,
  .social-video-metrics,
  .tiktok-grid {
    grid-template-columns: 1fr;
  }

  .tiktok-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .photo-gallery,
  .design-gallery {
    grid-template-columns: 1fr;
  }

  .featured-video {
    border-radius: var(--radius-medium);
  }

  .result-card,
  .contact-card {
    padding: 1.35rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  #portfolioImageModal {
    padding: 70px 15px 40px;
  }

  #portfolioModalImage {
    max-width: 94vw;
    max-height: 78vh;
  }

  .portfolio-modal-arrow {
    width: 42px;
    height: 56px;
    font-size: 1.5rem;
  }

  #portfolioModalPrevious {
    left: 5px;
  }

  #portfolioModalNext {
    right: 5px;
  }

  #portfolioModalClose {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }

  #portfolioModalCaption {
    font-size: 0.84rem;
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
