.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: black;
}

.nav-logo {
    color: white;
    font-size: 3.5rem;
    font-weight: 1000;
    font-family: serif
}

.nav-links {
    display: flex;
    gap: 64px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 1000;
    transition: .3s;
    font-size: 2.5rem;
}

.nav-links a:hover {
    opacity: .7;
    transition: .3s;
    transform: translateY(-3px)
}

body {
  /* Replace 'your-image.jpg' with your actual image path or URL */
  background: url('imgs/headimage.png') no-repeat center center fixed;
  background-size: cover;
  
  /* Optional: Ensures the body takes up the full height of the screen */
  margin: 0;
  min-height: 100vh; 

  color: white; /* The inside filling */
}

.title {
    margin-top: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    background-color: black;
    
    /* 1. Limit the width so it doesn't stretch edge-to-edge */
    width: max-content;       /* Shrinks the box to perfectly fit the text width */
    max-width: 80%;           /* Prevents it from breaking on smaller screens */
    
    /* 2. Center the box itself on the page */
    margin-left: auto;
    margin-right: auto;
    
    /* 3. Add internal padding so the text isn't suffocating */
    padding: 30px 60px;       /* 30px top/bottom, 60px left/right */
    
    /* 4. Round those corners! */
    border-radius: 20px;      /* Tweak this number to make it more or less round */
}

.title h1 {
    font-size: 5rem;
    color: white; 
    font-family: Arial, Helvetica, sans-serif
}

.title h2 {
    margin-top: -50px;
    font-size: 3.5rem;
    color: white; 
    font-family: serif
}

/* Phone styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .title {
        margin-top: 150px;
        width: 90%;
        max-width: 90%;
        padding: 20px;
        box-sizing: border-box;
    }

    .title h1 {
        font-size: 2rem;
        margin: 0;
    }

    .title h2 {
        font-size: 1.5rem;
        margin-top: 10px;
    }

    body {
        background-position: center;
        background-attachment: scroll;
    }
}
