/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&family=Rubik:wght@300;400;500;600&display=swap');

/* Default Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #ededed;
    background: #04041a;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: #051129;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.logo {
    position: relative;
    font-size: 35px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    width: 50%;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}
/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color:  #051129;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s, background-color 0.3s;
    position: relative;
    font-size: 18px;
}

.navbar a:hover {
    color: #333;
    background-color: white;
    border-radius: 5px;
}

/* Animation delay based on the custom property --i */
.navbar a {
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Style for the menu icon */
.navbar .fa-bars {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive navbar for smaller screens */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar a {
        display: none;
        width: 100%;
    }

    .navbar .fa-bars {
        display: block;
    }
}

/* Class to show the links when menu is opened */
.navbar.open a {
    display: block;
}

.home {
    position: relative;
    width: 100%;
    justify-content: space-between;
    height: 100vh;
    background: rgb(4, 4, 30);
    background-image: url("img/background.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
}
.home-content {
    max-width: 600px;
    padding-top: 70px;
}

.home-content h3 {
    font-family: Arial, sans-serif; /* Example font */
    font-size: 35px; /* Example font size */
    color: #faf3f3; /* Example text color */
    /* Add more styles as needed */
}

h3 .text {
    font-weight: bold; /* Example: Making text bold */
    color: #ff6600; /* Example: Changing text color */
    text-align: justify;
    /* Add more styles as needed */
}

.home-content h1 {
    font-size: 50px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
    text-align: justify;
}

.home-content p {
    font-size: 17px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
    text-align: justify;
}

.home-sic 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;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}

.home-sic a:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #0ef;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    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:hover {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 45px cyan;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 25px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: #0ef;
    font-size: 35px;
}
/* Media Queries for Mobile Devices */
@media (max-width: 1024px) {
    .header {
        padding: 20px 5%;
    }

    .navbar {
        width: 100%;
        justify-content: center;
        margin: 20px 0;
    }

    .navbar a {
        margin: 0 10px; /* Adjust margin for smaller screens */
        font-size: 18px; /* Adjust font size for smaller screens */
    }

    .logo {
        width: 100%;
        text-align: center;
        font-size: 28px; /* Adjust font size for smaller screens */
    }

    .home-img {
        width: 250px; /* Adjust image size for smaller screens */
        margin: 10px; /* Adjust margin for smaller screens */
    }
}

@media (max-width: 768px) {
    .navbar a {
        margin: 0 8px; /* Further adjust margin for smaller screens */
        font-size: 16px; /* Further adjust font size for smaller screens */
    }
    
    .logo {
        font-size: 24px; /* Further adjust font size for smaller screens */
    }
    
    .home-img {
        width: 200px; /* Further adjust image size for smaller screens */
    }
}

@media (max-width: 480px) {
    .navbar a {
        margin: 0 5px; /* Adjust margin for even smaller screens */
        font-size: 14px; /* Adjust font size for even smaller screens */
    }
    
    .logo {
        font-size: 20px; /* Adjust font size for even smaller screens */
    }
    
    .home-img {
        width: 150px; /* Adjust image size for even smaller screens */
    }
}






.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1.5rem;
}
.about-img {
    width: 100%; /* Make it responsive */
    max-width: 500px; /* Adjust size as needed */
    height: auto; /* Maintain aspect ratio */
    border: 2px solid #fff; /* White border */
    box-shadow: 8px 8px 8px rgba(255, 255, 255, 0.5); /* White shadow */
    overflow: hidden; /* Ensures the image doesn't overflow the box */
}

.about-img img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures the image fills the box */
    display: block; /* Removes any extra space or gap */
}

.about-text h2 {
    font-size: 2.5rem;
    padding-top: 40px;
}
.about-text h2 span {
    color: #0ef;
}
.about-text h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.7;
    margin: 15px 0 30px;
}
.about-text p {
    color: aliceblue;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 4rem;
    margin-right: 3.8rem;
    line-height: 30px;
    text-align: justify;
}

