/* Global Reset & Variables */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --soft-orange: hsl(35, 77%, 62%);
    --soft-red: hsl(5, 85%, 63%);

    /* Neutral Colors */
    --off-white: hsl(36, 100%, 99%);
    --grayish-blue: hsl(233, 8%, 79%);
    --dark-grayish-blue: hsl(236, 13%, 42%);
    --very-dark-blue: hsl(240, 100%, 5%);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 5rem auto;
    width: 1000px;
    height: 800px;
    background-color: var(--off-white);
}
 
body {
    font-family: 'Inter', sans-serif;
    background: #fff;
  }
  
  /* Navigation Base */
  nav.main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid #ddd;
    position: relative;
  }
  
  nav.main a {
    text-decoration: none;
    color: inherit;
  }
  
  nav.main img {
    max-width: 150px;
  }
  
  /* The traditional nav list */
  .nav .navbar {
    list-style: none;
    display: flex;
  }
  
  .nav .navbar li {
    margin-left: 2rem;
  }
  
  .nav .navbar a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
  }
  
  .nav .navbar a:hover {
    color: #000;
  }
  
  /* Hamburger toggle button (hidden on desktop) */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
  }
  
  /* Hamburger styling */
  .hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    position: relative;
    transition: background 0.3s ease;
  }
  
  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 2px;
    background: #333;
    transition: transform 0.3s ease;
  }
  
  .hamburger::before {
    top: -8px;
  }
  
  .hamburger::after {
    top: 8px;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    /* Show hamburger menu */
    .menu-toggle {
      display: block;
    }
    
    /* Hide the traditional navigation menu initially */
    .nav .navbar {
      flex-direction: column;
      position: absolute;
      top: 100%;
      right: 0;
      width: 200px;
      background: #fff;
      box-shadow: 0 2px 5px rgba(0,0,0,0.3);
      display: none;
    }
    
    /* Center items in mobile menu */
    .nav .navbar li {
      margin: 1rem 0;
      text-align: center;
    }
    
    /* When active, display the mobile menu */
    .nav .navbar.active {
      display: flex;
    }
    
    /* Toggle Button Animation */
    .menu-toggle.active .hamburger {
      background: transparent;
    }
    
    .menu-toggle.active .hamburger::before {
      transform: rotate(45deg);
      top: 0;
    }
    
    .menu-toggle.active .hamburger::after {
      transform: rotate(-45deg);
      top: 0;
    }
  }


  /* Main Container */
.main {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Better than align-content for flex items */
    padding: 2rem;
}

  /* Navbar List Styles */
.navbar {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    display: inline;
    margin-right: 15px;
}

.navbar a {
    font-family: sans-serif;
    text-decoration: none;
    color: var(--grayish-blue);
}

.navbar a:hover {
    text-decoration: underline;
}

  /* Inline Link (e.g., within list items) */
li > a {
    font-weight: lighter;
}

  /* Content Grid */
.body {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

  /* Content Blocks */
.web3-desktop {
    max-width: 41.2rem;
    max-height: 20rem;
    grid-column: 1 / span 2;
}

.grid-2 {
    background-color: var(--very-dark-blue);
    padding: 15px;
    line-height: 25.5px;
    grid-column: 3 / 4;
    grid-row: -4 / -2;
}

  /* Typography */
.top {
    color: var(--very-dark-blue);
    font-size: 3rem;
    font-weight: 800;
    line-height: 42px;
}

h2 {
    color: var(--off-white);
    margin-bottom: 1rem;
}

h3 {
    color: var(--soft-orange);
    margin-bottom: 1rem;
}

h4 {
    color: var(--very-dark-blue);
    margin-bottom: 1rem;
}

p {
    color: var(--grayish-blue);
    margin-bottom: 1rem;
}

  /* Other Elements */
hr {
    margin: 1rem;
    width: 90%;
}

.sub-2 {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.num {
    color: var(--soft-red);
    margin-bottom: 1rem;
}

.pics {
    max-width: 6rem;
    max-height: 8rem;
}

.span {
    text-align: left;
    line-height: 24px;
    border: none;
}

.click {
    background-color: var(--soft-red);
    border: none;
    padding: 10px;
}

.click a {
    text-decoration: none;
    color: var(--very-dark-blue);
}

  /* Responsive Design */

  /* Tablet Devices (max-width: 768px) */
@media (max-width: 768px) {
    body {
        margin: 2rem auto;
        width: 90%;
        height: auto;
    }

    nav > a {
        font-size: 2rem;
    }

    .main {
        flex-direction: column;
        text-align: center;
    }

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

    .web3-desktop {
        max-width: 100%;
        grid-column: span 2;
    }

    .grid-2 {
        grid-column: span 2;
    }
}

  /* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    body {
        margin: 1rem auto;
        width: 100%;
        height: auto;
    }

    nav > a {
        font-size: 1.5rem;
    }

    .main {
        flex-direction: row;
        justify-content: space-between;
    }

    .body {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
    }

    .navbar li {
        display: block;
        margin: 0.5rem 0;
    }

    /* Make key content blocks span full width */
    .web3-desktop,
    .grid-2 {
        grid-column: 1 / -1;
    }
}