* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}

.container{
    padding: 90px;
}
body {
    color: #ededed;
    background-color: #081b29;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: #051129;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;

}

.navbar a {
    display: inline-block;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}

.navbar a:hover {
    color: #0ef;
}

.home {
    position: relative;
    width: 100%;
    justify-content: space-between;
    height: 100vh;
    background: #081b29 no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 0.7s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: #0ef;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p {
    font-size: 20px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.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;
    transition: 0.5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));

    margin: 30px 15px 30px 0;
}

.home-sci a:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0px 0px 20px #0ef;
}

.btn-box {
    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;
}

.btn-box:hover {
    box-shadow: 0 0 5px cyan,
        0 0 25px cyan, 0 0 50px cyan, 0 0 100px cyan, 0 0 200px cyan;
}
.about{
   display: grid;
   grid-template-columns: repeat(2,1fr);
   align-items: center;
   gap: 0.2rem;
}
/* .about-img img{
    padding-bottom: 20%;
    max-width: 630px;
    height: auto;
    width: 100%;
    border-radius: 8px;
} */

.about-text h2{
    font-size: 60px;
}
.about-text h2 span{
    color: #0ef;
}

.about-text h4{
    font-size: 29px;
    font-weight: 600;
    color: #fff;
    line-height: 1.7;
    margin: 15px 0 30px;
}
.about-text p{
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4rem;
     max-width: 600px; 
}

#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;
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 30px;
    margin-top: 30px; /* Reduced from 50px to 30px */
    align-items: stretch; /* Equal height cards */
}

.services-list div{
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(0, 238, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px; /* Increased from 140px to 200px */
    position: relative;
    overflow: hidden;
}

/* Network pattern overlay */
.services-list div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 238, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(0, 238, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Card content positioning */
.services-list div > * {
    position: relative;
    z-index: 1;
}

/* Header section with icon and title */
.services-list div i{
    font-size: 32px;
    margin-bottom: 12px;
    color: #0ef;
    text-align: left;
    display: block;
}

.services-list div h2{
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: left;
    line-height: 1.3;
}

/* Description text */
.services-list div p {
    color: #b8b8b8;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 12px;
    flex-grow: 1; /* Takes up available space */
}

/* Tags container - centered */
.service-tech {
    display: flex;
    gap: 6px;
    margin: 12px 0;
    flex-wrap: wrap;
    justify-content: center; /* Center the tags */
    align-items: center;
}

.service-tech span {
    background: rgba(0, 238, 255, 0.15);
    color: #0ef;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 238, 255, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.service-tech span:hover {
    background: rgba(0, 238, 255, 0.25);
    transform: translateY(-2px);
}

/* Button styling - always at bottom */
.services-list div a{
    text-decoration: none;
    color: #081b29;
    font-size: 14px;
    margin-top: auto; /* Push to bottom */
    text-align: center;
    align-self: center; /* Center horizontally */
    width: fit-content;
}

.read{
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #0ef, #00b4d8);
    border-radius: 20px;
    font-size: 13px;
    color: #081b29;  
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 238, 255, 0.3);
    margin-top: auto;
}

.read:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(0, 238, 255, 0.4),
        0 0 30px rgba(0, 238, 255, 0.2);
    background: linear-gradient(135deg, #00b4d8, #0ef);
}

/* Hover effects for cards */
.services-list div:hover{
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(0, 238, 255, 0.1);
    border-color: rgba(0, 238, 255, 0.3);
}

/* Responsive design */
@media (min-width: 1400px) {
    .projects-grid {
        max-width: 1400px;
    }
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
        grid-gap: 20px;
        padding: 0 15px;
    }
    
    .services-list div {
        padding: 20px;
        min-height: 200px; /* Set to 200px for tablet */
    }
    
    .services-list div h2 {
        font-size: 18px;
    }
    
    .services-list div i {
        font-size: 32px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .service-tech {
        justify-content: flex-start; /* Left align on very small screens */
    }
    
    .services-list div {
        padding: 18px;
        min-height: 200px; /* Set to 200px for mobile */
    }
}
section{
    display: flex;
    flex-wrap: wrap;
}
.container1{
    width: 600px;
    height: 500px;
    padding: 75px 90px;
    margin-left: 120px;
}
.heading1{
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 5px;
    margin-bottom: 50px;
}
.bar{
    font-size: 23px;
}
.Technical-bars .bar{
    margin-top: 40px 0;
   
}
.Technical-bars .bar:first-child{
    margin-top: 0px;
}
.Technical-bars .bar:last-child{
    margin-bottom: 0;
}
.Technical-bars .bar .info{
    margin-bottom: 5px;
}
.Technical-bars .bar .info span{
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.Technical-bars .bar .progress-line{
    position: relative;
    border-radius: 10px;
    width: 100%;
    height: 5px;
    background-color: #000000;
    animation: animate 1s cubic-bezier(1,0,0.5,1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}
@keyframes animate{
    100%{
        transform: scaleX(1);
    }
}
.Technical-bars .bar .progress-line span{
    height: 100%;
    background-color: #0ef;
    position: absolute;
    border-radius: 10px;
    animation: animate 1s 1s cubic-bezier(1,0,0.5,1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}
.progress-line.html span{
    width: 90%;
}
.progress-line.css span{
    width: 60%;
}
.progress-line.Javascript span{
    width: 85%;
}
.progress-line.c span{
    width: 65%;
}
.progress-line.c\+\+ span{
    width: 75%;
}
.progress-line.Java span{
    width: 80%;
}
.progress-line.Python span{
    width: 75%;
}
.progress-line span::after{
  position: absolute;
  padding: 1px 8px;
  background-color: #000;
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  top: -28px;
  right: -20px;
  animation: showText 0.5s 1.5s linear forwards;
  opacity: 0;
}
.progress-line.html span::after{
    content: "90%";
}
.progress-line.css span::after{
    content: "60%";
}
.progress-line.Javascript span::after{
    content: "85%";
}
.progress-line.c span::after{
    content: "65%";
}
.progress-line.c\+\+ span::after{
    content: "75%";
}
.progress-line.Java span::after{
    content: "80%";
}
.progress-line.Python span::after{
    content: "75%";
}

/* New skills percentage displays */
.progress-line.react span::after{
    content: "90%";
}

.progress-line.typescript span::after{
    content: "80%";
}

.progress-line.nodejs span::after{
    content: "75%";
}

.progress-line.mongodb span::after{
    content: "70%";
}

.progress-line.git span::after{
    content: "85%";
}

.progress-line span::before{
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-bottom-width: 0px;
    border-right-width: 0px;
    border-top-color: #000;
    top: -10px;
    right: 0;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
}
@keyframes showText {
   
    100% {
        opacity: 1;
    }
}

.radial-bars{
    width: 100%;
    display: flex;
   flex-wrap: wrap;
   justify-content: space-evenly;
   align-items: flex-start;
   
}
.radial-bars .radial-bar{
    width: 50%;
    height: 170px;
    margin-bottom: 10px;
    position: relative;

}
.radial-bars .radial-bar svg{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(-90deg);
    width: 120px;
    height: 160px;
}
.radial-bars .radial-bar .progress-bar{
    stroke-width: 10;
    stop-color: black;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round ;
    animation: animate-bar 1s linear forwards;
}
@keyframes animate-bar{
    100%{
        stroke-dashoffset: -1;
    }
}
.path{
    stroke-width: 10;
    stroke: #0ef;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
}
.path-1{animation: animate-path1 1s 1s linear forwards;}
.path-2{animation: animate-path2 1s 1s linear forwards;}
.path-3{animation: animate-path3 1s 1s linear forwards;}
.path-4{animation: animate-path4 1s 1s linear forwards;}
.path-5{animation: animate-path5 1s 1s linear forwards;}
.path-6{animation: animate-path6 1s 1s linear forwards;}

@keyframes animate-path1{
    100%{
        stroke-dashoffset: 50;
    }
}
@keyframes animate-path2{
    100%{
        stroke-dashoffset: 175;
    }
}
@keyframes animate-path3{
    100%{
        stroke-dashoffset: 125;
    }
}
@keyframes animate-path4{
    100%{
        stroke-dashoffset: 75;
    }
}
@keyframes animate-path5{
    100%{
        stroke-dashoffset: 100;
    }
}
@keyframes animate-path6{
    100%{
        stroke-dashoffset: 60;
    }
}
.radial-bar .percentage{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}
.radial-bar .text{
  width: 100%;
  position: absolute;
  text-align: center;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50px);
  font-size: 17px;
  font-weight: 500;
  animation: showText 0.5s 1s linear forwards;
  opacity: 0;
}
.main-text{
    padding-top: 130px;
    margin-top: 200px;
}
.main-text h2{
    font-size: 60px;
    line-height: 1;
    text-align: center;
}
.main-text h2 span{
    color: #0ef;
}
.portfolio{
    width: 100%;
}


.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(359px, 1fr));
    gap: 10px;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.image-container {
    position: relative;
    width: 400px; /* Fixed width */
    height: 280px; /* Fixed height */
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #0ef;
    
    
}
.image-container:hover{
    box-shadow: 1px 1px 30px #0ef;
     
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image fills the container without distortion */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

.image-container:hover img {
    transform: scale(1.1); /* Slight zoom effect */
    /* Adjust values for subtle or dramatic glow */
}
.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.1),rgb(0, 0, 0));
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    transition: height 0.5s;
}