/* Media Queries */
@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr; /* Single column layout for smaller screens */
    }
    .about-img {
        width: 70%; /* Adjust width for smaller screens */
        max-width: none; /* Remove max-width restriction */
        display: block; /* Ensure it's a block-level element */
        margin: 0 auto;
        
    }
    .about-text h2 {
        font-size: 2rem; /* Adjust font size for smaller screens */
        text-align: center;
    }
    .about-text h4 {
        font-size: 1.25rem; /* Adjust font size for smaller screens */
        text-align: center;
    }
    .about-text p {
        font-size: 0.875rem; /* Adjust font size for smaller screens */
        margin-right: 4rem; /* Reduce margin for smaller screens */
        margin-left: 2rem;
        line-height: 1.9;
    }
}
.btn {
    display: inline-block;
    padding: 10px 20px; /* Adjust padding for a comfortable touch target */
    font-size: 1rem; /* Base font size */
    text-align: center; /* Center the text */
    text-decoration: none; /* Remove underline */
    color: #fff; /* Text color */
    background-color: #0ef; /* Button background color */
    border-radius: 20px; /* Rounded corners */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
    margin: 0 auto; /* Center the button horizontally */
    display: block; /* Ensure it takes full width */
    max-width: 200px; /* Set maximum width for responsiveness */
}

.btn:hover {
    background-color: #0cc; /* Darker background on hover */
}
@media (max-width: 768px) {
    .btn {
        padding: 8px 16px; /* Adjust padding for smaller screens */
        font-size: 0.9rem; /* Adjust font size for smaller screens */
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 6px 12px; /* Adjust padding for smaller screens */
        font-size: 0.8rem; /* Adjust font size for smaller screens */
    }
}





#services{
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4rem;
}
.sub-title{
    text-align: center;
    font-size: 60px;
    padding-bottom: 70px;
}
.sub-title span{
    color: #0ef;
}
.container{
    padding: 90px;
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(259px,1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.services-list div{
    background-color: transparent;
    padding: 40px;
    font-size: 13px;
    font-weight: 13px;
    border-radius: 20px;
    border-right: 10px;
    transition: background .5s, transform .5s;
    box-shadow: 1px 1px 20px #012290f7,
    1px 1px 40px #0053b8f7;
}
.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}
.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}
.services-list div a{
    text-decoration: none;
    color: #000000;
    font-size: 12px;
    margin-top: 30px;
    display: inline-block;
}
.read{
    display: inline-block;
    padding: 12px 28px;
    background: #0ef;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    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;
}
.read:hover{
    box-shadow: 0 0 5px cyan,
    0 0  25px cyan, 0 0 45px cyan;
}
.services-list div:hover{
    transform: translateY(-10px);
}
@media (max-width: 768px) {
    #services {
        font-size: 18px; /* Decrease font size for smaller screens */
        margin-bottom: 3rem; /* Adjust margin for smaller screens */
    }

    .sub-title {
        font-size: 40px; /* Decrease font size for smaller screens */
        padding-bottom: 50px; /* Adjust padding for smaller screens */
    }

    .container {
        padding: 50px; /* Adjust padding for smaller screens */
    }

    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust grid columns for smaller screens */
        grid-gap: 30px; /* Decrease grid gap for smaller screens */
        margin-top: 30px; /* Adjust margin for smaller screens */
    }

    .services-list div {
        padding: 30px; /* Adjust padding for smaller screens */
        font-size: 12px; /* Decrease font size for smaller screens */
    }

    .services-list div i {
        font-size: 40px; /* Decrease icon size for smaller screens */
        margin-bottom: 20px; /* Adjust margin for smaller screens */
    }

    .services-list div h2 {
        font-size: 24px; /* Decrease font size for smaller screens */
        margin-bottom: 10px; /* Adjust margin for smaller screens */
    }

    .services-list div a {
        font-size: 10px; /* Decrease font size for smaller screens */
        margin-top: 20px; /* Adjust margin for smaller screens */
    }

    .read {
        padding: 10px 24px; /* Adjust padding for smaller screens */
        font-size: 14px; /* Decrease font size for smaller screens */
    }
}




