@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Josefin Sans', sans-serif;
}

:root {
    --bg-color:  #191919;
    --second-bg-color:  #101010;
    --text-color: white;
    --main-color: #0ef;
}

*::selection {
    background: var(--main-color);
    color: var(--bg-color);
} 

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    /* background: var(--bg-color); */
    background-color:  #191919;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    font-size: 30px; 
    color: white; 
    font-weight: bold;
    transition: transform 0.3s ease; 
}

.logo:hover {
    transform: scale(1.1); 
}

span{
    color: red;
}

.navbar a {
    font-size: 20px;
    font-weight: bold; 
    text-transform: capitalize; 
    color: white;
    margin-left: 3rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {  
    color: var(--main-color);
    text-decoration: underline;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* new code */
.home {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.home-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 97%;
    z-index: 1;
}

.home-img img {
    width: 100%;
    height: 135%;
    object-fit: cover;
}

.home-content {
    position: absolute;
    top: 75%;
    left: 3%;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    text-align: left;
    padding: 2rem;
    overflow: hidden;
    white-space: nowrap;
    line-height: 28px;
    font-weight: bold;
}

.home-content h3 {
    font-size: 18px;
    font-weight: 500;
    animation: typewriter 4s steps(20, end);
}

/* Keyframes for floating effect */
@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2.4rem);
    }

    100% {
        transform: translateY(0);
    }
}


/*marquee section*/
/*.marquee {*/
/*    width: 100%;*/
/*    overflow: hidden;*/
/*    white-space: nowrap;*/
/*    box-sizing: border-box;*/
/*    background-color: red; */
/*    color: white; */
/*    padding: 15px 0; */
/*    font-size: 25px;*/
/*    font-weight: bold;*/
/*     font-family: 'Josefin Sans', sans-serif;*/
/*}*/

/*.marquee span {*/
/*    display: inline-block;*/
/*    padding-left: 100%;*/
/*    animation: marquee 20s linear infinite;*/
/*    color: white; */
/*}*/

/*@keyframes marquee {*/
/*    0% { transform: translate(0, 0); }*/
/*    100% { transform: translate(-100%, 0); }*/
/*}*/

/* General styling */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
    padding: 2rem;
}

.about-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.about-img:hover {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.about-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(33, 150, 243, 0.8), rgba(63, 81, 181, 0.8));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.about-img:hover::before {
    opacity: 1;
}

