@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto Mono", monospace;
}

:root {
  --primary-color: #2c3333;
  --accent-1: #d3d3d3;
  --accent-2: #e7f6f2;
  --neutral-1: black;
  --neutral-2: white;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: var(--neutral-2);
  color: var(--neutral-1);
}

/* Navigation Styles */
.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Aligns nav items to the left by default */
  padding: 1rem;
  width: 100%; /* Ensure it takes up the full width */
}

.primary-nav {
  display: flex;
  list-style: none;
  gap: 16px;
  justify-content: flex-end; /* Aligns nav items to the right on larger screens */
  width: 100%;
}

/* Align nav items to the far left on mobile */
@media only screen and (max-width: 35em) {
  .navbar-nav {
    justify-content: flex-start; /* Align to the left on mobile */
  }
  .primary-nav {
    justify-content: flex-start; /* Align to the left on mobile */
  }
}

/* Rotating Logo */
.rotate {
  animation: rotation 7s infinite linear !important;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

/* Title Text Styling */
.title-text {
  font-size: 1rem; /* Default font size for mobile */
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
}

@media (min-width: 768px) {
  .title-text {
    font-size: 2rem; /* Font size for larger screens */
  }
}

/* Navbar styles */
header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align header content to the left */
  width: 100%; /* Ensure the header takes full width */
  padding: 1rem; /* Add some padding to the header */
  background-color: var(--primary-color);
}

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Aligns nav items to the left */
  padding: 1rem;
  width: 100%; /* Make sure it spans the full width */
}

.primary-nav {
  display: flex;
  list-style: none;
  gap: 16px;
  justify-content: flex-end; /* Align to the right by default */
}

.nav-link {
  color: white !important;
  transition: color 300ms ease-in-out;
}

.nav-link:hover {
  color: var(--accent-1); /* You can change the hover color if needed */
}

/* Hero section */
#hero {
  display: flex;
  align-items: center; /* Vertically center items */
  justify-content: flex-start; /* Align items to the left */
  gap: 16px; /* Add spacing between logo and text */
  background-color: var(--primary-color);
  margin-top: -2px;
  padding: 2.2rem;
  width: 100%; /* Full width */
  text-align: left;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  display: flex;
  align-items: center; /* Vertically center text with logo */
  justify-content: center;
  flex-grow: 1; /* Allow it to take up remaining space */
}

.hero-text-container h2 {
  font-size: 32px;
  color: var(--accent-1);
}

.hero-text-container p {
  font-size: 12px;
  color: var(--accent-2);
}

.hero-button {
  align-self: flex-start;
  font-size: 14px;
  padding: 1em;
  color: #212121;
  background-color: transparent;
  border: 1px solid var(--accent-2);
  box-shadow: 4px 4px 0px var(--accent-1);
  transition: 300ms ease-in-out;
}

.hero-button:hover {
  background-color: var(--accent-2);
  color: var(--primary-color);
}

/* Responsive Layout */
@media only screen and (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
