@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap");

/* Performance Optimizations */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
    /* Performance optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* GPU Acceleration for animations */
.portfolio-box,
.services-box,
.skill-logo,
.btn {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

:root {
    --bg-color: #f8f9ff;
    --text-color: #1a1f36;
    --main-color: #365cff;
    --secondary-color: #64ffda;
    --accent-color: #4d6fff;
    --white-color: #ffffff;
    --shadow-color: rgba(54, 92, 255, 0.15);
    --glass-bg: rgba(248, 249, 255, 0.95);
    --glass-border: rgba(54, 92, 255, 0.2);
    --gradient-start: #365cff;
    --gradient-end: #2a47cc;
    --card-bg: #ffffff;
    --hover-bg: #f0f4ff;
    --text-secondary: #1a1f36;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --i: 0%;
    transition: all 0.3s ease;
}

.dark-mode {
    --bg-color: #0a192f;
    --text-color: #e6f1ff;
    --main-color: #64ffda;
    --secondary-color: #4d6fff;
    --accent-color: #64ffda;
    --white-color: #0a192f;
    --shadow-color: rgba(100, 255, 218, 0.15);
    --glass-bg: rgba(10, 25, 47, 0.85);
    --glass-border: rgba(100, 255, 218, 0.1);
    --gradient-start: #64ffda;
    --gradient-end: #4d6fff;
    --card-bg: #112240;
    --hover-bg: #1d3461;
    --text-secondary: #8892b0;
    --border-color: #233554;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

html {
    font-size: 10px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%;
    background-color: transparent;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.header.sticky {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    transform: translateY(-100%);
    animation: slideDown 0.5s forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

.logo {
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 600;
    cursor: default;
    margin-right: auto;
    cursor: pointer;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-right: 3.5rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--main-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

#darkMode-icon {
    font-size: 2.4rem;
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

#darkMode-icon:hover {
    transform: rotate(180deg);
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}

.home {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
}

.home .home-content {
    max-width: 44rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 0.3;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-color);
    text-shadow: 0 2px 4px var(--shadow-color);
}

.home-content p {
    font-size: 1.6rem;
    color: var(--text-secondary);
}

.home-content .social-media a {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    -webkit-box-shadow: 0 0.2rem 0.5rem var(--shadow-color);
    box-shadow: 0 0.2rem 0.5rem var(--shadow-color);
    font-size: 2rem;
    color: var(--main-color);
    margin: 2.5rem 1.5rem 3rem 0;
    -webkit-transition: 0.5s ease;
    -o-transition: 0.5s ease;
    transition: 0.5s ease;
}

.home-content .social-media a:hover {
    background: var(--main-color);
    color: var(--white-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 0.6rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid var(--main-color);
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

.btn:hover::before {
    width: 100%;
}

.home .profession-container {
    position: relative;
    width: 560px;
    height: 560px;
    margin: 0 auto;
}

.home .profession-container .profession-box {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.home .profession-container .profession-box .profession {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Place each profession at 0, 90, 180, 270 deg */
    transform: rotate(calc(var(--i) * 90deg)) translate(0, -220px) rotate(calc(var(--i) * -90deg));
    transform-origin: 0 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--main-color);
    background: var(--bg-color);
    padding: 1.3rem 0;
    border-radius: 1rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
}

.home .profession-container .profession-box .profession:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 30px var(--shadow-color);
    background: var(--hover-bg);
}

.home .profession-container .profession-box .profession i {
    font-size: 3.8rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.home .profession-container .profession-box .profession:hover i {
    transform: scale(1.1);
}

.home .profession-container .profession-box .profession h3 {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
    margin: 0;
}

.home .profession-container .profession-box .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 440px;
    height: 440px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--main-color);
    border-radius: 50%;
    z-index: -1;
}

.home .profession-container .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border: 384px solid var(--main-color);
    border-bottom: 384px solid transparent;
    border-right: 384px solid transparent;
    border-left: 384px solid transparent;
}



.home {
    position: relative;
    overflow: hidden;
}

.home-img img {
    position: absolute;
    top: 28%;
    right: 7%;
    width: 550px;
    pointer-events: none;
    opacity: 1 !important;
}

.heading span {
    color: var(--main-color);
}

.about {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 4rem;
    padding-top: 8rem;
}

.about-img img {
    width: 55vw;
}

.heading {
    font-size: 4.5rem;
    text-align: center;
}

.about-content h2 {
    font-size: 4.5rem !important;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.serives {
    min-height: auto;
    padding-bottom: 7rem;
}

.serives h2 {
    margin-bottom: 5rem;
}

.serives .services-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 30rem;
    flex: 1 1 30rem;
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.services-container .services-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.services-container .services-box:hover {
    transform: translateY(-10px) scale(1.02);
    background: var(--hover-bg);
    border-color: var(--main-color);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.services-container .services-box:hover::before {
    opacity: 0.05;
}

.services-box i {
    font-size: 4.5rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.services-box:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.services-box h3 {
    font-size: 2.6rem;
    -webkit-transition: 0.5s ease;
    -o-transition: 0.5s ease;
    transition: 0.5s ease;
    cursor: default;
}

.services-box:hover h3 {
    color: var(--main-color);
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.portfolio {
    padding-bottom: 10rem;
}

.portfolio h2 {
    margin-bottom: 4rem;
}

.portfolio .portfolio-container {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 2.5rem 1fr 2.5rem 1fr;
    grid-template-columns: repeat(3, 1fr);
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 2.5rem;
    perspective: 1000px;
}

/* Enhanced Portfolio Animation */
@keyframes portfolioSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.portfolio-box {
    animation: portfolioSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.portfolio-box:nth-child(1) { animation-delay: 0.1s; }
.portfolio-box:nth-child(2) { animation-delay: 0.2s; }
.portfolio-box:nth-child(3) { animation-delay: 0.3s; }
.portfolio-box:nth-child(4) { animation-delay: 0.4s; }
.portfolio-box:nth-child(5) { animation-delay: 0.5s; }
.portfolio-box:nth-child(6) { animation-delay: 0.6s; }

.portfolio-box {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate3d(0, 0, 0); /* GPU acceleration */
    opacity: 1;
    will-change: transform;
    backface-visibility: hidden;
}

.portfolio-box:hover {
    transform: translate3d(0, -8px, 0) scale(1.02);
    box-shadow: 0 12px 35px var(--shadow-color);
}

.portfolio-box img {
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    will-change: transform;
}

.portfolio-box:hover img {
    transform: scale(1.05);
}

.portfolio-box .portfolio-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(54, 92, 255, 0.95),
        rgba(42, 71, 204, 0.85)
    );
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
    opacity: 0;
}

.portfolio-box:hover .portfolio-layers {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-layers h4 {
    font-size: 3rem;
    color: var(--white-color);
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.portfolio-box:hover .portfolio-layers h4 {
    transform: translateY(0);
}

.portfolio-layers p {
    font-size: 1.6rem;
    margin: 0.3rem 0 1rem;
    color: var(--white-color);
    opacity: 0.9;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s;
}

.portfolio-box:hover .portfolio-layers p {
    transform: translateY(0);
}

.portfolio-layers a {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: var(--white-color);
    border-radius: 50%;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s ease 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.portfolio-box:hover .portfolio-layers a {
    transform: translateY(0) scale(1);
}

.portfolio-layers a:hover {
    transform: translateY(0) scale(1.1);
    background: var(--secondary-color);
}

.portfolio-layers a i {
    font-size: 2rem;
    color: var(--main-color);
    transition: color 0.3s ease;
}

.portfolio-layers a:hover i {
    color: var(--white-color);
}

.testimonial-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    padding: 5rem 1rem;
}

.testimonial-container .testimonial-wrapper {
    width: 100%;
    max-width: 90rem;
    padding: 5rem;
    position: relative;
}

.testimonial-wrapper .testimonial-box {
    padding: 1rem;
    border-radius: 2rem;
    overflow: hidden;
}

.testimonial-box .swiper-button-next,
.testimonial-box .swiper-button-prev {
    color: var(--main-color);
}

.testimonial-box .swiper-button-next {
    right: 0;
}

.testimonial-box .swiper-button-prev {
    left: 0;
}

.testimonial-box .swiper-pagination-bullet {
    background: var(--main-color);
}

.testimonial-box .swiper-pagination-bullet:active {
    background: var(--main-color);
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: var(--swiper-pagination-bottom, 22px);
    top: var(--swiper-pagination-top, auto);
    left: 0;
    width: 100%;
}

.testimonial-content .testimonial-slide {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 2rem;
    -webkit-box-shadow: 0 4px 20px var(--shadow-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: 3rem 5rem;
    border: 1px solid var(--border-color);
    border-top: 0.8rem solid var(--main-color);
    border-bottom: 0.8rem solid var(--main-color);
}

.testimonial-slide img {
    width: 14rem;
    height: 14rem;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 50%;
    border: 0.5rem solid var(--bg-color);
    outline: 0.5rem solid var(--main-color);
}

.testimonial-slide h3 {
    font-size: 2.5rem;
    margin: 2rem 0;
}

.testimonial-slide p {
    font-size: 1.4rem;
    text-align: center;
}

.testimonial-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    background: var(--hover-bg);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

.footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 2rem 32%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 -4px 30px var(--shadow-color);
}

.footer .footer-text p {
    font-size: 1.6rem;
    color: var(--white-color);
}

.footer-iconTop a {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--card-bg);
    border-radius: 0.8rem;
    border: 2px solid var(--main-color);
    outline: 0.2rem solid transparent;
    -webkit-transition: 0.5s ease;
    -o-transition: 0.5s ease;
    transition: 0.5s ease;
}

.footer-iconTop a:hover {
    background: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.footer-iconTop a:hover i {
    color: var(--white-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--main-color);
    transition: color 0.3s ease;
}

/* Progress Circle Styles */
.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 2rem auto;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.progress-circle .progress-bar {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--main-color) 0deg, var(--main-color) 0deg, var(--white-color) 0deg);
    mask: radial-gradient(transparent 55%, black 56%);
    -webkit-mask: radial-gradient(transparent 55%, black 56%);
    transition: background 0.3s ease;
}

.progress-circle .progress-text {
    position: relative;
    font-size: 2rem;
    font-weight: 600;
    color: var(--main-color);
    z-index: 1;
}

/* Small Desktop */

@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .home .profession-container {
        height: 85.8rem;
    }

    .threejs-container {
        height: 85.8rem;
        width: 85.8rem;
    }

    .profession-overlay {
        height: 85.8rem;
        width: 85.8rem;
    }

    .home-img img {
        top: 6%;
    }
}

/* Laptop */

@media (max-width: 1024px) {

    /* .navbar a:nth-child(1) {
    color: var(--main-color);
  } */
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .threejs-container {
        right: -22rem;
    }

    .profession-overlay {
        right: -15rem;
    }

    .home-img img {
        right: -5rem;
        top: 6%;
    }

    .navbar a.active::before {
        /* background: var(--main-color); */
        opacity: 0.7;
    }
}

/* Tablet and below */

@media (max-width: 991px) {

    .navbar a:nth-child(1),
    .navbar a:nth-child(2) {
        color: var(--main-color);
    }

    .home .home-content {
        max-width: 50rem;
    }



    .home-img {
        display: none;
    }

    .navbar a.active::before {
        background: var(--main-color);
    }

    .serives,
    .portfolio {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }

    /* Hide 3D animation on smaller screens */

    /* Modern horizontal expertise bar */
    .expertise-bar-mobile {
        display: flex;
        flex-direction: row;
        gap: 1.2rem;
        overflow-x: auto;
        padding: 1.5rem 1rem 1.5rem 1rem;
        margin: 2rem 0 2rem 0;
        width: 100vw;
        background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
        box-shadow: 0 2px 10px var(--shadow-color);
        scrollbar-width: none;
        align-items: center;
    }
    .expertise-bar-mobile::-webkit-scrollbar {
        display: none;
    }
    .expertise-chip {
        background: var(--card-bg);
        color: var(--main-color);
        border-radius: 2rem;
        padding: 0.9rem 2rem;
        font-size: 1.6rem;
        font-weight: 600;
        box-shadow: 0 2px 8px var(--shadow-color);
        white-space: nowrap;
        border: 1px solid var(--main-color);
        display: flex;
        align-items: center;
        gap: 0.7rem;
        transition: background 0.2s, color 0.2s;
    }
    .expertise-chip i {
        font-size: 2rem;
        color: var(--main-color);
    }
    .expertise-chip:active, .expertise-chip:focus {
        background: var(--main-color);
        color: var(--white-color);
    }

    .expertise-bar-fade-mobile {
        margin: 0 !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }
    .about, section.about {
        margin: 0 !important;
        padding: 0 !important;
    }
    .about-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .about-img {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (min-width: 992px) {
    .expertise-bar-fade-mobile {
        display: none !important;
    }
}

/* Tablet (Portrait) */

@media (max-width: 768px) {
    #menu-icon {
        transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), color 0.3s;
        cursor: pointer;
        z-index: 120;
        position: relative;
    }
    #menu-icon.bx-x {
        transform: rotate(90deg) scale(1.15);
        color: var(--main-color);
        transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), color 0.3s;
    }
    .navbar {
        opacity: 0;
        transform: translateY(-24px) scale(0.98);
        pointer-events: none;
        transition: opacity 0.38s cubic-bezier(0.4,0,0.2,1), transform 0.38s cubic-bezier(0.4,0,0.2,1);
        will-change: opacity, transform;
    }
    .navbar.active {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        transition: opacity 0.38s cubic-bezier(0.4,0,0.2,1), transform 0.38s cubic-bezier(0.4,0,0.2,1);
    }

    #darkMode-icon {
        position: absolute;
        right: 7rem;
        font-size: 2.6rem;
        color: var(--text-color);
        margin-bottom: 0.1rem;
    }

    .header.sticky .navbar a.active {
        color: var(--main-color);
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: 0.1rem solid var(--border-color);

    /* 3D Animation mobile adjustments */

        box-shadow: 0 0.5rem 1rem var(--shadow-color);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }

    .navbar a:nth-child(1),
    .navbar a:nth-child(2),
    .navbar a:nth-child(3) {
        color: var(--text-color);
    }

    .navbar a.active {
        color: var(--main-color);
    }

    .navbar a::before {
        display: none;
    }

    .home {
        padding: 10rem 3% 23rem;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        text-align: center;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content .social-media a {
        margin: 2.5rem 0.75rem 3rem;
    }



    .about {
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-img img {
        width: 70vw;
        margin-top: -2rem;
    }

    .serives h2,
    .portfolio h2 {
        margin-bottom: 3rem;
    }

    .portfolio .portfolio-container {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-container .testimonial-wrapper {
        padding: 5rem 0;
    }

    .testimonial-content .testimonial-slide {
        padding: 3rem 2rem;
    }

    .testimonial-box .swiper-button-next,
    .testimonial-box .swiper-button-prev {
        display: none;
    }
}

/* Small Tablet (Portrait) */

@media (max-width: 617px) {
    .portfolio .portfolio-container {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 9px;
    }
    body {
        padding: 0 2vw;
    }
    .header {
        padding: 1rem 2vw;
    }
    .logo {
        font-size: 2rem;
    }
    #menu-icon {
        font-size: 4.2rem;
        padding: 1rem;
    }
    .navbar a {
        font-size: 2rem;
        padding: 1.2rem 2rem;
        margin: 0.5rem 0;
        min-width: 44px;
        min-height: 44px;
    }
    .btn, button, input[type="submit"] {
        font-size: 1.7rem;
        padding: 1.2rem 2.5rem;
        min-width: 44px;
        min-height: 44px;
    }
    section {
        padding: 7rem 2vw 2rem;
    }
    .home-content h1 {
        font-size: 3.2rem;
    }
    .home-content h3 {
        font-size: 2.2rem;
    }
    .home-content p {
        font-size: 1.4rem;
    }
    .home-img img {
        width: 90vw;
        max-width: 320px;
        height: auto;
    }
    .about-img img {
        width: 80vw;
        max-width: 260px;
        height: auto;
    }
    .portfolio .portfolio-container,
    .testimonial-container .testimonial-wrapper,
    .blog-container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .portfolio-box img,
    .testimonial-slide img,
    .blog-box img {
        width: 100%;
        height: auto;
        max-width: 100vw;
    }
    .contact form .input-box input,
    .contact form textarea {
        font-size: 1.5rem;
        padding: 1.2rem;
    }
    .footer {
        padding: 2rem 0.5rem;
        font-size: 1.2rem;
    }
    .footer-iconTop a {
        min-width: 44px;
        min-height: 44px;
        font-size: 2.2rem;
    }
    /* Remove horizontal scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 8.5px;
    }
    .header {
        padding: 0.7rem 1vw;
    }
    .logo {
        font-size: 1.7rem;
    }
    .home-content h1 {
        font-size: 2.5rem;
    }
    .home-content h3 {
        font-size: 1.7rem;
    }
    .btn, button, input[type="submit"] {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }
    .about-img img {
        max-width: 200px;
    }
    .portfolio-box img,
    .testimonial-slide img,
    .blog-box img {
        max-width: 95vw;
    }
    .navbar a {
        font-size: 1.7rem;
        padding: 1rem 1.5rem;
    }
}

/* Enhanced Native Smooth Scrolling */
html {
    scroll-behavior: smooth !important;
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body {
    overflow-x: hidden !important;
    scroll-behavior: smooth !important;
    max-width: 100vw !important;
    position: relative !important;
}

/* Prevent any element from causing horizontal overflow */
* {
    max-width: 100vw;
    box-sizing: border-box !important;
}

/* Text Gradient Animation */
.heading span {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Animation */
.home-img img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Hover Effects */
.services-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-box:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Glass Morphism */
.services-box, .portfolio-box, .header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

/* Progress Circle Animation */
.progresscircle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
}

.progresscircle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--card-bg);
}

.progresscircle span {
    position: relative;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--main-color);
}

/* Portfolio Hover Effect */
.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-box img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-layers {
    background: linear-gradient(to top, 
        rgba(54, 92, 255, 0.95),
        rgba(42, 71, 204, 0.85)
    );
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-box:hover .portfolio-layers {
    transform: translateY(0);
}

/* Button Hover Effect */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

/* Social Media Icons Animation */
.social-media a {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-media a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* Dark Mode Toggle Animation */
#darkMode-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#darkMode-icon:hover {
    transform: rotate(180deg);
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .services-box {
        margin: 2rem 0;
    }
    
    .portfolio-box {
        margin: 2rem 0;
    }
    
    .home-content h1 {
        font-size: 4.5rem;
    }
}

/* Education Section Styling */
.education {
    padding: 10rem 7% 2rem;
}

.education h2 {
    margin-bottom: 4rem;
    text-align: center;
}

.education-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.education-box {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid var(--glass-border);
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1rem var(--shadow-color);
    max-width: 40rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.education-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(54, 92, 255, 0.1), transparent);
    transition: left 0.5s;
}

.education-box:hover::before {
    left: 100%;
}

.education-box:hover {
    transform: translateY(-1rem);
    box-shadow: 0 1rem 2rem var(--shadow-color);
    border-color: var(--main-color);
}

.education-icon {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.education-content h3 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-content .institution {
    font-size: 1.8rem;
    color: var(--main-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-content .year {
    font-size: 1.6rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Skills Breakdown Section Styling */
.skills-breakdown {
    padding: 10rem 7% 2rem;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--hover-bg) 100%);
}

.skills-breakdown h2 {
    margin-bottom: 4rem;
    text-align: center;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
    max-width: 120rem;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.skills-list li {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 0.2rem solid var(--glass-border);
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1rem var(--shadow-color);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skills-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(54, 92, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.skills-list li:hover::before {
    transform: translateX(100%);
}

.skills-list li:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem var(--shadow-color);
    border-color: var(--main-color);
    color: var(--main-color);
}

/* Blog Section Styling */
.blog {
    padding: 10rem 7% 2rem;
}

.blog h2 {
    margin-bottom: 4rem;
    text-align: center;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
    max-width: 120rem;
    margin: 0 auto;
}

.blog-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 2rem;
    border: 0.2rem solid var(--glass-border);
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1rem var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.blog-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.3rem;
    background: linear-gradient(90deg, var(--main-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-box:hover::before {
    transform: scaleX(1);
}

.blog-box:hover {
    transform: translateY(-1rem);
    box-shadow: 0 1rem 2rem var(--shadow-color);
    border-color: var(--main-color);
}

.blog-box h4 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.blog-box p {
    font-size: 1.6rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-box a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-box a:hover {
    color: var(--accent-color);
}

.blog-box a.read-now {
    color: var(--white-color) !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    text-align: center;
    box-shadow: 0 0.3rem 0.8rem var(--shadow-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none !important;
}

.blog-box a.read-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.blog-box a.read-now:hover::before {
    left: 100%;
}

.blog-box a.read-now:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1.5rem var(--shadow-color);
    color: var(--white-color) !important;
}

.dark-mode .blog-box a.read-now {
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    box-shadow: 0 0.3rem 0.8rem rgba(100, 255, 218, 0.2);
}

.dark-mode .blog-box a.read-now:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(100, 255, 218, 0.3);
    color: var(--white-color) !important;
}

/* Coming Soon Badge Styling */
.coming-soon {
    display: block;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    color: var(--white-color);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    text-align: center;
    box-shadow: 0 0.3rem 0.8rem var(--shadow-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.read-now {
    display: block;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    color: var(--white-color);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    text-align: center;
    box-shadow: 0 0.3rem 0.8rem var(--shadow-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.read-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.coming-soon:hover::before {
    left: 100%;
}

.read-now:hover::before {
    left: 100%;
}

.coming-soon:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1.5rem var(--shadow-color);
}

.read-now:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1.5rem var(--shadow-color);
}

.dark-mode .coming-soon {
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    box-shadow: 0 0.3rem 0.8rem rgba(100, 255, 218, 0.2);
}

.dark-mode .read-now {
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    box-shadow: 0 0.3rem 0.8rem rgba(100, 255, 218, 0.2);
}

.dark-mode .coming-soon:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(100, 255, 218, 0.3);
}

.dark-mode .read-now:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(100, 255, 218, 0.3);
}

/* Dark mode adjustments for coming soon badge */
.dark-mode .coming-soon {
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    box-shadow: 0 0.3rem 0.8rem rgba(100, 255, 218, 0.2);
}

.dark-mode .coming-soon:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(100, 255, 218, 0.3);
}

/* Portfolio Filters Styling */
.portfolio-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: 0.2rem solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 2.5rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.3rem 0.8rem var(--shadow-color);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--main-color);
    color: var(--white-color);
    border-color: var(--main-color);
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1.5rem var(--shadow-color);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .education-container {
        flex-direction: column;
    }
    
    .education-box {
        max-width: 100%;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-filters {
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .education-box {
        padding: 2rem 1.5rem;
    }
    
    .skills-list li {
        padding: 1.5rem;
        font-size: 1.4rem;
    }
    
    .blog-box {
        padding: 2rem;
    }
    
    .blog-box h4 {
        font-size: 1.8rem;
    }
    
    .blog-box p {
        font-size: 1.4rem;
    }
    
    .coming-soon {
        font-size: 1rem;
        padding: 0.4rem 1rem;
        margin-top: 0.8rem;
    }
}

/* Achievements Section Styling */
.achievements {
    padding: 10rem 7% 2rem;
    background: linear-gradient(135deg, var(--hover-bg) 0%, var(--bg-color) 100%);
}

.achievements h2 {
    margin-bottom: 4rem;
    text-align: center;
}

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    max-width: 120rem;
    margin: 0 auto;
}

.achievement-box {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid var(--glass-border);
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1rem var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.achievement-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(54, 92, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.achievement-box:hover::before {
    transform: translateX(100%);
}

.achievement-box:hover {
    transform: translateY(-1rem);
    box-shadow: 0 1rem 2rem var(--shadow-color);
    border-color: var(--main-color);
}

.achievement-icon {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.achievement-box h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.achievement-box p {
    font-size: 1.6rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Enhanced Skills Section with Logos */
.skills-categories {
    margin-bottom: 4rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 2rem;
    border: 0.2rem solid var(--glass-border);
    margin-bottom: 3rem;
    box-shadow: 0 0.5rem 1rem var(--shadow-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem var(--shadow-color);
    border-color: var(--main-color);
}

.skill-category h3 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-category h3 i {
    color: var(--main-color);
    font-size: 2.8rem;
}

.skill-logos {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) transparent;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.skill-logos::-webkit-scrollbar {
    height: 8px;
}

.skill-logos::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 10px;
    margin: 0 1rem;
}

.skill-logos::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid var(--bg-color);
    transition: all 0.3s ease;
}

.skill-logos::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--main-color));
    transform: scale(1.1);
}

.skill-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    background: var(--card-bg);
    border: 2px solid transparent;
    min-width: 12rem;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.skill-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.skill-logo:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--main-color);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.skill-logo:hover::before {
    opacity: 0.1;
}

.skill-logo img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.skill-logo:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.skill-logo span {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.skill-logo:hover span {
    color: var(--main-color);
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(54, 92, 255, 0.3);
}

.skill-logo:hover {
    transform: translateY(-0.3rem);
    box-shadow: 0 0.5rem 1rem var(--shadow-color);
    border-color: var(--main-color);
}

.skill-logo img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.skill-logo span {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

/* Timeline Section Styling */
.timeline {
    padding: 10rem 7% 2rem;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--hover-bg) 100%);
}

.timeline h2 {
    margin-bottom: 4rem;
    text-align: center;
}

.timeline-container {
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0.2rem;
    background: var(--main-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 0.5rem var(--bg-color), 0 0 20px var(--main-color);
    animation: timelinePulse 2s infinite;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    animation: timelinePulseOuter 2s infinite;
}

@keyframes timelinePulse {
    0% {
        box-shadow: 0 0 0 0.5rem var(--bg-color), 0 0 20px var(--main-color);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 0 0.5rem var(--bg-color), 0 0 30px var(--main-color), 0 0 40px rgba(54, 92, 255, 0.8);
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0.5rem var(--bg-color), 0 0 20px var(--main-color);
        transform: translateX(-50%) scale(1);
    }
}

@keyframes timelinePulseOuter {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.timeline-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 2rem;
    border: 0.2rem solid var(--glass-border);
    box-shadow: 0 0.5rem 1rem var(--shadow-color);
    width: 45%;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-content:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem var(--shadow-color);
    border-color: var(--main-color);
}

.timeline-content h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content .company {
    font-size: 1.8rem;
    color: var(--main-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-content .period {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-content p {
    font-size: 1.6rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Enhanced Blog Section */
.blog-box {
    position: relative;
}

.blog-icon {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Testimonials Section Styling */
.testimonials {
    padding: 10rem 7% 2rem;
    background: linear-gradient(135deg, var(--hover-bg) 0%, var(--bg-color) 100%);
}

.testimonials h2 {
    margin-bottom: 4rem;
    text-align: center;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40rem, 1fr));
    gap: 3rem;
    max-width: 120rem;
    margin: 0 auto;
}

.testimonial-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 2rem;
    border: 0.2rem solid var(--glass-border);
    box-shadow: 0 0.5rem 1rem var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-box::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 6rem;
    color: var(--main-color);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-box:hover {
    transform: translateY(-1rem);
    box-shadow: 0 1rem 2rem var(--shadow-color);
    border-color: var(--main-color);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.8rem;
    color: var(--text-color);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    font-size: 4rem;
    color: var(--main-color);
}

.author-info h4 {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 1.4rem;
    color: var(--text-secondary);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .achievements-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-logos {
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .skill-logo {
        min-width: 10rem;
        padding: 1.5rem;
    }
    
    .timeline-container::before {
        left: 2rem;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-dot {
        left: 2rem;
    }
    
    .timeline-content {
        width: calc(100% - 6rem);
        margin-left: 6rem !important;
        margin-right: 0 !important;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-box {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .achievement-box {
        padding: 2rem 1.5rem;
    }
    
    .skill-category {
        padding: 2rem;
    }
    
    .skill-logo {
        padding: 1.5rem;
        min-width: 8rem;
    }
    
    .skill-logo img {
        width: 3rem;
        height: 3rem;
    }
    
    .timeline-content {
        padding: 2rem;
        width: calc(100% - 4rem);
        margin-left: 4rem !important;
    }
    
    .testimonial-content p {
        font-size: 1.6rem;
    }
}

/* Education Info in About Section */
.education-info {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.education-info h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.education-info h3::before {
    content: '';
    width: 3px;
    height: 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--hover-bg);
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.education-item i {
    font-size: 2.5rem;
    color: var(--main-color);
}

.education-item div h4 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-item div p {
    font-size: 1.4rem;
    color: var(--text-secondary);
}

/* Enhanced Skill Categories */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--main-color);
}

.skill-category h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-category h3 i {
    color: var(--main-color);
    font-size: 2.2rem;
}

.skill-logos {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) transparent;
}

.skill-logos::-webkit-scrollbar {
    height: 4px;
}

.skill-logos::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.skill-logos::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 2px;
}

.skill-logos::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.skill-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--hover-bg);
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 8rem;
    flex-shrink: 0;
}

.skill-logo:hover {
    transform: scale(1.05);
    background: var(--card-bg);
    border-color: var(--main-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.skill-logo img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.skill-logo span {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
}

/* Contact Form Error Styling */
.error-message {
    color: var(--error-color);
    font-size: 1.2rem;
    margin-top: 0.5rem;
    display: none;
}

.contact form .input-box input.error,
.contact form textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

/* Performance Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Loading Optimization */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-category {
        padding: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-logos {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 1rem;
    }
    
    .education-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .skills-summary {
        padding: 2rem;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-logo img {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .skill-logo span {
        font-size: 1.1rem;
    }
    
    .skills-summary h3 {
        font-size: 2rem;
    }
    
    .skill-group h4 {
        font-size: 1.6rem;
    }
}

/* Portfolio Filter Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(30px); }
}
.portfolio-box {
    transition: opacity 0.5s, transform 0.5s;
}

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::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:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

/* Enhanced Social Media Icons */
.social-media a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-media a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--main-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.social-media a:hover::before {
    width: 100%;
    height: 100%;
}

.social-media a:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--white-color);
}

/* Enhanced Progress Circles */
.progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--main-color) 0deg, var(--main-color) 0deg, var(--white-color) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    transition: all 0.3s ease;
}

.progress-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.progress-circle .progress-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Enhanced Section Headers */
.heading {
    position: relative;
    margin-bottom: 4rem;
    text-align: center;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

/* Enhanced Card Hover Effects */
.services-box,
.portfolio-box,
.achievement-box,
.blog-box {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.services-box::before,
.portfolio-box::before,
.achievement-box::before,
.blog-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.services-box:hover::before,
.portfolio-box:hover::before,
.achievement-box:hover::before,
.blog-box:hover::before {
    left: 100%;
}

/* Enhanced Timeline */
.timeline-item {
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 8px var(--main-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 8px var(--main-color);
    }
    50% {
        box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 12px rgba(54, 92, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 8px var(--main-color);
    }
}

/* Enhanced Form Styling */
.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(54, 92, 255, 0.1);
    transform: translateY(-2px);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Dark Mode Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Accessibility */
.btn:focus,
.social-media a:focus,
.navbar a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .social-media {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Simple Education Section */
.education-simple {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--hover-bg);
    border-radius: 0.8rem;
    border-left: 4px solid var(--main-color);
}

.education-simple h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-simple p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.education-simple i {
    color: var(--main-color);
    font-size: 1.8rem;
}

/* SEO Optimizations */
/* Ensure proper heading hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Improve text readability */
p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Ensure proper contrast ratios */
.btn {
    color: var(--white-color);
    background: var(--main-color);
    font-weight: 500;
}

/* Improve focus visibility for accessibility */
*:focus {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

/* Ensure images are properly sized */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improve link accessibility */
a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Ensure proper spacing for mobile */
@media (max-width: 768px) {
    .education-simple {
        padding: 1rem;
    }
    
    .education-simple h3 {
        font-size: 1.6rem;
    }
    
    .education-simple p {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Hero Glassmorphism Card */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 60vh;
  padding-top: 60px;
}
.glass-card-main {
  position: relative;
  width: 340px;
  height: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.37);
  backdrop-filter: blur(8px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
.glass-blobs-main {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.glass-blobs-main::before, .glass-blobs-main::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.5;
}
.glass-blobs-main::before {
  width: 120px; height: 120px; left: -40px; top: -40px;
  background: linear-gradient(135deg, #1c92d2 60%, #f2fcfe 100%);
  animation: blob1-main 6s ease-in-out infinite alternate;
}
.glass-blobs-main::after {
  width: 80px; height: 80px; right: -20px; bottom: -20px;
  background: linear-gradient(135deg, #2c5364 60%, #f2fcfe 100%);
  animation: blob2-main 7s ease-in-out infinite alternate;
}
@keyframes blob1-main { 0%{transform:scale(1);} 100%{transform:scale(1.2) translate(20px, 10px);} }
@keyframes blob2-main { 0%{transform:scale(1);} 100%{transform:scale(1.1) translate(-10px, -20px);} }
.glass-content-main {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}
.glass-content-main h2 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-size: 2rem;
  margin: 0 0 8px 0;
  background: linear-gradient(90deg, #1c92d2, #f2fcfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.glass-content-main p {
  margin: 0;
  font-size: 1.08rem;
  color: #e0e8ef;
}

/* Sleek Animated Bars */
.animated-bars-logo-main {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 48px;
  margin: 0 auto 0 auto;
  background: transparent;
}
.bar-main {
  width: 7px;
  border-radius: 6px;
  background: linear-gradient(180deg, #1c92d2 60%, #f2fcfe 100%);
  animation: barAnim-main 1.1s infinite alternate;
  box-shadow: 0 2px 8px #1c92d255;
}
.bar1-main { height: 32px; animation-delay: 0s; }
.bar2-main { height: 48px; animation-delay: 0.2s; }
.bar3-main { height: 24px; animation-delay: 0.4s; }
.bar4-main { height: 40px; animation-delay: 0.6s; }
@keyframes barAnim-main {
  0% { transform: scaleY(1);}
  100% { transform: scaleY(1.25);}
}

@media (max-width: 480px) {
  .glass-card-main { width: 96vw; min-width: 0; }
}

/* Experience & Expertise Timeline */
.experience-section {
  padding: 60px 0 40px 0;
  text-align: center;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}
.glass-card-timeline {
  position: relative;
  width: 340px;
  min-height: 140px;
  background: rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.37);
  backdrop-filter: blur(8px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border 0.2s, box-shadow 0.2s;
  border: 1.5px solid rgba(255,255,255,0.18);
}
.glass-card-timeline:hover {
  background: rgba(255,255,255,0.16);
  border: 1.5px solid #1c92d2;
  box-shadow: 0 12px 36px 0 rgba(31,38,135,0.25);
}
.glass-blobs-timeline {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.glass-blobs-timeline::before, .glass-blobs-timeline::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.5;
}
.glass-blobs-timeline::before {
  width: 80px; height: 80px; left: -30px; top: -30px;
  background: linear-gradient(135deg, #1c92d2 60%, #f2fcfe 100%);
  animation: blob1-timeline 6s ease-in-out infinite alternate;
}
.glass-blobs-timeline::after {
  width: 60px; height: 60px; right: -15px; bottom: -15px;
  background: linear-gradient(135deg, #2c5364 60%, #f2fcfe 100%);
  animation: blob2-timeline 7s ease-in-out infinite alternate;
}
@keyframes blob1-timeline { 0%{transform:scale(1);} 100%{transform:scale(1.2) translate(10px, 8px);} }
@keyframes blob2-timeline { 0%{transform:scale(1);} 100%{transform:scale(1.1) translate(-8px, -10px);} }
.timeline-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  width: 100%;
  padding: 24px 16px 16px 16px;
}
.timeline-content h3 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-size: 1.2rem;
  margin: 0 0 8px 0;
  background: linear-gradient(90deg, #1c92d2, #f2fcfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.timeline-content p {
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  color: #e0e8ef;
}
.animated-bars-logo-timeline {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 28px;
  margin: 0 auto 0 auto;
  background: transparent;
  justify-content: center;
}
.bar-timeline {
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, #1c92d2 60%, #f2fcfe 100%);
  animation: barAnim-timeline 1.1s infinite alternate;
  box-shadow: 0 2px 8px #1c92d255;
}
.bar1-timeline { height: 16px; animation-delay: 0s; }
.bar2-timeline { height: 28px; animation-delay: 0.2s; }
.bar3-timeline { height: 12px; animation-delay: 0.4s; }
.bar4-timeline { height: 22px; animation-delay: 0.6s; }
@keyframes barAnim-timeline {
  0% { transform: scaleY(1);}
  100% { transform: scaleY(1.25);}
}
@media (max-width: 480px) {
  .glass-card-timeline { width: 96vw; min-width: 0; }
}

/* Achievements & Awards Card Font Size Enhancements */
.achievements-container .achievement-card .achievement-content h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.achievements-container .achievement-card .achievement-content .achievement-location,
.achievements-container .achievement-card .achievement-content .achievement-period {
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.achievements-container .achievement-card .achievement-content .achievement-details {
  font-size: 1.08rem;
  font-weight: 400;
  margin-top: 4px;
}
.achievements-container .achievement-card {
  min-height: 140px;
  padding: 28px 20px 22px 20px;
}

/* Logo switching for light/dark mode */
.logo-dark { display: none !important; }
.logo-light { display: block !important; }

body.dark-mode .logo-dark { display: block !important; }
body.dark-mode .logo-light { display: none !important; }

/* About section smooth expansion */
.about-img, .about-content {
  transition: max-height 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.5s;
}
.about:not(.about-expanded) .about-img,
.about:not(.about-expanded) .about-content {
  max-height: 420px;
  overflow: hidden;
}
.about.about-expanded .about-img,
.about.about-expanded .about-content {
  max-height: 2000px;
  opacity: 1;
}

#about-more-text {
  transition: max-height 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.5s;
}



/* Advanced Unique Animated Background */
.particle-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, var(--main-color), var(--accent-color));
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.particle-1 { top: 10%; right: 20%; animation-delay: 0s; }
.particle-2 { top: 30%; right: 15%; animation-delay: 1s; }
.particle-3 { top: 50%; right: 25%; animation-delay: 2s; }
.particle-4 { top: 70%; right: 20%; animation-delay: 3s; }
.particle-5 { top: 20%; right: 35%; animation-delay: 4s; }
.particle-6 { top: 40%; right: 30%; animation-delay: 5s; }
.particle-7 { top: 60%; right: 40%; animation-delay: 6s; }
.particle-8 { top: 80%; right: 35%; animation-delay: 7s; }

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-10px) translateX(5px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-100px) translateX(20px) scale(1);
    }
    100% {
        transform: translateY(-120px) translateX(25px) scale(0);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .image-background-shape {
        width: 500px;
        height: 500px;
        right: 0%;
        top: 15%;
    }
    
    .tech-satellite {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    
    .data-line {
        width: 100px !important;
    }
    
    .home-img img {
        width: 350px;
        right: 5%;
    }
}

/* Tech Icons as Floating Bubbles */
.tech-orbit {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 10;
}

/* Tech Orbit Container - Properly Centered Around Profile */
.tech-orbit {
    position: absolute;
    top: 50%;
    right: 15%;
    width: 42rem;
    height: 42rem;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
    /* Debug: uncomment to see orbit boundary */
    /* border: 2px dashed rgba(54, 92, 255, 0.3); */
    border-radius: 50%;
}

/* Fixed Tech Satellites - Prevent Flickering with Profile Image */
.tech-satellite {
    position: absolute;
    width: 55px;
    height: 55px;
    background: var(--card-bg);
    border: 2px solid var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--main-color);
    cursor: pointer;
    pointer-events: auto;
    z-index: 11;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.25s ease,
                border-color 0.25s ease;
    box-shadow: 0 6px 20px rgba(54, 92, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: satelliteFloat 8s ease-in-out infinite;
    /* Performance optimizations and isolation */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    isolation: isolate;
    contain: layout style paint;
}

@keyframes satelliteFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        box-shadow: 0 6px 20px rgba(54, 92, 255, 0.2);
    }
    50% {
        transform: translate3d(0, -12px, 0) scale(1.02);
        box-shadow: 0 10px 30px rgba(54, 92, 255, 0.3);
    }
}

/* Optimized hover with better color contrast and no blending */
.tech-satellite:hover {
    animation-play-state: paused;
    transform: translate3d(0, -5px, 0) scale(1.15);
    box-shadow: 0 12px 35px rgba(54, 92, 255, 0.4);
    background: var(--white-color) !important;
    border: 2px solid var(--main-color) !important;
    color: var(--main-color) !important;
    /* Remove any gradient blending */
    background-image: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure icon stays visible on hover with solid colors */
.tech-satellite:hover i {
    color: var(--main-color) !important;
    transform: scale(1.1);
    text-shadow: none !important;
    background: transparent !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--main-color) !important;
    background-clip: initial !important;
}

/* Enhanced active state for clear click feedback */
.tech-satellite:active {
    transform: translate3d(0, -1px, 0) scale(1.08) !important;
    background: var(--main-color) !important;
    color: var(--white-color) !important;
    border-color: var(--main-color) !important;
    box-shadow: 0 6px 20px rgba(54, 92, 255, 0.6) !important;
    transition: all 0.15s ease !important;
}

/* Active state icon color */
.tech-satellite:active i {
    color: var(--white-color) !important;
    transform: scale(1.05) !important;
    background: transparent !important;
    background-image: none !important;
    -webkit-text-fill-color: var(--white-color) !important;
}

/* Critical Performance Optimizations for Fast Loading */

/* Preload critical fonts and resources */
html {
    font-display: swap; /* Ensure text remains visible during font swap */
}

/* Optimize image loading */
img {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

/* Optimize large sections */
.portfolio-container,
.services-container,
.blog-container {
    content-visibility: auto;
    contain-intrinsic-size: 1200px 800px;
}

/* Reduce layout thrashing */
.portfolio-box,
.services-box,
.blog-box {
    contain: layout style paint;
}

/* Optimize scrolling performance */
body {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

/* Critical CSS for above-the-fold content */
.home {
    contain: layout style;
    will-change: auto;
}

.home-content h1,
.home-content h3,
.home-content p {
    contain: style;
}

/* Defer non-critical animations */
@media (prefers-reduced-motion: no-preference) {
    .tech-satellite {
        animation: satelliteFloat 8s ease-in-out infinite;
    }
}

/* Optimize tech satellite positioning with subpixel precision */
.satellite-1 {
    /* Cloud Architecture - Top */
    top: 8%;
    left: 40%;
    transform: translateX(-50%) translate3d(0, 0, 0);
    animation-delay: 0s;
}

.satellite-2 {
    /* AI/ML Engineering - Top Right (moved away from face) */
    top: 20%;
    right: -15%;
    transform: translate3d(0, 0, 0);
    animation-delay: 1.6s;
}

.satellite-3 {
    /* Cybersecurity - Bottom Right */
    bottom: 20%;
    right: -20%;
    transform: translate3d(0, 0, 0);
    animation-delay: 3.2s;
}

.satellite-4 {
    /* DevOps - Bottom */
    bottom: -5%;
    left: 25%;
    transform: translateX(-50%) translate3d(0, 0, 0);
    animation-delay: 4.8s;
}

.satellite-5 {
    /* Forensics Analyst - Left (inside circle boundary) */
    top: 35%;
    left: 8%;
    transform: translate3d(0, 0, 0);
    animation-delay: 6.4s;
}

.tech-satellite i {
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}







/* Data Stream Lines */
.data-stream {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
}

.data-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
    animation: dataFlow 4s linear infinite;
}

.line-1 {
    top: 20%;
    right: 0;
    width: 200px;
    animation-delay: 0s;
}

.line-2 {
    top: 40%;
    right: 0;
    width: 150px;
    animation-delay: 1.3s;
}

.line-3 {
    top: 60%;
    right: 0;
    width: 180px;
    animation-delay: 2.6s;
}

@keyframes dataFlow {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* REMOVED OLD CONFLICTING MODAL STYLES */

.modal-content {
    background: transparent;
    border-radius: 32px;
    box-shadow: none;
    border: none;
    overflow: hidden;
    position: relative;
}
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), #00d4aa, var(--main-color));
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.2rem 2.2rem 1.2rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.10);
    background: transparent;
}
.modal-header h2 {
    color: var(--main-color);
    font-size: 2.1rem;
    margin: 0;
    letter-spacing: 0.01em;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(54,92,255,0.08);
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.7rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1.5px 8px rgba(54,92,255,0.08);
}
.modal-close:hover {
    background: rgba(100, 255, 218, 0.16);
    color: var(--main-color);
    transform: rotate(90deg) scale(1.13);
}
.modal-body {
    padding: 2.2rem;
    max-height: 60vh;
    overflow-y: auto;
    background: transparent;
}
.profession-icon {
    text-align: center;
    margin-bottom: 2.2rem;
}
.profession-icon i {
    font-size: 4.2rem;
    color: var(--main-color);
    background: linear-gradient(135deg, var(--main-color), #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.profession-description {
    margin-bottom: 2.2rem;
}
.profession-description p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.13rem;
    text-align: justify;
    text-shadow: 0 1px 2px rgba(255,255,255,0.10), 0 0.5px 1px rgba(0,0,0,0.08);
}
.profession-skills {
    margin-bottom: 2.2rem;
}
.profession-skills h3 {
    color: var(--main-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.skill-tag {
    background: rgba(100, 255, 218, 0.15);
    color: var(--main-color);
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    font-size: 0.97rem;
    border: 1px solid rgba(100, 255, 218, 0.22);
    transition: all 0.3s ease;
    font-weight: 500;
}
.skill-tag:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}
.profession-projects h3 {
    color: var(--main-color);
    margin-bottom: 1rem;
    font-size: 1.18rem;
    font-weight: 600;
}
.project-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.project-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(100, 255, 218, 0.10);
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.18);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 500;
}
.project-link:hover {
    background: rgba(100, 255, 218, 0.18);
    border-color: var(--main-color);
    transform: translateX(5px);
}
.project-link i {
    color: var(--main-color);
    font-size: 1.5rem;
}

/* Mobile Responsiveness for Modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: 65vh;
    }
    
    .profession-icon i {
        font-size: 3rem;
    }
    
    .skills-tags {
        gap: 0.6rem;
    }
    
    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Fixed Profile Image - Remove Conflicting Hover Effects */
.home-img img {
    transition: none !important;
    will-change: auto !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Remove all conflicting hover effects that cause flickering */
.home-img img:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    border: none !important;
    z-index: 1 !important;
}

.home .home-img img:hover,
.home .home-img img:focus {
    transform: none !important;
    box-shadow: none !important;
    z-index: 1 !important;
}

/* Social Media Icons */
.social-media {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    margin: 2.5rem 0 3rem 0;
}
.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    background: var(--card-bg);
    color: var(--main-color);
    border-radius: 50%;
    font-size: 2.4rem;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: background 0.2s, color 0.2s;
    border: 1px solid var(--main-color);
}
.social-media a:hover, .social-media a:focus {
    background: var(--main-color);
    color: var(--white-color);
}

/* Download CV Button */
.btn {
    display: inline-block;
    padding: 1.2rem 3.2rem;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: 2rem;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    box-shadow: 0 2px 8px var(--shadow-color);
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.btn:hover, .btn:focus {
    background: var(--accent-color);
    color: var(--white-color);
}

/* === Home Section Clickability Fix: Only affects home section overlays and content === */
.home .particle-container,
.home .data-stream,
.home .image-background-shape,
.home .home-img {
  pointer-events: none !important;
  z-index: -1 !important;
}

.home .home-content,
.home .home-content .btn,
.home .home-content .social-media a {
  position: relative;
  z-index: 20 !important;
  pointer-events: auto !important;
}

/* Remove duplicate conflicting home image styles */
/* Home section profile image as a perfect circle, no layout/size change */
.home .home-img img {
  aspect-ratio: 1 / 1;
  height: 550px;
  width: 550px;
  top: 18%;
  left: auto;
  right: 7%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(54,92,255,0.10);
  background: var(--card-bg);
  /* Remove all transitions and hover effects to prevent flickering */
  transition: none !important;
  will-change: auto !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Forensics Analyst icon position in orbit */
.satellite-5 {
  top: 45%;
  right: 5%;
  animation-delay: 12s;
}

/* Skip to Content focus style */
.skip-to-content:focus {
  left: 8px !important;
  width: auto !important;
  height: auto !important;
  outline: 2px solid var(--main-color);
  box-shadow: 0 0 0 4px var(--shadow-color);
}

/* Tech Satellite as Button: Remove default button styles, match previous look */
.tech-satellite {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: box-shadow 0.2s, transform 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-satellite:focus {
  outline: 2px solid var(--main-color);
  box-shadow: 0 0 0 4px var(--main-color);
  z-index: 20;
}
.tech-satellite i {
  font-size: 2.2rem;
  color: var(--main-color);
}
.tech-satellite:hover {
  box-shadow: 0 4px 16px var(--main-color);
  transform: scale(1.08);
}

/* .btn focus style */
.btn:focus {
  outline: 2px solid var(--main-color);
  box-shadow: 0 0 0 4px var(--main-color);
}

/* Modal overlay polish */
.profession-modal[aria-modal="true"] {
  outline: none;
}
/* REMOVED DUPLICATE MODAL STYLES */

/* Satellite-5 position tweak for better balance */
.satellite-5 {
  top: 60%;
  right: 12%;
  animation-delay: 12s;
}

/* Increase particle density and allow overlap with profile image */
.home .particle-container {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Raise above overlays, but below .home-content and .home-img img */
}
.home .particle {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
  opacity: 0.18;
  box-shadow: 0 2px 12px var(--main-color);
  animation: particleFloat 8s infinite ease-in-out;
}
/* Add more particles with different positions and delays for density */
.particle-9 { top: 25%; right: 40%; animation-delay: 1.5s; }
.particle-10 { top: 60%; right: 18%; animation-delay: 2.2s; }
.particle-11 { top: 45%; right: 50%; animation-delay: 3.1s; }
.particle-12 { top: 70%; right: 28%; animation-delay: 4.3s; }
.particle-13 { top: 38%; right: 22%; animation-delay: 5.7s; }
.particle-14 { top: 55%; right: 38%; animation-delay: 6.4s; }
.particle-15 { top: 32%; right: 12%; animation-delay: 7.2s; }
.particle-16 { top: 68%; right: 45%; animation-delay: 8.1s; }
/* Overlap some particles over the profile image circle */
.particle-overlap-1 { top: 48%; right: 13%; opacity: 0.28; z-index: 3; animation-delay: 2.7s; }
.particle-overlap-2 { top: 58%; right: 17%; opacity: 0.22; z-index: 3; animation-delay: 4.9s; }
.particle-overlap-3 { top: 52%; right: 10%; opacity: 0.25; z-index: 3; animation-delay: 6.6s; }

/* --- Particle Fix: Correct size and ensure overlap --- */
.home .particle {
  width: 4px !important;
  height: 4px !important;
  z-index: 22 !important;
}
.home .particle-overlap-1,
.home .particle-overlap-2,
.home .particle-overlap-3 {
  z-index: 23 !important;
}
.home .particle-container {
  z-index: 21 !important;
}

/* --- Particle Fix: Prevent overlap with profile image --- */
.home .particle,
.home .particle-overlap-1,
.home .particle-overlap-2,
.home .particle-overlap-3 {
  z-index: 10 !important;
}
.home .home-img img {
  z-index: 20 !important;
  position: absolute;
}

/* --- Particle Final Fix: Always behind profile image --- */
.home .particle,
.home .particle-overlap-1,
.home .particle-overlap-2,
.home .particle-overlap-3,
.home .particle-container {
  z-index: -2;
}
.home .home-img img {
  z-index: 2;
  position: relative;
}

/* --- FINAL Particle/Image Stacking Fix: Image always above particles --- */
.home .particle,
.home .particle-overlap-1,
.home .particle-overlap-2,
.home .particle-overlap-3,
.home .particle-container {
  z-index: 0 !important;
}
.home .home-img img {
  z-index: 10 !important;
  position: relative !important;
}

/* --- Restore correct image position and stacking --- */
.home .home-img img {
  position: absolute !important;
  right: 7% !important;
  top: 18% !important;
  z-index: 10 !important;
}

/* --- Ensure all particles are behind the profile image --- */
.home .particle,
.home .particle-overlap-1,
.home .particle-overlap-2,
.home .particle-overlap-3,
.home .particle-container {
  z-index: -1 !important;
}
.home .home-img img {
  z-index: 10 !important;
  position: absolute !important;
}

/* --- CLEAN FINAL Particle/Image Stacking: Only these rules apply --- */
.home .particle,
.home .particle-overlap-1,
.home .particle-overlap-2,
.home .particle-overlap-3,
.home .particle-container {
  z-index: -1 !important;
}
.home .home-img img {
  z-index: 10 !important;
  position: absolute !important;
}

/* REMOVED MORE CONFLICTING MODAL STYLES */

/* Mobile-only profession icons row */
.mobile-professions {
  display: none;
}
@media (max-width: 768px) {
  .mobile-professions {
    display: block;
    width: 100vw;
    max-width: 100vw;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--bg-color);
    z-index: 100;
    min-height: 130px;
    height: 130px;
    position: relative;
    overflow: visible;
  }
  .mobile-professions-row {
    position: absolute;
    top: 38% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 150px;
    margin: 0;
    display: block;
    max-width: 100vw;
    overflow: visible;
  }
  .mobile-professions-row .tech-satellite {
    position: absolute;
    width: clamp(48px, 13vw, 64px);
    height: clamp(48px, 13vw, 64px);
    font-size: clamp(2rem, 5vw, 2.7rem);
    border-radius: 50%;
    box-shadow: 0 2px 8px var(--shadow-color);
    background: var(--card-bg);
    color: var(--main-color);
    border: 2px solid var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    z-index: 10;
    margin: 0;
    min-width: 44px;
    min-height: 44px;
    animation: mobileFloat 4.5s ease-in-out infinite;
    box-sizing: border-box;
  }
  /* True pentagon/star positions for 5 icons */
  .mobile-professions-row .tech-satellite:nth-child(1) {
    left: 50%;
    top: 0%;
    transform: translate(-50%, 0);
    animation-delay: 0s;
  }
  .mobile-professions-row .tech-satellite:nth-child(2) {
    left: 7%;
    top: 38%;
    transform: translate(0, 0);
    animation-delay: 0.7s;
  }
  .mobile-professions-row .tech-satellite:nth-child(3) {
    left: 93%;
    top: 38%;
    transform: translate(-100%, 0);
    animation-delay: 1.4s;
  }
  .mobile-professions-row .tech-satellite:nth-child(4) {
    left: 22%;
    top: 92%;
    transform: translate(-50%, -100%);
    animation-delay: 2.1s;
  }
  .mobile-professions-row .tech-satellite:nth-child(5) {
    left: 78%;
    top: 92%;
    transform: translate(-50%, -100%);
    animation-delay: 2.8s;
  }
  @keyframes mobileFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.04); }
  }
  .mobile-professions-row .tech-satellite:active,
  .mobile-professions-row .tech-satellite:focus {
    background: var(--main-color);
    color: var(--white-color);
    outline: none;
    transform: scale(1.08);
  }
  .home .tech-orbit {
    display: none !important;
  }
  
  /* Force desktop visibility */
  @media (min-width: 769px) {
    .home .tech-orbit {
      display: block !important;
    }
  }
  .about {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  /* Center all elements in home section on mobile */
  .home-content,
  .home-content h1,
  .home-content h3,
  .home-content p,
  .home-content .social-media,
  .home-content .btn {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .home-content .social-media {
    flex-direction: row !important;
    gap: 1.5rem !important;
  }
}
@media (max-width: 400px) {
  .mobile-professions {
    min-height: 90px;
    height: 90px;
  }
  .mobile-professions-row {
    width: 150px;
    height: 90px;
  }
  .mobile-professions-row .tech-satellite {
    width: clamp(36px, 16vw, 48px);
    height: clamp(36px, 16vw, 48px);
    font-size: clamp(1.3rem, 6vw, 2rem);
    min-width: 36px;
    min-height: 36px;
  }
}

@media (max-width: 768px) {
  /* ...existing mobile styles... */
  .home-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100%;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    z-index: auto !important;
    position: relative !important;
    pointer-events: auto !important;
  }
  .home-content h3,
  .home-content h1,
  .home-content h3,
  .home-content p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    background: none !important;
    box-shadow: none !important;
    z-index: auto !important;
    position: relative !important;
    pointer-events: auto !important;
    text-shadow: 0 2px 8px rgba(54,92,255,0.10); /* subtle for readability */
  }
  .home-content .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 1.2rem auto 0 auto !important;
    text-align: center !important;
    background: var(--main-color);
    z-index: auto !important;
    position: relative !important;
  }
  .home-content .social-media {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin: 1.2rem auto 0 auto !important;
    z-index: auto !important;
    position: relative !important;
  }
  /* Remove any forced stacking for home-content on mobile */
  .home .home-content,
  .home .home-content * {
    z-index: auto !important;
    position: relative !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 768px) {
  .home .home-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    z-index: auto !important;
    position: relative !important;
    pointer-events: auto !important;
  }
  .home-content h3,
  .home-content h1,
  .home-content p,
  .home-content .btn,
  .home-content .social-media {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .home-content .social-media {
    flex-direction: row !important;
    gap: 1.5rem !important;
    margin-top: 1.2rem !important;
  }
}

@media (max-width: 768px) {
  .home {
    position: relative !important;
    min-height: 100vw;
    overflow: visible !important;
  }
  .home .home-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    pointer-events: auto !important;
  }
  .home-content h3,
  .home-content h1,
  .home-content p,
  .home-content .btn,
  .home-content .social-media {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    box-shadow: none !important;
  }
  .home-content .social-media {
    flex-direction: row !important;
    gap: 1.5rem !important;
    margin-top: 1.2rem !important;
  }
  /* Ensure particles and lines are behind the text */
  .home .particle-container,
  .home .data-stream {
    z-index: 0 !important;
  }
}

@media (max-width: 768px) {
  .home-content .btn {
    display: flex !important;
    width: max-content !important;
    margin: 1.2rem auto 0 auto !important;
    z-index: 2 !important;
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }
  .home .home-content {
    overflow: visible !important;
  }
}

@media (max-width: 768px) {
  .home .home-content {
    z-index: 10 !important;
  }
  .home-content .btn {
    z-index: 10 !important;
    position: relative !important;
  }
}

@media (max-width: 768px) {
  .home .home-content {
    z-index: 10 !important;
  }
  .home-content .btn {
    z-index: 20 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    margin: 1.2rem auto 0 auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    box-shadow: 0 4px 24px 6px rgba(54,92,255,0.18), 0 2px 8px var(--shadow-color) !important;
  }
}

@media (max-width: 768px) {
  .home-content .btn {
    color: var(--white-color) !important;
    font-size: 1.6rem !important;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important;
    text-shadow: 0 2px 8px rgba(54,92,255,0.18), 0 1px 2px rgba(0,0,0,0.12) !important;
  }
}

/* Unify Download CV button color scheme for all views */
.btn, .home-content .btn {
  color: var(--white-color) !important;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important;
  text-shadow: 0 2px 8px rgba(54,92,255,0.18), 0 1px 2px rgba(0,0,0,0.12) !important;
}

/* Remove mobile-only color/background overrides for .home-content .btn */
@media (max-width: 768px) {
  .home-content .btn {
    color: unset !important;
    background: unset !important;
  }
}

/* --- Optimization: About Section Mobile Overlap Fix --- */
@media (max-width: 768px) {
  .about-content h2 {
    margin-top: 4rem;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    line-height: 1.3;
  }
}
@media (max-width: 450px) {
  .about-content h2 {
    margin-top: 3rem;
    margin-bottom: 2.5rem;
    font-size: 1.7rem;
  }
}
/* --- Optimization: Suggest using loading="lazy" for non-critical images in HTML --- */
@media (max-width: 768px) {
  .about-content h2 {
    margin-top: 7rem;
    margin-bottom: 3rem;
    font-size: 4.5rem !important;
    line-height: 1.2;
  }
}
@media (max-width: 450px) {
  .about-content h2 {
    margin-top: 5rem;
    margin-bottom: 2.5rem;
    font-size: 4.5rem !important;
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  .about {
    padding-top: 10rem;
  }
}

/* === Resume Download Modal (Frosted Glass) === */
.resume-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  align-items: center;
  justify-content: center;
  background: rgba(10, 25, 47, 0.25);
  backdrop-filter: blur(2.5px);
  transition: background 0.3s;
}
.resume-modal[style*="display: flex"] {
  display: flex !important;
}
.resume-modal-backdrop {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 25, 47, 0.25);
  backdrop-filter: blur(2.5px);
  z-index: 1;
}
.resume-modal-container {
  position: relative;
  z-index: 2;
  min-width: 320px;
  max-width: 95vw;
  background: var(--glass-bg);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border: 1.5px solid var(--glass-border);
  padding: 2.5rem 2rem 2rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.resume-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.resume-modal-header h2 {
  font-size: 2rem;
  color: var(--main-color);
  margin: 0;
}
.resume-modal-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--main-color);
  cursor: pointer;
  padding: 0 0.5rem;
  border-radius: 50%;
  transition: background 0.2s;
}
.resume-modal-close:hover, .resume-modal-close:focus {
  background: var(--hover-bg);
}
.resume-modal-body {
  font-size: 1.2rem;
  color: var(--text-color);
  padding: 0.5rem 0 0 0;
}
#resume-math-form {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#resume-math-answer {
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  outline: none;
  transition: border 0.2s;
}
#resume-math-answer:focus {
  border: 1.5px solid var(--main-color);
}
#resume-math-error {
  color: var(--error-color);
  font-size: 1.1rem;
  margin-left: 0.5rem;
}
@media (max-width: 600px) {
  .resume-modal-container {
    min-width: 0;
    width: 98vw;
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
  }
  .resume-modal-header h2 {
    font-size: 1.3rem;
  }
  .resume-modal-body {
    font-size: 1rem;
  }
}

/* Additional Performance Optimizations */

/* Optimize all animations for better performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Critical resource hints for faster loading */
body {
    contain: layout style paint;
}

/* Optimize portfolio grid performance */
.portfolio .portfolio-container {
    contain: layout style;
    will-change: auto;
}

/* Optimize tech satellites for 60fps animation */
.tech-satellite {
    contain: layout style paint;
    isolation: isolate;
}

/* Optimize floating animations */
@keyframes satelliteFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        box-shadow: 0 6px 20px rgba(54, 92, 255, 0.2);
    }
    50% {
        transform: translate3d(0, -12px, 0) scale(1.02);
        box-shadow: 0 10px 30px rgba(54, 92, 255, 0.3);
    }
}

/* Optimize portfolio cards */
.portfolio-box {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* Optimize button hover effects */
.btn:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 8px 25px var(--shadow-color);
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

/* Fix mobile tech satellite color blending */
@media (max-width: 768px) {
    .mobile-professions-row .tech-satellite:hover,
    .mobile-professions-row .tech-satellite:focus,
    .mobile-professions-row .tech-satellite:active {
        background: var(--white-color) !important;
        color: var(--main-color) !important;
        border: 2px solid var(--main-color) !important;
        outline: none;
        transform: scale(1.13);
        /* Remove gradient blending */
        background-image: none !important;
    }
    
    .mobile-professions-row .tech-satellite:hover i,
    .mobile-professions-row .tech-satellite:focus i,
    .mobile-professions-row .tech-satellite:active i {
        color: var(--main-color) !important;
        background: transparent !important;
        background-image: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: var(--main-color) !important;
        background-clip: initial !important;
    }
}

/* CLEAN MODAL SYSTEM - FINAL VERSION */
.profession-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    display: none !important;
    background: rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.profession-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.profession-modal .modal-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    cursor: pointer !important;
    z-index: 1 !important;
}

.profession-modal .modal-container {
    position: relative !important;
    width: 100% !important;
    max-width: 480px !important;
    max-height: 85vh !important;
    background: var(--card-bg) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    z-index: 10 !important;
    margin: 0 auto !important;
    transform: none !important;
}
body.dark-mode .profession-modal .modal-container,
body.dark-mode .profession-modal .modal-content {
    background: rgba(20,30,50,0.74) !important;
    color: var(--text-color) !important;
    border: 1.5px solid rgba(100,255,218,0.10);
    box-shadow: 0 12px 48px 0 rgba(100,255,218,0.08), 0 2px 12px 0 rgba(0,0,0,0.13), 0 1.5px 8px rgba(0,0,0,0.08) inset;
    backdrop-filter: blur(13px) saturate(1.08);
    -webkit-backdrop-filter: blur(13px) saturate(1.08);
}
.profession-modal .modal-content {
    background: transparent;
    border-radius: 36px;
    box-shadow: none;
    border: none;
    overflow: hidden;
    position: relative;
}
/* SIMPLE MODAL HEADER AND BODY */
.profession-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.profession-modal .modal-header h2 {
    color: var(--main-color);
    font-size: 1.6rem;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.profession-modal .modal-close {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profession-modal .modal-close:hover {
    background: rgba(54, 92, 255, 0.1);
    color: var(--main-color);
}

.profession-modal .modal-body {
    padding: 1.5rem 2rem 2rem;
    max-height: 60vh;
    overflow-y: auto;
}
.profession-modal .profession-icon {
    text-align: center;
    margin-bottom: 2.2rem;
}
.profession-modal .profession-icon i {
    font-size: 4.2rem;
    color: var(--main-color);
    background: linear-gradient(135deg, var(--main-color), #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.profession-modal .profession-description {
    margin-bottom: 2.2rem;
}
.profession-modal .profession-description p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.13rem;
    text-align: justify;
    text-shadow: 0 1px 2px rgba(255,255,255,0.08), 0 0.5px 1px rgba(0,0,0,0.06);
}
.profession-modal .profession-skills {
    margin-bottom: 2.2rem;
}
.profession-modal .profession-skills h3 {
    color: var(--main-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.profession-modal .skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.profession-modal .skill-tag {
    background: rgba(100, 255, 218, 0.13);
    color: var(--main-color);
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    font-size: 0.97rem;
    border: 1px solid rgba(100, 255, 218, 0.18);
    transition: all 0.3s ease;
    font-weight: 500;
}
.profession-modal .skill-tag:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}
.profession-modal .profession-projects h3 {
    color: var(--main-color);
    margin-bottom: 1rem;
    font-size: 1.18rem;
    font-weight: 600;
}
.profession-modal .project-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.profession-modal .project-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(100, 255, 218, 0.10);
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.13);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 500;
}
.profession-modal .project-link:hover {
    background: rgba(100, 255, 218, 0.18);
    border-color: var(--main-color);
    transform: translateX(5px);
}
.profession-modal .project-link i {
    color: var(--main-color);
    font-size: 1.5rem;
}

.profession-modal .modal-container {
    /* ...existing styles... */
    box-shadow: 0 12px 48px 0 rgba(54,92,255,0.13), 0 2px 12px 0 rgba(0,0,0,0.08), 0 1.5px 8px rgba(0,0,0,0.06) inset,
        0 0 0 4px rgba(100,255,218,0.18), 0 0 16px 2px #64ffda;
    /* The last two shadows add a soft glow */
}
body.dark-mode .profession-modal .modal-container {
    /* ...existing styles... */
    box-shadow: 0 12px 48px 0 rgba(100,255,218,0.08), 0 2px 12px 0 rgba(0,0,0,0.13), 0 1.5px 8px rgba(0,0,0,0.08) inset,
        0 0 0 4px rgba(100,255,218,0.22), 0 0 18px 3px #64ffda;
}

@media (max-width: 768px) {
  #menu-icon {
    display: block !important;
  }
}

.logo-img {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

.blog-new-badge {
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    z-index: 2;
    background: linear-gradient(120deg, #fff 0%, #e0e7ff 50%, #365cff 100%);
    color: #365cff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.35rem 1.1rem;
    border-radius: 1.2rem;
    box-shadow: 0 0.2rem 0.6rem rgba(54,92,255,0.12);
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(255,255,255,0.7);
    background-clip: padding-box;
    border: 1.5px solid #fff;
    opacity: 0.98;
    /* Remove the float animation */
    /* animation: blogBadgeFloat 2.8s ease-in-out infinite; */
}

.blog-new-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    border-radius: 1.2rem;
    background: linear-gradient(120deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0.7;
    pointer-events: none;
    animation: blogBadgeShine 2.2s linear infinite;
}

@keyframes blogBadgeShine {
    0% { opacity: 0.7; left: -100%; }
    60% { opacity: 0.7; left: -100%; }
    80% { opacity: 1; left: 100%; }
    100% { opacity: 0.7; left: 100%; }
}

/* Page Load Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Simplified Page Load Animations - No Delays */
.home-content {
    opacity: 1;
    transform: translateY(0);
}

.home-img img {
    opacity: 1;
    transform: scale(1);
}

.tech-satellite {
    opacity: 1;
    transform: scale(1);
}

/* Remove section animation delays */
.about,
.skills-breakdown,
.portfolio,
.serives,
.blog,
.contact {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .home-content,
    .home-img img,
    .tech-satellite,
    .about,
    .skills-breakdown,
    .portfolio,
    .serives,
    .blog,
    .contact {
        animation: none;
    }
}
/* Optimized Desktop Tech Satellites - Always Visible */
@media (min-width: 769px) {
    .tech-orbit {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .tech-satellite {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

#show-more-projects-btn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white-color);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-color);
    position: relative;
    overflow: hidden;
    margin: 3rem auto 0;
    display: block;
}

#show-more-projects-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

#show-more-projects-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-color);
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

#show-more-projects-btn:hover::before {
    left: 100%;
}

#show-more-projects-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Remove blogBadgeFloat keyframes if not used elsewhere */
