@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 100;
}

header,
nav,
.menu,
.menu a,
.menu-toggle {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

.logo img {
    height: 7.2rem;
    width: auto;
    display: inline-block;
    padding-left: 10px;
}

nav {
    display: flex;
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu a {
    position: relative;
    transition: color 0.3s ease;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
}

.social-icon {
    vertical-align: middle;
}

.menu a:hover .social-icon {
    content: url("../images/linkedin-yellow.png");
}

.menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #333;
}

.menu a:hover {
    color: #FFD700;
}

.menu a.active:hover::after {
    background-color: #FFD700;
}

.menu a:not(.active):hover::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0;
    width: 32px;
    height: 22px;
    position: relative;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 2px;
    height: 2px;
    background-color: #333;
    box-shadow: 0 7px 0 #333, 0 14px 0 #333;
}

/* Page title */
.page-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    aspect-ratio: 5/4;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.portfolio-item:hover::after {
    background-color: rgba(0, 0, 0, 0.25);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 400;
    font-size: 2.52rem;
    color: #fff;
    z-index: 2;
    text-align: center;
    width: 90%;
}

.portfolio-item:hover h3 {
    opacity: 1;
}

/* Featured section */
.portfolio-featured {
    padding: 2rem;
}

.portfolio-featured h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

.view-all a {
    display: inline-block;
    border: 1px solid #333;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.view-all a:hover {
    background-color: #333;
    color: #fff;
}

/* About page */
.about-page {
    padding: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text h2 {
    margin: 2rem 0 1rem;
    font-weight: 500;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skills-list li {
    background-color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* Contact page */
.contact-page {
    padding: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-illustration {
    display: flex;
    justify-content: center;
}

.contact-illustration img {
    width: 100%;
    max-width: 416px;
}

.contact-form {
    max-width: 912px;
    margin: 0 auto 0 0;
    margin-top: 10%;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.field-required {
    font-size: 0.875rem;
    color: #777;
}

.form-group input,
.form-group textarea {
    width: 120%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
}

.submit-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.cv-btn {
    margin-top: 1.5rem;
}

.submit-btn:hover {
    background-color: #555;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    border: 1px solid #ddd;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 1;
}

.modal-content h2 {
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    padding: 2rem 2rem 115px;
    text-align: center;
    font-size: 0.875rem;
    color: #777;
}

.footer-illustration {
    width: 158px;
    height: auto;
    margin: 0 auto;
}

/* Responsive design */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        margin: 0 auto;
        text-align: center;
    }

    .contact-form form {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background-color: #fff;
        height: 100vh;
        width: 70%;
        padding: 5rem 2rem;
        transition: right 0.3s ease;
    }

    .menu.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        z-index: 101;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
    }

    .contact-form {
        margin: 0 auto;
        text-align: center;
    }

    .contact-form form {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
} 