/* ────────────────────── Palette Variables ────────────────────── */
:root {
    --color-primary     : #ffffff;
    --color-secondary   : #1A1A1A;  
    --color-accent-1    : #9ca3af;
    --color-accent-2    : #334155;
    --bg-light          : #FFFFFF;
    --bg-dark           : #0f172a;
    --text-primary      : #1a1a1a;
    --text-primary-dk   : #f1f5f9;
    --menu-bg-light     : #F8F9FA;
    --menu-bg-dark      : #1e293b;
    --heading-light     : #f1f5f9;
    --heading-dark      : #0f172a;
    --links             : #9ca3af;
    --links-dark        : #abafb6;
  /* Layout Widths */
    --max-width: 106.25rem; /* ~1700px */
}

/* ────────────────────── Global Layout ────────────────────── */

main {
  flex: 1;
  position: relative;
}

/* ────────────────────── Global Styles ────────────────────── */
html, body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  transition: background-color 0.2s ease-out, box-shadow 0.2s ease-out;
  overflow-x: hidden; /* Prevents horizontal scrollbar from full-bleed margins */
}
.container-light {
    background-color: var(--menu-bg-light);
    transition: background-color 0.3s ease;
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
[data-theme="dark"] .container-light {
  background: var(--menu-bg-dark);
  transition: background-color 0.2s ease-out;
}
/* ────────────────────── ABOUT ME wrapper────────────────────── */
.inline-wrapper {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 1.5rem;
}

.container-menu-bar {
    background-color: var(--menu-bg-light);
    transition: background-color 0.2s ease;
      margin-inline: auto;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
[data-theme="dark"] .container-menu-bar {
  background: var(--menu-bg-dark);
  transition: background-color 0.2s ease-out;
}

html {
  scroll-behavior: smooth;
}

/* ────────────────────── MENU BAR (Sticky + Full-Bleed) ────────────────────── */

.menu-bar {
  background-color: var(--menu-bg-light);
  padding: 0rem 2rem;
  height: 4.5rem;
  display: flex;
  justify-content: flex-end;
  margin-inline: auto;
  align-items: center;
  position: relative;
  transition: background-color 0.2s ease-out;
  max-width: var(--max-width);
  background-image: url('meta/stormlike_logo_color.svg');
  background-repeat: no-repeat;
  background-position: 2rem center;
  background-size: auto 70%;
}

[data-theme="dark"] .menu-bar {
  background: var(--menu-bg-dark);
  transition: background-color 0.2s ease-out;
  background-image: url('meta/stormlike_logo_color_dark.svg');
  background-repeat: no-repeat;
  background-position: 2rem center;
  background-size: auto 70%;
}

/* ────────────────────── iPhone Style Toggle ────────────────────── */
.iphone-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.iphone-switch input { 
  opacity: 0; 
  width: 0; 
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--color-accent-2);
  transition: .4s;
  border-radius: 34px;
}

.slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 2px;
  left: 2px;
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: left .4s, background .4s;
}

#theme-toggle-input:checked + .slider::before {
  left: calc(100% - 24px);
  background-color: var(--menu-bg-dark);
}

#theme-toggle-input:checked + .slider {
  background: var(--color-accent-1);
}

/* ────────────────────── HAMBURGER ICON STYLES ────────────────────── */
.hamburger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin-left: 20px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent-2);
    border-radius: 3px;
    transition: all 0.4s ease;
}

body[data-theme="dark"] .hamburger span {
    background-color: var(--color-accent-1);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ────────────────────── DROPDOWN MENU STYLES ────────────────────── */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 20px;
    width: 200px;
    background-color: var(--menu-bg-light);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 1000;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="dark"] .dropdown-menu {
    background-color: var(--menu-bg-dark);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px) scale(1);
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s ease, color 0.3s ease;
}

body[data-theme="dark"] .dropdown-menu a {
    color: var(--text-primary-dk);
}

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.10);
}
body[data-theme="dark"] .dropdown-menu a:hover{
    background-color: rgba(0, 0, 0, 0.45);
}

/* ────────────────────── LINKS & GLOBAL TEXT ────────────────────── */
a {
  color: var(--links);
  text-decoration: none;
}
a:hover {
  text-shadow: 0.4px 0 0 currentColor, -0.4px 0 0 currentColor;
}


/* ────────────────────── HERO SECTION (Full-Bleed Fix) ────────────────────── */
.hero {
  position: relative;
  width: 100vw;
  height: 85vh;
  min-height: 40rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('content/rainbow.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #1a2a1a;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.25); /* Adjust 0.35 to make it lighter or subtler */
  z-index: 1;
}
[data-theme="dark"] .hero::before {
  background-color: transparent;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #ffffff;
  text-align: center;
}

.hero__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .hero__title {
  color: var(--heading-dark);
}

.hero__subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

  [data-theme="dark"] .hero__subtitle {
  color: var(--color-accent-2);
}

.hero__cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary-dk);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__cta:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--text-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero__cta:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .hero { min-height: 80vh; }
  .hero__content { padding: 1.5rem; }
  .hero__subtitle { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 70vh; }
  .hero__cta { padding: 0.75rem 2rem; font-size: 0.9rem; }
}

/* ────────────────────── FEATURED WORK SECTION ────────────────────── */
.featured {
  line-height: 1.6;
}

