*{
    margin: 0;
    padding: 0;
    font-family: 'poppins',sans-serif;
    box-sizing: border-box;
}
.hero{
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    background-image: url('speech.webp');
}
.hero h1{
    font-size: 45px;
    font-weight: 500;
    margin-top: -50px;
    margin-bottom: 50px;
}
.hero h1 span{
        color: #ff2963; /* Your desired color */   
    }
textarea{
    width: 600px;
    height: 250px;
    background:darkgrey;
    color: black;
    font-size: 22px;
    border: 0;
    outline: 0;
    padding: 20px;
    border-radius: 10px;
    resize: none;
    margin-bottom: 30px;
}
textarea::placeholder{
    font-size: 20px;
    color: black;
}
.row{
    width: 600px;
    display: flex;
    align-items: center;
    gap: 20px;
}
button{
    background: #ff2963;
    color: black;
    font-size: 16px;
    padding: 10px 21px;
    border-radius: 35px;
    border: 0;
    outline: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}
button img{
    width: 15px;
    margin-right: 10px;
}
select{
    flex: 1;
    color: white;
    background: dimgray;
    height: 50px;
    padding: 0 20px;
    outline: 0;
    border: 0;
    border-radius: 35px;
    appearance: none;
    background-image: url(dropdown.png);
    background-repeat: no-repeat;
    background-size: 15px;
    background-position-x: calc(100% - 20px);
    background-position-y: 20px;
}


nav {
    background: transparent;
    width: 80%; /* Adjust the width as per your design */
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align items to the left */
    position: fixed; /* Fix the nav at the top */
    top: 0; /* Align to the top of the viewport */
    left: 50%; /* Center the nav horizontally */
    transform: translateX(-50%); /* Adjust the position to be perfectly centered */
    z-index: 1000; /* Ensure it appears above other content */
}

.logo {
    width: 100px;
    /* You can also adjust margin or padding if needed for positioning */
}

.user-pic{
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 30px; 
}
nav ul {
    width: 100%;
    text-align: right;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: medium;
    padding: 5px 10px; /* Add padding to create space inside the box */
    border-radius: 20px; /* Round corners */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth transition for both transform and color */
}

nav ul li a:hover {
    background-color: #f44336; /* Red background on hover */
    color: white; /* White text color on hover */
    transform: scale(0.9); /* Zoom-out effect on text */
}
.sub-menu-wrap {
    position: absolute;
    top: 100%; /* Align it below the navigation bar */
    right: -10%;  /* Align to the right side of the parent container (the nav) */
    width: 320px; /* Adjust the width as needed */
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out; /* Smooth transition */
}

.sub-menu-wrap.open-menu{
max-height: 400px;
}
.sub-menu{
    background: #fff;
    padding: 20px;
    margin: 10px;
}
.user-info{
    display: flex;
    align-items: center;
}
.user-info h3{
    font-weight: 500;
}
.user-info img{
    width: 60px;
    border-radius: 50%;
    margin-right: 15px;
}
.sub-menu hr{
    border: 0;
    height: 1px;
    width: 100%;
    background: #ccc;
    margin: 15px 0 10px;
}
.sub-menu-link{
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #525252;
    margin: 12px 0 ;
}
.sub-menu-link p{
    width: 100%;
}
.sub-menu-link img{
    width: 40px;
    background: #e5e5e5;
    border-radius: 50%;
    padding: 8px;
    margin-right:  15px;
}
.sub-menu-link span{
    font-size: 22px;
    transition: transform 0.5s;
}
.sub-menu-link:hover span{
    transform: translateX(5px)
}
.sub-menu-link:hover p{
    font-weight: 600;
}

 /* Logout Button Styles */
 #logout-button {
    position: absolute;
    top: 37px;
    right: 20px;
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
}

#logout-button:hover {
    background: #e53935;
}  

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 150%; /* Position it below the Features link */
    left: 55%;
    transform: translateX(-50%); /* Centers the dropdown */
    background-color: transparent;
    width: 250px; /* Smaller width */
    /* box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); */
    z-index: 1;
    list-style: none;
    padding: 0; /* Reduce padding for a smaller block */
    margin: 0;
    text-align: -webkit-auto; /* Center the text inside the dropdown */
    border-radius: 60px; /* Rounded edges */
}

/* Dropdown Items */
.dropdown-menu li {
    padding: 0; /* Smaller padding for each item */
}

.dropdown-menu li a {
    text-decoration: none;
    color: white;
    display: block;
    font-size: 18px; /* Smaller font size */
}

/* Show the dropdown */
.show-dropdown {
    display: block;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 5px 20px; /* Reduced padding for a compact footer */
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px; /* Smaller font size */
  }
  
  footer a {
    color: #ddd;
    text-decoration: none;
    font-size: 12px; /* Smaller font size for links */
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  
  .social-media {
    display: flex;
    gap: 10px; /* Space between social media icons */
  }
  
  .social-media a {
    color: white;
    font-size: 18px; /* Smaller icon size */
    text-decoration: none;
  }
  
  .social-media a:hover {
    color: #4CAF50; /* Change the hover color */
  }
  