
body, h1, h2, p, a, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}


body {
    background-color: #eef2f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}


.portfolio-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 1200px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px 60px;
    position: relative;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    transition: color 0.3s;
    position: relative;
}

.nav-links li a.active {
    color: #000;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3b82f6;
    border-radius: 2px;
}


.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    color: #000;
    font-weight: 800;
    margin-bottom: 30px;
}

.hero-content h1 span {
    color: #3b82f6;
}

.btn-contact {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3b82f6;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.btn-contact:hover {
    background-color: #2563eb;
}


.social-icons {
    position: absolute;  
    bottom: 40px;       
    left: 60px;          
    display: flex;
    gap: 20px;
    margin: 0;          
    z-index: 10;         
}

.social-icons a {
    color: #555;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #3b82f6;
}


.hero-image-container {
    position: relative;
    width: 450px;  
    height: 450px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #3b82f6;
    border-radius: 50%;     
    z-index: 1;
}

.profile-img {
    position: absolute;
    width: auto;
    height: 90%;
    object-fit: cover;
    z-index: 2;

    border-radius: 50%; 

    clip-path: circle(50% at 50% 50%);
}


@media (max-width: 900px) {
    .portfolio-card {
        padding: 30px;
    }
    
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 40px;
    }

    .hero-image-container {
        width: 100%;
        height: 350px;
    }
    
    .social-icons {
        justify-content: center;
    }

    nav {
        flex-direction: column;
        gap: 20px;
    }
}

@keyframes fadeInMove {
    from {
        opacity: 0;
        transform: translateY(20px); /* Starts slightly lower */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutMove {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px); /* Moves up while fading out */
    }
}

/* 2. Apply Fade-In to the card automatically on load */
.portfolio-card {
    /* Existing styles remain... */
    animation: fadeInMove 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 3. The class JavaScript will add when leaving the page */
.portfolio-card.fade-out {
    animation: fadeOutMove 0.5s ease-in forwards;
}