/*starting form*/
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Rubik:wght@396&display=swap');
/*all element*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Mulish',sans-serif;
}

html{
    font-size: 72.5%;
}

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: rgb(0, 0, 0);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header_nav {
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%; /* Adjust padding here if needed */
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    filter: drop-shadow(10px);
}

/*.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}
*/
nav a {
    font-size: 1.8rem; /* Adjust font-size as desired */
    color: #ffffff;
    margin-left: 4rem; /* Adjust margin if needed */
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #66fcf1;
    border-bottom: 3px solid #66fcf1;
}

@media(max-width: 995px) {
    /* Styling the nav */
    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Initially hide it off-screen */
        width: 60%; /* Adjusted width for better visibility */
        height: 100vh; /* Full-screen height for better interaction */
        border-left: 3px solid #66fcf1;
        padding: 2rem 1rem;
        background-color: #000000; /* Background color for better contrast */
        transition: right 0.3s ease-in-out; /* Smooth slide-in effect */
        z-index: 1000; /* Ensure it appears on top */
    }

    /* Display the nav when active */
    nav.active {
        right: 0; /* Slide into view */
    }

    /* Styling for links */
    nav a {
        display: block;
        font-size: 2rem;
        margin: 2rem 0;
        color: #ffffff;
        text-align: left;
        padding: 0.5rem 1rem;
        transition: background-color 0.3s, transform 0.3s;
        border-radius: 0.5rem;
    }

    /* Link hover effect */
    nav a:hover,
    nav a.active {
        /*background-color: #66fcf1;*/
        color: #66fcf1;
        transform: translateX(10px);
    }

    /* Optional button or icon for toggling menu */
    .menu-toggle {
        position: fixed;
        top: 20px;
        right: 20px;
        font-size: 3rem;
        color: #66fcf1;
        background-color: #000000;
        cursor: pointer;
        z-index: 1100;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: rgb(0, 0, 0);
}

.container .container-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: 'Rubik',sans-serif;
}

span{
    color: #66fcf1;
}

.container-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.container-content p{
    font-size: 1.6rem;
}

.main_img{
    border-radius: 50%;
}

.main_img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #66fcf1;
    cursor: pointer;
    transition: 0.2s linear;
}
/*.main_img::after{
    content:'';
    position: absolute;
    height:80px;
    width:80px;
    border-bottom:10px solid var(--skin-color);
    border-right:10px solid var(--skin-color);
    right:20px;
    bottom: -40px;
}*/
.main_img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
    border-radius: 10px soild;
    box-shadow: 0 0 10px var(color blue);
}


.social_icons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 3rem 0;
}


.social_icons a {
    display: inline flex; 
    justify-content: center; 
    align-items: center; 
    width: 4rem; 
    height: 4rem; 
    background-color: transparent;
    border: 0.2rem solid #66fcf1; 
    border-radius: 50%; 
    font-size: 1.6rem; 
    color: #66fcf1;
    transition: 0.3s ease;
    cursor: pointer;
}

/*Hover effect */
.social_icons a:hover {
    color: white;
    transform: scale(1.2) translateY(-5px);
    background-color: #66fcf1;
    box-shadow: 0 0 15px #66fcf1;
}



.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: rgb(0, 0, 0);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #66fcf1;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #66fcf1;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #66fcf1;
    color: rgb(255, 253, 253);
    box-shadow: 0 0 25px #66fcf1;
}

.typing{
    font-size: 38px;
    font-weight: 600;
    min-width: 280px;
}


.typing span{
    position: relative;
}

.typing span::before{
    content: "software Developer";
    color: #66fcf1;
    animation: words 10s infinite;
}

.typing span::after{
    content: "";
    background-color: rgb(0, 0, 0);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid rgb(255, 255, 255);
    right: -8;
    animation: cursor 0.9s infinite;
}

.text {
    display: inline;
    color: #f30000d8;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid;
    /*animation: typing 2s steps(18),
    cursor .4s step-end infinite alternate; 
    /*blink 0.75s step-end infinite;*/
  /*cursor blink*/
}
@keyframes cursor{
   /* 50%{ border-color: transparent;}*/
    to{
        border-left: 3px solid #66fcf1;
    }
}
@keyframes typing{
    from{width:0}
}

@keyframes words{
    0%, 40%{
        content: "Web Developer";
    }
    41%, 80%{
        content: "Software Engineer";
    }
    81%, 100%{
        content: "Web Designer";
    }
}

@media (max-width: 1000px){
    .container{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .container{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .container .container-content h3{
        font-size: 2.5rem;
    }

    .container-content h1{
        font-size: 5rem;
    }

    .main_img img{
        width: 70vw;
        margin-top: 4rem;
    }
}
/* General Styles */


header {
    background-color: #111;
    padding: 20px;
    text-align: center;
}

nav a {
    color: #fff;
    margin: 0 15px;
    font-size: 2rem;
    /*text-transform: uppercase;*/
    text-decoration: none;
}

nav a.active {
    color: #66fcf1;
    border-bottom: 3px solid #66fcf1;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Projects Section */
.projects-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    padding: 2rem 5rem;
}

.project-card {
    background-color: #1c1c1c;
    border: 2px solid #66fcf1;
    border-radius: 10px;
    padding: 20px;
    width: 30%;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid #66fcf1;
    margin-bottom: 15px;
}

.project-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 16px;
    margin-bottom: 20px;
}

.project-card .btn {
    background-color: #66fcf1;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

.project-card .btn:hover {
    background-color: #66fcf1;
}

.project-card:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 80%;
        margin-bottom: 2rem;
    }
}