/* General adjustments */
section {
    padding: 50px 0;
    background-color: #04041a;
  }
  
  .skills-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
  }
  
  .technical-skills,
  .professional-skills {
    flex: 0 0 48%; /* Adjust width as needed */
    background-color: #04041a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #f8f1f1;
  }
  .progress-line {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px; /* Adjust margin for spacing */
    position: relative; /* Ensure child elements are positioned relative to this */
  }
  
  /* Inner progress bar */
  .progress-line span {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px; /* Rounded corners for smooth transition */
    background-color: inherit; /* Inherit background from .progress-line */
    animation: progress-fill 1s ease-in-out forwards; /* Animation for progress filling */
  }
  
  /* Gradient for before and after color effect */
  .progress-line span:before,
  .progress-line span:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(var(--progress-width) * 1%);
    background-color: inherit;
  }
  
  /* Before color gradient */
  .progress-line span:before {
    right: 100%; /* Start before the progress */
    background: linear-gradient(to right, rgb(240, 237, 237), rgb(250, 246, 246)); /* Adjust gradient colors */
  }
  
  /* After color gradient */
  .progress-line span:after {
    left: 100%; /* Extend after the progress */
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3)); /* Adjust gradient colors */
  }
  
  /* Keyframes for progress filling animation */
  @keyframes progress-fill {
    from {
      width: 0%; /* Starts from 0% width */
    }
    to {
      width: calc(var(--progress-width) * 1%); /* Fills based on progress percentage */
    }
  }
  
  /* Skill specific styles */
  .java .progress-line span {
    --progress-width: 90; /* Adjust based on proficiency */
    background-color: #0f5bdf; /* Example color */
  }
  
  .html .progress-line span {
    --progress-width: 85;
    background-color: #0f5bdf; /* Example color */
  }
  
  .css .progress-line span {
    --progress-width: 80;
    background-color: #0f5bdf; /* Example color */
  }
  
  .javascript .progress-line span {
    --progress-width: 85;
    background-color: #0f5bdf; /* Example color */
  }
  
  .python .progress-line span {
    --progress-width: 75;
    background-color: #0f5bdf; /* Example color */
  }
  
  .react .progress-line span {
    --progress-width: 80;
    background-color: #0f5bdf; /* Example color */
  }
  
  .sql .progress-line span {
    --progress-width: 70;
    background-color: #0f5bdf; /* Example color */
  }
  
  .creativity .progress-line span {
    --progress-width: 85;
    background-color: #0f5bdf; /* Example color */
  }
  
  .communication .progress-line span {
    --progress-width: 90;
    background-color: #0f5bdf; /* Example color */
  }
  
  .problem-solving .progress-line span {
    --progress-width: 80;
    background-color: #0f5bdf; /* Example color */
  }
  
  .teamwork .progress-line span {
    --progress-width: 85;
    background-color: #0f5bdf; /* Example color */
  }
  
  .portfolio-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Adjust grid columns */
    gap: 20px; /* Set the gap between grid items */
    justify-content: center; /* Center the grid horizontally */
    max-width: 1200px; /* Limit the maximum width of the grid */
    margin: 0 auto; /* Center the grid container */
}

.portfolio-content .row {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 4px 4px 4px rgb(9, 178, 245);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: fadeInUp 0.5s ease-in-out both;
    background: #fff;
    padding: 10px;
    max-width: 100%; /* Ensure full width of grid items */
    height: auto;
}

.portfolio-content .row img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.portfolio-content .row:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgb(243, 240, 240);
}

.portfolio-content .row:hover img {
    transform: scale(1.05);
}

.portfolio-content .row .layer {
    position: absolute;
    bottom: 0;
    background: rgb(248, 244, 244);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(100%);
}

.portfolio-content .row:hover .layer {
    background: rgb(14, 0, 0);
    transform: translateY(0);
    z-index: 1; /* Ensure the layer is above other content */
}

.portfolio-content .row h5,
.portfolio-content .row p,
.portfolio-content .row a {
    animation: fadeIn 0.5s ease-in-out both;
}

.portfolio-content .row h5 {
    font-size: 1.1em;
    margin: 4px 4px 4px;
    color: #fcf9f9;
}

.portfolio-content .row p {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: #666;
}

.portfolio-content .row a {
    color: #007bff;
    text-decoration: none;
    font-size: 1em;
    display: inline-block;
    margin-top: 8px;
    transition: color 0.3s ease-in-out;
}

.portfolio-content .row a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Visit Me Box */
.portfolio-content .row .visit-me {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 1em;
    color: #007bff;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.portfolio-content .row:hover .visit-me {
    opacity: 1;
}

/* Additional Animations */
.portfolio-content .row img {
    animation: zoomIn 0.6s ease-in-out both;
}

.portfolio-content .row .layer {
    transition-delay: 0.3s;
}

/* Additional Animations */
.portfolio-content .row img {
    animation: zoomIn 0.6s ease-in-out both;
}

.portfolio-content .row .layer {
    transition-delay: 0.3s;
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .portfolio-content {
        grid-template-columns: repeat(2, 1fr); /* Two columns on smaller screens */
        gap: 15px; /* Reduce gap between items */
       /*  margin: 0 auto; Center the grid horizontally */
       margin-left: 2rem;
       margin-right: 2rem;

    }

    .portfolio-content .row {
        padding: 8px; /* Adjust padding for smaller screens */
    }

    .portfolio-content .row h5 {
        font-size: 1em; /* Adjust heading font size */
    }

    .portfolio-content .row p {
        font-size: 0.8em; /* Adjust paragraph font size */
    }

    .portfolio-content .row .visit-me {
        padding: 8px 16px; /* Adjust padding for visit-me box */
        font-size: 0.9em; /* Adjust font size for visit-me box */
    }
}



