/* Global reset and basic settings */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden; /* Prevents horizontal scroll */
    line-height: 1.6;
    color: #333;
    background-color: #6c55ae1b;
}

/* Header styles including navbar and logo */
header {
    background-color: #7657cdc7;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; position: sticky;
    top: 0;
    backdrop-filter: blur(2px);

}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    height: 50px;
}

/* Navigation menu styles */
.navbar nav {
    display: flex;
    align-items: center;
}

.navbar nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar nav ul li {
    margin-left: 20px;
}

.navbar nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar nav ul li a:hover, .navbar nav ul li a:focus {
    color: #ccc;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hamburger menu for mobile view */
.hamburger-menu {
    display: none;  /* Hidden by default, visible on mobile */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    height: 30px;
    width: 30px;
}

.hamburger-menu .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
}

@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
    }

    .navbar nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        padding: 20px;
        background-color: #6247aa;
        z-index: 1000; /* ensures the menu is above other content */
    }

    .navbar nav.active {
        display: flex;
    }

    .hamburger-menu {
        display: flex;
    }

    .navbar nav ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar nav ul li {
        text-align: center;
        width: 100%;
    }

    .navbar nav ul li a {
        display: block;
        padding: 12px 20px;
        width: 100%;
    }
}

/* Hero section styles */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-color: #6247aa;
    background-image: linear-gradient(316deg, #6247aa 0%, #a594f9 74%);
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

/* Form styling within hero section */
.url-form {
    display: flex;
    max-width: 600px;
    width: 100%;
}

.url-form input[type="url"], .url-form button {
    padding: 15px;
    border: none;
    font-size: 1.2em;
    outline: none;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    padding-left: 20px;
}

.url-form input[type="url"] {
    flex-grow: 1;
    margin-right: -5px;
}

.url-form button {
    background-color: #a594f9;
    color: white;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

.url-form button:hover {
    background-color: #9277d5;
}

/* About us section */
.about-us {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    background-color: #6d55ae01;
    margin-top: 40px;
    flex-wrap: wrap;
}

.about-us .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-us .image img {
    width: 300px;
    height: auto;
    margin-right: 20px;
}

.about-us .text {
    max-width: 600px;
    color: #333;
    margin-right: 20px;
    
}

.about-us .text h2 {
    color: #6247aa;
    margin-bottom: 15px;
}

.about-us .text p, .about-us .text ul {
    text-align: justify;
    margin-bottom: 10px;
}

.about-us .text ul li {
    margin-bottom: 5px;
}

@media (max-width: 1024px) {
    .about-us .container {
        flex-direction: column;
        text-align: center;
    }

    .about-us .image img {
        margin-bottom: 20px;
        margin-right: 0;
    }

    .about-us .text {
        max-width: 100%;
}}
@media (max-width: 630px) {
    .url-form{
        max-width: 500px;
    }
    .input-container{
        max-width: 400px;
    } 
}
@media (max-width: 511px) {
    .url-form{
        max-width: 400px;
    }
    .input-container{
        max-width: 400px;
    } 
}
@media (max-width: 401px) {
    .url-form{
        max-width: 370px;
    }
    .input-container{
        max-width: 370px;
    } 
}
@media (max-width: 375px) {
    .url-form{
        max-width: 340px;
    }
    .input-container{
        max-width: 340px;
    } 
}
@media (max-width: 365px) {
    .url-form{
        max-width: 300px;
        margin-left:-55px !important;
    }
    .input-container{
        max-width: 300px;
    } 
}
@media (max-width: 350px) {
    .url-form{
        max-width: 150px;
        margin-left:-190px !important;
    }
    .input-container{
        max-width: 200px;
    } 
}
@media (max-width: 320px) {
    .url-form{
        max-width: 50% !important;
        margin-left:-220px !important;
    }
}
/* Footer styling */
footer {
    text-align: center;
    padding: 10px;
    background-color: #6247aa;
    color: white;
}
.input-container {
    margin-top: 30px;
    display: flex;
    align-items: center;
    border: 1.5px solid #fff;
    padding: 5px;
    padding-left:10px !important ;
    border-radius: 100px;
    max-width: 600px;
    width: 90%;
  }
  .input-box {
    flex: 1;
    border: none;
    padding: 5px;
    outline: none; 
    font-size: 15px;
    color: #fff;
    letter-spacing: 1px;
    background-color: transparent;
  }
  .copy-icon {
      font-size: 20px;
  cursor: pointer;
  position: relative;
  right: 9px;
  color: #fff;
  }
  .link-icon {
      font-size: 18px;
  cursor: pointer;
  position: relative;
  margin-right: 9px;
  color: #fff;
  }
  .copied-message {
    color: #fff;
    display: none;
    margin-left: 214px;
    margin-top: -61px;
    position: absolute
  }
  ::-webkit-scrollbar {
    width: 0em;
}