html {
    background-color: #011818;
    color: #ddffff;
    font-family: 'Roboto Condensed';
}

body {
    margin: 0;
}

header {
    padding: 1.5rem 4rem;
    position: fixed;
    width: 95%;
    background-color: #011818;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand a {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ddffff;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #ddffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

main {
    padding: 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    font-size: 1.2rem;
}

.about {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 50px;
}

.about-text {
    flex: 1;
}

.about p {
    margin-bottom: 1rem;
}

.skills-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.skills p {
    margin-bottom: 1rem;
}

#skillslogo ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
    justify-content: space-between;
}

#skillslogo i {
    font-size: 3rem;
    transition: transform 0.2s ease;
    cursor: pointer;
}

#skillslogo i:hover {
    transform: scale(1.2);
}

.educationexperience {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: center;
    align-items: center;
}

.education,
.experience {
    text-align: center;
    border: 1px solid #333d3d;
    padding-top: 25px;
    padding-bottom: 25px;
    border-radius: 16px;
    height: 320px;
}

footer {
    text-align: center;
    padding: 1rem;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    align-items: center;
}

.project1, .project2, .project3, 
.project4, .project5, .project6, .project7 {
    border: 1px solid #333d3d;
    height: 180px;
    padding: 25px;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.project1:hover, .project2:hover, .project3:hover,
.project4:hover, .project5:hover, .project6:hover, .project7:hover {
    transform: translateY(-5px);
    border-color: #61DBFB;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-content {
    background-color: #011818;
    padding: 40px;
    border: 1px solid #333d3d;
    width: 60%;
    border-radius: 16px;
    position: relative;
    cursor: default;
}

#modalIcons {
    margin-top: 20px;
    font-size: 2rem;
    display: flex;
    gap: 15px;
}

.view-live-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    border: 1px solid #61DBFB;
    color: #ddffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-live-button:hover {
    background-color: #61DBFB;
    color: #011818;
    transform: scale(1.05);
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-links {
        gap: 15px;
        font-size: 1.2rem;
    }

    main {
        padding: 2rem;
    }

    .about {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 80px;
        gap: 2rem;
    }

    #skillslogo ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .educationexperience, .projects {
        grid-template-columns: 1fr;
    }
    
    .modal-content { 
        width: 90%; 
        padding: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .education, .experience {
        height: auto;
    }
}
