@import url('https://fonts.googleapis.com/css2?family=Fira+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: bisque;
}

.sidebar {
    position: absolute;
    background-color: rgb(192, 182, 182);
    width: 250px;
    font-family: 'Fira Sans', sans-serif;
    height: 100vh;
    transition: transform 0.3s ease-in;
}

.sidebar nav {
    padding: 45px;
}

.sidebar nav li {
    list-style: none;
    font-size: 30px;
    padding: 33px 0;
}

.sidebar nav li a {
    text-decoration: none;
    color: black;
}

.main {
    width: 90vw;
}

.container {
    display: flex;
    flex: 1;
}

.infocontainer {
    height: 58vh;
    width: 80vw;
    margin: 144px auto;
    display: flex;
    justify-content: space-around;
}

.devinfo {
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-family: 'Source Code Pro', monospace;
}

.hello {
    font-size: 65px;
}

.name {
    font-size: 50px;
    font-weight: bold;
    font-family: 'Fira Sans', sans-serif;
}

.about {
    font-size: 40px;
}

.moreabout {
    font-size: 22px;
    margin: 10;
    padding: 10;
    font-family: 'Fira Sans', sans-serif;
}

.buttons {
    margin-top: 34px;
}

.buttons button {
    padding: 9px 14px;
    border-radius: 22px;
    color: white;
    background-color: dodgerblue;
    font-weight: bold;
    font-size: 21px;
    margin: 0 3px;
    cursor: pointer;
}

.buttons button:hover {
    background-color: white;
    color: dodgerblue;
}

.devpic {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border: 5px solid rgb(12, 12, 12);
    border-radius: 50%;
    box-shadow: 0 0 30px 10px rgb(72, 170, 211);
}

.devpic img {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    object-fit: cover;
}

.contactform {
    font-family: 'Fira Sans', sans-serif;
    padding-top: 144px;
    padding: 0 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.contactform h1 {
    font-family: 'Source Code Pro', monospace;
    padding: 12px 0;
    text-align: center;
}

/* .contactform form {
    display: flex;
    flex-direction: column;
    align-items: center;
} */
.contactform {
    font-family: 'Fira Sans', sans-serif;
    padding: 20px; /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto; /* Auto height for dynamic content */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    max-width: 350px; /* Reduced width */
    margin: auto; /* Center horizontally and vertically */
    border-radius: 8px;
    position: absolute; /* Allows for centering in combination with transform */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the box exactly in the middle */
}



.contactform form div {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.contactform form div input {
    width: 26vw;
    max-width: 400px;
    border-radius: 5px;
    margin: 6px 0;
    padding: 8px;
    border: 1px solid #ccc;
}

.contactform form div #emailHelp {
    font-size: 11px;
    color: midnightblue;
    margin: 5px 0 0;
}

.contactform form .submit-button {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 22px;
    color: white;
    background-color: dodgerblue;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    border: none;
}

.contactform form .submit-button:hover {
    background-color: white;
    color: dodgerblue;
}

.intro h2 {
    font-family: 'Fira Sans', sans-serif;
    font-style: normal;
    margin: 12px;
}

.intro p {
    font-family: 'Fira Sans', sans-serif;
    margin: 12px;
}

.skill {
    width: 10px;
    height: 23px;
}

.skillcontainer {
    padding: 12px;
}

.hamburger {
    position: absolute;
    cursor: pointer;
    top: 10px;
    left: 10px;
}

.cross {
    margin-left: 185px;
    margin-top: 10px;
}

.ham {
    margin-top: 10px;
    margin-left: 10px;
}

.intro {
    margin: 10px 88px;
}

.sidebarGo {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.hire {
    margin: 10px 88px;
    text-align: center;
}

footer {
    position: absolute;
    font-family: 'Fira Sans', sans-serif;
    bottom: 10px;
    font-size: 0.9rem;
    color: #100202da;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.social-icons {
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.icon {
    font-size: 1.8rem;
    color: black;
    transition: color 0.3s;
}

.icon:hover {
    color: #007bff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 200px;
        transform: translateX(-100%);
        position: absolute;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .infocontainer {
        flex-direction: column;
        width: 90vw;
    }

    .devpic {
        width: 150px;
        height: 150px;
        right: 50%;
        transform: translateX(50%) translateY(-80px); /* Moves the image above the text */
    }

    .contactform form div input {
        width: 80%;
    }

    footer {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70%;
    }

    .infocontainer {
        margin: 20px auto;
        width: 95vw;
    }

    .hello {
        font-size: 45px;
    }

    .name {
        font-size: 35px;
    }

    .about {
        font-size: 28px;
    }

    .buttons button {
        padding: 7px 10px;
        font-size: 16px;
    }

    .contactform form div input {
        width: 90%;
    }

    footer {
        flex-direction: column;
        gap: 5px;
    }

    .social-icons {
        flex-wrap: wrap;
    }

    /* Adjust profile picture and position on mobile */
    .devpic {
        width: 120px;
        height: 120px;
        right: 50%;
        transform: translateX(50%) translateY(-60px); /* Moves the image above the text */
    }

    .devpic img {
        width: 100%;
        height: 100%;
        max-width: 120px;
        max-height: 120px;
    }

    .devinfo {
        margin-top: 20px; /* Provide space for the image */
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 60%;
    }

    .hello {
        font-size: 35px;
    }

    .name {
        font-size: 25px;
    }

    .about {
        font-size: 20px;
    }

    .contactform h1 {
        font-size: 1.2rem;
    }

    .contactform form div input {
        width: 100%;
    }

    .buttons button {
        font-size: 14px;
        padding: 5px 8px;
    }

    footer {
        gap: 3px;
    }

    /* Adjust Profile Picture for Mobile */
    .devpic {
        width: 100px;
        height: 100px;
        right: 50%;
        transform: translateX(50%) translateY(-50px); /* Moves the image above the text */
    }

    .devpic img {
        width: 100%;
        height: 100%;
        max-width: 100px;
        max-height: 100px;
    }

    .devinfo {
        margin-top: 30px; /* Provide more space for mobile */
    }
}

/* Continuous Typing Animation */
@keyframes typing {
    0% {
        width: 0;
    }
    25% {
        width: 10%;
    }
    50% {
        width: 50%;
    }
    75% {
        width: 90%;
    }
    100% {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Apply the animation for continuous typing */
.about {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 4s steps(30) infinite, blink 0.75s step-end infinite;
}