.about-img img {
    width: 100%;
    height: 50%;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s ease;
    animation: pulse 10s infinite;
    
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.about-img:hover img {
    transform: scale(1.1);
    animation: none;
}

.about-content {
    max-width: 800px;
    text-align: center;
}

.about-content p {
    margin-bottom: 2rem;
    font-size: 18px; 
    color: white; 
    letter-spacing: -0.5px; 
    line-height: 28px; 
    text-align: justify; 
}

.about-content h2 {
    font-size: 50px; 
    color: white; 
    text-transform: capitalize; 
    letter-spacing: 2px;
    margin-top: -0rem; 
    padding : 30px;
}

.btn {
    display: inline-block;
    padding: 1rem 3.5rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 18px;
    color: white; 
    font-weight: bold; 
    transition: .5s ease;
    margin-top: 2rem;
    letter-spacing: 1px; 
    background: linear-gradient(90deg, var(--main-color) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: left;
}

.btn:hover {
    background-position: right;
    box-shadow: none;
    /* background-color: #d93025; */
    background-color: red;
    
}

.heading {
    text-align: center;
    font-size: 50px; 
    color: white; 
    letter-spacing: 1px; 
    padding: 1px;
    
    
}

/* Enhanced CSS for Services Section with Filtering */
.services {
    min-height: auto;
    padding-bottom: 10rem;
    line-height: 30px;
    background-color: #191919;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 150, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 0, 150, 0.1) 0%, transparent 50%);
    animation: backgroundShift 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.heading span {
    color: var(--main-color);
    position: relative;
}

.heading span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
    animation: headingUnderline 3s infinite;
}

@keyframes headingUnderline {
    0%, 100% { transform: scaleX(0); opacity: 0; }
    50% { transform: scaleX(1); opacity: 1; }
}

/* Filter Buttons */
.services-filter {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-btn {
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 40px;
    font-size: 20px;
    color: var(--main-color);
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--main-color);
    transition: all 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: #191919;
    box-shadow: 0 0 15px var(--main-color);
    transform: translateY(-3px);
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.services-container .services-box {
    flex: 0 0 22%;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid aqua;
    height: 550px;
    width: 370px;
    position: relative;
    overflow: hidden;
    /* REMOVED: opacity and transform to make boxes visible by default */
}

.services-box.hide {
    animation: hideItem 0.5s ease forwards;
}

.services-box.show {
    animation: showItem 0.5s ease forwards;
}

@keyframes hideItem {
    0% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        transform: scale(0.8) rotate(-5deg);
    }
    100% { 
        opacity: 0;
        transform: scale(0) rotate(5deg);
        display: none;
    }
}

@keyframes showItem {
    0% { 
        opacity: 0;
        transform: scale(0) rotate(-5deg);
        display: block;
    }
    50% { 
        transform: scale(1.1) rotate(2deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.services-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: 0;
}

.services-box:hover::before {
    transform: rotate(45deg) translate(20%, 20%);
}

.services-container .services-box:hover {
    border-color: blueviolet;
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.4),
                0 0 50px rgba(0, 255, 255, 0.2);
    color: greenyellow;
}

.services-box i {
    font-size: 10rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    display: block;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.services-box:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #ff00ff;
    filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.7));
}

.services-box h3 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.services-box:hover h3 {
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.services-box p {
    font-size: 18px;
    margin: 1rem 0 3rem;
    color: white;
    text-align: justify;
    letter-spacing: -1px;
    line-height: 28px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.services-box:hover p {
    color: #e0e0e0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--main-color);
    border-radius: 40px;
    box-shadow: 0 0 10px var(--main-color);
    font-size: 18px;
    color: white;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: red;
    /* box-shadow: 0 0 20px #ff00ff; */
    box-shadow: yellow;
    transform: translateY(-3px);
    font-size: 16px;
    color: white;
}

/* Floating animation for icons */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-8px) rotate(1deg); }
}

.services-box i {
    animation: float 4s ease-in-out infinite;
}

.services-box:nth-child(1) i { animation-delay: 0s; }
.services-box:nth-child(2) i { animation-delay: 0.5s; }
.services-box:nth-child(3) i { animation-delay: 1s; }
.services-box:nth-child(4) i { animation-delay: 1.5s; }

/* Particle effects */
.services-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 255, 255, 0.1) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.services-box:hover::after {
    opacity: 1;
}

/* Loading animation */
.services-loading {
    display: none;
    text-align: center;
    font-size: 2rem;
    color: var(--main-color);
    margin: 2rem 0;
}

.services-loading .dot {
    animation: loadingDots 1.5s infinite;
}

