*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    width: 100%;
    max-width: 1400px;
    display: block;
    margin: auto;
    min-height: 100vh;
    background: #191919;
    font-family: sans-serif;
    padding-top: 80px;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

/* =========== ANIMATED BACKGROUND GRADIENT =========== */
.animated-bg-gradient{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #0f1419 0%, #1a2a47 25%, #162548 50%, #0f1f35 75%, #0f1419 100%);
    background-size: 400% 400%;
    z-index: 1;
    pointer-events: none;
    animation: gradientShift 25s ease infinite;
}

@keyframes gradientShift{
    0%{
        background-position: 0% 50%;
    }
    25%{
        background-position: 100% 50%;
    }
    50%{
        background-position: 50% 100%;
    }
    75%{
        background-position: 0% 50%;
    }
    100%{
        background-position: 0% 50%;
    }
}

/* =========== PARTICLE CANVAS =========== */
.particle-canvas{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* =========== ANIMATED SHAPES CONTAINER =========== */
.animated-shapes-container{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.shape{
    position: absolute;
    pointer-events: none;
}

/* ===== BLOB SHAPES ===== */
.shape-blob{
    background: radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.15), rgba(61, 90, 125, 0.08) 50%);
    border-radius: 45% 55% 52% 48% / 48% 45% 55% 52%;
    filter: blur(40px);
}

.shape-blob-1{
    width: 400px;
    height: 400px;
    top: -100px;
    left: -50px;
    animation: blobMove1 12s ease-in-out infinite;
}

.shape-blob-2{
    width: 350px;
    height: 350px;
    bottom: -100px;
    right: -50px;
    animation: blobMove2 15s ease-in-out infinite;
    background: radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.12), rgba(42, 63, 95, 0.05) 50%);
}

.shape-blob-3{
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobMove3 18s ease-in-out infinite;
    background: radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.1), rgba(61, 90, 125, 0.04) 50%);
}

/* ===== FLOATING SHAPES ===== */
.shape-floating{
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
}

.shape-floating-1{
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0) 70%);
    animation: float1 8s ease-in-out infinite;
}

.shape-floating-2{
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: 15%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0) 70%);
    animation: float2 10s ease-in-out infinite;
}

/* ===== ORB SHAPES ===== */
.shape-orb{
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.3);
}

.shape-orb-1{
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    background: radial-gradient(circle at 30% 30%, rgba(231, 76, 60, 0.4), rgba(231, 76, 60, 0.1));
    animation: orbFloat1 6s ease-in-out infinite;
    filter: blur(20px);
}

.shape-orb-2{
    width: 120px;
    height: 120px;
    bottom: 25%;
    right: 40%;
    background: radial-gradient(circle at 30% 30%, rgba(52, 152, 219, 0.3), rgba(52, 152, 219, 0.05));
    animation: orbFloat2 7s ease-in-out infinite;
    filter: blur(20px);
}

/* ===== KEYFRAME ANIMATIONS FOR SHAPES ===== */
@keyframes blobMove1{
    0%, 100%{
        transform: translate(0, 0) scale(1);
    }
    25%{
        transform: translate(30px, -50px) scale(1.1);
    }
    50%{
        transform: translate(-20px, 30px) scale(0.95);
    }
    75%{
        transform: translate(50px, 20px) scale(1.05);
    }
}

@keyframes blobMove2{
    0%, 100%{
        transform: translate(0, 0) scale(1);
    }
    25%{
        transform: translate(-40px, 30px) scale(0.95);
    }
    50%{
        transform: translate(20px, 50px) scale(1.1);
    }
    75%{
        transform: translate(-30px, -20px) scale(1.05);
    }
}

