/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    box-sizing: border-box;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    padding-left: 0;
    margin: 0 auto;
}

nav ul li {
    margin: 0 20px;
    flex: 0 1 auto;
    min-width: 90px;
    text-align: center;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007aff;
}

@media (max-width: 600px) {
    header {
        align-items: stretch;
    }
    nav ul {
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        padding: 0;
        margin: 0;
    }
    nav ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
    }
    nav ul li:last-child {
        border-bottom: none;
    }
}

#main {
    background: linear-gradient(135deg, #e0f7fa, #b3e5fc);
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100vw;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    flex-direction: column;
    box-sizing: border-box;
}

.main-photo {
    width: 300px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-content h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: black;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icons a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.1);
}

.btn-primary {
    padding: 15px 30px;
    background-color: #45586c;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #005bb5;
}

/* Section Styles */
section {
    padding: 60px 20px;
    text-align: center;
}

.content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 0 10%;
}

.project-item {
    background-color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 0 10%;
}

.leadership-item {
    background-color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.leadership-item:hover {
    transform: translateY(-5px);
}

#education {
    padding: 60px 20px;
    border-bottom: 1px solid gray;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 0 10%;
    width: 100%;
    box-sizing: border-box;
}

.course-item,
.course-item-important {
    background-color: #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-weight: 600;
}

.course-item-important {
    color: #007aff;
}

.course-item:hover,
.course-item-important:hover {
    transform: translateY(-5px);
}

/* Tablet styles */
@media (max-width: 768px) {
    .course-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 5%;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .course-list {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 5%;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .course-item,
    .course-item-important {
        padding: 10px;
        font-size: 14px;
    }
}


/* Footer */
footer {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    color: #777;
    border-top: 1px solid #eee;
}

/* Section Styles */
section {
    padding: 60px 20px;
    text-align: center;
}

#about {
    border-bottom: 1px solid gray;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

#projects {
    padding: 60px 20px;
    border-bottom: 1px solid gray;
}

#leadership {
    padding: 60px 20px;
    border-bottom: 1px solid gray;
}

.project-image {
    width: 70px;
    height: auto;
    margin-bottom: 20px;
}

#source-code {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

#source-code .content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

#source-code .content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#source-code img {
    transition: transform 0.3s ease;
}

#source-code a:hover img {
    transform: scale(1.1);
}

#education .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
}