/* Additional Animations */
.portfolio-content .row img {
    animation: zoomIn 0.6s ease-in-out both;
}

.portfolio-content .row .layer {
    transition-delay: 0.3s;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.certificate .main-text {
    text-align: center;
    margin: 0 auto;
}
.certificate .main-text h2 {
    font-size: 2em;
    margin: 20px 0;
}
section.certificate {
    padding: 40px 20px;
    text-align: center;
    background-color: #04041a;
}
.main-text {
    text-align: center;
}
.main-text h2 {
    font-size: 2.5em;
    color: #fdffff;
    margin-bottom: 20px;
}
.main-text h2 span {
    color: #007bff;
}
/* Achievements Section */
.achievements-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.certificate-box {
    width: calc(20% - 20px);  /* Reduced size */
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.certificate-box img {
    width: 100%;
    height: auto;
    display: block;
}
.certificate-box p {
    margin: 0;
    padding: 15px;
    font-size: 1em;
    color: #333;
    background-color: #f9f9f9;
}
.certificate-box a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.certificate-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* Responsive Design */
@media (max-width: 1200px) {
    .certificate-box {
        width: calc(25% - 20px);  /* Adjusted for responsiveness */
    }
}
@media (max-width: 768px) {
    .certificate-box {
        width: calc(33.333% - 20px);  /* Adjusted for responsiveness */
    }
}
@media (max-width: 480px) {
    .certificate-box {
        width: calc(50% - 20px);  /* Adjusted for responsiveness */
    }
}
.contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
    padding-left: 30px;
    margin-top: 130px;
}

.contact-text h2 {
    font-size: 90px;
    line-height: 1;
    text-align: center;
    margin-bottom: 40px;
}

.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;
    text-align: justify;
}

.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 .4s ease;
    padding-right: 10px;
}

.contact-list li a:hover {
    transform: scale(1.01) translateY(-5px);
    color: #0ef;
}

.contact-icons i {
    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;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.contact-icons i: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: #000;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}

.contact-form textarea {
    resize: none;
    height: 200px;
}

.contact-form form .send {
    display: inline-block;
    padding: 14px 60px;
    background: #0ef;
    border-radius: 40px;
    font-size: 18px;
    color: #081b29;
    letter-spacing: 1px;
    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;
    margin-top: 10px;
}

.contact-form form .send:hover {
    box-shadow: 0 0 5px cyan,
    0 0  25px cyan, 0 0 45px cyan;
}

.last-text p {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: rgb(19, 1, 19);
    font-size: 300;
    margin-top: 70px;
}

.top {
    position: fixed;
    bottom: 2.1rem;
    right: 2.1rem;
}

.top i {
    color: #000;
    background: #0ef;
    font-size: 20px;
    padding: 10px 13px;
    border-radius: 0.5rem;
}

@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;
    }
}

@media screen and (max-width: 768px) {
    .contact {
        grid-template-columns: 1fr;
        padding-left: 20px;
    }

    .contact-text h2 {
        font-size: 60px;
    }

    .contact-text h4, .contact-text p, .contact-list li {
        font-size: 18px;
        text-align: center;
        margin: 10px auto; /* Adjust margin for equal spacing */
        max-width: 80%;
    }

    .contact-form form input,
    .contact-form form textarea {
        width: 100%;
        padding: 15px;
        margin: 10px auto; /* Adjust margin for equal spacing */
    }

    .contact-form form .send {
        padding: 12px 50px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .contact-text h2 {
        font-size: 40px;
    }

    .contact-text h4, .contact-text p, .contact-list li {
        font-size: 16px;
        text-align: center;
        margin: 10px auto; /* Adjust margin for equal spacing */
        max-width: 80%;
        text-align: justify;
    }

    .contact-form form input,
    .contact-form form textarea {
        padding: 12px;
        margin: 10px auto; /* Adjust margin for equal spacing */
        max-width: 90%;
    }

    .contact-form form .send {
        padding: 10px 40px;
        font-size: 14px;
    }
}





/* @media screen and (max-width: 600px) {
    h3 {
        font-size: 36px; 
        line-height: 50px;
    }
    .navbar a{
        display: inline-block;
        font-size: 22px;
        color: #fff;
        text-decoration: none;
        font-weight: auto;
        margin-left: 0;
        transition: .3s;
        opacity: 0;
        animation: slideTop 1s ease forwards;
        animation-delay: calc(.2s * var(--i)); 
        top: auto;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
        box-sizing: border-box;
        position: unset;
    }
} */