@keyframes blobMove3{
    0%, 100%{
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    25%{
        transform: translate(-50%, -50%) scale(1.15) rotate(90deg);
    }
    50%{
        transform: translate(-50%, -50%) scale(0.9) rotate(180deg);
    }
    75%{
        transform: translate(-50%, -50%) scale(1.1) rotate(270deg);
    }
}

@keyframes float1{
    0%, 100%{
        transform: translateY(0) translateX(0);
    }
    25%{
        transform: translateY(-30px) translateX(20px);
    }
    50%{
        transform: translateY(30px) translateX(-20px);
    }
    75%{
        transform: translateY(-20px) translateX(-30px);
    }
}

@keyframes float2{
    0%, 100%{
        transform: translateY(0) translateX(0);
    }
    25%{
        transform: translateY(25px) translateX(-25px);
    }
    50%{
        transform: translateY(-25px) translateX(25px);
    }
    75%{
        transform: translateY(15px) translateX(25px);
    }
}

@keyframes orbFloat1{
    0%, 100%{
        transform: translateY(0) scale(1);
    }
    50%{
        transform: translateY(-40px) scale(1.2);
    }
}

@keyframes orbFloat2{
    0%, 100%{
        transform: translateY(0) scale(1);
    }
    50%{
        transform: translateY(35px) scale(1.15);
    }
}

.navbar{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled{
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.2);
    border-bottom-color: #e74c3c;
}

.nav-container{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
}

.logo{
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-transform: capitalize;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 1px;
}

.logo:hover{
    text-shadow: 0 0 20px #e74c3c, 0 0 30px rgba(231, 76, 60, 0.4);
    transform: scale(1.12);
    color: #ff6b5b;
}

.link-group{
    list-style: none;
    display: flex;
    gap: 0;
}

.link a{
    color: #fff;
    opacity: 0.7;
    text-decoration: none;
    text-transform: capitalize;
    padding: 10px 25px;
    display: block;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    letter-spacing: 0.3px;
}

.link a:hover{
    opacity: 1;
    color: #e74c3c;
}

.link a::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, transparent);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link a:hover::after{
    width: calc(100% - 50px);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.link.active a{
    opacity: 1;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 7px;
}

.hamburger{
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span{
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1){
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2){
    opacity: 0;
}

.hamburger.active span:nth-child(3){
    transform: rotate(-45deg) translate(7px, -7px);
}
/* home sec ki bhi styling kar dete hai */
.home-section{
    width: 100%;
    height: 100vh;
    padding: 0 150px;
    display: flex;
    align-items:center;
    position: relative;
    top: 0;
    opacity: 1;
    transition: 1s;
    z-index: 8;
}
.hero-heading{
    color: #fff;
    font-size: 50px;
    text-transform: capitalize;
    font-weight: 200;
    text-align:left;
    font-style: italic;
    animation: fadeInUp 1s ease-out;
    line-height: 1.3;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(231, 76, 60, 0.2);
}

.home-img{
    position: absolute;
    top: 20px;
    right: 0;
    height: 100vh;
    width: 100%;
    object-fit: cover;
    opacity: 0.2;
    animation: floatImage 3s ease-in-out infinite;
}
/* Ensure content sits above background animations */
section{
    position: relative;
    z-index: 8;
}

nav{
    position: relative;
    z-index: 9;
}
/* project sec bna lete hai */


 .project-section{
    width: 100%;
    min-height: 100vh;
    padding: 150px 100px 100px;
    position: relative;  
    transition: 1s ease-out;
    opacity: 1;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.5) 0%, transparent 50%);
}

.project-heading{
    font-size: 70px;
    color: #bcb9b9;
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: 2px;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.6s ease;
}
.project-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
}

.project-card{
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideUpReveal 0.8s ease-out both;
    border: 1px solid rgba(231, 76, 60, 0.1);
}

.project-card:nth-child(2){
    animation-delay: 0.2s;
}

.project-card:nth-child(3){
    animation-delay: 0.4s;
}

.project-card:nth-child(4){
    animation-delay: 0.6s;
}

.project-card:hover{
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(231, 76, 60, 0.35), 0 0 40px rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.4);
}

