*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
 font-family: 'Roboto', sans-serif;
}

.roboto-light-italic {
  font-family: "Roboto", serif;
  font-weight: 300;
  font-style: italic;
}


.homepage{
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header{
  text-align: center;
}


.header{
  position: absolute;
  font-family: "molot", sans-serif;
  font-weight: 10px;
  color: #fff;
  top: 8px;
  letter-spacing: 2px;
}

nav{
  width: 100%;
  position: absolute;
  top: 35px;
  padding: auto;
  text-align: center;
  padding: 14px 16px;
  align-items: center;
  transition: 1s;

}

#menu ul{
  text-align: center;
  padding: 10px;
}

#menu ul li{
  display: inline-block;
}

#menu ul li a{
  text-decoration: none; 
  padding: 0px 12px;
  color: #fff;
  font-family: 'roboto' sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}

#menu ul li a:hover{
  border-bottom: solid 4px #c23616;
}

.logo{
  width: 400px;
  height: 400px;
  position: absolute;
  top: 38%;
  left: 50%;
  right: 50%;
  transform: translate(-50%, -50px);

}

.logo img{
  width: 400px;
  height: 400px;
}

.content{
  text-align: center;
}

.content p{
  font-family: "Roboto", serif;
  font-weight: 500;
  color: #fff;
  font-style: italic;
  position: relative;
  text-transform: capitalize;
  bottom: 130px;
  letter-spacing: 1px;
}
.bg-video{
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/*Taken from YouTube because I havn't learned it yet*/

@media (min-aspect-ratio: 16/9){
  .bg-video{
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio: 16/9){
  .bg-video{
    width: auto;
    height: 100%;
  }
}

.second_page{
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

section{
  background: #2d3436;
}

.second_page h2{
  position: absolute;
  font-family: "Roboto", sans-serif;
  color: #fff;
  text-align: center;
  top: 20px;
  font-size: 30px;
  text-transform: uppercase;
}

.second_page h2{
  border-bottom: solid 1px #dfe6e9;
  margin-top: 10px;
  width: 26%;
  height: 40px;
}

#videos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

/* Base responsive settings */
:root {
  --container-width: min(1200px, 90%);
  --spacing-sm: clamp(0.5rem, 1vw, 1rem);
  --spacing-md: clamp(1rem, 2vw, 2rem);
  --spacing-lg: clamp(2rem, 4vw, 4rem);
  --h1-size: clamp(2rem, 5vw, 4rem);
  --h2-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* Container utilities */
.container {
  width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Navigation updates */
.nav-content {
  width: var(--container-width);
  margin: 0 auto;
  padding: var(--spacing-sm);
}

#menu ul {
  gap: clamp(1rem, 2vw, 2rem);
}

/* Hero section updates */
.hero-content {
  width: min(800px, 90%);
  padding: var(--spacing-md);
}

.hero-content h1 {
  font-size: var(--h1-size);
}

.tagline {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: var(--spacing-md);
}

/* Works section updates */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-md);
  width: var(--container-width);
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-logo img {
    height: 30px;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: var(--spacing-sm);
  }

  .tagline {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }
}

/* Device-specific optimizations */
/* For tablets in portrait mode */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-content {
    padding: var(--spacing-lg);
  }
}

/* For tablets in landscape mode */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .homepage {
    min-height: 100vh;
  }
}

/* For mobile devices in landscape */
@media (max-height: 480px) and (orientation: landscape) {
  .homepage {
    min-height: 120vh;
  }

  .hero-content {
    margin-top: 100px;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .cta-button:hover {
    transform: none;
  }

  #menu a {
    padding: var(--spacing-sm) 0;
  }
}

/* High-DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-logo img {
    transform: translateZ(0); /* Prevents blur on retina displays */
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .works-section {
    background: #1a1a1a;
  }

  .section-header h2 {
    color: #ffffff;
  }

  .section-subtitle {
    color: #cccccc;
  }
}

/* Print styles */
@media print {
  .bg-video,
  .video-grid,
  .cta-button {
    display: none;
  }

  .hero-content,
  .section-header {
    color: black;
    background: none;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}



