G/* ============================================
   Ethan Summers — main.css
   Built on Hyperspace structure, custom aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=DM+Sans:wght@300;400;500&display=swap');
@import url('fontawesome-all.min.css');

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

/* ── Variables ── */
:root {
  --sidebar-width: 300px;
  --bg: #0a0a09;
  --sidebar-bg: #0f0f0e;
  --sidebar-border: rgba(255,255,255,0.05);
  --text: #c8c8c4;
  --text-dim: rgba(255,255,255,0.55);
  --accent: #F28A6A;
  --white: #ffffff;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.3s ease;
}

/* ── Base ── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--white); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* ── Layout ── */
#page-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

#sidebar::-webkit-scrollbar {
  width: 4px;
}
#sidebar::-webkit-scrollbar-track {
  background: transparent;
}
#sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
#sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

.sidebar-brand {
  padding: 32px 30px 24px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand a {
  font-family: var(--font-body);
  font-size: 2.1rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.01em;
  display: block;
  text-align: left;
  line-height: 1;
  margin-bottom: 4px;
}

.sidebar-brand a:hover { color: var(--accent); }

.sidebar-brand .tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0;
  text-align: left;
  font-weight: 500;
}

/* ── Sidebar Nav ── */
#sidebar nav {
  padding: 20px 0;
  flex: 1;
}

#sidebar nav ul {
  list-style: none;
}

#sidebar nav > ul > li > a {
  display: block;
  padding: 10px 30px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: var(--transition);
  border-left: 2px solid transparent;
}

#sidebar nav > ul > li > a:hover,
#sidebar nav > ul > li > a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 36px;
  background: rgba(255,255,255,0.02);
  font-weight: 500;
}

#sidebar nav ul li a.active {
  color: var(--accent) !important;
  font-weight: 500 !important;
}

/* Subnav */
#sidebar nav ul.subb {
  padding: 4px 0 8px;
  border-left: 1px solid var(--sidebar-border);
  margin-left: 30px;
}

#sidebar nav ul.subb li a {
  display: block;
  padding: 7px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: var(--transition);
}

#sidebar nav ul.subb li a:hover,
#sidebar nav ul.subb li a.active {
  color: var(--accent);
  font-weight: 500;
}

/* Sub-subnav */
#sidebar nav ul.sub {
  padding: 4px 0;
  margin-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.06);
}

#sidebar nav ul.sub li a {
  display: block;
  padding: 5px 16px;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

#sidebar nav ul.sub li a:hover,
#sidebar nav ul.sub li a.active {
  color: var(--accent);
}

/* ── Main Content ── */
#main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}

/* ── Full Screen Section ── */
.fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fullscreen .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.fullscreen .bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.fullscreen .inner {
  position: relative;
  z-index: 1;
  padding: 60px;
  width: 560px;
  margin: 0 auto;
}

.fullscreen .inner h1 {
  font-family: var(--font-body);
  font-size: 4.2rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 5px;
  line-height: 1.1;
  white-space: nowrap;
  font-size: clamp(2rem, 5.5vw, 4.2rem);
}

.fullscreen .inner p {
    font-family: var(--font-body);
    font-size: 1.05rem;       /* Slightly smaller to make the title pop more */
    font-weight: 300;         /* Dropping from 400 to 300 makes it look cleaner */
    color: rgba(255, 255, 255, 0.85); /* Slightly more transparent to pull it back */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Softened the shadow for depth */
    line-height: 1.8;         /* Increased from 1.6 for better readability */
    margin-bottom: 2.5rem;    /* Adds more space before the buttons */
    max-width: 600px;         /* Slightly narrower to prevent "orphan" words */
    letter-spacing: 0.02em;   /* Just a hint of extra space between letters */
}

/* ── Image Grid ── */
.img-grid-section {
  padding: 48px;
}

.img-grid {
  columns: 3;
  column-gap: 4px;
}

.img-grid .item {
  break-inside: avoid;
  margin-bottom: 4px;
  overflow: hidden;
  cursor: pointer;
}

