*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    }
    
    html{
    scroll-behavior: smooth;
    }
    
    body {
    background-color: rgb(0, 0, 0);
    color: white;
    overflow-x: hidden;
    font-family: "Poppins",sans-serif;
    }



    /* Styles for the loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000; /* Black background */
    color: #ffffff;
    pointer-events: none;
    z-index: 12000; /* Ensure the loader is on top of other content */
}

.counter{
    position: fixed;
    left: 50px;
    bottom: 50px;
    display: flex;
    height: 100px;
    font-size: 100px;
    line-height: 102px;
    clip-path: polygon(0 0, 100% 0, 100% 100px, 0 100px);
    font-weight: 400;
    color: #000;
    display: none;

}

.counter-1
.counter-2
.counter-3{
    position:relative;
    top: -15px;

}

.num1offset1{
    position: relative;
    right: -25px;
}   
    

.num1offset2{
    position: relative;
    right: -10px;
}   
    
    
.loader{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 50px;
    transform: translate(-50%, -50%);
    display: flex;
    background: rgb(95, 94, 94);

}   

.loader-1{
    position: relative;
    background: #ffffff;
    width: 200px;
}
    
.loader-2{
    position: relative;
    background: #ffffff;
    width: 100px;
}

.bar{
    height: 50px;
}
    
   

  #header {
        width: 100%;
        height: 100vh;
        background-image: url("images/1.PNG"), linear-gradient(45deg,  #000000, rgb(0, 0, 0));
        background-size: auto 100%; /* Auto width and 100% height to maintain aspect ratio */
        background-position: top right; /* Position the background image to the top right corner */
        background-repeat: no-repeat; /* Prevent background image from repeating */
       
    }

    #particles-js {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
      }
    
    
    
    .container {
    padding: 10px 10%;
    }
    

    nav ul {
        display: flex;
        align-items: center;
        justify-content: flex-end; /* Align navigation to the right */
        flex-wrap: wrap;
        margin-top: -7%;
        margin-right: 5%;
    }
    
  
    
    .logo {
    width: 120px;
    margin-left: 8%;
    
    }

    
    
    nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
    }
    
    nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin-left: 40px;
    font-weight: 500;
    font-size: 20px;
    position: relative;
    }
    
    nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #0ef;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.2s;
    }
    
    nav ul li a:hover::after {
    width: 100%;
    }
    
    .header-text {
    margin-top: 180px;
    font-weight: 600;
    }
    
    .header-text p{
    color: #0ef;
    font-size: 35px;
    }
    
    .header-text h1 {
    margin-top: 10px;
    font-size: 60px;
    }
    
    .header-text h1 span{
    color: #0ef;
    }
    

   

    .home {
        position: relative;
        width: 100%;
        justify-content: space-between;
        height: 100vh;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        padding: 70px 10% 0;
        font-size: larger;
       
    }

    .home-content{
        max-width: 600px;
    
    }

    .home-content h3{
        font-size: 32px;
        font-weight: 700;
    }

    .home-content h3:nth-of-type(2){
        margin-bottom: 30px;
    }

    .home-content h3 span{
        color: #0ef;
    }

    .home-content h1{
        font-size: 56px;
        font-weight: 700;
        margin: -3px 0;
    }

    .home-content p{
        font: size 20px; 
    }
    
    .home-sci 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;
    }

    .home-sci a:hover{
        background: #0ef;
        color: #081b29;
    }
    .btn-box{
        display: inline-block;
        padding: 12px 28px;
        background: transparent;
        border-radius: 40px;
        font-size: 16px;
        letter-spacing: 1px;
        text-decoration: none;
        font-weight: 600;
        margin: 30px 15px 30px 0;
        color: #0ef;
        border: 2px solid #0ef;
        transition: background-color 0.3s, color 0.3s; /

    }

    .btn-box:hover {
        background: #0ef; /* Change the background color on hover */
    color: #000; /* Change the background color on hover */
        /* Add any other properties for hover effect if needed */
    }

    
    
    @media only screen and (max-width: 768px) {
        /* Adjust styles for smaller screens */
        .container {
            width: 90%;
        }

        .about-col-1 {
            width: 100%;
            margin-bottom: 20px;
        }

        .about-col-2 {
            width: 100%;
        }

        .read-more {
            margin-left: 50%;
        }
    }

    /*About section csss----------------------------*/

    #about{
    padding : 80px 0;
    margin-bottom: 12%;
    color: white;
    }
    
    .row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    }

    .subtitle2 {
        margin-bottom: 20px;
       margin-left: 40%;
       margin-right: 40%;
    }

    
    .about-col-1 img{
    width: 100%;
    border-radius: 10px;
    width: 300px;
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    }
    
    .about-col-1 img:hover {
    transform: scale(1.05);
    }

 
    .read-more {
        display: inline-block;
        padding: 12px 28px;
        margin-left: -105%;
        bottom: 10%;
        background: transparent;
        border-radius: 40px;
        font-size: 16px;
        color: #081b29;
        letter-spacing: 1px;
        text-decoration: none;
        font-weight: 600;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        color: #0ef;
        border: 2px solid #0ef;
        transition: background-color 0.3s, color 0.3s;
    }
    
    .read-more:hover {
        background: #0ef; /* Keep the background color unchanged */
        color: #000; /* Change the text color to black on hover */
    }
    

    
 
   
    
    .about-col-2 {
    flex-basis: 35%;
    }
    

    
    .subtitle{
        font-size: 50px;
        font-weight: 600;
        margin-left: -340px;
          color: #0ef;
        }
        
        .subtitle2{
        font-size: 18px;
        font-weight: 600;
        margin-left: -340px;
        margin-top: -15px;
        margin-bottom: 55px;
      
        }
    
    /*Skill section csss----------------------------*/
    


    .skill-main{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-row-gap: 30px;
        grid-gap: 40px;
        grid: column gap 50px;
    }


    .skill-bar{
        margin-bottom: 2.3rem;
    }

    .skill-main h3{
        margin-bottom: 2rem;
        text-align: center;
        font-size: 30px;
        color: #0ef;
        
    }

    .main-text {
        text-align: center;
        font-size: 30px;
        padding-bottom: 60px;
       
    }
    
    .main-text span, .main-text h2 {
        display: block; 
        margin: 0 auto; 
        color: #0ef;
    }

    .main-text span {
        margin-bottom: 10px; 
        font-size: 20px;
        color: #ffffff;
    }

    .main-text h2 {

        color: #0ef;
        margin-bottom: 30px;
        
    }

    #Skills {
        background-color: #000000; 
        padding: 20px; 
    }
    
    .skill-left{
        width: 80%;
        margin-left: 20%;
    }

    .skill-right{
        width: 80%;
        margin-left: 12%;
    }

    .skill-left .skill-bar .info{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;

    }

    .skill-left .skill-bar .bar{
        width: 100%;
        background-color: rgb(27, 38, 47);
        height: 10px;
        border-radius: 25px;
        margin-top: 30px;
        position: relative;
    }

    .skill-bar .bar span{
        width: 50%;
        height: 100%;
        position: absolute;
        left: 0;
        background: #ffffff; 
        border-radius: 25px;
        box-shadow: 0 0 .5rem #f9ffff; 
    }
    
    .skill-bar .bar .html{
        width: 72%;
        animation: html 3s;
    }

    .skill-bar .bar .CSS{
        width: 62%;
        animation:CSS 3s;
    }

    .skill-bar .bar .Python{
        width: 92%;
        animation: Python 5s;
    }

    .skill-bar .bar .Java{
        width: 90%;
        animation: Java 5s;
    }

  .skill-bar .bar .SQL{
        width: 85%;
        animation: Java 5s;
    }

    .skill-bar .bar .Java-Script{
        width: 65%;
        animation: Java 5s;
    }

 .skill-bar .bar .Node.js{
        width: 60%;
        animation: Java 5s;
    }

    .skill-bar .bar .Java-Script{
        width: 60%;
        animation: Java 5s;
    }

    .skill-bar .bar .PHP{
        width: 60%;
        animation: Java 5s;
    }


    .professional {
        display: grid;
        grid-template-columns: 1fr 1fr;
       
    }
    
    .box {
        position: relative;
        margin: 10px 0;
        flex: 1 1 15rem; 
    }

    .box .text{
        text-align: center;
        color: #fff;
        font-size: 1rem;
    }
    .box .text .big{
        font:400;
        letter-spacing: 1px;
        position: absolute;
        top: 40%;
        left: 50%;
        transform:translate(-50%, -50%) ;
    }
    
    .box .text small{
        display: block;
        font-weight: 600;
    }
    .circle {
        width: 100%;
        height: 120px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 2px solid #fff;
    }

    .circle .points {
        width: 2px;
        height: 10px;
        background-color: rgb(27, 38, 47);
        position: absolute;
        border-radius: 3px;
        transform: rotate(calc(var(--i) * var(--root))) translateY(-45px);
    }
    
    .points.marked {
        animation: glow 0.04s linear forwards;
        animation-delay: calc(var(--i) * 0.05s);
    }
    
    
    
    @keyframes html{
        0%{
            width: 0%;
        }

        100%{
            width: 72%;
        }

    }

    @keyframes CSS{
        0%{
            width: 0%;
        }

        100%{
            width: 62%;
        }
        
    }

    @keyframes Python{
        0%{
            width: 0%;
        }

        100%{
            width: 92%;
        }
        
    }

    @keyframes Java{
        0%{
            width: 0%;
        }

        100%{
            width: 90%;
        }
        
    }

    @keyframes glow {
        0% {
            background: #081b29;
            box-shadow: none;
        }
        100% {
            background: rgb(255, 255, 255);
            box-shadow: 0 0 10px rgb(255, 255, 255);; 
        }
    }
    
 
    .tab-titles {
    display: flex;
    margin: 20px -340px;
    }
    
    .tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    }
    
    .tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #0ef;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.2s;
    }
    
    .tab-links.active-link::after{
    width: 50%;
    }
    
    .tab-links:hover ::after {
    width: 100%;
    }
    
    .tab-contents ul li{
    list-style: none;
    margin-left: -340px;
    color: rgb(172, 172, 172);
    font-size: 14px;
    font-weight: 550;
    margin-bottom: 13px;
    }
    
    .tab-contents ul li span{
    font-size: 16px;
    color: white;
    font-weight: 600;
    
    }
    
    .tab-contents{
    display: none;
    }
    
    .tab-contents.active-tab{
    display: block;
    }
    
    .subtitle3{
    font-size: 50px;
    font-weight: 600;
    text-align: center;
    margin-top: 2%;
    }
    
    #services{
    padding: 30px 0;
    }
    
    .services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 2%;
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 5%;
    }
    
    .services-list h2{
    font-size: 25px;
    margin-bottom: 20px;
    margin-top: 20px;
    }
    
    .services-list div{
    background: #090909;
    padding: 40px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: transform 0.2s ease;
    }
    
    .services-list div:hover{
    transform: scale(1.1);
    background: rgb(42, 42, 42);
    color: white;
    }


    /* Adjustments for Big Screens */
