/* Theme variables */
:root {
  --font-primary: "neue-haas-grotesk-display", sans-serif;
  --font-secondary: "neue-haas-grotesk-display", sans-serif;
 
font-weight: 400;
font-style: normal;
  /* Minimal color scheme */
  --bg-primary: #fff;
  --bg-secondary: #f7f7f7;
  --text-primary: #000;
  --text-secondary: #555;
  --border-color: #000;
  --border-width: 1px;
  --footer-bg: #000;
  --footer-text: #fff;
  --footer-secondary: #999;
  
  /* Grid settings */
  --grid-columns: 12;
  --container-width: 1400px;
  --gutter: 24px;
  
  /* Typography scale system */
  --fs-body-min: .875rem;      
  --fs-body-max: 1rem;   
  
  --ratio-mobile: 1.3;
  --ratio-desktop: 1.3;
  
  /* Large: 2 ratio multiplications */
  --fs-large-min: calc(
    var(--fs-body-min) * var(--ratio-mobile) * var(--ratio-mobile)
  );
  --fs-large-max: calc(
    var(--fs-body-max) * var(--ratio-desktop) * var(--ratio-desktop)
  );
  
  /* Medium: 1 ratio multiplication */
  --fs-medium-min: calc(
    var(--fs-body-min) * var(--ratio-mobile)
  );
  --fs-medium-max: calc(
    var(--fs-body-max) * var(--ratio-desktop)
  );
  
  /* Small: same as base body */
  --fs-small-min: var(--fs-body-min);
  --fs-small-max: var(--fs-body-max);
  
  /* X-Small: slightly smaller than base */
  --fs-xsmall-min: calc(var(--fs-body-min) * 0.875);
  --fs-xsmall-max: calc(var(--fs-body-max) * 0.875);
  
  /* Heading sizes */
  /* H1 = 4 steps */
  --h1-min: calc(
    var(--fs-body-min) * var(--ratio-mobile) * var(--ratio-mobile) 
    * var(--ratio-mobile) * var(--ratio-mobile)
  );
  --h1-max: calc(
    var(--fs-body-max) * var(--ratio-desktop) * var(--ratio-desktop) 
    * var(--ratio-desktop) * var(--ratio-desktop)
  );
  
  /* H2 = 3 steps */
  --h2-min: calc(
    var(--fs-body-min) * var(--ratio-mobile) * var(--ratio-mobile) 
    * var(--ratio-mobile)
  );
  --h2-max: calc(
    var(--fs-body-max) * var(--ratio-desktop) * var(--ratio-desktop) 
    * var(--ratio-desktop)
  );
  
  /* H3 = 2 steps */
  --h3-min: calc(
    var(--fs-body-min) * var(--ratio-mobile) * var(--ratio-mobile)
  );
  --h3-max: calc(
    var(--fs-body-max) * var(--ratio-desktop) * var(--ratio-desktop)
  );
  
  /* H4 = 1 step */
  --h4-min: calc(
    var(--fs-body-min) * var(--ratio-mobile)
  );
  --h4-max: calc(
    var(--fs-body-max) * var(--ratio-desktop)
  );
  
  /* H5 = same as base body */
  --h5-min: var(--fs-body-min);
  --h5-max: var(--fs-body-max);
  
  /* H6 = slightly smaller */
  --h6-min: calc(var(--fs-body-min) * 0.875);
  --h6-max: calc(var(--fs-body-max) * 0.875);
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --text-primary: #fff;
  --text-secondary: #999;
  --border-color: #fff;
  --footer-bg: #000;
  --footer-text: #fff;
  --footer-secondary: #999;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: clamp(var(--fs-body-min),2vw,var(--fs-body-max));
  line-height: 1.4;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s, color 0.3s;
  letter-spacing: 0.05em;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(var(--h1-min), 5vw, var(--h1-max));
}

h2 {
  font-size: clamp(var(--h2-min), 4.5vw, var(--h2-max));
}

h3 {
  font-size: clamp(var(--h3-min), 4vw, var(--h3-max));
}

h4 {
  font-size: clamp(var(--h4-min), 3.5vw, var(--h4-max));
}

h5 {
  font-size: clamp(var(--h5-min), 3vw, var(--h5-max));
}

h6 {
  font-size: clamp(var(--h6-min), 2.5vw, var(--h6-max));
}

