/* Default styles */

* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.hero {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(to right,#221f1f2a, #0c0c0c5e),url('./images/home.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.logo {
    width: 110px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px; /* Positioning the logo on the left */
}

.color-change {
    color: rgb(80, 160, 80); 
}

.content {
    color: #fff;
    position: absolute;
    top: 50%;
    left: 4%;
    transform: translateY(-50%);
    z-index: 2;
}

h1 {
    font-size: 4em; /* Adjust font size for responsiveness */
    margin: 10px 0 30px;
    line-height: 1.2;
}

.content span{
    color: rgb(9, 150, 9);
    font-size: 1.2em; /* Adjust font size for responsiveness */
    animation: span 5s ease-in-out forwards; /* Pulse animation for span */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.side-bar {
    width: 50px;
    height: 100vh;
    background: linear-gradient(#363939,#000729);
    position: fixed;
    background: rgba(102, 100, 100, 0.5);
    right: 0;
    top: 0;
}

.menu {
    display: block;
    text-align: center;
    margin: 40px auto 0;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.social-links img,
.useful-links img {
    width: 25px;
    margin: 5px auto;
    cursor: pointer;
}

.social-links {
    width: 50px;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

.useful-links {
    width: 50px;
    text-align: center;
    position: absolute;
    bottom: 30px;
    color: #fff;
}

button {
    font-size: 1.6em; /* Adjust font size for responsiveness */
    padding: 20px 30px;
    outline: none;
    border: none;
    cursor: pointer;
    background: none;
    border: 2px solid floralwhite;
    border-radius: 30px;
    cursor: pointer;
    color: rgb(80, 160, 80);
    display: inline-block;
    text-align: center;
    transition: all .3s ease-in-out;
    animation: buttonAnim 5s ease-in-out forwards; /* Button animation */
}

@keyframes buttonAnim {
    0% {
        opacity: 0;
        transform: scale(1) rotateZ(0);
    }
    49% {
        opacity: 1;
        transform: scale(.8) rotateZ(0);
    }
    100% {
        transform: scale(.8) rotatex(45deg);
    }
}

button:hover,
button:active {
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
    color: #070707;
    box-shadow: 0 0 10px #8594e4, 0 0 40px #8594e4, 0 0 80px #8594e4;
    background: rgb(15, 194, 15);
    transform: scale(1.1);
}

/* Responsive styles */

@media screen and (max-width: 768px) {
    .content {
        left: 2%;
    }

    .logo {
        left: 10px; /* Adjust logo position for smaller screens */
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 3em;
    }

    span {
        font-size: 1em;
    }

    .content {
        left: 1%;
    }

    .logo {
        left: 5px; /* Further adjust logo position for even smaller screens */
    }
}