@media screen and (min-width: 769px) {
    .services-list {
        margin-left: auto;
        margin-right: auto;
        max-width: 1200px; /* Adjust maximum width if needed */
        padding: 0 30px; /* Add padding to align with other sections */
    }
}



/* Portfolio section CSS */


.portfolio{
    margin-bottom: 5%;
}
.fillter-buttons {
    margin: 2rem;
    text-align: center;
    margin-top: -5%;
    margin-bottom: 5%;
}

.fillter-buttons .btn {
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-left: 1.3rem;
    color: #fff;
}

.fillter-buttons .btn:hover {
    color: #0ef;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc(33.33% - 2rem), 1fr));
    gap: 2rem;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 10%;
   
}



.port-box {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background-color: #2e2e2e;
    border: 2px solid #0ef;
    box-shadow: 0px 0px 10px #12f7ff;
    transition: transform 0.5s ease-in-out;
    width: 410px;
    height: 300px;
}





.port-box:hover {
    transform: scale(0.9);
}

.port-image {
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.port-image img {
    width: 410px;
    height: 300px;
    object-fit: cover; /* Ensure the image covers the entire box */
    
}


.port-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transition: opacity 0.5s; /* Fixed typo */
    padding: 0 2rem;
   
}

.port-box:hover .port-content {
    opacity: 1;
}