p {
  margin-bottom: 1rem;
}

/* Typography utility classes */
.large {
  font-size: clamp(var(--fs-large-min), 3vw, var(--fs-large-max));
}

.medium {
  font-size: clamp(var(--fs-medium-min), 2.5vw, var(--fs-medium-max));
}

.small {
  font-size: clamp(var(--fs-small-min), 2vw, var(--fs-small-max));
}

.xsmall {
  font-size: clamp(var(--fs-xsmall-min), 1.5vw, var(--fs-xsmall-max));
}

/*excepction*/
/*.new-zealand-format {*/
/*    opacity: .5;*/
/*    font-weight: 100;*/
/*    font-family: var(--font-secondary);*/
/*    font-size: clamp(var(--fs-large-min), 3vw, var(--fs-large-max));*/
/*    letter-spacing: normal;*/
/*    font-style: italic;*/
    
/*}*/
.div1 h1 {
 font-size: clamp(var(--fs-medium-min), 2.5vw, var(--fs-medium-max));
 font-weight: 300;
 letter-spacing: 0.05em;
 line-height: 1.4em;
}

/* 12-column grid system */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--gutter) / -2);
  margin-right: calc(var(--gutter) / -2);
}

.col {
  flex: 0 0 auto;
  padding-left: calc(var(--gutter) / 2);
  padding-right: calc(var(--gutter) / 2);
}

.col-1 { width: calc(100% / 12 * 1); }
.col-2 { width: calc(100% / 12 * 2); }
.col-3 { width: calc(100% / 12 * 3); }
.col-4 { width: calc(100% / 12 * 4); }
.col-5 { width: calc(100% / 12 * 5); }
.col-6 { width: calc(100% / 12 * 6); }
.col-7 { width: calc(100% / 12 * 7); }
.col-8 { width: calc(100% / 12 * 8); }
.col-9 { width: calc(100% / 12 * 9); }
.col-10 { width: calc(100% / 12 * 10); }
.col-11 { width: calc(100% / 12 * 11); }
.col-12 { width: 100%; }

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .col-lg-1 { width: calc(100% / 12 * 1); }
  .col-lg-2 { width: calc(100% / 12 * 2); }
  .col-lg-3 { width: calc(100% / 12 * 3); }
  .col-lg-4 { width: calc(100% / 12 * 4); }
  .col-lg-5 { width: calc(100% / 12 * 5); }
  .col-lg-6 { width: calc(100% / 12 * 6); }
  .col-lg-12 { width: 100%; }
}

@media (max-width: 992px) {
  .col-md-1 { width: calc(100% / 12 * 1); }
  .col-md-2 { width: calc(100% / 12 * 2); }
  .col-md-3 { width: calc(100% / 12 * 3); }
  .col-md-4 { width: calc(100% / 12 * 4); }
  .col-md-6 { width: calc(100% / 12 * 6); }
  .col-md-12 { width: 100%; }
}

@media (max-width: 768px) {
  .col-sm-1 { width: calc(100% / 12 * 1); }
  .col-sm-2 { width: calc(100% / 12 * 2); }
  .col-sm-3 { width: calc(100% / 12 * 3); }
  .col-sm-4 { width: calc(100% / 12 * 4); }
  .col-sm-6 { width: calc(100% / 12 * 6); }
  .col-sm-12 { width: 100%; }
}

@media (max-width: 576px) {
  .col-xs-12 { width: 100%; }
}

/* Header styles */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1.3em 0px 0em;
  background-color: var(--bg-primary);
  z-index: 100;
  transition: background-color 0.3s;
}

.logo {
  font-size: clamp(var(--fs-medium-min), 2.5vw, var(--fs-medium-max));
  font-weight: 500;
  letter-spacing: -0.01em;
}

.header-controls {
  display: flex;
  align-items: center;
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-link {
  margin-left: 24px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}

.nav-link.active {
  text-decoration: underline;
}

.work-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: clamp(var(--fs-body-min), 2vw, var(--fs-body-max));
  color: var(--text-primary);
  padding: 0;
}

