html{
    scroll-behavior:smooth;
    scroll-padding-top:80px;
}
*{
    margin: 0;
    padding: 0;
    font-size: 100%;
    box-sizing: border-box;

}

/* ===== PRELOADER (tree growth animation) ===== */
body.loading{
    overflow: hidden;
}

.preloader{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    overflow: hidden;
    background: #f8f7f2;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hide{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ambient glow blobs taaki sides khaali na lage, same style jaise help-container mein hai */
.preloader::before{
    content:"";
    position:absolute;
    width:340px;
    height:340px;
    background:radial-gradient(circle, rgba(107,151,44,0.22), transparent 70%);
    top:-100px;
    left:-100px;
    animation: floatGlow 8s ease-in-out infinite;
}

.preloader::after{
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    background:radial-gradient(circle, rgba(139,175,58,0.18), transparent 70%);
    bottom:-90px;
    right:-90px;
    animation: floatGlow2 9s ease-in-out infinite;
}

.tree-svg{
    width: 220px;
    height: auto;
    position: relative;
    z-index: 1;
}

.trunk,
.branch{
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: draw 1s ease forwards;
}

.trunk{ animation-delay: 0s; }
.branch1{ animation-delay: 1s; }
.branch2{ animation-delay: 1s; }
.branch3{ animation-delay: 1.6s; }
.branch4{ animation-delay: 1.6s; }
.branch5{ animation-delay: 1.6s; }

@keyframes draw{
    to{ stroke-dashoffset: 0; }
}

.leaf{
    transform-origin: center;
    transform: scale(0);
    animation: pop 0.6s ease forwards;
}
.leaf1{ animation-delay: 2.2s; }
.leaf2{ animation-delay: 2.2s; }
.leaf3{ animation-delay: 2.6s; }
.leaf4{ animation-delay: 2.6s; }
.leaf5{ animation-delay: 3.0s; }

@keyframes pop{
    0%{ transform: scale(0); }
    70%{ transform: scale(1.15); }
    100%{ transform: scale(1); }
}

.preloader-text{
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    color: #5f8d22;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.dots{
    animation: blinkDots 1.2s infinite steps(1);
}

@keyframes blinkDots{
    0%, 20%{ opacity: 0; }
    50%{ opacity: 1; }
    100%{ opacity: 0; }
}
/* ===== PRELOADER END ===== */


body{
    background-color:#f8f7f2;
    background-image:radial-gradient(rgba(0,0,0,0.08) 1px,transparent 1px);
    background-size:20px 20px;
}
body:hover{
    background-image:radial-gradient(rgba(107,151,44,0.18) 1px, transparent 1px);
}
header{
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

/* NEW: glass blur + shadow once the page is scrolled */
header.scrolled{
    background: rgba(248, 247, 242, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.header-ul{
    display: flex;
    justify-content: space-between;
    padding: 2rem;
}
.links{
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style-type: none;
}
.logo{
    border-radius: 50%;
    max-width:40px;
    max-height:40px;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}

/* NEW: logo hover animation — gentle spin + pop + glow */
.logo:hover{
    transform: rotate(-14deg) scale(1.12);
    box-shadow: 0 0 0 4px rgba(107,151,44,0.25);
}
.header-a{
    position: relative;
    font-size: 1.2rem;
    text-decoration: none;
    color:#5c5c5c;
    font-weight:500;
    transition:color .25s ease,transform .25s ease;
}
.header-a:hover{
    color:#111;
    transform:translateY(-1px);
}

/* NEW: smooth underline animation for nav links */
.nav-link::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:100%;
    height:2px;
    background:#6b972c;
    border-radius:2px;
    transform:scaleX(0);
    transform-origin:right;
    transition:transform .35s cubic-bezier(.22,1,.36,1);
}

.nav-link:hover::after{
    transform:scaleX(1);
    transform-origin:left;
}

/* NEW: active section link stays highlighted + underlined */
.nav-link.active{
    color:#56731b;
}

.nav-link.active::after{
    transform:scaleX(1);
    transform-origin:left;
    background:#56731b;
}
.buttons{
    display: flex;
    gap: 10px;
}

/* Desktop: nav-links-mobile ek invisible wrapper hai, andar ke li's .links ke seedhe flex-children ban jaate hain */
.nav-links-mobile{
    display: contents;
}

/* Desktop: right-side toggle icon chhupa rahega */
.menu-toggle{
    display: none;
}
.resume {
  padding: 14px 28px;
  border: 2px solid #2a2a2a;
  border-radius: 14px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 4px 4px 0 #2a2a2a;
  transition:transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s cubic-bezier(.22,1,.36,1);
}

.resume:hover {
  transform: translate(-2px,-2px);
  box-shadow: 4px 4px 0 #2a2a2a;
}

.resume:active {
  transform: translate(4px,4px);
  box-shadow: 0px 0px 0 #2a2a2a;
}

.contact-button{
    padding:14px 26px;
    border:none;
    border-radius:14px;
    background:#6b972c;
    color:white;
    font-size:16px;
    font-weight:500;
    cursor:pointer;
    box-shadow:0 4px 0 #4f741f,0 8px 16px rgba(0,0,0,.12);
    transition:transform .25s cubic-bezier(.22,1,.36,1),box-shadow .25s cubic-bezier(.22,1,.36,1);
}

.contact-button:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 0 #4f741f,0 14px 22px rgba(0,0,0,.16);
}
.contact-button:active{
    transform:translateY(4px);
    box-shadow:0 0 0 #4f741f,0 4px 8px rgba(0,0,0,.12);
}

/*media-query-ofheaderul and buttons */
@media (max-width: 768px){

    /* NEW: header becomes a floating glass bar on mobile */
    header{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 1000;
    }

    /* NEW: sirf ek row ki height chahiye ab, dropdowns overlay hote hain */
    body{
        padding-top: 90px;
    }

    /* NEW: ye hi glass navbar bar hai — logo (left) aur menu-toggle (right) isme rehte hai */
    .header-ul{
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;

        margin: 14px auto;
        width: 92%;
        max-width: 420px;
        padding: 0.7rem 1.2rem;

        background: rgba(255, 255, 255, 0.35);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 24px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    /* .links ab sirf logo dikhata hai, baaki links dropdown mein chale gaye */
    .links{
        display: flex;
        align-items: center;
    }

    /* NEW: logo tap karne se ye dropdown khulta hai (Home, about, contact, help) */
    .nav-links-mobile{
        display: none;
        flex-direction: column;
        gap: 14px;
        list-style: none;

        position: absolute;
        top: 115%;
        left: 0;
        width: 100%;

        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 18px;
        padding: 18px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        text-align: center;
    }
    .nav-links-mobile.show{
        display: flex;
    }
    .header-a{
        font-size:15px;
    }

    /* underline sits awkwardly in the centered mobile dropdown, so keep it desktop-only */
    .nav-link::after{
        display:none;
    }

    /* NEW: right-side toggle icon jo buttons dropdown ko open/close karega */
    .menu-toggle{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;

        border: 1px solid rgba(255,255,255,0.5);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.45);

        font-size: 16px;
        color: #333;
        cursor: pointer;
    }

    /* NEW: Resume + Contact-me ab dropdown ke andar, right-toggle se open hota hai */
    .buttons{
        display: none;
        flex-direction: column;
        gap: 10px;

        position: absolute;
        top: 115%;
        right: 0;
        width: 75%;
        max-width: 260px;

        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 18px;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    .buttons.show{
        display: flex;
    }
    .resume,
    .contact-button{
        width: 100%;
        padding:12px 20px;
        font-size:14px;
    }

}/*end here for buttons links and ul */
/*media query for header end here*/
.main{
    position: relative;
    overflow: hidden;
    max-width:1200px;
    margin:auto;
    padding:60px 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    background:none;
    border:none;
    box-shadow:none;

}

.main-2{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:20px;
}
.badge{
    display:inline-flex;
    padding:10px 20px;
    border-radius:50px;
    background:#dff3a7;
    color:#5f8d22;
    font-size: 1.4rem;
    margin-bottom:20px;
}

.main-h1{
    font-size:clamp(2rem,5vw,5rem);
    line-height:1.1;
    margin-bottom:20px;
}

.main-p{
    display:inline-block;
    overflow:hidden;
    white-space:nowrap;
    vertical-align:bottom;
    border-right:3px solid #8BAF3A;
    animation:typing 4s steps(110,end) infinite, blink .8s infinite;
    font-size:clamp(1rem,2vw,1.2rem);
    font-weight:600;
    color:#111;
    margin-top:-8px;
    margin-bottom:6px;
}

@keyframes typing{
    0%{
        width:0;
    }
    40%{
        width:44ch;
    }
    60%{
        width:44ch;
    }
    100%{
        width:0;
    }
}

@keyframes blink{
    0%,100%{ border-color:#8BAF3A; }
    50%{ border-color:transparent; }
}

.main-desc{
    font-size:clamp(1rem,1.5vw,1.15rem);
    line-height:1.8;
    color:#555;
    max-width:600px;
}

.hero-stats{
    display:flex;
    gap:36px;
    margin-top:10px;
}

.stat-item{
    display:flex;
    flex-direction:column;
    gap:2px;
    padding-right:36px;
    border-right:1px solid rgba(0,0,0,0.12);
}

.stat-item:last-child{
    border-right:none;
    padding-right:0;
}

.stat-item h3{
    font-size:1.8rem;
    font-weight:700;
    color:#56731b;
}

.stat-item span{
    font-size:.85rem;
    color:#666;
    font-weight:500;
}


.social-icons{
    display:flex;
    gap:15px;
    margin-top:30px;
    flex-wrap:wrap;
}
.social-icons a{
    width:50px;
    height:50px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    color:#222;
    background:rgba(255,255,255,0.6);
    border:1px solid rgba(0,0,0,0.1);
    border-radius:50%;
    backdrop-filter:blur(10px);
    transition:0.3s ease;
}

.social-icons a:hover{
    transform:translateY(-5px);
    background:#8BAF3A;
    color:white;
}

.my-image{
    flex:1;
    display:flex;
    align-items: center;
    justify-content:center;
}

.img{
    position:relative;
    width: 100%;
    max-width:450px;
    height:auto;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
}
.circle{
    position:absolute;
    width: 100%;
    max-width:520px;
    height: 100%;
    max-height:500px;
    border:3px dashed #7fa53d;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:14px;
    font-weight:600;
    color:#7fa53d;
    transform:rotate(-12deg);
}
.circle{
    animation:rotate 20s linear infinite;
}

@keyframes rotate{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

@media (max-width:768px){

    .main{
        flex-direction:column;
        text-align:center;
        padding:40px 20px;
    }
    .main-2{
        flex-direction:column-reverse;
        text-align:center;
    }
    .badge{
        margin:auto;
    }
    .main-2 h1{
        font-size:3rem;
        line-height:1.1;
    }

    .main-2 img{
        width:280px;
        height:280px;
        object-fit:cover;
    }
    .social-icons{
        justify-content:center;
    }

    .main-desc{
        max-width:100%;
        margin:0 auto;
    }

    .hero-stats{
        justify-content:center;
        flex-wrap:wrap;
        gap:24px;
    }

    .stat-item{
        padding-right:24px;
    }

    .my-image{
        order:-1;
    }

    .main-p{
        margin:0 auto 6px;
    }
}
/*section of about-start-here*/
#about{
    position:relative;
    display:flex;
    align-items:center;
    gap:20px;
    max-width:1200px;
    margin:80px auto;
    padding:60px 20px;
    border-radius:35px;
}

.aside1{
    flex:0 0 280px;
    position:relative;
    padding:12px;
    border-radius:25px;

    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #8BAF3A, #56731b) border-box;
    border:3px solid transparent;
    outline:1px solid rgba(107,151,44,0.25);
    outline-offset:6px;

    box-shadow:0 20px 45px rgba(86,115,27,.20), 0 6px 16px rgba(0,0,0,.06);
    transition:transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}

.aside1:hover{
    transform:translateY(-6px);
    box-shadow:0 28px 55px rgba(86,115,27,.28), 0 10px 20px rgba(0,0,0,.08);
}

.aside1::before{
    content:"";
    position:absolute;
    width:160px;
    height:160px;
    background:radial-gradient(circle, rgba(107,151,44,0.22), transparent 70%);
    top:-40px;
    left:-40px;
    z-index:-1;
    animation:floatGlow 8s ease-in-out infinite;
}

.aside1-badge{
    position:absolute;
    bottom:-16px;
    left:50%;
    transform:translateX(-50%);

    display:flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;

    padding:8px 20px;
    background:#6b972c;
    color:white;
    font-size:.85rem;
    font-weight:600;
    letter-spacing:.2px;

    border-radius:50px;
    border:3px solid #f8f7f2;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    z-index:2;
}

.my-img2{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:18px;
    display:block;
    overflow:hidden;
    transition:transform .5s cubic-bezier(.22,1,.36,1);
}

.aside1:hover .my-img2{
    transform:scale(1.09);
}
.aside2{ 
    flex:1;
    background:#f7f5ef;
    border-radius:25px;
    padding:40px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.about-tag{
    display:inline-block;
    background:#dff3a7;
    color:#5f8d22;
    padding:10px 22px;
    border-radius:50px;
    font-size:.95rem;
    margin-bottom:16px;
    align-self:flex-start;
}

.aside2 h2{
    font-size:3rem;
    margin-bottom:16px;
}

.text{
    font-size:1rem;
    line-height:1.75;
    color:#555;

    max-width:600px;
}

.about-highlights{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin:22px 0 26px;
}

.highlight-chip{
    display:flex;
    align-items:center;
    gap:8px;
    background:white;
    padding:10px 18px;
    border-radius:14px;
    font-size:.9rem;
    font-weight:500;
    color:#333;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
    transition:transform .25s ease, box-shadow .25s ease;
}

.highlight-chip:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,.09);
}

.highlight-chip i{
    color:#6b972c;
    font-size:1rem;
}

.about-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-bottom:32px;
}

.resume2 {
  padding: 14px 24px;
  border: 2px solid #2a2a2a;
  border-radius: 14px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 4px 4px 0 #2a2a2a;
  transition:transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s cubic-bezier(.22,1,.36,1);
}

.resume2:hover {
  transform: translate(-2px,-2px);
  box-shadow: 4px 4px 0 #2a2a2a;
}
.resume2:active {
  transform: translate(4px,4px);
  box-shadow: 0px 0px 0 #2a2a2a;
}

.view-projects-btn{
    display:inline-flex;
    align-items:center;
    padding:14px 26px;
    border-radius:14px;
    background:#6b972c;
    color:white;
    font-size:16px;
    font-weight:500;
    text-decoration:none;
    cursor:pointer;

    box-shadow:0 4px 0 #4f741f, 0 8px 16px rgba(0,0,0,.12);
    transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s cubic-bezier(.22,1,.36,1);
}

.view-projects-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 0 #4f741f, 0 14px 22px rgba(0,0,0,.16);
}

.view-projects-btn:active{
    transform:translateY(4px);
    box-shadow:0 0 0 #4f741f, 0 4px 8px rgba(0,0,0,.12);
}

.about-stats{
    display:flex;
    flex-wrap:wrap;
    gap:28px;
    padding-top:24px;
    border-top:1px solid rgba(0,0,0,0.08);
}

.about-stat{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.about-stat h3{
    font-size:1.7rem;
    font-weight:700;
    color:#56731b;
}

.about-stat span{
    font-size:.82rem;
    color:#666;
    font-weight:500;
}

[data-reveal]{
    opacity:0;
    transform:translateY(28px);
    transition:opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
}

[data-reveal].in-view{
    opacity:1;
    transform:translateY(0);
}

.aside2.in-view .highlight-chip,
.aside2.in-view .about-stat{
    animation:chipRise .5s ease backwards;
}

.about-highlights .highlight-chip:nth-child(1){ animation-delay:.05s; }
.about-highlights .highlight-chip:nth-child(2){ animation-delay:.12s; }
.about-highlights .highlight-chip:nth-child(3){ animation-delay:.19s; }
.about-highlights .highlight-chip:nth-child(4){ animation-delay:.26s; }
.about-highlights .highlight-chip:nth-child(5){ animation-delay:.33s; }
.about-stats .about-stat:nth-child(1){ animation-delay:.1s; }
.about-stats .about-stat:nth-child(2){ animation-delay:.18s; }
.about-stats .about-stat:nth-child(3){ animation-delay:.26s; }
.about-stats .about-stat:nth-child(4){ animation-delay:.34s; }

@keyframes chipRise{
    from{ opacity:0; transform:translateY(10px); }
    to{ opacity:1; transform:translateY(0); }
}


@media(max-width:768px){

    #about{
        flex-direction:column;
        padding:40px 15px;
    }

    .aside1{
        flex:auto;
        max-width:280px;
        margin:0 auto 30px;
    }

    .aside2{
        padding:30px 25px;
    }

    .aside2 h2{
        font-size:2rem;
    }

    .text{
        font-size:1rem;
    }

    .about-highlights{
        gap:10px;
    }

    .highlight-chip{
        font-size:.85rem;
        padding:8px 14px;
    }

    .about-buttons{
        flex-direction:column;
    }

    .about-buttons button,
    .about-buttons a{
        width:100%;
        text-align:center;
        justify-content:center;
    }

    .about-stats{
        gap:20px 28px;
    }

}
.projects{
    padding:80px 20px;
    max-width:1200px;
    margin:auto;
}

.projects-header{
    text-align:center;
    margin-bottom:50px;
}

.project-tag{
    display:inline-block;
    background:#dff3a7;
    color:#5f8d22;
    padding:10px 22px;
    border-radius:50px;
    margin-bottom:15px;
}

.projects-header h2{
    font-size:3rem;
}

/* NEW: short centered blurb under a page's header tag+heading (used on projects.html) */
.projects-intro{
    max-width:640px;
    margin:16px auto 0;
    color:#555;
    line-height:1.75;
    text-align:center;
}

.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

.project-card{
    background:#efede8;
    border-radius:25px;
    display:flex;
    flex-direction:column;
    position:relative;
    overflow:hidden;
    border:1px solid transparent;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
    transition:transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .4s ease;
}

.project-card:hover{
    transform:translateY(-10px);
    border-color:rgba(107,151,44,.35);
    box-shadow:0 24px 45px rgba(86,115,27,.18), 0 8px 18px rgba(0,0,0,.08);
}

.project-thumb{
    position:relative;
    width:100%;
    aspect-ratio:16/10;
    overflow:hidden;
    background:linear-gradient(135deg,#dfe8c8,#c9dba0);
}

.project-thumb-fallback{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2.6rem;
    color:rgba(86,115,27,.35);
}

.project-thumb img{
    position:relative;
    z-index:1;
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .5s cubic-bezier(.22,1,.36,1);
}

.project-card:hover .project-thumb img{
    transform:scale(1.08);
}

.project-badge{
    position:absolute;
    z-index:2;
    top:14px;
    right:14px;
    display:flex;
    align-items:center;
    gap:6px;
    padding:6px 14px;
    border-radius:50px;
    font-size:.75rem;
    font-weight:600;
    letter-spacing:.3px;
    color:white;
    box-shadow:0 4px 10px rgba(0,0,0,.18);
}

.project-badge.featured{
    background:#56731b;
}

.project-badge.live{
    background:#2f9e44;
}

.project-badge.live i{
    font-size:.5rem;
    animation:livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse{
    0%,100%{ opacity:1; }
    50%{ opacity:.35; }
}

.project-body{
    padding:26px 28px 30px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.project-card h3{
    font-size:1.4rem;
    margin-bottom:10px;
}

.project-card p{
    color:#555;
    line-height:1.65;
    font-size:.95rem;
    margin-bottom:18px;
}

.tech-stack{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:22px;
}

.tech-badge{
    background:white;
    color:#4f741f;
    font-size:.78rem;
    font-weight:600;
    padding:6px 12px;
    border-radius:8px;
    border:1px solid rgba(107,151,44,.25);
}

.project-links{
    display:flex;
    gap:12px;
    margin-top:auto;
}

.project-link{
    flex:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 14px;
    border-radius:12px;
    font-size:.88rem;
    font-weight:600;
    text-decoration:none;
    cursor:pointer;
    transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}

.project-link.live{
    background:#6b972c;
    color:white;
    box-shadow:0 4px 0 #4f741f, 0 8px 16px rgba(0,0,0,.12);
}

.project-link.live:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 0 #4f741f, 0 14px 22px rgba(0,0,0,.16);
}

.project-link.live:active{
    transform:translateY(4px);
    box-shadow:0 0 0 #4f741f, 0 4px 8px rgba(0,0,0,.12);
}

.project-link.github{
    background:#fff;
    color:#2a2a2a;
    border:2px solid #2a2a2a;
    box-shadow:4px 4px 0 #2a2a2a;
}

.project-link.github:hover{
    transform:translate(-2px,-2px);
}

.project-link.github:active{
    transform:translate(4px,4px);
    box-shadow:0 0 0 #2a2a2a;
}

.view-all-wrap{
    text-align:center;
    margin-top:50px;
}

.view-all-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:15px 32px;
    border-radius:14px;
    background:#fff;
    color:#2a2a2a;
    font-weight:600;
    text-decoration:none;
    border:2px solid #2a2a2a;
    box-shadow:4px 4px 0 #2a2a2a;
    transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}

.view-all-btn:hover{
    transform:translate(-2px,-2px);
}

.view-all-btn:active{
    transform:translate(4px,4px);
    box-shadow:0 0 0 #2a2a2a;
}

@media(max-width:420px){
    .project-links{
        flex-direction:column;
    }
}

@keyframes floatGlow{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(15px);
    }
}

.contact{
    padding:80px 8%;
    background:transparent;

}

.contact-container{
    background:#efede8;
    border-radius:35px;
    padding:60px;
    display:flex;
    gap:60px;
    align-items:center;
    justify-content:space-between;
}

.contact-left{
    flex:1;
}

.contact-tag{
    display:inline-block;
    background:#d8eb9d;
    color:#56731b;
    padding:12px 28px;
    border-radius:30px;
    font-size:1rem;
    margin-bottom:20px;
}

.contact-left h2{
    font-size:3rem;
    margin-bottom:20px;
    color:#111;
}

.contact-left p{
    color:#555;
    line-height:1.8;
    margin-bottom:30px;
}

.contact-info{
    display:flex;
    gap:40px;
}

.contact-info h4{
    margin-bottom:8px;
    color:#6f8f2a;
}

.contact-right{
    flex:1;
}

.contact-right form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.contact-right input,
.contact-right textarea{
    padding:18px;
    border:none;
    border-radius:15px;
    background:white;
    font-size:1rem;
    outline:none;
}

.contact-right input:focus,
.contact-right textarea:focus{
    border:2px solid #8aaa32;
}

.contact-right button{
    width:200px;
    padding:14px 26px;
    border:none;
    border-radius:14px;
    background:#6b972c;
    color:white;
    font-size:16px;
    font-weight:500;
    cursor:pointer;

    box-shadow:
    0 4px 0 #4f741f,
    0 8px 16px rgba(0,0,0,.12);

    transition:
    transform .25s cubic-bezier(.22,1,.36,1),
    box-shadow .25s cubic-bezier(.22,1,.36,1);
}

.contact-right button:hover{
    transform:translateY(-2px);

    box-shadow:
    0 6px 0 #4f741f,
    0 14px 22px rgba(0,0,0,.16);
}

.contact-right button:active{
    transform:translateY(4px);

    box-shadow:
    0 0 0 #4f741f,
    0 4px 8px rgba(0,0,0,.12);
}

@media(max-width:900px){

    .contact-container{
        flex-direction:column;
        padding:40px 25px;
    }

    .contact-left h2{
        font-size:2.2rem;
    }

    .contact-info{
        flex-direction:column;
        gap:20px;
    }

    .contact-right button{
        width:100%;
    }
}
.skills-section{
    padding:80px 8%;
}

.skills-container{
    position:relative;
    overflow:hidden;
    max-width:1200px;
    margin:auto;
    background:#efede8;
    padding:60px;
    border-radius:35px;
    box-shadow:0 8px 32px rgba(0,0,0,.05);
    text-align:center;
}
.skills-container::before{
    content:"";
    position:absolute;

    width:300px;
    height:300px;

    background:radial-gradient(
        circle,
        rgba(107,151,44,0.25),
        transparent 70%
    );

    top:-120px;
    left:-120px;

    animation:floatGlow 8s ease-in-out infinite;
}

.skills-container::after{
    content:"";
    position:absolute;

    width:250px;
    height:250px;

    background:radial-gradient(
        circle,
        rgba(139,175,58,0.18),
        transparent 70%
    );

    bottom:-100px;
    right:-100px;

    animation:floatGlow2 10s ease-in-out infinite;
}
@keyframes floatGlow{

    0%,100%{
        transform:translate(0,0);
    }

    50%{
        transform:translate(40px,30px);
    }
}

@keyframes floatGlow2{

    0%,100%{
        transform:translate(0,0);
    }

    50%{
        transform:translate(-35px,-25px);
    }
}

.skills-tag{
    display:inline-block;
    background:#d8eb9d;
    color:#56731b;
    padding:12px 28px;
    border-radius:30px;
    margin-bottom:20px;
}

.skills-container h2{
    font-size:3rem;
    margin-bottom:40px;

    background:linear-gradient(
        90deg,
        #56731b,
        #8BAF3A,
        #56731b
    );

    background-size:200% auto;

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    animation:shine 5s linear infinite;
}

@keyframes shine{
    to{
        background-position:200% center;
    }
}

.skills-grid{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
    gap:20px;
}

.skill-card{
    background:#6b972c;
    border-radius:14px;
    padding:28px 16px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    cursor:pointer;

    border:none;
    box-shadow:0 4px 0 #4f741f, 0 8px 16px rgba(0,0,0,.12);
    transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s cubic-bezier(.22,1,.36,1);
}

.skill-card i{
    font-size:2.4rem;
    color:white;
}

.skill-card h4{
    font-size:1rem;
    color:white;
    font-weight:600;
}

.skill-card:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 0 #4f741f, 0 14px 22px rgba(0,0,0,.16);
}