.port-box:hover .port-image img {
    transform: scale(1.1);
}

.port-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.port-content p {
    font-size: 0.8rem;
    margin: 5px 0 15px 0;
    color: white;
    font-family: sans-serif;
    font-size: medium;
}

.port-content a {
    background: black;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid #fff;
    outline: 2px solid #fff;
}

.port-content a i {
    font-size: 1.3rem;
    color: #12f7ff;
}


 /*Contact section csss----------------------------*/

/* CSS for Contact Section on Big Screens */
@media screen and (min-width: 769px) {
    .contact {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .contact-left,
    .contact-right {
        padding: 40px;
        border-radius: 10px;
        background-color: #090909;
        color: white;
    }

    .contact-left h2,
    .contact-right h2 {
        font-size: 25px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .contact-left p,
    .contact-right p {
        font-size: 15px;
        font-weight: 500;
    }

     .send-message-button {
        width: 20%; /* Set button width */
        margin: 20px auto; /* Center button horizontally */
        margin-left: 35%;
    }
}




    
    

    .contact-left h1 {
        margin-left: -12%;
        color: #0ef;
    }
    
   
    .contact-left p{
    margin-top: 30px;
    font-size: 30px;
    }
    
    .social-icons{
    margin-top: 30px;
   margin-left: -3%;

   
    }
    
    .social-icons a{
    text-decoration: none;
    font-size: 30px;
    color: rgb(255, 255, 255);
    display: inline-block;
    cursor: pointer;
    transition: 0.4s;
    margin-left: 5%; 
  
    }

    .contact-left p{
       
    }
   
    
    .social-icons a:hover{
    color: #0ef;
    transform: translateY(-5px);
    }
    
    .contact-right form{
    width: 100%;
    }
    
    form input{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    font-weight: 600;
    }
    
    form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    font-weight: 600;
    }
    
    .send-message-button {
    display: inline-block;
    margin-top: 10px;
    border: 2px solid #0ef;
    background-color: #000000;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 550;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;

    }
    
    .send-message-button:hover {
    background-color: #0ef;
    }
    
    #msg{
    color: white;
    font-weight: 600;
    display: block;
    }
    
    nav .fa-solid{
    display: none;
    }

    /* Container styles */
