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

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Remove default button styles */
button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* Remove text decoration from links */
a {
  text-decoration: none;
  color: inherit;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
}

/* CSS Variables */
:root {
  /* Colors */
  --color-primary: #4361ee;
  --color-primary-light: #4895ef;
  --color-primary-dark: #3730a3;

  --color-secondary: #7209b7;
  --color-secondary-light: #9d4edd;
  --color-secondary-dark: #560bad;

  --color-text: #7209b7;
  --color-text-light: #6c757d;
  --color-background: #ffffff;

  /* Typography */
  --font-primary: "Inter", system-ui, -apple-system, sans-serif;
  --font-secondary: "Poppins", sans-serif;

  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
}

/* Typography Base Styles */
h1,
h2,
h3,
h4 {
  font-family: var(--font-secondary);
  line-height: 1.2;
  color: var(--color-text);
}

h2 {
  font-size: var(--text-2xl);
  margin-bottom: 1em;
}

h3 {
  font-size: var(--text-sm);
  margin-bottom: 1em;
  margin-top: 1em;
}

h4 {
  font-size: var(--text-xs);
}

p {
  font-size: var(--text-xs);
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-text-light);
}

/* Utility Classes */
.text-xs {
  font-size: var(--text-xs);
}
.text-sm {
  font-size: var(--text-sm);
}
.text-base {
  font-size: var(--text-base);
}
.text-lg {
  font-size: var(--text-lg);
}
.text-xl {
  font-size: var(--text-xl);
}
.text-2xl {
  font-size: var(--text-2xl);
}
.text-3xl {
  font-size: var(--text-3xl);
}
.text-4xl {
  font-size: var(--text-4xl);
}

.font-primary {
  font-family: var(--font-primary);
}
.font-secondary {
  font-family: var(--font-secondary);
}

.flex {
  display: flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}

.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

/* Navbar Styles */
.navbar {
  position: relative;
  padding: var(--spacing-md);
  background-color: var(--color-background);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-brand {
  font-size: var(--text-xl);
  font-weight: bold;
  color: var(--color-primary);
}

.navbar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  padding: 0;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text);
  transition: transform 0.3s ease;
}

.navbar-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(9px) rotate(45deg);
}

.navbar-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

.navbar-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-background);
  padding: var(--spacing-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.navbar-menu[data-visible="true"] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.navbar-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.navbar-menu a {
  color: var(--color-text);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a:focus {
  background-color: var(--color-primary-light);
  color: white;
}

#main {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  position: relative;
  height: 40vh;
  width: 100%;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  color: white;
  z-index: -1;
}

.hero-container {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-gradient-strip {
  position: absolute;
  width: 100%;
  height: 25vh;
  top: 10vh;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  z-index: 2;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: var(--spacing-lg);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 45%;
  height: 100%;
  color: whitet;
}

.hero-content h1,
.hero-content p {
  color: white;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 120%;
  height: auto;
  object-fit: contain;
}

/* Outline Section */
.outline {
  padding: var(--spacing-xl) var(--spacing-md);
}

.section-banner {
  height: 35vh;
  margin: 20px -10px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.section-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  padding: var(--spacing-md) 0;
}

.content-cell {
  background-color: var(--color-background);
  padding: var(--spacing-md);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.content-cell:hover {
  transform: translateY(-2px);
}

.numbering {
  min-width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  border-radius: 4px;
  margin-right: var(--spacing-md);
  color: white;
  font-weight: bold;
}

/* What is VR Section */
.what-is-vr,
.what-do-u-know {
  padding: var(--spacing-xl) var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

/* .text-content {
  max-width: 65ch;
  margin: 0 auto;
} */

.image1 {
  width: 100%;
  margin: var(--spacing-xl) 0;
  transform: translateX(-10px);
}

.img2 {
  width: 100%;
  margin: var(--spacing-xl) auto;
}

.what-do-u-know .text-content {
  flex-direction: column;
}

.what-do-u-know .img {
  margin: var(--spacing-md) -10px;
  width: 100%;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Media Queries */
@media screen and (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }

  .navbar-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0;
  }

  .navbar-menu ul {
    flex-direction: row;
    gap: var(--spacing-lg);
  }

  .hero {
    height: 60vh;
  }

  .hero-gradient-strip {
    height: 25vh;
    width: 90%;
  }

  .hero-content {
    width: 30%;
  }

  .hero-image {
    width: 60%;
    transform: translateY(30%);
    z-index: 3;
  }

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

  .what-is-vr {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
  }

  .image1 {
    display: none;
  }

  .img2 img {
    display: block;
  }

  .img2 {
    width: 100%;
    margin: 0;
  }

  .img2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
  }

  .img2 img:nth-child(2) {
    min-height: 30vh;
  }
  .img2 img:nth-child(1) {
    min-height: 19vh;
  }

  .text-content {
    margin: 0;
  }
}

/* Device orientation specific */
@media screen and (max-height: 800px) and (orientation: landscape) {
  .hero {
    height: 75vh;
  }

  .hero-image {
    width: 50%;
    transform: translateY(0%);
    z-index: 3;
  }

  .hero-gradient-strip {
    height: 45vh;
  }

  .section-banner {
    height: 75vh;
  }

  .what-is-vr {
    grid-template-columns: 1fr 1fr;
  }
}

/* For high-density screens */
@media screen and (min-width: 1280px) and (-webkit-min-device-pixel-ratio: 1.5),
  screen and (min-width: 1280px) and (min-resolution: 144dpi) {
  html {
    font-size: 112.5%; /* Slightly larger base font size for retina displays */
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .content-cell {
    border: 1px solid CanvasText;
  }

  .hero-gradient-strip,
  .numbering {
    border: 1px solid CurrentColor;
  }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.inpages-hero {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

h1 {
  color: white;
}

@media screen and (min-width: 1280px){
  #main {
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    margin-bottom: 0.5em;
  }
}

#logo {
  height: 50px;
  width: 50px;
  padding-left: 5px;
}