.image-container:hover .layer {
    opacity: 1; /* Show the text on hover */
}

.layer h5 {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.layer p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

.layer a {
    color: #ff004f;
    margin-top: 15px;
    font-size: 18px;
    text-decoration: none;
    background: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.row:hover img{
    transform: scale(1.1);
}
.row:hover .layer{
    height: 100%;
}
.contact{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* align-items: center; */
    gap: 3rem;
    padding-left: 30px;
    margin-top: 130px;
}
.contact-text{
    margin-top: -50px;
}

.contact-text h2{
    font-size: 90px;
    line-height: 1;
    text-align: center;
}
.contact-text h2 span{
    color: #0ef;
}
.contact-text h4{
    margin: 15px 0;
    color: rgb(101, 252, 240);
    font-size: 20px;
    font-weight: 600;
}
.contact-text p{
    color: rgb(228, 228, 228);
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 2rem;
}
.contact-list{
    margin-bottom: 3rem;
}

.contact-list li{
    margin-bottom: 10px;
    display: block;
}
.contact-list i{
    margin-right: 10px;
    
    display: inline-block;
    color: #0ef;
    font-size: 20px;
    font-weight: 600;
    transition: all .40s ease;
}
.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, form textarea {
    border: none;
    outline: none;
    width: 90%;
    padding: 10px;
    background: rgb(228, 228, 228);
     /* Valid color code */
    font-size: 1rem;
    color: #0ef;
    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;
}

.contact-form form .send:hover
{
    box-shadow: 0 0 5px cyan,
             0 0 25px cyan, 0 0 50px cyan, 0 0 100px cyan, 0 0 200px cyan;
}

.last-text p{
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 25px 0;
    background: rgb(7, 69, 91);
    font-weight: 300;
    margin-top: 70px;
}
/* .last-text p .copyright-symbol i {
    font-size: 1rem; /* Example of changing font size */
    /* Adjust margin top for positioning */
    /* color: #fcfcfc; /* Example color for the icon */
/* }  */ 

.top{
    position: fixed;
    bottom: 2.1rem;
    right: 2.1rem;

}
.top i {
color: #000;
background: #0ef;
font-size: 20px;
padding: 10px;
border-radius: 0.5rem;
}























@keyframes slideRight {
    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;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

.radial-bar .text{
    margin-left: -50px;
}

.Technical-bars {
    display: flex;
    flex-direction: column; /* Stack child divs vertically */
    gap: 12px; /* Set the vertical gap between child divs */
}














/* Container for the profile picture */
.about-img {
    margin-left: 160px;
    margin-top: 35px;
    width: 380px; /* Increased from 350px for slight zoom */
    height: 380px; /* Increased from 350px for slight zoom */
    position: relative; /* To control animation position */
    overflow: hidden; /* Ensure circular shape hides overflow */
    border-radius: 50%; /* Makes the image circular */
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    transition: box-shadow 0.3s ease-in-out; /* Smooth transition for box-shadow */

    /* Multi-colored box shadow */
    box-shadow: 
    0 -10px 35px rgba(227, 8, 125, 0.982), /* Pink shadow at the top */
    0 10px 35px rgba(255, 20, 147, 0.8),  /* Pink shadow at the bottom */
    -10px 0 35px rgba(0, 229, 255, 0.8),  /* Cyan shadow on the left */
    10px 0 35px rgba(0, 229, 255, 0.8);  /* Cyan shadow on the right */
  /* Cyan shadow on the right */
}
/* Profile picture styling */
.profile-pic {
    width: 100%; /* Ensure it fits the container */
    height: 100%; /* Keep aspect ratio */
    object-fit: cover; /* Adjust to cover the circle evenly */
    transition: transform 0.3s ease-in-out; /* Smooth scaling effect */
}

/* Hover effect for glowing and zoom */
.about-img:hover {
    box-shadow: 0 0 25px 10px rgb(212, 0, 255); /* More pronounced glow on hover */
}

.about-img:hover .profile-pic {
    transform: scale(1.1); /* Slight zoom effect */
}

/* =================== ENHANCED STYLES =================== */

/* Hero Section Enhancements */
.tagline {
    margin: 20px 0;
}

.tagline p {
    font-size: 1.2rem;
    color: #0ef;
    font-weight: 600;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 1.2s;
}

.highlight-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-highlight {
    text-align: center;
    padding: 15px;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 10px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.stat-highlight:hover {
    transform: translateY(-5px);
    background: rgba(0, 238, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.2);
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0ef;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9rem;
    color: #ededed;
    opacity: 0.8;
}

/* Services Section Enhancements - Updated */
/* Service-tech styling is now integrated above in the main services section */

.services-list > div {
    transition: all 0.3s ease;
}

.services-list > div:hover {
    transform: translateY(-10px);
}

/* Enhanced Skills Section */
.progress-line.react span {
    width: 90%;
    background: linear-gradient(90deg, #61dafb, #21d4fd);
}

.progress-line.typescript span {
    width: 80%;
    background: linear-gradient(90deg, #3178c6, #5ba2f7);
}

.progress-line.nodejs span {
    width: 75%;
    background: linear-gradient(90deg, #339933, #68cc68);
}

.progress-line.mongodb span {
    width: 70%;
    background: linear-gradient(90deg, #47A248, #7bc569);
}

.progress-line.git span {
    width: 85%;
    background: linear-gradient(90deg, #f05032, #ff7a5a);
}

/* Project Features */
.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.feature {
    background: rgba(5, 17, 41, 0.8);
    color: #0ef;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

/* Certifications Section */
.certifications {
    padding: 0px 0 30px 0;
    background: #081b29;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cert-card {
    background: rgba(5, 17, 41, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 238, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 520px;
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 238, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 238, 255, 0.1);
}

.cert-card.achievement {
    border-color: rgba(255, 215, 0, 0.3);
}

.cert-card.achievement:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 238, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

.cert-icon i {
    font-size: 28px;
}

.cert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-content h3 {
    color: #ededed;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.cert-content h4 {
    color: #0ef;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.cert-content p {
    color: #ededed;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.cert-skills span {
    background: rgba(0, 238, 255, 0.1);
    color: #0ef;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

.cert-date {
    color: #0ef;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Certificate Button */
.cert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #0ef, #00d4ff);
    color: #081b29;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
    align-self: center;
}

.cert-button:hover {
    background: linear-gradient(45deg, #00d4ff, #0ef);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 238, 255, 0.3);
    color: #081b29;
}

.cert-button i {
    font-size: 16px;
}

/* Currently Learning Section */
.learning-section {
    background: rgba(5, 17, 41, 0.5);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 238, 255, 0.1);
}

.learning-section h3 {
    color: #0ef;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.learning-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.learning-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 238, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 238, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 120px;
}

.learning-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 238, 255, 0.1);
    border-color: rgba(0, 238, 255, 0.3);
}

.learning-item i {
    font-size: 32px;
    color: #0ef;
}

.learning-item span {
    color: #ededed;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Project Modal Enhancements */
.project-modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.project-modal-desc {
    font-size: 1.1rem;
    color: #ededed;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    color: #0ef;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list,
.challenges-list,
.learnings-list {
    list-style: none;
    padding: 0;
}

.features-list li,
.challenges-list li,
.learnings-list li {
    color: #ededed;
    opacity: 0.8;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0ef;
    font-weight: bold;
}

.challenges-list li::before {
    content: '⚡';
    position: absolute;
    left: 0;
}

.learnings-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 238, 255, 0.1);
    flex-wrap: wrap;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .highlight-stats {
        justify-content: center;
        gap: 15px;
    }
    
    .stat-highlight {
        min-width: 100px;
        padding: 12px;
    }
    
    .stat-num {
        font-size: 1.5rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .learning-items {
        gap: 15px;
    }
    
    .learning-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .learning-item i {
        font-size: 24px;
    }
    
    .modal-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .project-features {
        justify-content: center;
    }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
}

.loader-inner {
    display: inline-block;
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 20px;
}

.loader-line-wrap {
    animation: spin 2s cubic-bezier(.175, .885, .32, 1.275) infinite;
    width: 100%;
    height: 100%;
    position: absolute;
}

.loader-line {
    height: 50%;
    width: 4px;
    background: #0ef;
    border-radius: 2px;
    margin: 0 auto;
}

.loader-line-wrap:nth-child(1) { animation-delay: -0.2s; }
.loader-line-wrap:nth-child(2) { animation-delay: -0.1s; }
.loader-line-wrap:nth-child(3) { animation-delay: 0s; }
.loader-line-wrap:nth-child(4) { animation-delay: 0.1s; }
.loader-line-wrap:nth-child(5) { animation-delay: 0.2s; }

.loading-text {
    font-size: 18px;
    color: #0ef;
    font-weight: 600;
}

.loading-letter {
    display: inline-block;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-letter:nth-child(1) { animation-delay: -0.32s; }
.loading-letter:nth-child(2) { animation-delay: -0.16s; }
.loading-letter:nth-child(3) { animation-delay: 0s; }
.loading-letter:nth-child(4) { animation-delay: 0.16s; }
.loading-letter:nth-child(5) { animation-delay: 0.32s; }
.loading-letter:nth-child(6) { animation-delay: 0.48s; }
.loading-letter:nth-child(7) { animation-delay: 0.64s; }

@keyframes spin {
    0%, 15%, 35%, 70%, 100% { transform: rotate(0deg); }
    20%, 30% { transform: rotate(180deg); }
    40%, 60% { transform: rotate(180deg); }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #0ef, #00d4ff);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid #0ef;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: #0ef;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Enhanced Header */
.header {
    backdrop-filter: blur(10px);
    background: rgba(5, 17, 41, 0.9);
    border-bottom: 1px solid rgba(0, 238, 255, 0.1);
}

.logo .logo-text {
    position: relative;
}

.logo-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0ef;
    transition: width 0.3s ease;
}

.logo:hover .logo-underline {
    width: 100%;
}

.navbar a {
    position: relative;
    overflow: hidden;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: #0ef;
    transition: left 0.3s ease;
}

.navbar a:hover::before,
.navbar a.active::before {
    left: 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #0ef;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid #0ef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(0, 238, 255, 0.2);
    transform: rotate(180deg);
}

.theme-toggle i {
    color: #0ef;
    font-size: 18px;
}

/* Enhanced Home Section */
.tech-stack {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.tech-item {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid #0ef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.tech-item:nth-child(even) {
    animation-delay: 1.5s;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.1);
    background: rgba(0, 238, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.3);
}

.tech-item i {
    font-size: 24px;
    color: #0ef;
}

.tech-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #051129;
    color: #0ef;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #0ef;
}

.tech-item:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 8px;
    color: #0ef;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-box.primary {
    background: #0ef;
    color: #081b29;
}

.btn-box.secondary {
    background: transparent;
    color: #0ef;
}

.btn-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-box:hover::before {
    left: 100%;
}

.btn-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.3);
}

.btn-box.primary:hover {
    background: transparent;
    color: #0ef;
}

.btn-box.secondary:hover {
    background: #0ef;
    color: #081b29;
}

/* Enhanced Image Container */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 238, 255, 0.1), rgba(0, 238, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 24px;
    opacity: 0.7;
    animation: floatIcon 4s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) { top: 20%; left: 20%; }
.floating-icon:nth-child(2) { top: 30%; right: 20%; }
.floating-icon:nth-child(3) { bottom: 30%; left: 30%; }
.floating-icon:nth-child(4) { bottom: 20%; right: 30%; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Enhanced About Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 238, 255, 0.05);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 238, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0ef;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #ededed;
    opacity: 0.8;
}

.timeline {
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-item:hover {
    opacity: 1;
    transform: translateX(10px);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #0ef;
    border-radius: 50%;
    margin-right: 15px;
    margin-top: 5px;
    flex-shrink: 0;
    position: relative;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: rgba(0, 238, 255, 0.3);
}

.timeline-item:last-child .timeline-dot::before {
    display: none;
}

.timeline-content h3 {
    color: #0ef;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: #ededed;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-content p {
    color: #ededed;
    opacity: 0.8;
    font-size: 0.9rem;
}

.interests {
    margin: 30px 0;
}

.interests h4 {
    color: #0ef;
    margin-bottom: 15px;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-tag {
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #ededed;
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background: rgba(0, 238, 255, 0.2);
    transform: translateY(-2px);
}

.about-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Enhanced Projects Section */
.projects-enhanced {
    padding: 250px 0 0px 0;
    background: #081b29;
}

.section-title {
    text-align: center; 
    font-size: 3rem;
    color: #ededed;
    margin-bottom: 10px;
    margin-top: -40px;
    margin-left: 0; /* Center the title properly */
}

.section-title span {
    color: #0ef;
}

.section-subtitle {
    text-align: center;
    color: #ededed;
    opacity: 0.8;
    margin-bottom: 50px;
    margin-left: 0; /* Center the subtitle properly */
    font-size: 1.1rem;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid rgba(0, 238, 255, 0.3);
    color: #ededed;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0ef;
    color: #081b29;
    border-color: #0ef;
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
    margin-bottom: 50px;
    justify-items: center;
}

.project-card {
    background: rgba(5, 17, 41, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 238, 255, 0.1);
    width: 100%;
    max-width: 380px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 238, 255, 0.2);
    border-color: rgba(0, 238, 255, 0.3);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    width: 50px;
    height: 50px;
    background: #0ef;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #081b29;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    transform: scale(1.1);
    background: #00d4ff;
}

.action-btn i {
    font-size: 20px;
}

.project-content {
    padding: 25px;
}

.project-category {
    color: #0ef;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.project-title {
    color: #ededed;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.project-description {
    color: #ededed;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    color: #0ef;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.load-more-container {
    text-align: center;
    margin-bottom: -20px;
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: #051129;
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    position: relative;
    border: 1px solid rgba(0, 238, 255, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #0ef;
    cursor: pointer;
    z-index: 1;
}

.modal-body {
    padding: 40px;
    color: #ededed;
}

/* Enhanced Contact Form */
.contact-form {
    background: rgba(5, 17, 41, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 238, 255, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 238, 255, 0.05);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 8px;
    color: #ededed;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ef;
    background: rgba(0, 238, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 238, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(237, 237, 237, 0.6);
}

.form-error {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.send {
    background: #0ef;
    color: #081b29;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.send:hover {
    background: #00d4ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 238, 255, 0.3);
}

.btn-loading {
    display: none;
}

.send.loading .btn-text {
    display: none;
}

.send.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.form-status.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4444;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #051129;
    color: #0ef;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #0ef;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(5, 17, 41, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        padding-top: 50px;
        backdrop-filter: blur(10px);
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar a {
        margin: 20px 0;
        font-size: 1.5rem;
    }
    
    .home {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 50px;
    }
    
    .home-content {
        max-width: 100%;
        margin-bottom: 50px;
    }
    
    .about {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-stack {
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-filters {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .about-buttons {
        justify-content: center;
    }
    
    .contact {
        flex-direction: column;
    }
    
    .container {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 2.5rem;
    }
    
    .home-content h3 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding: 0 10px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .project-actions {
        gap: 10px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
    
    .action-btn i {
        font-size: 16px;
    }
}

/* Animation Enhancements */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px #0ef, 0 0 10px #0ef, 0 0 15px #0ef;
    }
    50% {
        box-shadow: 0 0 10px #0ef, 0 0 20px #0ef, 0 0 30px #0ef;
    }
}

/* Scroll behavior improvements */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 2px solid #0ef;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tech-item,
    .btn-box,
    .project-card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .header,
    .floating-icons,
    .project-actions,
    #loading-screen,
    #scroll-progress,
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #081b29 0%, #0a1f35 50%, #112e42 100%);
    color: white;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(0,238,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(0,238,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(0,238,255,0.1)"/></svg>');
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.partnership-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.partnership-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: white;
}

.partnership-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.subscribe-btn {
    background: #0ef;
    color: #081b29;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 238, 255, 0.3);
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 238, 255, 0.4);
    background: #00d4ff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo h3 {
    font-size: 2rem;
    font-weight: 300;
    color: white;
    margin: 0;
}

.footer-logo span {
    font-weight: 700;
    color: #0ef;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0ef;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-column ul li a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(0, 238, 255, 0.1);
    border-radius: 50%;
    color: #0ef;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

.social-icon:hover {
    background: rgba(0, 238, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 238, 255, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.privacy-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.privacy-link:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .partnership-section h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .partnership-section {
        padding: 20px 0;
    }
    
    .partnership-section h2 {
        font-size: 1.8rem;
    }
}

/* =================== CONTACT MODAL STYLES =================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 27, 41, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(145deg, #0a1f35 0%, #112e42 50%, #081b29 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 238, 255, 0.2);
    border: 1px solid rgba(0, 238, 255, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(0, 238, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #0ef;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.close-modal {
    color: #ededed;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #0ef;
    transform: rotate(90deg);
}

.contact-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #ededed;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(5, 17, 41, 0.8);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 8px;
    color: #ededed;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ef;
    box-shadow: 0 0 0 2px rgba(0, 238, 255, 0.2);
    background: rgba(5, 17, 41, 0.9);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #081b29;
    color: #ededed;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: transparent;
    color: #ededed;
    border: 1px solid rgba(237, 237, 237, 0.3);
}

.btn-cancel:hover {
    background: rgba(237, 237, 237, 0.1);
    border-color: rgba(237, 237, 237, 0.5);
}

.btn-submit {
    background: linear-gradient(45deg, #0ef, #00d4ff);
    color: #081b29;
    border: 1px solid transparent;
}

.btn-submit:hover {
    background: linear-gradient(45deg, #00d4ff, #0ef);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 238, 255, 0.3);
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header,
    .contact-form {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* =================== MOBILE & TABLET RESPONSIVE STYLES =================== */
/* These styles ONLY apply to mobile and tablet devices, desktop remains unchanged */

/* Mobile Menu Toggle - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Devices (up to 768px) */
@media (max-width: 768px) {
    /* Ensure all content uses full width */
    body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    * {
        box-sizing: border-box !important;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Transform navbar for mobile */
    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 17, 41, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out;
        z-index: 1000;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar a {
        margin: 15px 0;
        font-size: 1.5rem;
        padding: 10px 20px;
        border-radius: 5px;
        width: 80%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Adjust header padding and center content */
    .header {
        padding: 15px 3%;
        width: 100%;
        box-sizing: border-box;
        height: 70px; /* Set fixed height for mobile header */
        min-height: 70px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Ensure logo stays on left */
    .logo {
        position: relative;
        z-index: 999;
    }
    
    /* Position theme toggle properly on mobile */
    .theme-toggle {
        position: absolute;
        right: 80px !important; /* Move even further left */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    /* Ensure mobile menu toggle has proper positioning */
    .mobile-menu-toggle {
        position: absolute;
        right: 30px !important; /* Move significantly left from edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }
    
    /* Home section mobile layout - center everything */
    .home {
        flex-direction: column;
        text-align: center;
        padding: 90px 3% 50px !important; /* Further reduced top padding for tighter spacing */
        margin-top: 20px !important; /* Minimal margin for very tight spacing */
        height: auto;
        min-height: calc(100vh - 70px);
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
    }
    
    .home-content {
        order: 2;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        text-align: center;
        margin-top: 10px !important; /* Minimal margin for tighter spacing */
        padding-top: 5px !important; /* Minimal padding for very tight spacing */
    }
    
    .home-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .home-content h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        margin-top: 5px !important; /* Minimal top margin for tight spacing */
        padding-top: 5px !important; /* Minimal padding for very tight spacing */
    }
    
    /* Specific styling for the first "Hi, I'm" text */
    .home-content h3:first-child {
        margin-top: 10px !important; /* Minimal margin for very tight spacing */
        padding-top: 5px !important; /* Minimal padding for tight spacing */
        position: relative;
        z-index: 10;
    }
    
    .home-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 15px 0;
    }
    
    .home-img {
        order: 1;
        margin-bottom: 15px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .home-img img {
        width: 120px;
        height: 120px;
    }
    
    /* Hide profile picture in home section for mobile - keep only about section picture */
    .home .about-img {
        display: none !important;
    }
    
    /* Hide floating icons container on mobile for cleaner look */
    .home .image-container .floating-icons {
        display: none !important;
    }
    
    /* About section mobile - center everything */
    .about {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        width: 100%;
        padding: 0 3%;
        box-sizing: border-box;
    }
    
    .about-img {
        order: 1;
        width: 380px; /* Restored original container width */
        height: 380px; /* Restored original container height */
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 0 auto 20px auto; /* Center the container */
        border-radius: 50%;
        overflow: hidden;
    }
    
    .about-img img {
        display: block;
        margin: 0 auto;
        text-align: center;
        width: 380px; /* Restored original size */
        height: 380px; /* Restored original size */
        border-radius: 50%;
        object-fit: cover;
    }
    
    /* Keep only the about section profile image visible and centered */
    .about .about-img {
        display: flex !important; /* Show and center the about section profile image */
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    .about-content {
        order: 2;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .about-content h4 {
        font-size: 1rem !important;
    }
    
    /* Add margins to about text for mobile - create box effect */
    .about-text p {
        margin-left: 20px !important; /* Add left margin */
        margin-right: 20px !important; /* Add right margin */
        padding: 15px !important; /* Add padding inside */
        font-size: 1.5rem !important; /* Slightly smaller for mobile */
        line-height: 1.6 !important; /* Better readability */
        text-align: left !important; /* Left align for better reading */
        max-width: calc(100% - 40px) !important; /* Ensure it doesn't overflow */
        box-sizing: border-box !important;
    }
    
    /* Skills section mobile fix - center everything */
    .container1 {
        width: 100% !important;
        height: auto !important;
        padding: 15px !important;
        margin: 0 auto !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }
    
    section {
        display: block !important;
        flex-wrap: none !important;
        width: 100% !important;
        padding: 0 3% !important;
        box-sizing: border-box !important;
    }
    
    /* Skills section specific mobile styling */
    section:has(#Skills) {
        display: block !important;
        width: 100% !important;
    }
    
    #Skills {
        display: block !important;
        width: 100% !important;
    }
    
    .heading1 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .Technical-bars .bar {
        margin: 15px 0;
        font-size: 0.9rem !important;
    }
    
    .Technical-bars .bar .info span {
        font-size: 0.9rem !important;
    }
    
    .progress-line {
        height: 6px !important;
    }
    
    .radial-bars {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 3 columns for mobile */
        gap: 20px !important; /* Increased gap for better text visibility */
        justify-items: center !important;
        padding: 10px 0 !important; /* Add vertical padding */
    }
    
    .radial-bar svg {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Center the percentage text inside the circular bars */
    .radial-bar .percentage {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 1rem !important;
        text-align: center !important; /* Keep percentage inside circle centered */
        margin-top: 0 !important; /* Reset margin for inside circle text */
        font-weight: bold !important;
        padding: 0 !important; /* Remove padding for inside circle text */
    }
    
    /* Style for the skill name text below the circles */
    .radial-bar .text {
        width: 100% !important;
        position: absolute !important; /* Keep absolute positioning like desktop */
        text-align: center !important; /* Center the text below each circle */
        left: 0 !important; /* Start from left edge of container */
        right: 0 !important; /* Extend to right edge of container */
        bottom: -25px !important; /* Position below the circle */
        transform: none !important; /* Remove transform to avoid conflicts */
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        color: #ededed !important;
        word-wrap: break-word !important;
        line-height: 1.3 !important;
        margin: 0 !important; /* Reset margin */
        padding: 0 !important; /* Reset padding */
        animation: showText 0.5s 1s linear forwards;
        opacity: 1 !important; /* Ensure text is visible */
    }
    
    /* Ensure each radial bar is properly centered */
    .radial-bar {
        position: relative !important; /* Ensure absolute positioning works for children */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 5px !important; /* Add padding around each bar */
        min-height: 140px !important; /* Ensure enough space for text */
    }
    
    /* Skills container mobile */
    .skills-container .row {
        grid-template-columns: repeat(3, 1fr) !important; /* 3 columns for mobile */
        gap: 15px;
    }
    
    .tech-item {
        padding: 10px;
        font-size: 0.8rem;
        min-height: 60px;
    }
    
    /* Projects grid mobile - center and full width */
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        width: 100% !important;
        padding: 0 3% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    
    .project-card {
        padding: 15px !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    
    /* Fix load more button spacing for mobile */
    .load-more-container {
        margin-top: 30px !important; /* Add space above the button */
        margin-bottom: 20px !important; /* Add space below the button */
        text-align: center !important;
        padding: 0 3% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .project-card h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }
    
    .project-card p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }
    
    .project-card .btn-box {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        margin: 0 auto !important;
        display: block !important;
        width: fit-content !important;
    }
    
    /* Certifications mobile - center and full width */
    .certifications-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        width: 100% !important;
        padding: 0 3% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    
    .cert-card {
        padding: 15px 20px 20px 20px !important; /* Reduced top padding to move content up */
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        text-align: center !important;
        height: auto !important; /* Remove fixed height */
        min-height: 250px !important; /* Set a smaller minimum height */
        max-height: 280px !important; /* Set a maximum height to prevent too large cards */
        display: flex !important; /* Use flex for better content positioning */
        flex-direction: column !important;
        justify-content: flex-start !important; /* Align content to top */
        align-items: center !important;
    }
    
    .cert-card h3 {
        font-size: 0.95rem !important; /* Slightly smaller title */
        margin-bottom: 6px !important; /* Reduced margin */
        margin-top: 0 !important; /* Remove top margin */
        text-align: center !important;
    }
    
    .cert-card p {
        font-size: 0.75rem !important; /* Smaller text */
        line-height: 1.3 !important; /* Tighter line height */
        text-align: center !important;
        margin-bottom: 8px !important; /* Add some margin control */
        margin-top: 0 !important; /* Remove top margin */
    }
    
    .cert-skills span {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
        margin-bottom: 4px !important; /* Tighter spacing */
    }
    
    /* Mobile styling for cert date and button */
    .cert-date {
        font-size: 0.75rem !important;
        margin-bottom: 10px !important; /* Reduced margin */
        margin-top: 5px !important;
    }
    
    .cert-button {
        padding: 8px 16px !important; /* Smaller button padding */
        font-size: 0.75rem !important;
        margin-top: 5px !important; /* Reduced top margin */
    }
    
    /* Education timeline mobile */
    .timeline {
        padding-left: 15px;
    }
    
    .timeline-item {
        margin-bottom: 20px;
        padding: 15px !important;
    }
    
    .timeline-item h3 {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }
    
    .timeline-item h4 {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    .timeline-item p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    .timeline-item::before {
        left: -20px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-item::after {
        left: -24px;
        width: 18px;
        height: 18px;
    }
    
    /* Button adjustments */
    .btn-box {
        padding: 10px 20px;
        font-size: 0.9rem;
        display: inline-block;
        min-height: 40px;
        line-height: 1.3;
    }
    
    /* Container padding - center content */
    .container {
        padding: 30px 3%;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    /* Social icons mobile */
    .home-sci {
        margin: 15px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .home-sci a {
        margin: 0 8px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Section headings mobile - center */
    .sub-title {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .sub-title span {
        font-size: 1.8rem !important;
    }
    
    /* Footer mobile */
    .footer {
        padding: 30px 20px;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Contact/Footer section mobile - center everything */
    .modern-footer {
        text-align: center !important;
        padding: 40px 20px !important;
    }
    
    .footer-container {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .partnership-section {
        text-align: center !important;
        margin-bottom: 30px !important;
    }
    
    .partnership-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .partnership-section p {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
        padding: 0 10px !important;
    }
    
    .subscribe-btn {
        margin: 0 auto !important;
        display: block !important;
        width: fit-content !important;
    }
    
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }
    
    .footer-logo {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        width: 100% !important;
    }
    
    .footer-column {
        text-align: center !important;
        width: 100% !important;
    }
    
    .footer-social {
        text-align: center !important;
        margin-top: 20px !important;
    }
    
    /* Center the 4 social icons in contact section */
    .social-icons {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    .social-icon {
        margin: 0 !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
    
    .social-links {
        justify-content: center !important;
        gap: 15px !important;
    }
}

/* Tablet Devices (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        padding: 20px 8%;
    }
    
    .home {
        padding: 120px 8% 0; /* Increased padding for tablet */
    }
    
    .home-content h1 {
        font-size: 3.5rem;
    }
    
    .skills-container .row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 60px;
    }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .header {
        padding: 15px 2%;
        width: 100%;
        height: 70px; /* Set fixed height for small mobile header */
        min-height: 70px;
        position: relative;
    }
    
    /* Position theme toggle properly on small mobile */
    .theme-toggle {
        position: absolute;
        right: 75px !important; /* Move further left for small screens */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    /* Ensure mobile menu toggle has proper positioning on small screens */
    .mobile-menu-toggle {
        position: absolute;
        right: 25px !important; /* Move significantly left from edge */
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }
    
    .home {
        padding: 90px 2% 30px !important; /* Further reduced top padding for tighter spacing */
        margin-top: 20px !important; /* Minimal margin for very tight spacing */
        width: 100%;
        min-height: calc(100vh - 70px);
    }
    
    .home-content h1 {
        font-size: 2rem;
    }
    
    .home-content h3 {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 20px 2%;
        width: 100%;
    }
    
    section {
        padding: 15px 2% !important;
        width: 100% !important;
    }
    
    .home-img img {
        width: 120px;
        height: 120px;
    }
    
    .skills-container .row {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for small mobile */
    }
    
    .home-img img {
        width: 100px;
        height: 100px;
    }
    
    .container1 {
        padding: 10px !important;
        margin-bottom: 15px !important;
    }
    
    .heading1 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .radial-bars {
        grid-template-columns: repeat(3, 1fr) !important; /* 3 columns for small mobile too */
        gap: 15px !important; /* Adequate gap for small screens */
        padding: 8px 0 !important; /* Add vertical padding */
    }
    
    .radial-bar svg {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Center the percentage text inside the circular bars */
    .radial-bar .percentage {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 0.9rem !important;
        text-align: center !important; /* Keep percentage inside circle centered */
        margin-top: 0 !important; /* Reset margin for inside circle text */
        font-weight: bold !important;
        padding: 0 !important; /* Remove padding for inside circle text */
    }
    
    /* Style for the skill name text below the circles */
    .radial-bar .text {
        width: 100% !important;
        position: absolute !important; /* Keep absolute positioning like desktop */
        text-align: center !important; /* Center the text below each circle */
        left: 0 !important; /* Start from left edge of container */
        right: 0 !important; /* Extend to right edge of container */
        bottom: -20px !important; /* Position below the circle */
        transform: none !important; /* Remove transform to avoid conflicts */
        font-size: 0.75rem !important;
        font-weight: 500 !important;
        color: #ededed !important;
        word-wrap: break-word !important;
        line-height: 1.2 !important;
        margin: 0 !important; /* Reset margin */
        padding: 0 !important; /* Reset padding */
        animation: showText 0.5s 1s linear forwards;
        opacity: 1 !important; /* Ensure text is visible */
    }
    
    /* Ensure each radial bar is properly centered on small mobile */
    .radial-bar {
        position: relative !important; /* Ensure absolute positioning works for children */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 3px !important; /* Add padding around each bar */
        min-height: 120px !important; /* Ensure enough space for text on small screens */
    }
    
    /* Contact section for small mobile */
    .partnership-section h2 {
        font-size: 1.2rem !important;
    }
    
    .partnership-section p {
        font-size: 0.8rem !important;
    }
    
    .footer-links {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Smaller cards for tiny screens */
    .project-card {
        padding: 12px !important;
    }
    
    /* Fix load more button spacing for small mobile */
    .load-more-container {
        margin-top: 25px !important; /* Add space above the button */
        margin-bottom: 15px !important; /* Add space below the button */
        text-align: center !important;
        padding: 0 2% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .project-card h3 {
        font-size: 0.9rem !important;
    }
    
    .project-card p {
        font-size: 0.75rem !important;
    }
    
    .cert-card {
        padding: 10px 15px 15px 15px !important; /* Reduced top padding to move content up */
        height: auto !important; /* Remove fixed height */
        min-height: 250px !important; /* Smaller minimum height for small screens */
        max-height: 300px !important; /* Smaller maximum height for small screens */
        border-radius: 6px !important; /* Slightly smaller border radius */
        display: flex !important; /* Use flex for better content positioning */
        flex-direction: column !important;
        justify-content: flex-start !important; /* Align content to top */
        align-items: center !important;
    }
    
    .cert-card h3 {
        font-size: 0.85rem !important; /* Smaller title for small mobile */
        margin-bottom: 5px !important; /* Reduced margin */
        margin-top: 0 !important; /* Remove top margin */
    }
    
    .cert-card p {
        font-size: 0.7rem !important; /* Smaller text for small mobile */
        line-height: 1.2 !important; /* Tighter line height */
        margin-bottom: 6px !important; /* Smaller margin */
        margin-top: 0 !important; /* Remove top margin */
    }
    
    /* Add margins to about text for small mobile - create box effect */
    .about-text p {
        margin-left: 15px !important; /* Smaller left margin for small screens */
        margin-right: 15px !important; /* Smaller right margin for small screens */
        padding: 12px !important; /* Smaller padding inside */
        font-size: 1.4  rem !important; /* Smaller font for small mobile */
        line-height: 1.5 !important; /* Better readability */
        text-align: left !important; /* Left align for better reading */
        max-width: calc(100% - 30px) !important; /* Ensure it doesn't overflow */
        box-sizing: border-box !important;
    }
    
    .tech-item {
        padding: 8px;
        font-size: 0.75rem;
        min-height: 50px;
    }
    
    .container {
        padding: 30px 15px;
    }
    
    .navbar a {
        font-size: 1.3rem;
        margin: 10px 0;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .timeline-item {
        padding-left: 25px;
    }
}

/* Extra Small Mobile Devices (up to 375px) */
@media (max-width: 375px) {
    .home-img img {
        width: 80px;
        height: 80px;
    }
    
    .home-content h1 {
        font-size: 1.5rem;
    }
    
    .home-content h3 {
        font-size: 1rem;
    }
    
    .home {
        padding: 70px 1% 15px;
        width: 100%;
    }
    
    .container {
        padding: 20px 1%;
        width: 100%;
    }
    
    section {
        padding: 15px 1% !important;
        width: 100% !important;
    }
    
    .sub-title {
        font-size: 1.5rem !important;
    }
}

/* Very Small Mobile Devices (up to 320px) */
@media (max-width: 320px) {
    .home-img img {
        width: 70px;
        height: 70px;
    }
    
    .home-content h1 {
        font-size: 1.3rem;
    }
    
    .home-content h3 {
        font-size: 0.9rem;
    }
    
    .btn-box {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 15px 1%;
        width: 100%;
    }
    
    section {
        padding: 10px 1% !important;
        width: 100% !important;
    }
    
    .tech-item {
        padding: 6px;
        font-size: 0.7rem;
        min-height: 45px;
    }
    
    .radial-bar svg {
        width: 70px !important;
        height: 70px !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .navbar a:hover,
    .btn-box:hover,
    .tech-item:hover,
    .project-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Ensure touch targets are accessible */
    .navbar a,
    .btn-box,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

