*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior: smooth;
    font-family: 'Nunito, sans-serif';
    text-decoration: none;
    border:none;
    outline:none;
}
:root {
    --bg-color:#191f36;
    --snd-bf-color:#262B40;
    --text-color:#fff;
    --main-color:#59b2f4;
}


html{
    font-size: 100%;
    overflow-x: hidden;
}
body {
    background:var(--bg-color);
    color:var(--text-color);
}
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}   
 /* General styling for the header*/
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #1a1a2e;
    color: white;
}

/* Styling for the logo */
.header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #f0f0f0;
    text-decoration: none;
}

/* Styling for the navigation links */
.header nav a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 015px;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Active link styling */
.header nav a.active {
    color: #4ecca3;
}

.header nav a:hover {
    color: #4ecca3;
}

@media screen and (max-width: 768px) {
    .fa-bars {
        display: block;
    }


    .header nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #1a1a2e;
        z-index: 10;
    }

    .header nav a {
        margin: 10px 0;
        padding: 10px;
        text-align: center;
    }

    .header nav.show {
        display: flex;
    }
}
    Nav link

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #1c1e2b;
        padding: 15px 20px;
    }
    
    .logo h1 {
        color: #fff;
        font-family: 'Georgia', serif;
    }
    
    .nav-links {
        display: flex;
        list-style: none;
    }
    
    .nav-links li {
        margin: 0 15px;
    }
    
    .nav-links a {
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        transition: color 0.3s ease;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        color: #36c5a7;
    }
    
    /* Burger menu for smaller screens */
    .burger {
        display: none;
        cursor: pointer;
    }
    
    .burger div {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px;
        transition: all 0.3s ease;
    }
    
    /* Responsive Design */
    @media screen and (max-width: 768px) {
        .nav-links {
            position: absolute;
            right: 0;
            height: 92vh;
            top: 8vh;
            background-color: #1c1e2b;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            transform: translateX(100%);
            transition: transform 0.5s ease-in;
        }
    
        .nav-links li {
            opacity: 0;
        }
    
        .burger {
            display: block;
        }
    
        .nav-active {
            transform: translateX(0%);
        }
    
        .nav-links li {
            opacity: 1;
            transition: opacity 0.5s ease-in-out;
        }
        
        .burger.toggle .line1 {
            transform: rotate(-45deg) translate(-5px, 6px);
        }
    
        .burger.toggle .line2 {
            opacity: 0;
        }
    
        .burger.toggle .line3 {
            transform: rotate(45deg) translate(-5px, -6px);
        }
    }


#menu-icon {
    font-size: 3.6rem;
    color:var(--text-color);
    display:none;
}
.home {
     display:flex;
     justify-content: center;
     align-items:center;
}
.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}
.home-content h4 {
    font-size: 1,5rem;
}
.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}
span {
    color:var(--main-color);
}
.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}
.home-img img {
    width: 25vw;
    height: 20vw;
    margin-left: 100px;
    border-radius: 60px;
    animation: floatimage 4s ease-in-out infinite;
}
@keyframes floatimage {
    0% {
        transform:translateY(0);
    }
    50% {
        transform:translateY(-2.4rem);
    }
    100%{
        transform:translateY(0);
    }
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height:4rem;
    background:transparent;
    border: .2rem solid var(--main-color);
    border-radius: 2rem;
    color:var(--main-color);
    margin:3rem 1.5rem 3rem 0;
    transition: .5 ease;
}
.social-media a:hover {
    background: var(--main-color);
    color: var(--snd-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    font-size: 1.6rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    color:var(--bg-color);
    /* letter-spacing: 1rem; */
    font-weight: 600;
    transition: .5s ease;
}
.btn.hover{
    box-shadow: none;
}
.btn-cv {
    background-color: #1e90ff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
  }
  
  .btn-cv:hover {
    background-color: #007bff;
  }
/* about me section */
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:2rem;
    background: var(--snd-bg-color);
}
.heading {
    font-size: 4.5rem;
    text-align: left;
}
.about-content h3 {
   font-size: 2.6rem;
}
.about-content p{
    font-size:1.6rem;
    margin: 2rem 0 3rem;
}

