body, h1, h2, p, ul {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0e2433;
    color: #ffffff;
    overflow-x: hidden;
}

nav {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
}

nav ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background: #0e2433;
    color: #ffffff;
    padding: 100px 20px;
    box-sizing: border-box;
}

#parallax {
    background: url('static/img/parallax.png') no-repeat fixed center center/cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content h1 {
    font-size: 2.5em; /* Match to About Me header */
    margin-bottom: 1em; /* Adjust margin for spacing */
}

.hero-content h1 span {
    color: #007bff;
}

.hero-content h2 {
    font-size: 2em;
    margin-top: 20px;
    color: #007bff;
}

.hero-content .button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Vertical spacing between buttons */
    margin-top: 20px; /* Vertical spacing between typewriter effect and buttons */
}

.hero-content a,
.hero-content button {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 5px;
    border: none;
    text-align: center;
    width: 200px; /* Make all buttons the same width */
}

.hero-content a:hover,
.hero-content button:hover {
    background: #0056b3;
}

section {
    padding: 100px 0;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.content {
    max-width: 800px;
    margin: auto;
}

#about p, #contact p {
    font-size: 1.2em;
    color: #ddd;
}

.projects-title {
    margin-bottom: 30px;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 2em;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    margin: 20px;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    opacity: 1; /* Start hidden for animation */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.project-card h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.project-card p {
    color: #666;
    margin-bottom: 10px;
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.project-card a:hover {
    background-color: #555;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contactForm input, #contactForm textarea {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

#contactForm button:hover {
    background-color: #0056b3;
}

#contactForm button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

form div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
    height: 150px;
}

form button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

form button:hover {
    background-color: #555;
}

button:hover {
    background-color: #0056b3;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    position: fixed;
    bottom: 0;
}

footer p {
    font-size: 1em;
    margin: 0;
}

h1 {
    margin-bottom: 50px;
    text-align: center;
    color: #ffffff;
    font-size: 2.5em;
}

input[type='text'], input[type='email'], textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    section {
        padding: 50px 20px;
    }

    h1 {
        font-size: 2em;
    }

    form {
        padding: 20px;
    }

    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-photo {
        margin-bottom: 20px;
    }

    .about-content {
        width: 100%;
    }
}

.about-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 50px;
    background-color: #1a1a1a;
}

.profile-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid #007bff;
}

.about-content {
    width: 60%;
    color: white;
}

.about-content h1 {
    color: #007bff;
    margin-bottom: 20px;
}

.technology-section {
    margin-top: 20px;
}

.technology-icons {
    display: flex;
    flex-wrap: wrap;
}

.technology-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 15px;
    background: #333;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    width: 100px;
}

.technology-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}

.technology-item p {
    margin: 0;
    color: #ffffff;
}

/* Typewriter Effect */
.typewriter h1, .typewriter h2 {
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 43% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange; }
}

/* Adjustments for Modal */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    animation: slideIn 0.5s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: bold;
    color: #333;
}

form input, form textarea {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

#responseMessage {
    font-size: 1em;
    text-align: center;
    margin-top: 10px;
}