.work-toggle span {
  display: inline-block;
  margin-right: 6px;
  font-size: clamp(var(--fs-medium-min), 2.5vw, var(--fs-medium-max));
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.work-toggle.open span {
  transform: rotate(45deg);
}

.work-toggle:hover {
  opacity: 0.7;
}

/* Work menu styles */
.work-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  padding: 100px 0px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.work-menu.open {
  transform: translateX(0);
}

.work-menu-items {
  display: flex;
  flex-direction: column;
}

.work-menu-item {
  margin-bottom: 40px;
  border-bottom: var(--border-width) solid var(--border-color);
  padding: 24px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.work-menu-item:hover {
  opacity: 0.7;
}

.work-menu-title {
  font-family: var(--font-secondary);
  font-size: clamp(var(--h2-min), 4.5vw, var(--h2-max));
  margin-bottom: 16px;
  font-weight: 500;
}

.work-menu-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-badge {
  padding: 4px 14px;
  border-radius: 50px;
  border: var(--border-width) solid var(--border-color);
  font-size: clamp(var(--fs-xsmall-min), 1.5vw, var(--fs-xsmall-max));
  background: transparent;
  color: var(--text-primary);
}

/* Page content */
.page-content {
  flex: 1;
  width: 100%;
}

.page-title {
  margin-bottom: 40px;
  font-size: clamp(var(--h2-min), 4.5vw, var(--h2-max));
  border-bottom: var(--border-width) solid var(--border-color);
  padding-bottom: 10px;
}

/* Home page */
.home-page {
  position: relative;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Parent grid */
.parent {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, auto);
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  padding: 1.5rem;
  width: 100%;
  margin-bottom: 80px;
  min-height: 90vh;
}

/* Grid areas */
.div1 { 
  grid-area: 1 / 1 / 2 / 4; 
  font-size: clamp(var(--fs-medium-min), 2.5vw, var(--fs-medium-max));
}
.div2 { 
  grid-area: 2 / 1 / 5 / 4; 
  background: #efefef;
  position: relative;
  min-height: 300px;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 5 / 3;
}
.div3 { 
  grid-area: 5 / 1 / 6 / 2; 
  cursor: pointer;
  z-index: 2;
  position: relative;
}
.div4 { 
  grid-area: 1 / 5 / 3 / 7; 
  background: #efefef;
  position: relative;
  min-height: 200px;
  cursor: pointer;
  overflow: hidden;
}
.div5 { 
  grid-area: 3 / 5 / 4 / 6; 
  cursor: pointer;
  z-index: 2;
  position: relative;
}
.div6 { 
  grid-area: 4 / 4 / 6 / 6; 
  background: #efefef;
  position: relative;
  min-height: 200px;
  cursor: pointer;
  overflow: hidden;
}
.div7 { 
  grid-area: 6 / 4 / 7 / 5; 
  cursor: pointer;
  z-index: 2;
  position: relative;
}

/* Ratio indicators */
.ratio-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(var(--h3-min), 4vw, var(--h3-max));
  font-weight: bold;
  opacity: 0.7;
}

.featured-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 101%;
  height: 101%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 0;
}

/* Hover effects for featured images */
.div2:hover .featured-image,
.div4:hover .featured-image,
.div6:hover .featured-image,
.div1-2:hover .featured-image,
.div2-2:hover .featured-image,
.div3-2:hover .featured-image {
  transform: scale(1.05);
}

/* Responsive adjustments for grid */
@media (max-width: 768px) {
  .parent {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .div1, .div2, .div3, .div4, .div5, .div6, .div7 {
    grid-area: auto !important;
  }
  
  .div2, .div4, .div6 {
    min-height: 200px;
  }
}

/* Work page */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
  border-bottom: var(--border-width) solid var(--border-color);
}

.filter-button {
  padding: 8px 16px;
  background-color: transparent;
  border: none;
  border-right: var(--border-width) solid var(--border-color);
  cursor: pointer;
  transition: opacity 0.2s;
  font-weight: 500;
  margin-bottom: -1px;
  color: var(--text-primary);
}

.filter-button:last-child {
  border-right: none;
}

.filter-button:hover {
  opacity: 0.7;
}

.filter-button.active {
  background-color: var(--bg-secondary);
  border-bottom: var(--border-width) solid var(--bg-primary);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 16px;
  margin: 40px 0;
}

.grid-item {
  position: relative;
  border: var(--border-width) solid var(--border-color);
  overflow: hidden;
}

/* Work item page styles */
.work-detail-page {
  padding: 40px 0;
}

