
* {
    margin: 0;
    box-sizing: border-box;
    padding: 0;
    scroll-behavior: smooth;
}


body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #393939;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #333;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(51, 51, 51, 0.9);
}

header h1 {
    color: white;
    font-size: 1.8em;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.25rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    background: #333;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
}


.banner {
    background: url('./imgs/Cover Img.jpeg') no-repeat center center / cover;
    height: 37.5vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 86px;
    max-width: 100%;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner h1 {
    color: white;
    font-size: 3em;
    position: relative;
    z-index: 2;
}


section {
    padding: 3.75rem 1.25rem;
    max-width: 75rem;
    margin: 3.75rem auto 0;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 1.25rem;
margin-top: 25px;
}


.section-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: calc(33.333% - 20px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-card img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.project-card h3 {
    font-size: 1.5em;
    margin: 1rem 0 0.5rem;
}

.project-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.project-card .read-more {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.project-card .read-more:hover {
    text-decoration: underline;
}


#aboutMe {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    font-size: 1.2rem;
}

#aboutMe img {
    max-width: 300px;
    height: auto;
    border-radius: 5px;
}

#aboutMe p {
    margin: 0;
    line-height: 1.5;
}


.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill {
    flex: 1;
    max-width: calc(33.333% - 20px);
}

.progress-bar {
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
    margin-top: 5px;
}

.progress {
    background: #4caf50;
    height: 100%;
    transition: width 0.5s ease;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.gallery-grid .grid-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}


footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 15px;
    margin-top: 20px;
}

footer h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

footer form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

footer form label {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

footer form input,
footer form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

footer form button {
    background-color: #ff7043;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

footer form button:hover {
    background-color: #e64a19;
}

footer p {
    margin-top: 20px;
    font-size: 0.9rem;
}

footer a {
    color: #ff7043;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}



.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}


@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 1rem;
        border-radius: 5px;
        z-index: 100;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    nav ul li a {
        font-size: 1.2rem;
    }
}
