
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f1f1f1;
    color: #26469b;
}

.header {
    background-color: #26469b;
    color: #f1f1f1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.hamburger {
    display: none;
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: #f1f1f1;
    font-size: 1.5rem;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
}

.header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.header nav a {
    color: #f1f1f1;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.header nav a:hover {
    background-color: #566fd4;
}

.content {
    padding: 0; 
}

.hero {
    padding: 60px 20px;
    background-color: #dfd58a;
    color: #26469b;
    text-align: center;
}

.hero-content h2 {
    margin: 0 0 20px;
    font-size: 2.2rem;
    color: #26469b;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #26469b;
}

.hero-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.link-btn {
    padding: 10px 20px;
    background-color: #566fd4;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.link-btn:hover {
    background-color: #26469b;
    transform: translateY(-2px);
}


main {
    width: 100%;
    margin: 0;
    background-color: #26469b;
}

section {
    padding: 40px 20px;
    margin: 0;
}

section:nth-of-type(even) {
    background-color: #dfd58a;
}

.skills-item,
.project {
    background-color: #26469b;
    color: #f1f1f1;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

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

.skill-box {
    background-color: #566fd4;
    color: #f1f1f1;
    padding: 15px;
    border-radius: 12px;
    width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-box h3 {
    margin: 10px 0 5px;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 5px;
}

.stack-item {
    background-color: #595285;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background-color 0.2s, transform 0.2s;
}

#skills,
#projects {
    background-color: #26469b;
    color: #f1f1f1;
}

#skills h2,
#projects h2 {
    color: #f1f1f1;
}

h2 {
    border-bottom: 2px solid #566fd4;
    padding-bottom: 10px;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-box {
    background-color: #fff;
    color: #26469b;
    padding: 20px;
    border-radius: 12px;
    width: 260px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-box h3 {
    margin-top: 0;
    color: #26469b;
}

.project-box img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

.project-link img {
    display: block;
    margin-bottom: 5px;
}

.project-link:hover {
    text-decoration: underline;
}

.project-box p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.project {
    margin-bottom: 20px;
}
#education {
    background-color: #26469b;
    color: #f1f1f1;
}

#education h2 {
    color: #f1f1f1;
}

.education-item {
    background-color: #566fd4;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.education-item h3 {
    margin-top: 0;
    color: #f1f1f1;
    font-size: 1.2rem;
}

.education-school {
    font-style: italic;
    margin: 8px 0;
    color: #e8e8e8;
}

.education-period {
    font-size: 0.95rem;
    color: #dfd58a;
    margin: 5px 0 10px;
}

.education-desc {
    margin: 10px 0 0;
    line-height: 1.5;
}


.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #566fd4;
    border-radius: 8px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #26469b;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a0a0a0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #26469b;
    background-color: #fafafa;
}

.btn-submit {
    padding: 12px 30px;
    background-color: #566fd4;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #26469b;
    transform: translateY(-2px);
}
#contact {
    background-color: #26469b;
    color: #f1f1f1;
}

#contact h2 {
    color: #f1f1f1;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-item {
    display: inline-block;
    padding: 12px 20px;
    background-color: #566fd4;
    color: #f1f1f1;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.contact-item:hover {
    background-color: #dfd58a;
    color: #26469b;
}


footer {
    background-color: #595285;
    color: #f1f1f1;
    text-align: center;
    padding: 10px;
}

@media (max-width: 800px) {
    .header {
        flex-wrap: wrap;
    }
    .hamburger {
        display: block;
    }
    .header nav {
        width: 100%;
        order: 3;
    }
    .header nav ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin: 10px 0 0 0;
        padding-top: 10px;
        border-top: 1px solid #566fd4;
    }
    .header nav ul.open {
        display: flex;
    }
    footer {
        width: 100%;
        position: relative;
        display:flex;
        justify-content: center;
    }
}