/* portfolio css  */
.portfolio {
    background:var(--snd-bg-color)
}
.portfolio h2 {
    margin-bottom: 4rem;
}
.portfolio-container {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap:2.5rem;
}
.portfolio-container .portfolio-item{
    position: relative;
    border-radius:2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow:hidden;
    display:flex;
}

.portfolio-item img {
    width: 100%;
    transition: .5s ease;
    opacity: 0.7;
}
.portfolio-item:hover img {
    transform:scale(1.1);
    color:aliceblue;
}
.portfolio-item .portfolio-layer {
    position:absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0,0,0,0.1) ;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform:translateY(100%);
    transition: .5s ease;
}

.portfolio-item:hover .portfolio-layer{
    transform: translateY(0);
}
.portfolio-layer h3 {
    font-size: 3rem;
    color:bisque;
}
.portfolio-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
    color:bisque;
}
.portfolio-layer a {
    display:inline-flex;
    justify-content: center;
    align-items: center;
    width:5rem;
    height: 5rem;
    background: white;
    border-radius:50%;
}
.portfolio-layer a i {
    font-size: 2rem;
    color:var(--snd-bg-color);
}

/* About section  */

.about-image img{
    border-radius: 100px;
}

#about .about-content{
    margin-left: 100px;
}

/* Styling for the contact section */
.contact {
    background-color: #1a1a2e;
    padding: 50px 20px;
    color: #f0f0f0;
    text-align: center;
}

.contact .heading {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #ffffff;
}

.contact .heading span {
    color: #4ecca3;
}

.contact form {
    max-width: 800px;
    margin: 0 auto;
}

.contact .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact .input-box input,
.contact textarea {
    width: 48%;
    padding: 10px;
    background-color: #162447;
    border: none;
    border-radius: 5px;
    color: #f0f0f0;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact .input-box input::placeholder,
.contact textarea::placeholder {
    color: #a0a0a0;
}

.contact .input-box input:focus,
.contact textarea:focus {
    outline: none;
    background-color: #1f4068;
}

.contact textarea {
    width: 100%;
    resize: none;
    height: 150px;
}

.contact .btn {
    display: inline-block;
    background-color: #4ecca3;
    color: #162447;
    padding: 12px 30px;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.contact .btn:hover {
    background-color: #1f4068;
    color: #ffffff;
}

/* Footer css  */
.footer {
    display:flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--snd-bg-color);
}

.footer-text {
    font-size: 1.6rem;
}
.footer-iconTop {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding:.8rem 1rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i {
    font-size: 2.4rem;
    color:var(--snd-bg-color);
}

/* Breakpoint */
@media (max-width: 1200){
    html{
        font-size: 55%;
    }
}
@media (max-width: 991px){
    .header {
        padding: 2rem 3%;
    }
section {
    padding: 10rem 3%;
}
.services {
    padding: 7rem;
}
.portfolio {
    padding-bottom: 7rem;
}
.contact {
    min-height: auto;
}
.footer {
    padding:2rem 3%;
}
}

@media (max-width:768px) {
    #menu-icon {
        display:block;
    }
    .navbar{
        position: absolute;
        top:100%;
        left:0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top:.1rem solid rgba(0,0,0,.2);
        box-shadow:0.5rem 1rem rgba(0,0,0,.2);
        display:none;
    }
    .navbar .active {
        display: block;
    }
    .navbar a {
        display:block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .home {
        flex-direction:column;
    }
    .home {
        flex-direction: column;
    }
    .home-content h3 {
        font-size: 2.6rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-img img {
        width: 90vw;
        margin-top: 4rem;
    }
    .about {
        flex-direction: column;
    }
    .about-img img {
        width: 90vw;
        margin-top: 4rem;
    }
    .services h2 {
        margin-bottom: 3rem;
    }
    .portfolio h2{
        margin-bottom: 3rem;
    }
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
}