.featured h2 {
  color: var(--heading-dark);
  margin-top: .75rem;
  margin-bottom: .75rem;
}

[data-theme="dark"] .featured h2 {
  color: var(--heading-light);
}

/* ────────────────────── TEXT-LINK CONTROLS ────────────────────── */
.gallery-load-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  position: relative;
}

.gallery-load-controls::before,
.gallery-load-controls::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  margin: 0 0.5rem;
}

.gallery-toggle {
  color: var(--color-accent-2);
  cursor: pointer;
  text-decoration: none;
  transition: color .3s ease;
  display: inline-block;
}

.gallery-toggle:hover {
  color: var(--color-accent-2);
  text-shadow: 0.4px 0 0 currentColor, -0.4px 0 0 currentColor;
}

body[data-theme="dark"] .gallery-toggle {
  color: var(--color-accent-1);
}

.alert {
  background: var(--color-accent-2);
  color: #fff; 
  padding: .75rem 1.5rem;
  margin-top: 1rem; 
  border-radius: .25rem;
}

/* ────────────────────── GALLERY STYLES ────────────────────── */
.gallery {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(6, 1fr);
  justify-items: stretch;
  align-items: stretch;
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .gallery { grid-template-columns: repeat(1, 1fr); }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
  cursor: pointer;
  transition: transform .35s ease, box-shadow .25s ease;
}

.gallery img:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 12px rgba(0,0,0,.2);
}

/* ────────────────────── CARD GRID & COMPONENTS ────────────────────── */
.cards-grid {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-light);
  border-radius: 0.6rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}
[data-theme="dark"] .card {
  background-color: var(--color-accent-2);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  display: block; 
  cursor: pointer;
}

.card__content {
  padding: 1rem;
  color: var(--color-secondary);
}

.card__title {
  margin: 0 0 0.5rem 0;
  color: var(--color-accent-1); 
  transition: color 0.25s ease;
}

.card:hover .card__title { 
  color: var(--bg-dark);
}

.card__text { 
  margin: 0; 
  line-height: 1.4; 
  color: var(--text-primary); 
}

/* ────────────────────── LIGHTBOX MODAL ────────────────────── */
.lightbox {
  position: fixed; 
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex; 
  align-items: center; 
  justify-content: center;
  visibility: hidden; 
  opacity: 0;
  transition: .3s ease;
  z-index: 1000;
}

.lightbox.active { 
  visibility: visible; 
  opacity: 1; 
}

.lightbox img {
  max-width: 90%; 
  max-height: 80vh; 
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,.3);
}

.lightbox .close-btn {
  position: absolute; 
  top: 20px; 
  right: 30px;
  font-size: 2.5rem; 
  color: #fff; 
  cursor: pointer;
  z-index: 1100;
}

/* ────────────────────── MORE SECTION ────────────────────── */
.more {
  max-width: var(--max-width);
  margin-inline: auto;
  line-height: 1.6;
  
}

.more h2 {
  margin-top: .75rem;
  margin-bottom: .75rem;
}

/* ────────────────────── ABOUT ME SECTION ────────────────────── */
.about {
  margin-top: 2.25rem;
  margin-bottom: 3rem;
  max-width: 800px;
  line-height: 1.6;
}

.about h2 {
  margin-top: .75rem;
  margin-bottom: .75rem;
  color: var(--heading-dark);
}

[data-theme="dark"] .about h2 {
  color: var(--heading-light);
}
/* ────────────────────── DROP-CAP FOR ABOUT ME ────────────────────── */
.about p:first-of-type::first-letter {
  float: left;
  color: var(--color-accent-2);
  font-size: 5rem;
  line-height: 0.8;
  margin-right: 0.1em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
  .about p:first-of-type::first-letter {
    font-size: 3.5rem;
  }
}

/* ────────────────────── DARK-MODE OVERRIDES ────────────────────── */
body[data-theme="dark"] {
  background-color: var(--bg-dark);
  color: var(--text-primary-dk);
}

body[data-theme="dark"] h1,
body[data-theme="dark"] p,
body[data-theme="dark"] nav a {
  color: var(--text-primary-dk);
}

body[data-theme="dark"] .wrapper,
body[data-theme="dark"] main,
body[data-theme="dark"] footer { 
  background-color: inherit; 
}

/* ============================================
   GEAR SECTION
   ============================================ */
.gear {
  padding-block: 3rem;
  transition: background-color 0.3s ease;
}

.gear__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.gear-card {
  border: 1px solid var(--color-accent-2);
  padding: 1.5rem;
  border-radius: 4px;
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gear-card:hover {
  box-shadow: var(--shadow-md);
}

.gear-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.gear-card__title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.gear-list {
  list-style: none;
  font-size: 0.9375rem;
  padding: 0;
}

.gear-list li {
  padding-block: 0.25rem;
  border-bottom: 1px dashed var(--color-accent-2);
  transition: border-color 0.3s ease;
}

.gear-list li:last-child {
  border-bottom: none;
}

/* ────────────────────── FOOTER ────────────────────── */
.footer {
  color: var(--text-primary);
  padding-block: 2.5rem;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer__title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
[data-theme="dark"] .footer__title {
  color: var(--text-primary-dk);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 2.5rem;
}

.footer__copyright {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

[data-theme="dark"] .footer {
  background: var(--menu-bg-dark);
}