body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background_image.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}

.profile-picture {
    position: absolute;
    top: 2%; /* Adjust this value to position the image vertically */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.profile-picture img {
    width: 175px; /* Adjust the size of the image */
    height: 175px;
    border-radius: 50%; /* This makes the image circular */
    object-fit: cover; /* Ensures the image fits well within the circular frame */
    object-position: top center; /* Adjust this value to change the portion of the image that is visible */
}

.profile-name-container {
    position: absolute;
    top: 30%; /* Position below the profile picture */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-align: center;
    display: none; /* Hide by default on page load */
}

.profile-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #333; /* Cursor effect */
    width: 0; /* Start with zero width */
    transition: width 0.8s steps(5, end); /* Typing animation */
}

.profile-name.full-width {
    width: max-content; /* Full width when animation complete */
    border-right: none; /* Remove cursor when complete */
}

.toggle-name-btn {
    position: absolute;
    top: 18%; /* Position to the right of profile picture */
    left: 58%; /* Adjust this to position horizontally */
    z-index: 2;
    padding: 8px 12px;
    font-size: 0.9em;
    background-color: #6903cf;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.profile-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-name-btn:hover {
    background-color: #e44ed3;
}

.hero-content {
    max-width: 600px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    font-style: italic;
    color: blue;
    position: relative;
    z-index: 0;
    margin-top: 100px;
    /* add shadow*/
    box-shadow: 0 8px 16px rgba(0, 0, 0, 1);
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: red; /* Specific style for the main title */
    font-style: italic; /* Specific style for the main title */
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: darkgray; /* Different color for the subtitle */
    font-style: normal; /* Different style for the subtitle */
}

.hero h1 {
    color: blue; /* overtakes the defaut style indicated for all content in hero-content class*/
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

#cta-button {
    padding: 12px 24px;
    font-size: 1em;
    background-color: orange;
    color: white;
    border: solid 2px black;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.15s;
}

#cta-button:hover {
    background-color: #0056b3;
}

.misc-text {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: underline;
    padding: 15px;
    background-color: rgba(129, 192, 221, 0.70);
    border: 2px solid yellow; 
    border-radius: 5px;
    position: absolute; /* Position the element absolutely within the hero */
    bottom: 10%; /* Adjust this value to position the element vertically */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1; /* Ensure it is above the background */
    color: red; /* Adjust text color as needed */
}
