* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-inline-size: 100%;
}

body {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #070707;
  padding: 3rem;

  background: fixed
      linear-gradient(#070707, #070707 6px, transparent 6px, transparent),
    fixed linear-gradient(transparent, #fff 90%),
    fixed
      repeating-linear-gradient(
        #efefef,
        #efefef 1px,
        transparent 1px,
        transparent 40px
      ),
    fixed
      repeating-linear-gradient(
        to right,
        #efefef,
        #efefef 1px,
        transparent 1px,
        transparent 40px
      )
      white;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.5;
  text-align: center;
  margin-block-end: 1em;
}

nav {
  width: auto;
  background: rgb(255, 255, 255);
  color: rgba(0, 0, 0, 0.87);
  -webkit-clip-path: circle(24px at 30px 24px);
  clip-path: circle(24px at 32px 24px);
  -webkit-transition: -webkit-clip-path 0.5625s, clip-path 0.375s;
  transition: -webkit-clip-path 0.5625s, clip-path 0.375s;
  /* adding this for mobile */ 
  cursor: pointer; 
  -webkit-tap-highlight-color: transparent;

}

nav:hover {
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
  -webkit-transition-duration: 0.75s;
  transition-duration: 0.75s;
  -webkit-clip-path: circle(390px at 225px 24px);
  clip-path: circle(390px at 150px 24px);
}

nav a {
  display: block;
  line-height: 20px;
  padding: 0 20px;
  color: inherit;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 0.85rem;
  white-space: nowrap;
  text-align: left;
}

nav a:hover { background: #ffe082; }

a:active { background: #ffca28; }

.navicon {
  padding: 23px 20px;
  cursor: pointer;
  -webkit-transform-origin: 32px 24px;
  -ms-transform-origin: 32px 24px;
  transform-origin: 32px 24px;
}

.navicon div {
  position: relative;
  width: 25px;
  height: 2px;
  background: rgba(0, 0, 0, 0.87);
}

.navicon div:before,
.navicon div:after {
  display: block;
  content: "";
  width: 25px;
  height: 2px;
  background: rgba(0, 0, 0, 0.87);
  position: absolute;
}

.navicon div:before { top: -5px; }

.navicon div:after { top: 5px; }

/* Container for your hamburger button */
.menu-toggle {
    position: fixed; /* or absolute, depending on your current setup */
    top: 30px;       /* Increase this number until it sits comfortably below the line */
    right: 24px;     /* Keeps it aligned to the right side */
    z-index: 100; /* keeps it above other backgroind layers */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    /* Use a soft, modern light background with slight transparency */
    /*background: rgba(255, 255, 255, 0.15); */
    background: rgba(0, 0, 0, 0.05); 
    backdrop-filter: blur(8px); /* Trendy glassmorphism effect */
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    /* Push the icon down */
    margin-top: 20px;
}

/* Subtle hover effect to make it feel premium */
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-header {
  display: grid;
  /* 
     Creates an invisible left column (1fr), a centered content area (auto), 
     and an invisible right column (1fr). 
  */
  grid-template-columns: 1fr auto 1fr;
  align-items: center; /* Keeps content vertically centered */
  width: 100%;
}

.nav-container {
  grid-column: 3; /* Locks navigation to the far left invisible column */
  grid-row: 1;
  justify-self: end;
  margin-top: 10px;
}

.description-container {
  grid-column: 2; /* Locks description to the centered content area */
  grid-row: 1;
  justify-self: start;
  align-self: start;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(to right, #d7d3d3, #8e8c8c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent

}

.hero-section {
    text-align: center;
    padding: 1px 20px 5px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: linear-gradient(to right, #d7d3d3, #8e8c8c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: #9da2a9;
}

/* Bento Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

.bento-card {
    background: #161921;
    border: 1px solid #262930;
    border-radius: 24px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 240px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.bento-card:hover {
    transform: translateY(-6px);
    border-color: #4f46e5; /* Accent color push */
}

.card-content span {
    font-size: 1.0rem;
    letter-spacing: 2px;
    color: #6366f1;
    font-weight: 600;
}

.card-content h2 {
    color: #9da2a9;
    font-size: 1.8rem;
    margin: 8px 0;
}

.card-content p {
    color: #8a8f98;
    line-height: 1.5;
    margin: 0;
}