* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #e6f0ff;
    color: #0f172a;
}

header {
    background-color: #cce0ff;
    padding: 2rem 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

nav {
    text-align: center;
    margin-top: 1rem;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #1d4ed8;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 2rem;
    background-color: #f0f4ff;
    padding: 1rem;
    border-radius: 8px;
    line-height: 1.8;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.8;
}

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

.project-card a {
    color: #1d4ed8;
    text-decoration: none;
    margin: 0 0.5rem;
}

.project-card p {
    margin-bottom: 0.25rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #cce0ff;
    margin-top: 2rem;
}

.about-list {
    list-style: none;
    padding-left: 0;
    line-height: 1.8;
}

/* Experience Section */
#experience {
    margin: 2rem auto;
    max-width: 800px;
    padding: 1rem;
}

.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-card {
    display: flex;
    background-color: #f0f4ff;
    padding: 1rem;
    border-radius: 10px;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.experience-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.experience-details h3 {
    margin: 0 0 0.3rem 0;
}

.experience-details p {
    margin: 0.2rem 0;
    line-height: 1.8;
}

/* Tooltip Styles */
.hover-message {
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
    color: #1d4ed8;
    font-weight: 500;
    cursor: pointer;
}

.tooltip-text {
    position: absolute;
    top: 120%;
    left: 0;
    max-width: 200%;
    width: max-content;
    padding: 1rem;
    background-color: #f0f4ff;
    color: #0f172a;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    text-align: center;
    z-index: 10;
    transition: opacity 0.3s ease;
    overflow-wrap: break-word;
}

.hover-message:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

details {
    margin-bottom: 1.5rem;
    background-color: #f0f4ff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
}

summary+* {
    margin-top: 1rem;
}

/* Responsive Styles */
@media screen and (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        display: block;
        margin: 0.5rem 0;
    }

    .tooltip-text {
        max-width: 110%;
    }

    .experience-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-card img {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card iframe {
        width: 100%;
        height: 300px;
    }

    .project-card {
        align-items: flex-start;
    }

    main {
        padding: 0 1rem;
    }

    body {
        font-size: 0.95rem;
    }
}