.project-img{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit:cover;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-img{
    transform: scale(1.12) rotate(2deg);
}

.project-content{
    position: relative;
    padding: 40px;
    color: #fff;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    z-index: 2;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title{
    font-size: 50px;
    text-transform: capitalize;
    text-align: center;
    font-weight: 300;
}

.project-info{
    margin: 40px 0;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
}

.project-btn-grp{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-btn{
    height: 40px;
    text-transform: capitalize;
    font-size: 18px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.project-btn::before{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #e74c3c;
    transition: left 0.4s ease;
    z-index: -1;
}

.project-btn::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.project-btn:hover{
    transform: scale(1.08) translateY(-2px);
    color: #fff;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.project-btn:hover::before{
    left: 0;
}

.project-btn:hover::after{
    width: 300px;
    height: 300px;
}

.project-btn.live{
    background: none;
    border: 2px solid #fff;
}

/* ABOUT SECTION STYLING */
.about-section{
    width: 100%;
    min-height: 100vh;
    padding: 150px 100px;
    position: relative;
    transition: 1s ease-out;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 25, 40, 0.3) 0%, transparent 100%);
}

.about-container{
    display: flex;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.about-img-wrapper{
    flex: 0 0 40%;
    overflow: hidden;
    border-radius: 10px;
}

.about-img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease;
    border-radius: 8px;
}

.about-img-wrapper{
    transition: box-shadow 0.5s ease;
}

.about-img-wrapper:hover .about-img{
    transform: scale(1.08);
    filter: brightness(1.05);
}

.about-img-wrapper:hover{
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.25);
}

.about-content{
    flex: 1;
    color: #fff;
    font-size: larger;
    font-style: italic;
}

.about-text{
    font-size: 18px;
    line-height: 32px;
    margin-bottom: 40px;
    color: #d4d4d4;
    text-align: justify;
    animation: fadeInUp 1s ease-out 0.2s both;
    transition: all 0.4s ease;
}

.about-text:hover{
    color: #fff;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

.download-btn{
    padding: 14px 45px;
    background: #fff;
    color: #000;
    border: 2px solid #fff;
    font-size: 16px;
    text-transform: capitalize;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    border-radius: 5px;
}

.download-btn::before{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: left 0.4s ease;
    z-index: -1;
}

.download-btn::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.download-btn:hover{
    color: #fff;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,255,255,0.4), inset 0 0 20px rgba(255,255,255,0.1);
}

.download-btn:hover::before{
    left: 0;
}

.download-btn:hover::after{
    width: 300px;
    height: 300px;
}

/* CONTACT SECTION STYLING */
.contact-section{
    width: 100%;
    min-height: 100vh;
    padding: 150px 100px;
    position: relative;
    transition: 1s ease-out;
    opacity: 1;
    background: linear-gradient(135deg, rgba(20, 25, 40, 0.4) 0%, rgba(15, 20, 35, 0.2) 100%);
}

.contact-heading{
    font-size: 70px;
    color: #bcb9b9;
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: 2px;
    width: 100%;
}

.contact-container{
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.contact-form-wrapper{
    flex: 1;
}

.contact-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-input,
.form-textarea{
    padding: 15px 20px;
    background: rgba(42, 42, 42, 0.8);
    border: 2px solid rgba(231, 76, 60, 0.2);
    color: #fff;
    font-size: 16px;
    font-family: sans-serif;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(5px);
}

.form-input::placeholder,
.form-textarea::placeholder{
    color: #777;
}

.form-input:focus,
.form-textarea:focus{
    outline: none;
    background: rgba(51, 51, 51, 0.95);
    border-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3), inset 0 0 10px rgba(231, 76, 60, 0.05);
    transform: translateX(5px) scale(1.01);
}

.form-textarea{
    resize: vertical;
    min-height: 150px;
}

.contact-btn{
    padding: 14px 45px;
    background: #e74c3c;
    color: #fff;
    border: none;
    font-size: 16px;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    border-radius: 8px;
    align-self: flex-start;
    font-family: sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    letter-spacing: 0.5px;
}

.contact-btn::before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.7s ease, height 0.7s ease;
}

.contact-btn::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.contact-btn:hover{
    background: #d35400;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.5), inset 0 0 20px rgba(255,255,255,0.1);
}

.contact-btn:hover::before{
    width: 300px;
    height: 300px;
}

.contact-btn:hover::after{
    transform: translateX(100%);
}

