/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #ededed;
    background: #081b29;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10px;
    background: #051129;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 225px;
    padding: 10px;
}

.navbar a {
    font-size: 20px;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar a:hover {
    color: #0ef;
}

/* Home Section */
.home {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url(./images/Home.png) no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: #0ef;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p {
    font-size: 20px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.home-scl a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}

.home-scl a:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: #0ef;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #0ef, 0 0 25px #0ef;
}

.btn-box:hover {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50px cyan, 0 0 100px cyan, 0 0 200px cyan;
}
.navbar a{
    color: #0ef;
}
/* About Section */
.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding: 50px 20px;
    background-color: #081b29;
}

.about-img img {
    max-width: 630px;
    height: auto;
    width: 100%;
    border-radius: 8px;
}

.about-text h2 {
    font-size: 60px;
}

.about-text h2 span {
    color: #0ef;
}

.about-text h4 {
    font-size: 29px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 15px 0 30px;
}

.about-text p {
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4rem;
}

.about-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Container */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dbd8d8;
    border-radius: 50%;
    padding: 10px;
    margin-top: 10px;
    margin-right: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.container img {
    width: 400px;
    height: 500px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.container img:hover {
    transform: scale(1.1);
}

.row:hover img {
    transform: scale(1.1);
}

.row:hover .layer {
    height: 100%;
}

/* Skills Section */
.skills {
    text-align: center;
    padding: 50px 20px;
    background-color: #081b29;
}

.heading h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

.icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.subjects {
    background-color: #ffffff;
    color: black;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 calc(20% - 40px);
    margin: 10px;
}

.subjects i {
    font-size: 24px;
}

.subjects:hover {
    background-color: #fffffffb;
    transform: scale(1.1);
}

/* Portfolio Section */
/* Portfolio Section */
.portfolio {
    padding: 50px 20px;
    background-color: #081b29;
}

.portfolio .main-text {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio .main-text h2 {
    font-size: 36px;
    color: #ededed;
}

.portfolio .main-text h2 span {
    color: #0ef;
}

.portfolio .portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio .row {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.portfolio .row img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.portfolio .row .layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Adjusted to cover the full height of the parent */
    background: rgba(0, 0, 0, 0.6);
    color: #ededed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    transform: translateY(100%); /* Hide the layer below the view */
    transition: transform 0.3s ease; /* Smooth transition for sliding in */
}

.portfolio .row:hover img {
    transform: scale(1.1);
}

.portfolio .row:hover .layer {
    transform: translateY(0); /* Slide in when hovered */
}

.portfolio .row .layer h5 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0ef;
}

.portfolio .row .layer p {
    font-size: 16px;
    margin-bottom: 20px;
}

.portfolio .row .layer a {
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio .row .layer a:hover {
    color: #fff;
}
.portfolio-content{
    margin-top: 50px;
}


/* Contact Section */
.contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
    padding: 50px 20px;
    background-color: #081b29;
}

.contact-text h2 {
    font-size: 60px;
    line-height: 1;
    text-align: center;
}

.contact-text h2 span {
    color: #0ef;
}

.contact-text h4 {
    margin: 15px 0;
    color: rgb(228, 228, 228);
    font-size: 20px;
    font-weight: 600;
}

.contact-text p {
    color: rgb(177, 177, 177);
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 2rem;
}

.contact-list {
    margin-bottom: 3rem;
}

.contact-list li {
    margin-bottom: 10px;
    display: block;
}

.contact-list i {
    display: inline-block;
    color: #0ef;
    font-size: 20px;
    font-weight: 600;
    transition: all .40s ease;
}

.contact-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: .5s ease;
}

.contact-icons a:hover {
    background: #0ef;
    color: #000;
    box-shadow: 0 0 20px #0ef;
}

.contact-form form {
    position: relative;
}

.contact-form form input,
.contact-form form textarea {
    border: none;
    outline: none;
    width: 90%;
    padding: 18px;
    background: #555557;
    color: #ededed;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}

.contact-form textarea {
    resize: none;
    height: 220px;
}

.contact-form form .send {
    display: inline-block;
    padding: 14px 60px;
    background: #0ef;
    border-radius: 40px;
    font-size: 18px;
    color: #001b29;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #0ef, 0 0 25px #0ef;
}

.contact-form form .send:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}

/* Last Text */
.last-text {
    text-align: center;
    padding: 20px 0;
    background: #051129;
    color: #ededed;
}

/* Back to Top Button */
.top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #051129;
    color: #0ef;
    padding: 10px;
    border-radius: 50%;
    display: none;
    text-align: center;
    transition: background 0.3s ease;
}

.top i {
    font-size: 1.5em;
}

.top:hover {
    background: #0ef;
    color: #081b29;
}

/* Animations */
@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 900px) {
    .navbar {
        gap: 8px;
    }

    .navbar a {
        font-size: 16px;
    }

    .home-content h1 {
        font-size: 40px;
    }

    .home-content h3 {
        font-size: 24px;
    }

    .home-content p {
        font-size: 16px;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about-text h2 {
        font-size: 40px;
    }

    .about-text h4 {
        font-size: 24px;
    }
    

    .skills .heading h1 {
        font-size: 28px;
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .contact-text h2 {
        font-size: 40px;
    }

    .contact-text h4 {
        font-size: 18px;
    }

    .contact-form form input,
    .contact-form form textarea {
        width: 100%;
    }
    .container {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        padding: 10px;
        margin-top: 1px;
        margin-right: 10px;
        margin-bottom: 2px;
        position: relative;
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .container img {
        width: 300px;
        height: 400px;
        border-radius: 50%;
        /* object-fit: cover; */
    }
    /* .container img:hover {
        transform: scale(1.1);
    } */
    .home{
        margin-top: 28px;
        height: auto;
    }
    .portfolio .row .layer p{
        font-size: 14px;
    }
    .portfolio .row .layer h5{
        font-size: 20px;
    }
    .portfolio .row .layer a {
        font-size: 24px;
    }
}
