/*  import google fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');



*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
html{
    scroll-behavior: smooth;
}

/* custom scroll bar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #33e7f8;
}
::-webkit-scrollbar-thumb {
    background: #de88f8;
}

::-webkit-scrollbar-thumb:hover {
    background: #d50d82;
}

/* all similar content styling codes */
section{
    padding: 100px 0;
}
.max-width{
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}
.about, .Projects, .skills, .teams, .contact, footer{
    font-family: 'Poppins', sans-serif;
}
.about .about-content,
.Projects .project-content,
.skills .skills-content,
.contact .contact-content{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
section .title{
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}
section .title::before{
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #111;
    transform: translateX(-50%);
}
section .title::after{
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: darkcyan;
    padding: 0 5px;
    background: #fff;
    transform: translateX(-50%);
}

/* navbar styling */
.navbar{
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 30px 0;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
}
.navbar.sticky{
    padding: 15px 0;
    background: darkcyan;
}
.navbar .max-width{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo a{
    color: #fff;
    font-size: 35px;
    font-weight: 600;
}
.navbar .logo a span{
    color: darkcyan;
    transition: all 0.3s ease;
}
.navbar.sticky .logo a span{
    color: #f50b0b;
}
.navbar .menu li{
    list-style: none;
    display: inline-block;
}
.navbar .menu li a{
    display: block;
    color: #fb5603fe;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}
.navbar .menu li a:hover{
    color: darkcyan;
}
.navbar.sticky .menu li a:hover{
    color: #f5f9f7;
}

/* menu btn styling */
.menu-btn{
    color: #be0c0c;
    font-size: 23px;
    cursor: pointer;
    display: none;
}
.scroll-up-btn{
    position: fixed;
    height: 45px;
    width: 42px;
    background: darkcyan;
    right: 30px;
    bottom: 10px;
    text-align: center;
    line-height: 45px;
    color: #fff;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    border-bottom-width: 2px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.scroll-up-btn.show{
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}
.scroll-up-btn:hover{
    filter: brightness(50%);
}


/* home section styling */
.home{
    display: flex;
    background: url("HomepageBG.jpg") no-repeat;
    height: 100vh;
    color: #f6f5f4;
    min-height: 500px;
    background-size:100% 100%;
    background-attachment: fixed;
    font-family: 'Ubuntu', sans-serif;
}
.home .max-width{
  width: 100%;
  display: flex;
}
.home .max-width .row{
  margin-right: 0;
}
.home .home-content .text-1{
    font-size: 27px;
}
.home .home-content .text-2{
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}
.home .home-content .text-3{
    font-size: 40px;
    margin: 5px 0;
}
.home .home-content .text-3 span{
    color: darkcyan;
    font-weight: 500;
}
.home .home-content a{
    display: inline-block;
    background:darkcyan;
    color: #f1f5f3;
    font-size: 25px;
    padding: 12px 36px;
    margin-top: 20px;
    font-weight: 400;
    border-radius: 6px;
    border: 2px solid darkcyan;
    transition: all 0.3s ease;
}
.home .home-content a:hover{
    color: darkcyan;
    background: none;
}

/* about section styling */
.about .title::after{
    content: "who i am";
}
.about .about-content .left{
    width: 45%;
}
.about .about-content .left img{
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 6px;
}
.about .about-content .right{
    width: 55%;
}
.about .about-content .right .text{
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}
.about .about-content .right .text span{
    color: darkcyan;
}
.about .about-content .right p{
    text-align: justify;
}
.about .about-content .right a{
    display: inline-block;
    background: darkcyan;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid darkcyan;
    transition: all 0.3s ease;
}
.about .about-content .right a:hover{
    color: darkcyan;
    background: none;
}


/* Projects section styling */
/* Base styles for large screens */
.Projects, .teams {
    color: #fff;
    background: #111;
}

.Projects .title::before,
.teams .title::before {
    background: #fff;
}

.Projects .title::after,
.teams .title::after {
    background: #111;
    content: "what I've done?";
}

.Projects .project-content .card {
    width: calc(33% - 20px);
    max-width: 400px;
    background: #222;
    text-align: center;
    border-radius: 6px;
    padding: 50px 25px;
    cursor: pointer;
    transition: opacity 0.5s ease-in-out; /* Smooth opacity transition */
}

.Projects .project-content .card:hover {
    background: darkcyan;
}

.Projects .project-content .card .box {
    transition: transform 0.3s ease;
}

.Projects .project-content .card:hover .box {
    transform: scale(1.05);
}

.Projects .project-content .card i {
    font-size: 50px;
    color: darkcyan;
    transition: color 0.3s ease;
}

.Projects .project-content .card:hover i {
    color: #fff;
}

.Projects .project-content .card .text {
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}

.Projects .details {
    color: darkcyan;
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.Projects .project-content .card.hidden {
    display: none;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    transform: translateX(-50px);
}

.project-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    height: fit-content;
    max-height: min-content;
}

.project-content > .card {
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.card .box {
    padding: 20px;
    text-align: center;
}

.arrow {
    background-color: #706a6a;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.left-arrow {
    left: 37px;
}

.right-arrow {
    right: 37px;
}

.Projects .arrow:hover {
    background-color: darkcyan;
    color: #fff;
}

/* Button styles */
.website {
    margin-top: 20px;
    background-color: #222;
    color: whitesmoke;
    padding: 10px;
}

.website:hover {
    color: #33e7f8;
    background-color: rebeccapurple;
}

/* Media Queries for Small and Medium Devices */
@media (max-width: 768px) {
    .Projects .project-content {
      flex-wrap: wrap; /* Allow cards to wrap */
      justify-content: center; /* Center cards horizontally */
    }
  
    .Projects .project-content .card {
      width: calc(50% - 20px); /* Two cards per row */
      max-width: 300px;
      padding: 30px 15px;
    }
  
    .Projects .details {
      font-size: 24px;
    }
  
    .arrow {
      font-size: 20px;
      padding: 8px;
    }
  
    .left-arrow {
      left: 20px;
    }
  
    .right-arrow {
      right: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .Projects .project-content .card {
      width: 100%; /* Full width for cards */
      max-width: none;
      padding: 20px;
      margin: 30px;
    }
  
    .Projects .details {
      font-size: 10px;
    }
  
    .arrow {
      font-size: 18px;
      padding: 3px;
    }
  
    .left-arrow {
      left: 5px;
    }
  
    .right-arrow {
      right: 20px;
    }
  
    .website {
      padding: 8px;
    }
  }

  @media (max-width: 1024px) {
   
  
    .Projects .details {
      font-size: 20px;
    }
  
    .arrow {
      font-size: 20px;
      padding: 8px;
    }
  
    .left-arrow {
      left: 2px;
    }
  
    .right-arrow {
      right: 2px;
    }
  }


/* skills */
.skills .title::after{
    content: "what i know";
}
.skills .skills-content .column{
    width: calc(50% - 30px);
}

.skills {
    background: white;
}

.skill-main {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 30px;
    grid-column-gap: 50px;
}

.skill-bar {
    margin-bottom: 2.3rem;
}

.skill-bar h3 {
    text-align: center;
    font-size: 5rem;
    margin-bottom: .2rem;
}

.skill-left .skill-bar .info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.skill-left .skill-bar .bar {
    width: 100%;
    height: 10px;
    background-color:rgb(170, 237, 255);
    border-radius: 25px;
    margin-top: 5px;
    position: relative;
}

/* Skill Bar */
/* For Left side */
.skill-left{
    width: 100%;
}

.skill-bar .bar span {
    width: 20%;
    height: 100%;
    position: absolute;
    left: 0;
    background-color: blue;
    border-radius: 25px;
    box-shadow: 0 0 10px rgb(170, 237, 255);
}

.skill-bar .bar .html {
    width: 90%;
    animation: html 3s;
}

.skill-bar .bar .css {
    width: 80%;
    animation: css 4s;
}

.skill-bar .bar .javascript {
    width: 75%;
    animation: javascript 5s;
}

.skill-bar .bar .python {
    width: 50%;
    animation: python 6s;
}

.skill-bar .bar .other-languages {
    width: 10%;
    animation: other-languages 7s;
}

/* for Right side */

h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.professional {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.box {
    position: relative;
    margin: 10px 0;
    flex: 1 1 15rem;
}

.box .text {
    text-align: center;
    font-size: 1rem;
    color: black;
}

.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;
    position: relative;
}

.circle .points {
    width: 2px;
    height: 10px;
    background-color: rgb(170, 237, 255);
    position: absolute;
    border-radius: 3px;
    transform: rotate(calc(var(--i) * var(--rot))) translateY(-45px);
}

.points.marked {
    animation: glow 0.04s linear forwards;
    animation-delay: calc(var(--i) * 0.05s);
}

/* animations for skill bar left side */
@keyframes html {
    0% {
        width: 0%;
    }
    100% {
        width: 90%;
    }
}

@keyframes css {
    0% {
        width: 0%;
    }
    100% {
        width: 80%;
    }
}

@keyframes javascript {
    0% {
        width: 0%;
    }
    100% {
        width: 75%;
    }
}

@keyframes python {
    0% {
        width: 0%;
    }
    100% {
        width: 50%;
    }
}

@keyframes other-languages {
    0% {
        width: 0%;
    }
    100% {
        width: 10%;
    }
}

/* animations for skill bar right side */
@keyframes glow {
    0% {
        background: red;
        box-shadow: none;
    }
    100% {
        background: blue;
        box-shadow: 0 0 10px rgb(157, 242, 133);
    }
}

/* Media queries for smaller screens */

@media (max-width: 768px) {
  .skill-left {
    width: 100%;
  }

  .skill-bar .bar span {
    width: 30%;
  }

  .skill-bar .bar .html {
    width: 80%;
  }

  .skill-bar .bar .css {
    width: 70%;
  }

  .skill-bar .bar .javascript {
    width: 65%;
  }

  .skill-bar .bar .python {
    width: 40%;
  }

  .skill-bar .bar .other-languages {
    width: 20%;
  }

  h3 {
    font-size: 20px;
  }

  .professional {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .skill-left {
    width: 100%;
  }

  .skill-bar .bar span {
    width: 40%;
  }

  .skill-bar .bar .html {
    width: 70%;
  }

  .skill-bar .bar .css {
    width: 60%;
  }

  .skill-bar .bar .javascript {
    width: 55%;
  }

  .skill-bar .bar .python {
    width: 30%;
  }

  .skill-bar .bar .other-languages {
    width: 15%;
  }

  h3 {
    font-size: 18px;
  }

  .professional {
    grid-template-columns: 1fr;
  }
}

/* Contact Us Section */
/* Contact section styling */
.contact .title::after {
    content: "Get In Touch";
}

.contact .contact-content .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact .contact-content .left p {
    text-align: justify;
}

.contact .contact-content .left .icons {
    margin: 10px 0;
}

.contact .contact-content .row {
    display: flex;
    height: 65px;
    align-items: center;
}

.contact .contact-content .row .info {
    margin-left: 30px;
}

.contact .contact-content .row i {
    font-size: 25px;
    color: darkcyan;
}

.contact .contact-content .info .head {
    font-weight: 500;
}

.contact .contact-content .info .sub-title {
    color: rgb(252, 249, 249);
}

/* Adjust icon positioning in the left column */
.contact .left .icons {
    margin-top: 20px;
}

/* Social media icons styling */
.social {
    position: absolute;
    left: 120px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 20px;
}

.social a {
    display: block;
}

.social img {
    height: 30px;
    width: 30px;
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Ensure the whole form or contact section expands */
.contact .contact-content {
    display: flex;
    flex-wrap: wrap;
}

.contact .contact-content .column {
    flex: 1;
    min-width: 300px;
    padding: 50px;
}

.contact .contact-content .column.right {
    flex-grow: 1;
    align-items: stretch; /* Allows form fields to stretch */
}

.contact {
    position: relative;
    background: #111;
    color: #fff;
    padding: 40px;
}

/* Responsive styling */
@media (max-width: 1200px) {
    .contact .contact-content .text {
        font-size: 18px;
    }

    .contact .contact-content .row {
        height: auto;
        margin-bottom: 20px;
    }

    .contact .contact-content .row .info {
        margin-left: 20px;
    }

    .social {
        left: 100px;
    } 
    .contact .contact-content .left .icons {
        padding-inline-start: 20px;
    }
    
}

@media (max-width: 768px) {
    .contact {
        padding: 30px;
    }

    .contact .contact-content .text {
        font-size: 16px;
    }

    .contact .contact-content .column {
        padding: 20px;
    }

    .contact .contact-content .row i {
        font-size: 20px;
    }
    .social {
        position: absolute;
        left: 10px;
        top: 70%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 40px;
    }
    .social img {
        height: 25px;
        width: 25px;
    }
    
}

@media (max-width: 480px) {
    .contact {
        padding: 20px;
    }

    .contact .contact-content .text {
        font-size: 14px;
    }

    .contact .contact-content .column {
        padding: 10px;
    }

    .contact .contact-content .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact .contact-content .row i {
        font-size: 18px;
    }

    .contact .contact-content .row .info {
        margin-left: 0;
    }

    .social {
        position: absolute;
        left: 10px;
        top: 37%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 40px;
    }
    .social img {
        height: 25px;
        width: 25px;
    }
}


/* for right column */
/* General right column styling */
.column.right {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* General field styling */
.field input, .field textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Flexbox layout for Name and Email fields */
.fields {
    display: flex;
    justify-content: space-between;
}

.field.name, .field.email {
    width: 48%;
}

/* Style for the Subject field */
.field#subject.field input {
    margin-top: 15px;
    width: 100%;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
}

.field#subject :focus {
    outline: none;
    border-color: darkcyan;
    box-shadow: 0 0 9px darkcyan;
}

/* Flexbox layout for Date and File fields */
.field.day, .field.file {
    display: inline-block;
    width: 48%;
    color: #e2e1e1;
    background-color: #333;
}

.field.file :focus {
    outline: none;
    border-color: darkcyan;
    box-shadow: 0 0 9px darkcyan;
}

/* Adjust margin between Date and File fields */
.field.day {
    margin-top: 15px;
    margin-right: 3%;
}

.field.day input {
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
}

.field.day :focus {
    outline: none;
    border-color: darkcyan;
    box-shadow: 0 0 9px darkcyan;
}

/* Style for the Message field */
.field.textarea {
    margin-top: 15px;
}

.field.textarea textarea {
    resize: vertical;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
}

.field.textarea :focus {
    outline: none;
    border-color: darkcyan;
    box-shadow: 0 0 9px darkcyan;
}

.contact .contact-content .column.right {
    padding: 40px;
}

/* Styling the "Text me" heading */
.contact .contact-content .column.right .text {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

/* Consistent styling for all input fields */
.contact .contact-content .column.right .fields .field {
    margin-bottom: 15px;
}

.contact .contact-content .column.right .fields .field input,
.contact .contact-content .column.right .fields .field textarea,
.contact .contact-content .column.right .fields .field .dat,
.contact .contact-content .column.right .fields .field .fil {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    font-size: 14px;
}

/* Focus effect for inputs and textareas */
.contact .contact-content .column.right .fields .field input:focus,
.contact .contact-content .column.right .fields .field textarea:focus,
.contact .contact-content .column.right .fields .field .dat:focus,
.contact .contact-content .column.right .fields .field .fil:focus {
    outline: none;
    border-color: darkcyan;
    box-shadow: 0 0 5px darkcyan;
}

/* Styling the textarea (Message field) */
.contact .contact-content .column.right .fields .field.textarea textarea {
    resize: none;
    height: auto;
    min-height: 100px;
}

/* Styling the submit button */
.contact .contact-content .column.right .button-area {
    display: flex;
    justify-content: center;
}

.contact .contact-content .column.right .button-area button {
    padding: 12px 24px;
    border-radius: 5px;
    border: none;
    background-color: darkcyan;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Submit button hover effect */
.contact .contact-content .column.right .button-area button:hover {
    background-color: #007b7b;
}

/* Popup styling */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
    width: 300px;
    max-width: 90%;
}

.popup.success {
    background-color: #616462;
}

.popup.error {
    background-color: #5d5959;
}

/* Message styling */
.popup p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Button container styling */
.popup-buttons {
    display: flex;
    justify-content: space-between;
}

/* Button styling */
.popup-buttons button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.popup-close {
    background-color: #007bff;
    color: #fff;
}

.popup-close:hover {
    background-color: #0056b3;
}

.popup-send-again {
    background-color: #ffc107;
    color: #333;
}

.popup-send-again:hover {
    background-color: #e0a800;
}

/* Responsive styling for the right column */
@media (max-width: 768px) {
    .contact .contact-content .column.right {
        padding: 20px;
    }
    
    .contact .contact-content .column.right .text {
        font-size: 20px;
    }
    
    .contact .contact-content .column.right .fields .field input,
    .contact .contact-content .column.right .fields .field textarea,
    .contact .contact-content .column.right .fields .field .dat,
    .contact .contact-content .column.right .fields .field .fil {
        font-size: 13px;
    }
    
    .contact .contact-content .column.right .button-area button {
        padding: 10px 20px;
        font-size: 15px;
    }

    .fields {
        flex-direction: column;
    }

    .field.name, .field.email, .field.day, .field.file {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* For calendar (date) */
/* Style the date input field */
input[type="date"] {
    background-color: #343434; /* Light black background */
    color: #fff; /* White text color */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Style the calendar icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    color: #fff; /* White icon color */
    padding: 5px;
}

/* Hide the default calendar icon and use a custom one */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(100%); /* Invert colors to make the icon white */
}

/* Adjust for non-WebKit browsers */
input[type="date"]::-moz-calendar-picker-indicator {
    filter: invert(100%); /* Invert colors to make the icon white */
}

input[type="date"]::-ms-expand {
    display: none; /* Hide the default calendar icon for IE */
}

/* Additional responsive tweaks */
@media (max-width: 480px) {
    .contact .contact-content .column.right .text {
        font-size: 18px;
    }

    .contact .contact-content .column.right .button-area button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .popup {
        width: 90%;
    }
}





/* footer section styling */
footer{
    background: #111;
    padding: 15px 23px;
    color: #fff;
    text-align: center;
}
footer span a{
    color: darkcyan;
    text-decoration: none;
}
footer span a:hover{
    text-decoration: underline;
}

/* responsive media query start */
@media (max-width: 1104px) {
    .about .about-content .left img{
        height: 350px;
        width: 350px;
    }
}

@media (max-width: 991px) {
    .max-width{
        padding: 0 50px;
    }
}
@media (max-width: 947px){
    .menu-btn{
        display: block;
        z-index: 999;
    }
    .menu-btn i.active:before{
        content: "\f00d";
    }
    .navbar .menu{
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 0;
        background: #111;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
    }
    .navbar .menu.active{
        left: 0;
    }
    .navbar .menu li{
        display: block;
    }
    .navbar .menu li a{
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }
    .home .home-content .text-2{
        font-size: 70px;
    }
    .home .home-content .text-3{
        font-size: 35px;
    }
    .home .home-content a{
        font-size: 23px;
        padding: 10px 30px;
    }
    .max-width{
        max-width: 930px;
    }
    .about .about-content .column{
        width: 100%;
    }
    .about .about-content .left{
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }
    .about .about-content .right{
        flex: 100%;
    }
    .Projects .project-content .card{
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
    .skills .skills-content .column,
    .contact .contact-content .column .details{
        width: 100%;
        margin-bottom: 35px;
    }
}

@media (max-width: 690px) {
    .max-width{
        padding: 0 23px;
    }
    .home .home-content .text-2{
        font-size: 60px;
    }
    .home .home-content .text-3{
        font-size: 32px;
    }
    .home .home-content a{
        font-size: 20px;
    }
    .Projects .project-content .card{
        width: 100%;
    }
}

@media (max-width: 500px) {
    .home .home-content .text-2{
        font-size: 50px;
    }
    .home .home-content .text-3{
        font-size: 27px;
    }
    .about .about-content .right .text,
    .skills .skills-content .left .text .details{
        font-size: 19px;
    }
    .contact .right form .fields{
        flex-direction: column;
    }
    .contact .right form .name,
    .contact .right form .email {
        margin: 0;
    }
    .right form .error-box{
       width: 150px;
    }
    .scroll-up-btn{
        right: 15px;
        bottom: 15px;
        height: 38px;
        width: 35px;
        font-size: 23px;
        line-height: 38px;
    }
}



/*==================== Qualifications ====================*/

/* Main container styling */
.qualification__section.service__section {
  background-color: #bebdbd;
  padding: 20px;
}

.container {
  max-width: 768px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title styling */
.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #060606;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  font-size: 2.5rem;
  font-weight: 900;
  color: black;
  text-align: center;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
  display: block;
}

/* Button styling */
.button--link {
  padding: 0;
  background-color: transparent;
  color: blue;
}

/* Qualification section adjustments */
.qualification__sections {
  width: 100%;
  max-width: 550px;
  height: max-content;
  padding: 0 20px;
}

/* Tabs styling */
.qualification__tabs {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.qualification__button {
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.qualification__button:hover {
  color: white;
  background-color: blue;
}

.qualification__icon {
  font-size: 1.8rem;
  margin-right: 0.25rem;
}

/* Qualification data layout */
.qualification__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
  align-items: center;
}

.qualification__title {
  font-size: 0.938rem;
  font-weight: 500;
}

.qualification__subtitle {
  display: inline-block;
  font-size: 0.813rem;
}

.qualification__calender {
  font-size: 0.75rem;
  color: rgb(129, 126, 126);
}

/* Hide green dot and line on small screens */
.qualification__rounder {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: rgb(70, 251, 158);
  border-radius: 50%;
}

.qualification__line {
  display: block;
  width: 1px;
  height: 100%;
  background-color: rgb(251, 104, 6);
  transform: translate(6px, -7px);
}

.qualification [data-content] {
  display: none;
}

.qualification__active[data-content] {
  display: block;
}

.qualification__button.qualification__active {
  color: blue;
}

/*==================== Media Queries for Responsiveness ====================*/

/* Tablets and Small Desktops */
@media (max-width: 1024px) {
  .container {
    max-width: 90%;
    padding-top: 15px;
  }

  .section__title {
    font-size: 2rem;
  }

  .section__subtitle {
    font-size: 1.8rem;
  }

  .qualification__data {
    grid-template-columns: 1fr;
    column-gap: 0;
    text-align: center;
  }

  .qualification__icon {
    font-size: 1.5rem;
  }

  .qualification__title {
    font-size: 0.875rem;
  }

  .qualification__subtitle,
  .qualification__calender {
    font-size: 0.75rem;
  }

  .qualification__rounder,
  .qualification__line {
    display: none; /* Hide rounder and line */
  }

  /* Ensure dismiss button is visible */
  .dismiss-button {
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    font-size: 1rem;
    background-color: #fff;
    border: 2px solid blue;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
  }
}

/* Smartphones and Small Devices */
/* Small screen adjustments */
@media (max-width: 600px) {
    .qualification__sections {
      width: 100%; /* Full width on small screens */
      padding: 0 10px;
    }
  
    .qualification__data {
      grid-template-columns: 1fr; /* Single column layout */
      text-align: center; /* Center the text */
      row-gap: 1rem; /* Add spacing between rows */
      padding: 10px 0; /* Add padding for better spacing */
    }
  
    .qualification__title,
    .qualification__subtitle,
    .qualification__calender {
      font-size: 0.8rem; /* Adjust font size for smaller screens */
      line-height: 1.2; /* Ensure good line height */
    }
  
    .section__title,
    .section__subtitle {
      font-size: 1.5rem; /* Reduce title and subtitle font size */
    }
  
    .qualification__button {
      width: 100%; /* Button occupies full width */
      margin-bottom: 10px;
      text-align: center;
    }
  
    .qualification__tabs {
      flex-direction: column;
      align-items: center;

    }
  }
  
  

  
  /* Extra Small Devices (Portrait Phones) */
  @media (max-width: 375px) {
    .section__title {
      font-size: 1.5rem;
    }
  
    .section__subtitle {
      font-size: 1.3rem;
    }
  
    .qualification__button {
      font-size: 1rem;
    }
  
    .qualification__icon {
      font-size: 1rem;
    }
  
    .qualification__data {
      grid-template-columns: 1fr;
      row-gap: 1rem; /* Adjust row gap for smaller screens */
    }
  
    .qualification__sections {
      padding: 0 5px;
    }
  }




/*================= Services ==================*/

.services_container {
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.services__content {
  position: relative;
  background-color: rgb(228, 227, 230);
  padding: 3.5rem 0.5rem 1.25rem 1.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.services__button {
  cursor: pointer;
  font-size: 0.813rem;
}

.services__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.services__modal {
  position: fixed; /* Keeps the modal in a fixed position relative to the viewport */
  top: 50%; /* Centers the modal vertically in the viewport */
  left: 50%; /* Centers the modal horizontally in the viewport */
  transform: translate(-50%, -50%); /* Shifts the modal by 50% of its width and height to center it */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  background-color: rgb(222, 224, 221);
  border-radius: 1.25rem;
  width: 520px;
  height: fit-content;
}


.services__modal-content {
  position: relative;
  background-color:rgb(222, 224, 221);
  padding: 1.5rem;
  border-radius: 1.25rem;
}
.services__modal-services {
  row-gap: 2rem;
}

.services__modal-service {
  display: flex;
}
.services__modal-title {
  font-size: 1.125rem;
  font-family: 500;
  margin-bottom: 1rem-5;
}

.services__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: rgb(0, 191, 255);
  cursor: pointer;
}

.services__modal-icon {
  color: rgb(35, 234, 122);
  margin-right: 0.25rem;
}

/* Active Modal */
.active-modal {
  opacity: 1;
  visibility: visible;
}
   
/* ================ Responsive Design ================ */
@media (max-width: 768px) {
    .services_container {
      grid-template-columns: 1fr; /* Single column layout on medium and small screens */
      gap: 1rem;
    }
  
    .services__content {
      padding: 2rem 1rem; /* Reduce padding for smaller screens */
    }
  
    .services__modal {
      width: 90%; /* Make modal width responsive */
      padding: 1rem;
    }
  
    .services__modal-content {
      padding: 1rem; /* Adjust padding for smaller screens */
    }
  
    .services__modal-title {
      font-size: 1rem; /* Slightly smaller font size */
    }
  
    .services__button {
      font-size: 0.75rem; /* Adjust button font size */
    }
  }
  
  @media (max-width: 480px) {
    .services_container {
      gap: 0.75rem; /* Further reduce gap on very small screens */
    }
  
    .services__content {
      padding: 1.5rem 0.5rem; /* Further reduce padding */
    }
  
    .services__modal {
      width: 100%; /* Use full width on very small screens */
      height: auto; /* Let height adjust based on content */
    }
  
    .services__modal-content {
      padding: 0.75rem; /* Reduce padding further */
    }
  
    .services__modal-title {
      font-size: 0.875rem; /* Smaller title font size */
    }
  
    .services__modal-close {
      font-size: 1.25rem; /* Slightly smaller close button */
    }
  
    .services__modal-services {
      row-gap: 1rem; /* Reduce gap between services in modal */
    }
  
    .services__modal-icon {
      margin-right: 0.15rem; /* Adjust icon margin */
    }
  }