.contact-map-wrapper{
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.15), 0 0 20px rgba(0,0,0,0.5);
    position: relative;
    width: 100%;
    height: 400px;
    border: 1px solid rgba(231, 76, 60, 0.1);
    transition: all 0.5s ease;
}

.contact-map-wrapper:hover{
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.25), 0 0 30px rgba(0,0,0,0.5);
    border-color: rgba(231, 76, 60, 0.3);
    transform: translateY(-5px);
}

.contact-map{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
}

/* Success Message Styling */
.success-message{
    padding: 20px;
    background: #27ae60;
    color: #fff;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn{
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========== ANIMATION KEYFRAMES =========== */

@keyframes fadeInUp{
    from{
        opacity: 0;
        transform: translateY(30px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown{
    from{
        opacity: 0;
        transform: translateY(-30px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpReveal{
    from{
        opacity: 0;
        transform: translateY(40px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft{
    from{
        opacity: 0;
        transform: translateX(-60px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight{
    from{
        opacity: 0;
        transform: translateX(60px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomInSkill{
    from{
        opacity: 0;
        transform: scale(0.7);
    }
    to{
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatImage{
    0%, 100%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(25px);
    }
}

@keyframes slideInTimeline{
    from{
        opacity: 0;
        transform: translateX(-50px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes softBounce{
    0%, 100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-8px);
    }
}

@keyframes pulse{
    0%, 100%{
        transform: scale(1);
        opacity: 1;
    }
    50%{
        transform: scale(1.25);
        opacity: 0.9;
    }
}

@keyframes slideInTimeline{
    from{
        opacity: 0;
        transform: translateX(-50px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow{
    0%, 100%{
        box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
    }
    50%{
        box-shadow: 0 0 25px rgba(231, 76, 60, 0.5), 0 0 40px rgba(231, 76, 60, 0.3);
    }
}
/* EDUCATION SECTION STYLING */
.education-section{
    width: 100%;
    min-height: 100vh;
    padding: 150px 100px;
    position: relative;
    transition: 1s ease-out;
    opacity: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 20, 25, 0.3) 100%);
}

.education-heading{
    font-size: 50px;
    color: #fff;
    text-align: center;
    margin-bottom: 80px;
    font-weight: 300;
    text-transform: capitalize;
    animation: fadeInDown 0.8s ease-out;
}

.timeline-container{
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container::before{
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #333;
    top: 0;
}

.timeline-item{
    margin-bottom: 50px;
    position: relative;
    animation: slideInTimeline 0.8s ease-out both;
}

.timeline-item.left{
    animation: slideInLeft 0.8s ease-out both;
}

.timeline-item.right{
    animation: slideInRight 0.8s ease-out both;
}

.timeline-item:nth-child(1){
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2){
    animation-delay: 0.3s;
}

.timeline-item:nth-child(3){
    animation-delay: 0.5s;
}

.timeline-item:nth-child(4){
    animation-delay: 0.7s;
}

.timeline-item.left{
    text-align: right;
    padding-right: 52%;
}

.timeline-item.right{
    text-align: left;
    padding-left: 52%;
}

.timeline-item.left::after,
.timeline-item.right::after{
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid #191919;
    border-radius: 50%;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.timeline-content{
    padding: 28px 35px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.timeline-content::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.timeline-item:hover .timeline-content{
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.timeline-item:hover .timeline-content::before{
    opacity: 1;
}

.timeline-content.red{
    background: #e74c3c;
    color: #fff;
}

.timeline-content.orange{
    background: #f39c12;
    color: #fff;
}

.timeline-content.yellow{
    background: #f1c40f;
    color: #333;
}

.timeline-content.green{
    background: #27ae60;
    color: #fff;
}

.timeline-content.blue{
    background: #3498db;
    color: #fff;
}

.timeline-content.gray{
    background: #555;
    color: #fff;
}

.timeline-year{
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-text{
    font-size: 14px;
    line-height: 20px;
}

/* SKILLS SECTION STYLING */
.skills-section{
    width: 100%;
    min-height: 100vh;
    padding: 150px 100px;
    position: relative;
    transition: 1s ease-out;
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(15, 20, 25, 0.4) 0%, rgba(20, 30, 45, 0.2) 100%);
}

.skills-heading{
    font-size: 50px;
    color: #fff;
    text-align: center;
    margin-bottom: 80px;
    font-weight: 300;
    text-transform: capitalize;
    animation: fadeInDown 0.8s ease-out;
}

.skills-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.skill-card{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomInSkill 0.8s ease-out both;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.skill-card:nth-child(1){
    animation-delay: 0.1s;
}

.skill-card:nth-child(2){
    animation-delay: 0.2s;
}

.skill-card:nth-child(3){
    animation-delay: 0.3s;
}

.skill-card:nth-child(4){
    animation-delay: 0.4s;
}

.skill-card:nth-child(5){
    animation-delay: 0.5s;
}

.skill-card:nth-child(6){
    animation-delay: 0.6s;
}

.skill-card:hover{
    transform: translateY(-12px) scale(1.05);
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.3);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.2), inset 0 0 20px rgba(231, 76, 60, 0.05);
}

.skill-card:hover .skill-percent{
    animation: pulse 0.8s ease;
    text-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.skill-icon{
    position: relative;
    margin-bottom: 30px;
}

.progress-circle{
    transform: rotate(-90deg);
}

.progress-bg{
    fill: none;
    stroke: #333;
    stroke-width: 8;
}

.progress-fill{
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.29;
    stroke-dashoffset: calc(339.29 - (339.29 * var(--progress)) / 100);
    transition: stroke-dashoffset 1s ease;
}

.skill-card:nth-child(1) .progress-fill{
    stroke: #e74c3c;
}

.skill-card:nth-child(2) .progress-fill{
    stroke: #3498db;
}

.skill-card:nth-child(3) .progress-fill{
    stroke: #f1c40f;
}

.skill-card:nth-child(4) .progress-fill{
    stroke: #27ae60;
}

.skill-card:nth-child(5) .progress-fill{
    stroke: #9b59b6;
}

.skill-card:nth-child(6) .progress-fill{
    stroke: #2ecc71;
}

.skill-percent{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.skill-name{
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 500;
}

.skill-desc{
    font-size: 14px;
    color: #999;
    line-height: 20px;
    max-width: 200px;
}

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */

/* Large Tablets & Small Desktops (1200px and below) */
@media (max-width: 1200px){
    .nav-container{
        padding: 0 30px;
    }

    .home-section{
        padding: 0 100px;
    }

    .hero-heading{
        font-size: 40px;
    }

    .project-container{
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-container{
        flex-direction: column;
        gap: 40px;
    }

    .about-img-wrapper{
        flex: 0 0 100%;
    }

    .contact-container{
        flex-direction: column;
        gap: 50px;
    }

    .contact-map-wrapper{
        flex: 1;
    }

    .skills-container{
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .project-section,
    .about-section,
    .contact-section,
    .education-section,
    .skills-section{
        padding: 120px 60px;
    }

    .project-heading,
    .contact-heading{
        font-size: 50px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px){
    .hamburger{
        display: flex;
    }

    .nav-container{
        padding: 0 20px;
    }

    .link-group{
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #1a1a1a;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .link-group.active{
        max-height: 300px;
    }

    .link a{
        padding: 15px 20px;
        border-bottom: 1px solid #333;
    }

    .link.active a{
        border-bottom: 3px solid #e74c3c;
        padding-bottom: 12px;
    }

    .home-section{
        padding: 0 30px;
        min-height: 100vh;
        justify-content: center;
    }

    .hero-heading{
        font-size: 28px;
        text-align: center;
    }

    .home-img{
        opacity: 0.1;
    }

    .project-heading,
    .education-heading,
    .skills-heading{
        font-size: 40px;
        margin-bottom: 40px;
    }

    .project-section,
    .about-section,
    .contact-section,
    .education-section,
    .skills-section{
        padding: 80px 20px;
    }

    .project-container{
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card{
        height: 300px;
    }

    .project-title{
        font-size: 30px;
    }

    .project-info{
        margin: 20px 0;
        font-size: 16px;
    }

    .project-btn-grp{
        gap: 10px;
    }

    .project-btn{
        font-size: 14px;
        height: 35px;
        
    }

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

    .about-text{
        font-size: 16px;
        line-height: 26px;
        text-align: justify;
    }
    

    .contact-form-wrapper,
    .contact-map-wrapper{
        width: 100%;
    }

    .contact-map{
        height: 300px;
    }

    .form-input,
    .form-textarea{
        font-size: 14px;
        padding: 12px 15px;
    }

    .contact-btn{
        padding: 10px 30px;
        font-size: 14px;
    }

    .skills-container{
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline-container::before{
        left: 0;
    }

    .timeline-item.left{
        padding-right: 0;
        padding-left: 40px;
        text-align: left;
    }

    .timeline-item.right{
        padding-left: 40px;
        text-align: left;
    }

    .timeline-item.left::after,
    .timeline-item.right::after{
        left: -11px;
    }

    .timeline-content{
        padding: 20px;
        font-size: 14px;
    }

    .timeline-year{
        font-size: 16px;
    }

    .timeline-text{
        font-size: 12px;
    }
}

/* Small Phones (480px and below) */
@media (max-width: 480px){
    .logo{
        font-size: 18px;
    }

    .nav-container{
        height: 60px;
        padding: 0 15px;
    }

    body{
        padding-top: 60px;
    }

    .hero-heading{
        font-size: 20px;
        line-height: 1.5;
    }

    .home-section{
        padding: 0 15px;
        min-height: 80vh;
    }

    .project-heading,
    .contact-heading,
    .education-heading,
    .skills-heading{
        font-size: 28px;
        margin-bottom: 30px;
    }

    .project-section,
    .about-section,
    .contact-section,
    .education-section,
    .skills-section{
        padding: 60px 15px;
    }

    .project-content{
        padding: 20px;
    }

    .project-title{
        font-size: 20px;
    }

    .project-info{
        font-size: 14px;
        margin: 15px 0;
    }

    .project-btn{
        font-size: 12px;
        height: 32px;
    }

    .about-text{
        font-size: 14px;
        line-height: 22px;
    }

    .download-btn{
        padding: 10px 25px;
        font-size: 14px;
    }

    .form-input,
    .form-textarea{
        font-size: 14px;
        padding: 10px 12px;
    }

    .contact-btn{
        padding: 8px 20px;
        font-size: 12px;
    }

    .skills-container{
        gap: 20px;
    }

    .skill-card{
        gap: 15px;
    }

    .skill-name{
        font-size: 16px;
    }

    .skill-desc{
        font-size: 12px;
    }

    .progress-circle{
        width: 90px;
        height: 90px;
    }

    .progress-circle circle{
        cx: 45;
        cy: 45;
        r: 41;
    }

    .skill-percent{
        font-size: 14px;
    }

    .contact-map{
        height: 200px;
    }

    .contact-map{
        height: 200px;
    }
}

/* ==================== PREFERS REDUCED MOTION SUPPORT ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== MOBILE ANIMATION OPTIMIZATION ==================== */
@media (max-width: 768px) {
    /* Simplify animations on mobile for better performance */
    .shape-blob-1,
    .shape-blob-2,
    .shape-blob-3,
    .shape-floating-1,
    .shape-floating-2,
    .shape-orb-1,
    .shape-orb-2 {
        animation-duration: 20s;
    }
    
    .project-card {
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .project-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .skill-card {
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .skill-card:hover {
        transform: translateY(-6px) scale(1.02);
    }
    
    .contact-btn,
    .project-btn,
    .download-btn {
        transition: all 0.3s ease;
    }
    
    .link a {
        transition: all 0.2s ease;
    }
    
    /* Reduce shadow complexity on mobile */
    .project-card {
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .project-card:hover {
        box-shadow: 0 12px 24px rgba(231, 76, 60, 0.25);
    }
}

/* ==================== ULTRA SMALL DEVICES (320px) ==================== */
@media (max-width: 320px) {
    /* Minimal animations for very small devices */
    body {
        scroll-behavior: auto;
    }
    
    .project-card,
    .skill-card {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .project-card:hover {
        transform: translateY(-4px);
    }
}