/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set background and font for the whole page */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #ece9e6, #ffffff);
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
    transition: background 0.4s ease;
}

/* Style the form */
form {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #74ebd5, #9face6);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

form:hover::before {
    opacity: 0.1;
}

form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Style the headings */
h2 {
    border-bottom: 3px solid #007BFF;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #007BFF;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Style the labels and inputs */
label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

input[type="text"], input[type="email"] {
    width: calc(100% - 22px);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus, input[type="email"]:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* Add styles for the submit button */
button {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

button:hover {
    background: linear-gradient(135deg, #0056b3, #003f7f);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

/* Style the resume display section */
#resumeDisplay {
    margin-top: 20px;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

#resumeDisplay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

#resumeDisplay:hover::before {
    opacity: 0.1;
}

#resumeDisplay:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#resumeDisplay h3 {
    margin-top: 0;
    color: #007BFF;
    border-bottom: 3px solid #007BFF;
    padding-bottom: 5px;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

#resumeDisplay p {
    margin: 10px 0;
    line-height: 1.6;
    color: #555;
}

#resumeDisplay .section {
    margin-bottom: 20px;
}

#resumeDisplay .section label {
    font-weight: 600;
    color: #333;
}

#resumeDisplay .section .value {
    font-size: 18px;
    color: #555;
}

#resumeDisplay .section .value span {
    display: block;
    margin-top: 5px;
    font-size: 16px;
    color: #666;
}

#resumeDisplay .section .value .skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#resumeDisplay .section .value .skills span {
    background-color: #007BFF;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
}

#resumeDisplay .section .value .about {
    font-style: italic;
    color: #444;
}

/* //for responsiveness// */
/* Base styles for mobile devices (small screens) */
@media (max-width: 600px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    form {
        padding: 20px;
        width: 100%;
    }

    input[type="text"], input[type="email"] {
        width: 100%;
        padding: 10px;
    }

    button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    #resumeDisplay {
        padding: 20px;
        font-size: 14px;
    }

    #resumeDisplay h3 {
        font-size: 20px;
    }

    #resumeDisplay .section {
        margin-bottom: 15px;
    }

    #resumeDisplay .section .value {
        font-size: 14px;
    }

    #resumeDisplay .section .value .skills span {
        font-size: 12px;
        padding: 4px 8px;
    }

    #resumeDisplay .section .value .about {
        font-size: 14px;
    }
}

/* Adjustments for tablets (medium screens) */
@media (min-width: 601px) and (max-width: 1024px) {
    body {
        padding: 20px;
        font-size: 16px;
    }

    form {
        padding: 25px;
        width: 90%;
        max-width: 700px;
    }

    input[type="text"], input[type="email"] {
        width: 100%;
        padding: 10px;
    }

    button {
        width: 100%;
        padding: 15px;
        font-size: 18px;
    }

    #resumeDisplay {
        padding: 25px;
        font-size: 16px;
    }

    #resumeDisplay h3 {
        font-size: 22px;
    }

    #resumeDisplay .section {
        margin-bottom: 20px;
    }

    #resumeDisplay .section .value {
        font-size: 16px;
    }

    #resumeDisplay .section .value .skills span {
        font-size: 14px;
        padding: 5px 10px;
    }

    #resumeDisplay .section .value .about {
        font-size: 16px;
    }
}

/* Adjustments for desktops (large screens) */
@media (min-width: 1025px) {
    body {
        padding: 30px;
        font-size: 18px;
    }

    form {
        padding: 30px;
        width: 60%;
        max-width: 800px;
    }

    input[type="text"], input[type="email"] {
        width: 100%;
        padding: 12px;
    }

    button {
        width: 100%;
        padding: 18px;
        font-size: 20px;
    }

    #resumeDisplay {
        padding: 30px;
        font-size: 18px;
    }

    #resumeDisplay h3 {
        font-size: 24px;
    }

    #resumeDisplay .section {
        margin-bottom: 25px;
    }

    #resumeDisplay .section .value {
        font-size: 18px;
    }

    #resumeDisplay .section .value .skills span {
        font-size: 16px;
        padding: 6px 12px;
    }

    #resumeDisplay .section .value .about {
        font-size: 18px;
    }
}
