:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #75b38f;
    --accent-gradient: linear-gradient(to right, rgba(117, 179, 143, 0.951), #8bc5c6b4);
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}

.header{
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    background-color: rgba(0, 0, 0, 0.799);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 5;
}

.logo{
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
}

.logo:hover{
    transform: scale(1.1);
}

.header-links{
    display: flex;
    gap: 2rem;
}

li a{
    position: relative;
    color: white;
    font-weight: 300;
}

li a::before{
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgba(117, 179, 143, 0.951), hsla(181, 74%, 74%, 0.706));
}

li a:hover::before{
    width: 100%;
}

.visit-btn{
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgba(117, 179, 143, 0.951), #8bc5c6b4);
}

.visit-btn:hover{
    background: linear-gradient(to right, #8bc5c6b4, rgba(117, 179, 143, 0.951));
    transform: scale(1.04);
}

.section {
    min-height: 100vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
}

.about{
    padding-top: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .about-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7rem;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.profile-image-wrapper::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    background: var(--accent-gradient);
    z-index: -1;
    border-radius: 10%;
    filter: blur(15px);
    opacity: 0.4;
}

.about img{
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 10%;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.info-box h3{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.info-box h1{
    font-size: 4rem;
    font-weight: 600;
}

.info-box span{
    background: linear-gradient(to right, rgba(117, 179, 143, 0.951), #8bc5c6b4);
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}

.socials{
    display: flex;
    gap: 2rem;
}

.socials i{
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.socials a{
    color: inherit;
    text-decoration: none;
}

.socials i:hover{
    transform: scale(1.1);
}

.btn-group{
    display: flex;
    gap: 1rem;
}

.btn-group a{
    color: inherit;
    text-decoration: none;
}

.btn{
    border-radius: 3rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid black;
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
}

.btn:hover{
    background-color: black;
    color: white;
}

.projects {
    padding: 120px 12%;
    padding-bottom: 50px;
    text-align: center;
}

.projects a{
    color: inherit;
    text-decoration: none;
}

.projects img{
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.projects h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.project-image {
    cursor: zoom-in;
    overflow: hidden;
}

.project-image img {
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background: #f0f7f4;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent);
    border: 1px solid rgba(117, 179, 143, 0.2);
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-container h2{
    font-size: 1.7rem;
}

.contact-subtitle {
    padding-top: 10px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(117, 179, 143, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    background-color: #0a0a0a;
    color: white;
    padding: 60px 12% 20px 12%;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo{
    text-align: center;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: #888;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent);
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid #222;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

.back-to-top {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: var(--accent);
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid var(--accent);
    white-space: nowrap;
    margin: 0 auto; 
    letter-spacing: .15em; 
    animation: 
      typing 3.5s steps(30, end),
      blink-caret .75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent); }
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .header {
        width: 95%;
        gap: 0;
        justify-content: space-between;
        padding: 0.8rem 1.2rem;
    }

    .header-links {
        display: none; 
        position: absolute;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        width: 90%;
        border-radius: 1.5rem;
        padding: 2rem;
        text-align: center;
        gap: 1.5rem;
        backdrop-filter: blur(10px);
    }

    .header-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-github {
        display: none;
    }

    .about .about-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .info-box h1 {
        font-size: 2.5rem;
    }

    .info-box span {
        font-size: 1.5rem;
    }

    .section {
        padding: 5rem 5%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}