.work-header {
  margin-bottom: 40px;
}

.work-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.work-nav-button {
  background: none;
  border: var(--border-width) solid var(--border-color);
  padding: 8px 16px;
  cursor: pointer;
  color: var(--text-primary);
  transition: background-color 0.2s;
}

.work-nav-button:hover {
  background-color: var(--bg-secondary);
}

.work-title {
  font-family: var(--font-secondary);
  font-size: clamp(var(--h1-min), 5vw, var(--h1-max));
  margin-bottom: 16px;
  font-weight: 500;
}

.work-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

/* Grid-based layout for work detail page */
.work-grid-container {
  margin-bottom: 60px;
}

.work-overview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .work-overview {
    grid-template-columns: 1fr;
  }
}

.work-details {
  border-top: var(--border-width) solid var(--border-color);
  padding-top: 20px;
}

.work-detail-item {
  margin-bottom: 16px;
}

.work-detail-label {
  font-weight: 500;
  margin-bottom: 4px;
}

.work-main-description {
  font-size: clamp(var(--fs-medium-min), 2.5vw, var(--fs-medium-max));
  line-height: 1.6;
  margin-bottom: 24px;
}

.work-text p {
  margin-bottom: 16px;
  font-size: clamp(var(--fs-body-min), 2vw, var(--fs-body-max));
  line-height: 1.6;
}

/* Grid items layout based on index */
.grid-item-hero {
  grid-column: span 12;
  height: 500px;
}

.grid-item-1 {
  grid-column: span 8;
  grid-row: span 2;
  height: 400px;
}

.grid-item-2 {
  grid-column: span 4;
  grid-row: span 2;
  height: 400px;
}

.grid-item-3 {
  grid-column: span 6;
  height: 300px;
}

.grid-item-4 {
  grid-column: span 6;
  height: 300px;
}

.grid-item-5 {
  grid-column: span 12;
  height: 500px;
}

.grid-item-6, .grid-item-7, .grid-item-8 {
  grid-column: span 4;
  height: 300px;
}

@media (max-width: 992px) {
  .grid-item-1, .grid-item-2, .grid-item-3, .grid-item-4 {
    grid-column: span 6;
  }
  
  .grid-item-6, .grid-item-7, .grid-item-8 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .grid-item-1, .grid-item-2, .grid-item-3, .grid-item-4, .grid-item-5, .grid-item-6, .grid-item-7, .grid-item-8 {
    grid-column: span 12;
  }
}

.grid-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-caption {
  margin-top: 8px;
  font-size: clamp(var(--fs-xsmall-min), 1.5vw, var(--fs-xsmall-max));
  color: var(--text-secondary);
  text-align: center;
}

/* Client quote */
.client-quote {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding: 60px 40px;
  font-size: clamp(var(--fs-medium-min), 2.5vw, var(--fs-medium-max));
  line-height: 1.6;
  text-align: center;
  font-style: italic;
  color: var(--text-primary);
  border-top: var(--border-width) solid var(--border-color);
  border-bottom: var(--border-width) solid var(--border-color);
}

.quote-mark {
  font-size: clamp(var(--h1-min), 5vw, var(--h1-max));
  font-family: var(--font-secondary);
  position: absolute;
  opacity: 0.2;
}

.quote-mark.start {
  top: 10px;
  left: 20px;
}

.quote-mark.end {
  bottom: 10px;
  right: 20px;
}

.quote-text {
  position: relative;
  z-index: 1;
}

/* Video player styles */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background-color: #000;
  overflow: hidden;
}

.div2 .video-container,
.div4 .video-container,
.div6 .video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-bottom: 0;
}

.video-hover-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.youtube-player iframe {
  width: 100%;
  height: 100%;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
  z-index: 10;
  opacity: 0;
}

.hovering .video-controls {
  opacity: 1;
}

.control-button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.control-button svg {
  width: 18px;
  height: 18px;
}

.progress-container {
  flex: 1;
  margin: 0 10px;
  display: flex;
  flex-direction: column;
}