.container {
    padding: 20px;
  }
  
  /* Heading styles */
  .heading-section {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .heading-section h1, .heading-section h2 {
    font-size: 36px;
    font-weight: bold;
  }
  
  .heading-section p {
    font-size: 18px;
  }
  
  /* Service item styles */
  .services-1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .services-1 a {
    display: block;
    background-color: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .services-1 a:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
  }
  
  .services-1 .icon {
    font-size: 40px;
    color: #ff7e5f;
  }
  
  .services-1 .desc {
    margin-top: 20px;
  }
  
  .services-1 h3 {
    font-size: 24px;
    font-weight: bold;
  }
  
  /* Medium devices (tablets, 768px and up) */
  @media (min-width: 768px) {
    .services-1 a {
      flex: 0 0 calc(33.333% - 20px);
      max-width: calc(33.333% - 20px);
    }
  }




/* CSS for Header Section */
@media (max-width: 768px) {
    #header {
        width: 100%;
        height: 100vh;
        background-image: url("images/1.PNG"), linear-gradient(to right, #000000, rgb(0, 0, 0));
        background-size: cover;
        background-position: center;
        position: relative;
        background-color:rgb(96, 90, 90);
    }


    body {
        margin: 20px; /* Add margin to the body */
    }
    nav ul {
        position: relative; /* Change to relative position */
        top: 0;
        right: 0;
        background: #000000;
        width: 100%;
        height: 0; /* Initially hide */
        overflow: hidden; /* Hide overflow content */
        text-align: center;
        transition: height 0.5s; /* Add transition for smooth animation */
        padding: 0; /* Remove padding */
        z-index: 1000;
        
    }

    .logo{
        margin-left: -10%;
    }
    

    nav ul {
        justify-content: center; /* Center the navigation items */
        margin-top: 0; /* Remove the negative top margin */
        margin-right: auto; /* Center the navigation bar horizontally */
        margin-left: auto; /* Center the navigation bar horizontally */
    }

    nav ul.active {
        position: absolute;
        animation: fadeInUp 0.5s ease-in-out;
        margin-top: 110px;
        height: auto; /* Change height to auto when active */
        padding: 20px 0; /* Add padding for better spacing */
        /* border-top: 2px solid white; Add border for style */
        z-index: 1001; /* Ensure dropdown is above other content */
    }
    @keyframes fadeInUp {
        0% {
            opacity: 0;
            transform: translateY(-20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    nav ul li {
        margin: 10px;
    }

    nav ul li a {
        font-size: 25px;
        color: white;
        text-decoration: none;
        display: flex;
        padding: 10px 0;
    }

    .navbar-toggler {
        display: block;
        font-size: 30px;
        color: white;
        position: absolute; /* Change to absolute position */
        top: 20px; /* Adjust top position */
        right: 15px; /* Adjust right position */
        cursor: pointer;
        margin-top: 6%;
    }
    
  
    .menubar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px auto;
        transition: background-color 0.3s ease;
    }

    /* Rotate bars to form an 'X' when the navbar is open */
    .navbar-toggler.open .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .navbar-toggler.open .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggler.open .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }



    
}




  
  /* CSS for Home Section */
  @media screen and (max-width: 768px) {
    .home h3 {
      font-size: 24px; /* Adjust font size */
    }
    
    .home h1 {
      font-size: 32px; /* Adjust font size */
    }
    
    .home p {
      font-size: 16px; /* Adjust font size */
    }
  }


 /* About section CSS for small screens */
@media screen and (max-width: 768px) {
    #about {
        padding: 50px 0; /* Adjust padding */
        margin-bottom: 6%; /* Adjust margin */
        margin-left: 5%;
        margin-right: 0;
    }

    .row {
        flex-direction: column; /* Change flex direction to column */
        align-items: center; /* Center align items */
    }

    .subtitle{
        margin-left: 20%;
        font-size: 50px;
        font-weight: 600;
    }
    .subtitle2 {
        margin-left: 0; /* Remove left margin */
        margin-right: 0;
        text-align: left; /* Center align text */
    }

    .about-col-1 img {
        width: 80%; /* Adjust image width */
        margin-left: auto;
        margin-left: 5%;  /* Center align image */
        margin-right: auto;
    }

    .subtitle {
        font-size: 30px; /* Adjust font size */
    }

    .subtitle2 {
        font-size: 16px; /* Adjust font size */
        margin-bottom: 20px; /* Adjust margin */
    }

    .read-more {
        margin-left: 0; /* Remove left margin */
        margin-top: 20px; /* Adjust top margin */
    }
}

  /* CSS for Skills Section */
  @media screen and (max-width: 768px) {
    .skill-main {
      display: flex;
      flex-direction: column;
    }
    
    .skill-bar {
      width: 100%;
      margin-bottom: 20px; /* Adjust spacing */
    }

    .skill-left{
        margin-left: 10%;
    }
  }
 
 
 



/* CSS for Services Section */
@media screen and (max-width: 768px) {
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust column width */
        grid-gap: 20px; /* Reduce gap between items */
        margin-left: 10px; /* Adjust left margin */
        margin-right: 10px; /* Adjust right margin */
        padding: 0; /* Remove padding */
    }

    .services-list div {
        padding: 20px; /* Reduce padding */
        font-size: 14px; /* Decrease font size for better readability */
    }

    .services-list h2 {
        font-size: 20px; /* Decrease heading font size */
    }
}