.services-loading .dot:nth-child(2) { animation-delay: 0.2s; }
.services-loading .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDots {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Shake animation for filter buttons */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.filter-btn.shake {
    animation: shake 0.5s ease;
}

/* Pulse animation for active filter */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

.filter-btn.active {
    animation: pulse 2s infinite;
}

/* Medium screens (like laptops or smaller desktops) */
@media (max-width: 1200px) {
    .services-container .services-box {
        flex: 0 0 45%;  /* 2 boxes per row */
    }
}

/* Tablets and small screens */
@media (max-width: 768px) {
    .services-container .services-box {
        flex: 0 0 90%;  /* 1 box per row */
        width: 100%;
    }

    .services-box i {
        font-size: 6rem;
    }

    .services-box h3 {
        font-size: 2.2rem;
    }

    .services-box p {
        font-size: 18px;
        line-height: 28px;
    }

    .services-filter {
        gap: 1rem;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
    .services-box i {
        font-size: 5rem;
    }

    .services-box h3 {
        font-size: 2rem;
    }

    .services-box p {
        font-size: 15px;
        line-height: 24px;
    }

    .services-filter {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
    }
}
/* my skill section*/
body {
    font-family: 'Josefin Sans', sans-serif;
    margin: 0;
    background-color: #101010;
}

.sub-title {
    font-size: 50px;
    text-align: center;
    padding: 1px;
    margin-bottom: 5rem;
    color: white;
}

.container {
    width: 100%;
    max-width: 1000px;
    min-height: 500px;
    padding: 50px;
    background-color: #191919;
    border-radius: 10px;
    box-shadow: 0 4px 20px aqua;
    margin: 0 auto;
}

.container i {
    color: blueviolet;
    font-size: 20px;
}

.container:hover {
    background-color: black;
    transition: background-color 0.3s ease;
}

/*.skill {*/
/*    position: relative;*/
/*    padding-left: 100px;*/
/*    background-color: transparent;*/
/*    transition: background-color 0.3s ease;*/
/*    padding-top: 20px;*/
/*    padding-bottom: 20px;*/
/*    margin: 10px 0; /*/
/*}*/

/*.skill:hover {*/
/*    background-color: rgb(5, 75, 5);*/
    
/*}*/


.skill {
    position: relative;
    padding-left: 100px;
    background-color: transparent;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 10px 0;
    border: 2px solid transparent; /* Add this line */
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


.skill:hover {
    background-color: rgb(5, 75, 5);
    border-color: blueviolet;
}


.skill h2 {
    letter-spacing: 1px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.progress-bar {
    background-color: #696767;
    width: 650px;
    height: 10px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.progress-bar div {
    height: 10px;
    border-radius: 6px;
    width: 0%;
    background-color: #0ef;
    font-size: 10px;
}

.progress-bar div span {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: #0ef;
    float: right;
    margin-top: -15px;
    margin-right: -20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Skill bar colors and animations */
.html {
    background: aqua;
    animation: html 1s linear forwards;
    
}
.css {
    background: white;
    animation: css 1s linear forwards;
}
.javascript {
    background: purple;
    animation: javascript 1s linear forwards;
}
.python {
    background: rebeccapurple;
    animation: python 1s linear forwards;
}
.c {
    background: green;
    animation: c 1s linear forwards;
}

/* Percentage bubble borders */
.html span {
    border: 1px solid rgb(13, 132, 153);
}
.css span {
    border: 1px solid rgb(175, 143, 148);
}
.javascript span {
    border: 1px solid rgb(206, 206, 34);
}
.python span {
    border: 1px solid blanchedalmond;
}
.c span {
    border: 1px solid rebeccapurple;
}

/* Animations */
@keyframes html {
    100% { width: 100%; }
}
@keyframes css {
    100% { width: 100%; }
}
@keyframes javascript {
    100% { width: 100%; }
}
@keyframes python {
    100% { width: 100%; }
}
@keyframes c {
    100% { width: 100%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sub-title {
        font-size: 36px;
        padding: 30px;
    }

    .container {
        padding: 20px;
    }

    .skill {
        padding-left: 20px;
    }

    .progress-bar {
        width: 90%;
    }

    .progress-bar div span {
        height: 30px;
        width: 30px;
        margin-right: -15px;
    }
}

@media (max-width: 480px) {
    .sub-title {
        font-size: 28px;
        padding: 20px;
    }

    .progress-bar div span {
        height: 25px;
        width: 25px;
        margin-right: -10px;
    }
}



/* Enhanced CSS for Recent Projects Section */
.portfolio {
    background: var(--second-bg-color);
    min-height: auto;
    padding-bottom: 10rem;
    background-color: #191919;
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    animation: portfolioBackground 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes portfolioBackground {
    0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(180deg); }
}

.portfolio h2 {
    margin-bottom: 3rem;
    font-size: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.portfolio h2 span {
    color: var(--main-color);
    position: relative;
}

.portfolio h2 span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
    animation: portfolioUnderline 3s infinite;
}

@keyframes portfolioUnderline {
    0%, 100% { transform: scaleX(0); opacity: 0; }
    50% { transform: scaleX(1); opacity: 1; }
}

/* Portfolio Filter Buttons */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.portfolio-filter-btn {
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 40px;
    font-size: 20px;
    color: var(--main-color);
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.portfolio-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--main-color);
    transition: all 0.4s ease;
    z-index: -1;
}

.portfolio-filter-btn:hover::before,
.portfolio-filter-btn.active::before {
    left: 0;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
    color: #191919;
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-3px);
}

/* Portfolio Container */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.portfolio-container .portfolio-box {
    position: relative;
    border-radius: 1rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
    border: 3px solid aqua;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-box.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portfolio-box.hide {
    animation: portfolioHide 0.5s ease forwards;
}

.portfolio-box.show {
    animation: portfolioShow 0.5s ease forwards;
}

@keyframes portfolioHide {
    0% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        transform: scale(0.8) rotate(-3deg);
    }
    100% { 
        opacity: 0;
        transform: scale(0) rotate(3deg);
        display: none;
    }
}

@keyframes portfolioShow {
    0% { 
        opacity: 0;
        transform: scale(0) rotate(-3deg);
        display: block;
    }
    50% { 
        transform: scale(1.1) rotate(1deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.portfolio-container .portfolio-box:hover {
    border-color: blueviolet;
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.4),
                0 0 60px rgba(0, 255, 255, 0.3);
}

.portfolio-box img {
    width: 100%;
    transition: .8s ease;
    filter: brightness(0.8);
}

.portfolio-box:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: left;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.portfolio-box:hover .portfolio-layer h4 {
    transform: translateY(0);
    opacity: 1;
}

/* background text */
.portfolio-layer p {
    font-size: 1.2rem;
    margin: .3rem 0 1rem;
    color: #f0f0f0;
    line-height: 1.6;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.3s;
}

.portfolio-box:hover .portfolio-layer p {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
    transform: translateY(20px) scale(0.8);
    opacity: 0;
    transition: all 0.4s ease 0.4s;
    position: relative;
    overflow: hidden;
}

.portfolio-box:hover .portfolio-layer a {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.portfolio-layer a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s ease;
}

.portfolio-layer a:hover::before {
    left: 100%;
}

.portfolio-layer a:hover {
    background: #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
    transform: scale(1.1) rotate(15deg);
}

.portfolio-layer a i {
    font-size: 2rem;
    color: var(--second-bg-color);
    transition: all 0.3s ease;
}

.portfolio-layer a:hover i {
    color: #fff;
    transform: scale(1.2);
}

/* Loading Animation */
.portfolio-loading {
    display: none;
    text-align: center;
    font-size: 2rem;
    color: var(--main-color);
    margin: 2rem 0;
    grid-column: 1 / -1;
}

.portfolio-loading .dot {
    animation: portfolioLoading 1.5s infinite;
}

.portfolio-loading .dot:nth-child(2) { animation-delay: 0.2s; }
.portfolio-loading .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes portfolioLoading {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* Shake animation for filter buttons */
@keyframes portfolioShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.portfolio-filter-btn.shake {
    animation: portfolioShake 0.5s ease;
}

/* Pulse animation for active filter */
@keyframes portfolioPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

.portfolio-filter-btn.active {
    animation: portfolioPulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-filter {
        gap: 1rem;
    }
    
    .portfolio-filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .portfolio-layer h4 {
        font-size: 2.5rem;
    }
    
    .portfolio-layer p {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .portfolio h2 {
        font-size: 3.5rem;
    }
    
    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .portfolio-filter-btn {
        width: 200px;
    }
    
    .portfolio-layer {
        padding: 0 2rem;
    }
    
    .portfolio-layer h4 {
        font-size: 2rem;
    }
    
    .portfolio-layer p {
        font-size: 1.2rem;
    }
}

/* cotact design section */
.contact h2 {
    font-size: 50px;
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

.contact .contact_content {
    margin-bottom: 2rem;
    font-size: 20px; 
    color: white; 
    letter-spacing: 1px;
    line-height: 28px; 
    text-align: center; 
    
}

.contact_content .highlight {
    color: red; 
    /* font-weight: bold;  */
}


.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; 
}

.input-box .input-field {
    width: 48%; 
}

.field .item {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 2px solid aqua;
    outline: none;
    border-radius: 6px;
    font-size: 18px;
    color: white;
    margin: 12px 0;
    background-color: #191919;
    
}

.field .item:hover {
    border-color: blueviolet;
    transform: scale(1.02);
    transition: 0.3s ease; 
}



.field.error .item {
    border-color: #d93025;
}

.field .item::placeholder {
    color: rgba(255, 255, 255, .3);
}

.field .error-txt {
    font-size: 14.5px;
    color: #d93025;
    text-align: left;
    margin: -5px 0 10px;
    display: none;
}

.field.error .error-txt {
    display: block;
}

form .textarea-field .item {
    resize: none;
}

form .textarea-field .error-txt {
    margin-top: -10px;
}

form button {
    display: inline-block;
    padding: 1rem 3.5rem; 
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 18px;
    color: white;
    font-weight: bold;
    transition: .5s ease;
    margin-top: 2rem;
    letter-spacing: 1px; 
    background: linear-gradient(90deg, var(--main-color) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: left;
}

form button:hover {
    background-position: right;
    box-shadow: none;
    background-color: red;  
}

.item.error {
    border: 2px solid red;
}

.error-txt {
    color: red;
    font-size: 1.4rem;
    margin-top: 0.5rem;
    visibility: hidden; 
}

.input-field.error .error-txt {
    visibility: visible; 
}


/* BREAKPOINTS */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 879px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 115vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: 70vw;
        margin-top: 4rem;
    }
}

@media (max-width: 580px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .contact form .input-box input {
        width: 100%;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 365px) {

    .home-img img,
    .about-img img {
        width: 90vw;
    }
}


.home-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-img img {
    width: 100%;
    height: 135%;
    object-fit: cover;
}

.box {
    position: absolute; 
    top: 65%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 100px; 
    height: 130px; 
    transform-style: preserve-3d;
    animation: animate 20s linear infinite;
    z-index: 2; /* Higher z-index to bring it in front */
}

@keyframes animate {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

.box span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(400px);
    -webkit-box-reflect: below 50px linear-gradient(transparent, transparent, #0004);
}

.box span img {
    position: absolute;
    /* top: 100px;  */
    /* Adjust this value to move images down */
    left: 0;
    width: 150%;
    height: calc(150% - 20px); 
    object-fit: cover;
    border: 3px solid #0ef;
}

/* footer new section */
.footer {
    background-color: #191919;
    color: #fff;
    padding: 50px 20px; 
    font-size: 20px;
    display: flex;
    justify-content: center; /* Center the content */
    min-height: 50vh; 
    position: relative; 
    text-align: left;
}

.footer-container {
    display: flex; 
    max-width: 1200px; /* Ensure the container has a max-width */
    width: 100%; /* Allow it to take full width for centering */
    gap: 30px; 
    flex-grow: 1; 
    overflow-x: auto; 
    text-align: center;
    justify-content: center; /* Center items inside the container */
}

.footer-section {
    flex: 0 1 auto; 
    padding: 10px; 
    text-align: center; 
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section .social-media {
    display: flex;              /* Align the items in a row */
    justify-content: center;    /* Center the icons horizontally */
    gap: 10px;                  /* Optional: Adds space between icons */
    white-space: nowrap;        /* Prevent wrapping */
    padding: 0;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section a {
    color: #0ef;
    text-decoration: none;
    font-size: 15px;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    background-color: #101010;
    padding: 20px;
    font-size: 18px;
    width: 100%; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
}

/* Media Queries */
@media (max-width: 768px) {
    .footer {
        padding: 40px 15px; 
    }

    .footer-container {
        flex-direction: column; 
        align-items: center; 
    }

    .footer-section {
        width: 100%; 
        margin-bottom: 20px; 
    }

    .footer-copyright {
        padding: 15px; 
        font-size: 16px; 
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 10px; 
    }

    .footer-copyright {
        padding: 10px; 
        font-size: 14px; 
    }

    .footer-section {
        width: 100%; 
    }
}