.progress-bar {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.progress-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.time-display {
  color: white;
  font-size: clamp(var(--fs-xsmall-min), 1.5vw, var(--fs-xsmall-max));
  margin-top: 4px;
}

.volume-container {
  display: flex;
  align-items: center;
  width: 120px;
}

.volume-slider {
  width: 0;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  border-radius: 2px;
  cursor: pointer;
  transition: width 0.3s;
  overflow: hidden;
  margin-left: 5px;
}

.volume-container:hover .volume-slider {
  width: 80px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* About page */
.about-content {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
  margin-bottom: 60px;
}

.about-image {
  width: 33.333%;
  padding: 0 12px;
}

.about-text {
  width: 66.667%;
  padding: 0 12px;
}

@media (max-width: 768px) {
  .about-image,
  .about-text {
    width: 100%;
    margin-bottom: 20px;
  }
}

.about-image img {
  width: 100%;
  display: block;
  border: var(--border-width) solid var(--border-color);
}

.about-text p {
  margin-bottom: 16px;
  font-size: clamp(var(--fs-body-min), 2vw, var(--fs-body-max));
  line-height: 1.6;
}

.skills-section {
  margin-bottom: 60px;
  border-top: var(--border-width) solid var(--border-color);
  padding-top: 40px;
}

.skills-section h2 {
  margin-bottom: 30px;
  font-size: clamp(var(--h2-min), 4.5vw, var(--h2-max));
}

.skill-item {
  margin-bottom: 24px;
}

.skill-name {
  margin-bottom: 8px;
  font-weight: 500;
}

.skill-bar {
  height: 6px;
  background-color: var(--bg-secondary);
  overflow: hidden;
  margin-bottom: 4px;
}

.skill-bar-fill {
  height: 100%;
  background-color: var(--text-primary);
}

.skill-level {
  text-align: right;
  font-size: clamp(var(--fs-xsmall-min), 1.5vw, var(--fs-xsmall-max));
  color: var(--text-secondary);
}

/* Footer styles */
.site-footer {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 2rem;
  transition: background-color 0.3s;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-copyright {
  text-align: center;
  font-size: clamp(var(--fs-xsmall-min), 1.5vw, var(--fs-xsmall-max));
  color: var(--footer-secondary);
}

/* Theme toggle styles */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: opacity 0.2s;
  color: var(--text-primary);
  margin-left: 24px;
}

.theme-toggle:hover {
  opacity: 0.7;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.theme-toggle:focus {
  outline: none;
}

/* Sun icon */
.sun-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

/* Additional CSS to hide YouTube branding and extra elements */

/* Hide YouTube logo */
.youtube-player iframe {
  width: 100% !important;
  height: 100% !important;
}

/* Add styles to ensure YouTube videos only show the minimal controls */
.ytp-chrome-top {
  display: none !important;
}

.ytp-watermark {
  display: none !important;
}

/* YouTube player wrapper */
.video-hover-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Make YouTube only autoplay on hover */
.video-hover-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Fix YouTube iframe positioning */
.youtube-player {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Add these styles to make videos only play on hover */
.video-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.div2 .video-container,
.div4 .video-container,
.div6 .video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Fix for YouTube iframe ratio in grid items */
.div2 iframe,
.div4 iframe,
.div6 iframe {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
}


/* Smooth scrolling support styles */
.smooth-wrapper {
  overflow: hidden;
  position: relative;
}

.smooth-content {
  width: 100%;
  height: 100%;
}

/* Parallax ready elements */
[data-speed] {
  will-change: transform;
}

/* Animation states for elements */
.div1, .div2, .div3, .div4, .div5, .div6, .div7 {
  transition: opacity 0.25s ease;
}

/* Ensure featured images keep proper positioning */
.featured-image {
  will-change: transform;
}

/* Avoid conflicts with hover effects */
.div2:hover .featured-image,
.div4:hover .featured-image,
.div6:hover .featured-image {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

/* Optimize for ScrollTrigger performance */
.parent {
  will-change: opacity, transform;
}

/* Hide scrollbar but maintain functionality */
::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* Add perspective for 3D transforms */
.home-page {
  perspective: 1000px;
}

/* Remove focus outlines when using keyboard for navigation */
:focus-visible {
  outline: 2px solid var(--border-color);
  outline-offset: 2px;
}

/* Override any ScrollTrigger markers to ensure they don't interfere with layout */
.gsap-marker-scroller-start,
.gsap-marker-scroller-end,
.gsap-marker-start,
.gsap-marker-end {
  display: none !important;
}

/* Additional typography utility classes */
.action {
  line-height: 1em;
}