.skill-card:active{
    transform:translateY(4px);
    box-shadow:0 0 0 #4f741f, 0 4px 8px rgba(0,0,0,.12);
}

@media(max-width:768px){

    .skills-container{
        padding:35px 25px;
    }

    .skills-container h2{
        font-size:2rem;
    }

    .skills-grid{
        grid-template-columns:repeat(auto-fit,minmax(100px,1fr));
        gap:14px;
    }

    .skill-card i{
        font-size:2rem;
    }
}
.skills-container::before,
.skills-container::after{
    display:none;
}
/* FOOTER */

.footer{
    margin-top:80px;
    padding:50px 20px;
    background:#efede8;
    text-align:center;
}

.footer h3{
    font-size:2rem;
    margin-bottom:10px;
}

.footer p{
    color:#555;
}

.footer-socials{
    margin:25px 0;
    display:flex;
    justify-content:center;
    gap:15px;
}

.footer-socials a{
    width:50px;
    height:50px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;
    text-decoration:none;

    background:white;
    color:#222;

    transition:.3s;
}

.footer-socials a:hover{
    background:#6b972c;
    color:white;
    transform:translateY(-4px);
}

.copyright{
    margin-top:20px;
    font-size:.95rem;
}

/* SCROLL TO TOP */

#topBtn{
    position:fixed;

    bottom:25px;
    right:25px;

    width:55px;
    height:55px;

    border:none;
    border-radius:50%;

    background:#6b972c;
    color:white;

    cursor:pointer;

    display:none;

    z-index:999;

    box-shadow:
    0 4px 0 #4f741f,
    0 8px 16px rgba(0,0,0,.12);

    transition:.3s;
}

#topBtn:hover{
    transform:translateY(-3px);
}

/* ===== PROJECTS PAGE: page hero (used at top of projects.html) ===== */
.page-hero{
    max-width:1200px;
    margin:60px auto 0;
    padding:0 20px;
    text-align:center;
}

.page-hero .project-tag{
    margin-bottom:15px;
}

.page-hero h1{
    font-size:clamp(2.2rem,5vw,3.4rem);
    line-height:1.15;
    margin-bottom:14px;
}

/* NEW: small filter/category pills above the full grid on projects.html */
.filter-row{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin:34px auto 10px;
}

.filter-pill{
    padding:9px 18px;
    border-radius:50px;
    background:#efede8;
    color:#4f741f;
    font-size:.85rem;
    font-weight:600;
    border:1px solid rgba(107,151,44,.25);
    cursor:default;
}

.filter-pill.is-active{
    background:#6b972c;
    color:#fff;
    border-color:#6b972c;
}