.img-grid .item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.img-grid .item:hover img {
  transform: scale(1.03);
}

/* Single hero image (itemone) */
.img-grid .itemone {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center top;
}

/* ── Spotlight sections (portfolio index) ── */
.spotlights {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #222;
}

.spotlight {
  display: flex;
  height: 420px;
  background: var(--bg);
  transition: var(--transition);
  overflow: hidden;
}

.spotlight:hover .spotlight-image img {
  transform: scale(1.04);
}

.spotlight-image {
  width: 45%;
  overflow: hidden;
  flex-shrink: 0;
}

.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.spotlight-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px;
}

.spotlight-content .inner h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.spotlight-content .inner p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 400px;
}

.spotlight:nth-child(even) {
  flex-direction: row-reverse;
}

/* ── Buttons ── */
.button {
    display: inline-block;
    padding: 11px 32px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    
    /* 1. MAKE TEXT HEAVIER: Change from 500 to 700 */
    font-weight: 700; 
    
    letter-spacing: 0.14em;
    text-transform: uppercase;
    
    /* 2. MAKE BOX HEAVIER: Change 2px to 2px and increase the opacity from 0.6 to 0.9 */
    border: 2px solid rgba(255,255,255,0.9); 
    
    color: var(--white);
    transition: var(--transition);
    border-radius: 1px;
    text-shadow: 
    0px 2px 4px rgba(0, 0, 0, 1),   /* A sharp, dark edge right behind the letters */
    0px 4px 20px rgba(0, 0, 0, 0.8); /* A wide, soft glow to darken the whole area */
    background-color: rgba(0, 0, 0, 0.5); /* This is the new line */
}

}

.button:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.button.primary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
background-color: rgba(0, 0, 0, 0.5);
}

.button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ── Reels ── */
.reels-section {
  padding: 0 48px 60px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1280px;
}

.reel-item {
  margin-bottom: 16px;
}

.reel-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 6px;
}

.reel-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}



.reel-label h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}

.reel-label p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .reels-section { padding: 0 24px 40px; gap: 36px; }
}

/* ── About ── */
.about-section {
  padding: 24px 48px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text);
}

.about-text p strong {
  color: var(--white);
  font-weight: 500;
}

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--sidebar-border);
}

.credential-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.credential-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.skills-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--sidebar-border);
}

.skills-block h4 {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skills-tags span {
  font-size: 0.7rem;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
}

.about-photo img {
  width: 100%;
  border-radius: 1px;
}

.client-list {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--sidebar-border);
}

.client-list h4 {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.client-list ul {
  list-style: none;
}

.client-list ul li {
  font-size: 0.82rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ── Contact ── */
.contact-section {
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  margin-top: 24px;
  font-family: var(--font-body);
}

.contact-info h3:first-child { margin-top: 0; }

.contact-info p, .contact-info a {
  font-size: 0.9rem;
  color: var(--text);
}

.contact-info a:hover { color: var(--accent); }

/* Form */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  transition: border-color 0.2s;
  border-radius: 1px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px; /* This creates the horizontal space between the two fields */
  margin-bottom: 20px;
}

/* ── Page header ── */
.page-header {
  padding: 40px 48px 24px;
  border-bottom: 1px solid var(--sidebar-border);
}


.page-header h1 {
  font-size: 2.8rem;
}

.page-header p {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-top: 8px;
}

/* ── Hamburger (mobile) ── */
#hamburger {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--sidebar-border);
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.hamburger-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--white);
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

/* ── Mobile overlay sidebar ── */
#mobile-sidebar {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--sidebar-bg);
  z-index: 199;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  border-right: 1px solid var(--sidebar-border);
}

#mobile-sidebar.open {
  transform: translateX(0);
}

#mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 56px;
  z-index: 198;
  background: rgba(0,0,0,0.5);
}

#mobile-sidebar nav ul {
  list-style: none;
  padding: 16px 0;
}

#mobile-sidebar nav ul li a {
  display: block;
  padding: 7px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}

