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

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* General Section Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation */
header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    width: 40px;
    margin-right: 0.5rem;
}

.logo .name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

nav li {
    margin-left: 2rem;
}

nav a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    color: #1557b0;
}

nav a.active {
    background-color: #1a73e8;
    color: white;
}

/* About Section */
.about {
    padding: 8rem 2rem 4rem;
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #666;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* CV Buttons */
.cv-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cv-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cv-button:hover {
    background-color: #1557b0;
}

/* Projects Section (Buttons) */
.projects {
    padding: 8rem 2rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.projects h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.project-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.project-button {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 200px;
    max-width: 250px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

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

.project-button img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.project-button p {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

/* Project Details Sections */
.project-details {
    padding: 2rem;
    background-color: #f9f9f9;
}

.project-detail {
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 80px;
}

.project-detail h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.project-detail p {
    font-size: 1rem;
    color: #666;
}

/* Contact Section */
.contact {
    padding: 8rem 2rem 4rem;
    background-color: #f9f9f9;
    text-align: center;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.email-link {
    display: block;
    color: #1a73e8;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #1557b0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hamburger menu visible on mobile */
    .hamburger {
        display: flex;
    }

    /* Mobile navigation */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    nav ul.active {
        right: 0;
    }

    nav li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    nav a {
        display: block;
        padding: 1.2rem 1rem;
        font-size: 1.2rem;
        width: 100%;
    }

    /* Adjust padding for mobile */
    .section-container {
        padding: 1.5rem 1rem;
    }

    nav {
        padding: 1rem 1rem;
    }

    .logo .name {
        font-size: 1.2rem;
    }

    .logo img {
        width: 35px;
    }

    /* About section mobile */
    .about {
        padding: 6rem 1rem 2rem;
    }

    .about h1 {
        font-size: 1.8rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text p {
        font-size: 1rem;
    }

    .cv-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cv-button {
        width: 100%;
        text-align: center;
    }

    /* Projects section mobile */
    .projects {
        padding: 6rem 1rem 2rem;
    }

    .projects h1 {
        font-size: 1.8rem;
    }

    .project-buttons {
        gap: 1rem;
    }

    .project-button {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Project details mobile */
    .project-details {
        padding: 1rem;
    }

    .project-detail {
        padding: 1rem;
        scroll-margin-top: 70px;
    }

    .project-detail h2 {
        font-size: 1.4rem;
    }

    /* Project action buttons mobile */
    .project-detail a, .project-detail button {
        font-size: 0.9rem !important;
        padding: 10px 16px !important;
        white-space: nowrap;
    }

    .project-detail svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Contact section mobile */
    .contact {\n        padding: 6rem 1rem 2rem;\n    }\n\n    .contact h1 {\n        font-size: 1.8rem;\n    }\n\n    .contact p {\n        font-size: 1rem;\n    }\n\n    .email-link {\n        font-size: 1.2rem;\n        word-break: break-all;\n    }\n\n    .social-links {\n        gap: 1rem;\n    }
\n    /* Prevent body scroll when mobile menu is open */\n    body.menu-open {\n        overflow: hidden;\n    }
\n    /* Overlay for mobile menu */\n    nav ul.active::before {\n        content: '';\n        position: fixed;\n        top: 0;\n        left: 0;\n        width: 30%;\n        height: 100vh;\n        background-color: rgba(0, 0, 0, 0.5);\n        z-index: -1;\n    }
}