/* CSS for Portfolio Section on Phones */
@media screen and (max-width: 768px) {
    .portfolio-gallery {
      display: flex;
      flex-direction: column; /* Display items in a single column */
      align-items: center; /* Center items horizontally */
    }
    
    .port-box {
      width: 100%; /* Make each portfolio box take up full width */
      margin-bottom: 20px; /* Adjust spacing between portfolio items */
      max-width: 400px; /* Optional: Limit the maximum width of each portfolio box */
    }

    .fillter-buttons {
        margin: 1rem; /* Adjust margin for better spacing */
        margin-top: -2rem; /* Adjust top margin */
        margin-bottom: 2rem; /* Adjust bottom margin */
        white-space: nowrap; /* Ensure buttons stay on a single line */
        display: flex; /* Ensure buttons are displayed as a flex container */
        justify-content: center; /* Center align buttons */
      }
    
      .fillter-buttons .btn {
        margin: 0.5rem; /* Adjust margin for better spacing */
        
      }
}

/* Contact section CSS for small screens */
@media screen and (max-width: 768px) {
    .contact {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 20px; /* Add padding to the entire contact section */
    }

    .contact-left,
    .contact-right {
        padding: 20px;
        border-radius: 10px;
        background-color: #090909;
        color: white;
    }

    .contact-left h2,
    .contact-right h2 {
        font-size: 25px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .contact-left p,
    .contact-right p {
        font-size: 15px;
        font-weight: 500;
    }

    .contact-left h1 {
        margin-left: -12%;
        color: #0ef;
    }

    .contact-left p {
        margin-top: 30px;
        font-size: 30px;
    }

    .social-icons {
        margin-top: 30px;
        margin-left: -3%;
    }

    .social-icons a {
        text-decoration: none;
        font-size: 30px;
        color: rgb(255, 255, 255);
        display: inline-block;
        cursor: pointer;
        transition: 0.4s;
        margin-left: 5%;
    }

    .social-icons a:hover {
        color: #0ef;
        transform: translateY(-5px);
    }

    .contact-right form {
        width: 100%;
    }

    form input,
    form textarea {
        width: 100%;
        border: 0;
        outline: none;
        background: #262626;
        padding: 15px;
        margin: 15px 0;
        color: white;
        font-size: 16px;
        border-radius: 6px;
        font-weight: 600;
    }

    .send-message-button {
        display: inline-block;
        margin-top: 10px;
        border: 2px solid #0ef;
        background-color: #000000;
        color: white;
        padding: 8px 20px;
        text-decoration: none;
        font-size: 16px;
        font-weight: 550;
        border-radius: 5px;
        cursor: pointer;
        transition: 0.3s;
        margin-bottom: 20px;
        margin: 20px auto; /* Center button horizontally */
        display: block
    }

    .send-message-button:hover {
        background-color: #0ef;
    }

    #msg {
        color: white;
        font-weight: 600;
        display: block;
    }

    /* Styles for the loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000; /* Black background */
    color: #ffffff;
    pointer-events: none;
    z-index: 9999; /* Ensure the loader is on top of other content */
}

/* Counter styles */
.counter {
    position: fixed;
    left: 50px;
    bottom: 50px;
    display: flex;
    font-size: 5vw; /* Adjust font size to be responsive */
    line-height: 6vw; /* Adjust line height to be responsive */
    clip-path: polygon(0 0, 100% 0, 100% 6vw, 0 6vw); /* Adjust clip-path to be responsive */
    font-weight: 400;
    color: #000;
}

.counter-1,
.counter-2,
.counter-3 {
    position: relative;
    top: -15px;
}

.num1offset1 {
    position: relative;
    right: -25px;
}

.num1offset2 {
    position: relative;
    right: -10px;
}


}