#mobile-sidebar nav ul li a:hover,
#mobile-sidebar nav ul li a.active {
  color: var(--accent);
  padding-left: 30px;
}

#mobile-sidebar nav ul.subb {
  padding: 0;
  background: rgba(0,0,0,0.2);
}

#mobile-sidebar nav ul.subb li a {
  padding: 6px 24px 6px 40px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

#mobile-sidebar nav ul.subb li a:hover,
#mobile-sidebar nav ul.subb li a.active {
  color: var(--accent);
  padding-left: 46px;
}

#mobile-sidebar nav ul.subb ul.subb li a {
  padding: 5px 24px 5px 56px;
  font-size: 0.72rem;
}

#mobile-sidebar nav ul.subb ul.subb li a.active {
  color: var(--accent);
}

#mobile-sidebar nav ul li a.active {
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .reel-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; }
  .img-grid { columns: 2; }
}

@media (max-width: 768px) {
  #sidebar { display: none; }
  #hamburger { display: flex; }
  #mobile-sidebar { display: block; }

  #main {
    margin-left: 0;
    padding-top: 56px;
  }

  .fullscreen .inner { padding: 32px 24px; }
  .fullscreen .inner h1 { font-size: 2.2rem; }

  .reels-section,
  .about-section,
  .contact-section,
  .img-grid-section,
  .page-header { padding: 32px 24px; }

  .spotlight {
    flex-direction: column !important;
  }

  .spotlight-image { width: 100%; height: 240px; }

  .spotlight-content { padding: 28px 24px; }

  .img-grid { columns: 2; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .img-grid { columns: 1; }
}

/* ── Category page sidebar ── */
.sidebar-section-title {
  padding: 20px 30px 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}

.sidebar-section-title a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  border-left: none !important;
  padding: 0 !important;
  background: none !important;
  font-size: inherit !important;
  letter-spacing: inherit !important;
}

.sidebar-section-title a:hover {
  color: var(--white);
}

#sidebar nav ul {
  padding: 4px 0 8px;
  border-left: 1px solid var(--sidebar-border);
  margin-left: 30px;
}

#sidebar nav ul li a {
  display: block;
  padding: 7px 20px 7px 20px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: var(--transition);
  border-left: 2px solid transparent;
}

#sidebar nav ul li a:hover,
#sidebar nav ul li a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 26px;
  font-weight: 500;
  background: rgba(255,255,255,0.02);
}

.sidebar-back {
  padding: 20px 30px;
  border-top: 1px solid var(--sidebar-border);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.sidebar-back a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.sidebar-back a:hover {
  color: var(--accent);
}

.fullscreen-clean .bg::after {
  display: none;
}

.fullscreen-clean {
  min-height: 100vh;
}

/* Home CTA — bottom left, clear of sidebar */
.home-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ── Photo grid — 3 columns ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 6px;
  padding: 6px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: #111;
  transition: transform 0.4s ease, z-index 0s;
  z-index: 0;
}

.photo-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.photo-item:hover img {
  opacity: 0.85;
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#lightbox.active {
  display: flex;
}

#lightbox-img-wrap {
  max-width: 88vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-caption {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px 24px 0;
  max-width: 88vw;
  line-height: 1.5;
}

#lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  animation: lightbox-fade-in 0.3s ease;
}

@keyframes lightbox-fade-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}

#lightbox-close:hover { color: #fff; }

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 56px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 20px;
  z-index: 2;
  line-height: 1;
}

#lightbox-prev { left: 8px; }
#lightbox-next { right: 8px; }
#lightbox-prev:hover,
#lightbox-next:hover { color: #fff; }

/* ── Responsive grid ── */
@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 4px;
    padding: 4px;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 3px;
    padding: 3px;
  }
}

/* ── Video thumbnail play icon ── */
.photo-item.video-thumb {
  position: relative;
}

.video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
  transition: color 0.2s;
}

.photo-item.video-thumb:hover .video-play-icon {
  color: darksalmon;
}
