/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-color: rgb(0, 0, 0);
    --second-bg-color: rgb(0, 0, 0);
    --text-color: rgb(255, 255, 255);
    --personal-color: rgb(0, 255, 0);
    --secmain-color: black;
    --main-color: rgb(0, 227, 0);
    --textnew-color: rgb(8, 209, 11);
}

/* Base Styles */
html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}
span{
    color:var(--personal-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6rem;
    padding: 4rem 5% 4rem;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.headlogo {
    font-size: 3.4rem;
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s ease;
}

.headlogo:hover {
    transform: scale(1.05);
}

.headlogo span {
    /* text-shadow: 0 0 20px var(--main-color); */
    color: var(--personal-color);
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--personal-color);
    border-bottom: 3px solid var(--personal-color);
}
#buttn{
    background-color: transparent;
}
#menu-icon {
    display: none;
    font-size: 3.6rem;
    color: var(--main-color);
    cursor: pointer;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 5rem 7% 3rem;
}



/* Home */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    overflow: hidden;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
    gap: 0;
    flex: 1 1 auto;
    max-width: 68rem;
}

.home-content h1 {
    font-size: 6.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 0.3rem;
}

.home-content h3 {
    margin: 0.2rem 0 0.8rem;
    font-size: 3.2rem;
    font-weight: 600;
}

.home-content p {
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 52rem;
    color: rgba(255, 255, 255, 0.82);
    text-align: justify;
    margin-bottom: 0.2rem;
}



/* Circle */
.circle-container {
    position: relative;
    background-image: url('https://cdn4.vectorstock.com/i/1000x1000/60/18/symbol-code-white-color-icon-vector-16646018.jpg');
    background-size: cover;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 227, 0, 0.4), 0 0 50px rgba(0, 227, 0, 0.7);
}

.circle {
    position: relative;
    border-radius: 50%;
}

.circle img {
    width: clamp(28rem, 36vw, 48rem);
    opacity: 0;
    border-radius: 50%;
    display: block;
}

.circle-container .hov {
    display: none;
    position: absolute;
    width: 50px;
    height: 50px;
    color: black;
    transition: all 0.4s linear;
    background-color: #c9bdff;
    margin-bottom: 32vw;
    z-index: 1;
}

.logo {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgba(10, 10, 10, 0.8);
    box-shadow: 0 0 5px rgba(0, 227, 0, 0.4), 0 0 10px rgba(0, 227, 0, 0.6);
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 35px;
    opacity: 0;
    transform: scale(1.2);
    transition: all 2s ease-out;
    cursor: grab;
}
.logo .circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    margin: 5px;
}
.logo:active {
    cursor: grabbing;
}

.rotate-icons {
    animation: rotateRing 20s linear infinite;
}

.rotate-icons .logo {
    width: 70px;
    height: 70px;
    border-radius: 10%;
    clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%);
    background-color: rgba(0, 255, 0, 0.200);
}

.rotate-icons .logo .bx {
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.9);
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ── Home Responsive ─────────────────────────────── */

/* Large desktop: slight compression */
@media (max-width: 1280px) {
    .home {
        gap: 4rem;
    }
    .home-content {
        max-width: 52rem;
    }
    .circle img {
        width: clamp(26rem, 34vw, 44rem);
    }
}

/* Medium desktop / tablet landscape */
@media (max-width: 1080px) {
    .home {
        gap: 3.5rem;
    }
    .home-content h1 {
        font-size: 5.8rem;
    }
    .home-content h3,
    .text-animation {
        font-size: 2.8rem;
    }
    .home-content p {
        font-size: 1.6rem;
        max-width: 46rem;
    }
    .circle img {
        width: clamp(24rem, 32vw, 40rem);
    }
    .logo {
        width: 52px;
        height: 52px;
        font-size: 28px;
    }
    .rotate-icons .logo {
        width: 62px;
        height: 62px;
    }
    .rotate-icons .logo .bx {
        width: 40px;
        height: 40px;
    }
}

/* Tablet / nav-collapse point */
@media (max-width: 895px) {
    .home {
        flex-direction: column-reverse;
        align-items: center;
        gap: 2.5rem;
    }
    .home-content {
        align-items: flex-start;
        text-align: left;
        max-width: 56rem;
        width: 100%;
    }
    .home-content h1 {
        font-size: 5.2rem;
    }
    .home-content h3,
    .text-animation {
        font-size: 2.6rem;
    }
    .home-content p {
        font-size: 1.6rem;
        max-width: 54rem;
        text-align: justify;
    }
    .social-icons {
        justify-content: flex-start;
    }
    .btn-group {
        justify-content: flex-start;
    }
    .circle img {
        width: clamp(26rem, 55vw, 38rem);
    }
    .logo {
        width: 48px;
        height: 48px;
        font-size: 26px;
    }
    .rotate-icons .logo {
        width: 58px;
        height: 58px;
    }
    .rotate-icons .logo .bx {
        width: 38px;
        height: 38px;
    }
}

/* Large phone landscape / small tablet */
@media (max-width: 600px) {
    .home {
        gap: 2rem;
        padding-top: 8rem;
    }
    .home-content h1 {
        font-size: 4.4rem;
    }
    .home-content h3,
    .text-animation {
        font-size: 2.2rem;
    }
    .home-content p {
        font-size: 1.5rem;
    }
    .circle img {
        width: clamp(22rem, 68vw, 32rem);
    }
    .logo {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
    .rotate-icons .logo {
        width: 50px;
        height: 50px;
    }
    .rotate-icons .logo .bx {
        width: 34px;
        height: 34px;
    }
}

/* Phone portrait */
@media (max-width: 420px) {
    .home {
        gap: 1.5rem;
        padding-top: 9rem;
    }
    .home-content h1 {
        font-size: 3.8rem;
    }
    .home-content h3,
    .text-animation {
        font-size: 2rem;
    }
    .home-content p {
        font-size: 1.45rem;
    }
    .social-icons a {
        width: 4rem;
        height: 4rem;
        font-size: 2.1rem;
    }
    .btn {
        padding: 0.9rem 2.2rem;
        font-size: 1.5rem;
    }
    .circle img {
        width: clamp(20rem, 78vw, 28rem);
    }
    .logo {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .rotate-icons .logo {
        width: 44px;
        height: 44px;
    }
    .rotate-icons .logo .bx {
        width: 30px;
        height: 30px;
    }
    .update span h5 {
        font-size: 1.6rem;
    }
    .update {
        font-size: 1.6rem;
    }
}

@media (max-width: 360px) {
    .home-content h1 {
        font-size: 3.4rem;
    }
    .home-content h3,
    .text-animation {
        font-size: 1.9rem;
    }
    .update span h5 {
        font-size: 1.3rem;
    }
    .update {
        font-size: 1.3rem;
    }
}



/* Button and Text Animation */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin: 1.8rem 0 1.6rem;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.4rem;
    height: 4.4rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 2.3rem;
    color: var(--textnew-color);
    flex-shrink: 0;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover{
    color:black;
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--textnew-color);
    background-color: rgb(0, 227, 0);
}
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--second-bg-color);
    box-shadow: 0 0 25px var(--textnew-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: white;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    border: 1px solid rgb(137, 255, 137);
    box-shadow: 0 0 30px var(--textnew-color), 0 0 50px var(--textnew-color);
}

.btn-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 0.2rem;
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--textnew-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--textnew-color);
    background-color: var(--textnew-color);
    color: white;
}

.text-animation {
    font-size: 3.2rem;
    font-weight: 600;
    min-width: 0;
    white-space: nowrap;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Full-Stack Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 2px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(20) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words {
  0%, 19.9%  { content: "Software Developer"; }
  20%, 39.9% { content: "Full-Stack Engineer"; }
  40%, 59.9% { content: "AI/ML Engineer"; }
  60%, 79.9% { content: "Backend/Cloud Engineer"; }
  80%, 100%  { content: "System Designer"; }
}

@keyframes typing {
    /* Word 1: type-in → display → erase */
    0%   { width: calc(100% + 8px); }
    6%   { width: 0; }
    12%  { width: 0; }
    18%  { width: calc(100% + 8px); }
    /* Word 2 */
    20%  { width: calc(100% + 8px); }
    26%  { width: 0; }
    32%  { width: 0; }
    38%  { width: calc(100% + 8px); }
    /* Word 3 */
    40%  { width: calc(100% + 8px); }
    46%  { width: 0; }
    52%  { width: 0; }
    58%  { width: calc(100% + 8px); }
    /* Word 4 */
    60%  { width: calc(100% + 8px); }
    66%  { width: 0; }
    72%  { width: 0; }
    78%  { width: calc(100% + 8px); }
    /* Word 5 */
    80%  { width: calc(100% + 8px); }
    86%  { width: 0; }
    92%  { width: 0; }
    98%  { width: calc(100% + 8px); }
    100% { width: calc(100% + 8px); }
}



/* Heading */
.heading {
    font-size: 8rem;
    text-align: center;
    color: black;
    border: 2px solid var(--textnew-color);
    background-color: rgba(0, 255, 0);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    border-radius: 2rem;
    margin-bottom: 3rem;
    line-height: 1.1;
    padding: 1rem 1.5rem;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
} 

/* Education Section  */
.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.timeline-item-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    margin: 3.5rem 0;
}

.timeline-item-container.left {
    justify-content: flex-start;
}

.timeline-item-container.right {
    justify-content: flex-end;
}

.timeline-item {
    position: relative;
    background-color: rgb(12, 12, 12);
    border: 2px solid var(--main-color);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    width: 85%;
    max-width: 900px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 1rem;
    justify-content: center;
}

.timeline-date {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: center;
    width: 100%;
}

/* Timeline Lines */
.verticle-line-odd, .verticle-line-even, .hor-line {
    transition: height 0.5s ease, top 0.5s ease;
}

.timeline-dot-odd, .timeline-dot-even {
    height: 20px;
    width: 20px;
    background-color: var(--textnew-color);
    border-radius: 50%;
    position: absolute;
}

.timeline-dot-odd {
    left: -30px;
}

.timeline-dot-even {
    right: -30px;
}

.verticle-line-odd {
    top: -3.5rem;
    width: 5px;
    height: 14.5rem;
    position: absolute;
    left: -22.5px;
    background-color: var(--textnew-color);
}

.verticle-line-even {
    top: -3.5rem;
    width: 5px;
    height: 14.5rem;
    position: absolute;
    right: -22.5px;
    background-color: var(--textnew-color);
}

.hor-line {
    position: absolute;
    height: 5px;
    background-color: var(--textnew-color);
    right: -22.5px;
    left: -22.5px;
    top: 150%;
}

.hl-last{
    display: none;
}

/* Timeline Content */
.timeline-content {
    display: block;
    padding: 0 2rem;
    width: 85%;
    max-width: 900px;
    background-color: rgba(63, 63, 63, 0.4);
    color: #fff;
    line-height: 1.6;
    border-radius: 0 0 1rem 1rem;
    font-weight: 500;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.timeline-content h3 {
    font-size: 1.8rem;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--main-color);
}

.timeline-content p {
    margin-top: 0.6rem;
    font-size: 1.5rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

.timeline-content.active {
    max-height: 800px;
    opacity: 1;
    transform: scaleY(1);
    padding: 2rem;
}

.timeline-item:hover{
    color: black;
    border: 2px solid var(--personal-color);
    background-color: rgba(0, 255, 0, 0.8);
}
.timeline-item:hover .timeline-date{
    color: black;
}


/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 50px;
}



/* Projects Section */
.projects {
    background-color: var(--second-bg-color);
    color: white;
    position: relative;
}

.projects h2 {
    margin-bottom: 10rem;
}

/* View Controls */
.view-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.view-toggle-btn {
    display: none;
    background-color: rgba(12, 12, 12);
    /* color: var(--main-color); */
    border: 2px solid var(--personal-color);
    padding: 1rem 2rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.view-toggle-btn:hover {
    background-color: rgba(0, 255, 0, 0.8);
}
.toggle-text{
    color: white;
    font-size: 1.8rem;
    font-weight: 500;
}
.view-toggle-btn:hover .toggle-text{
    color: black;
}

/* Project Container */
.project-container {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
}

.project-slider {
    display: grid;
    padding-left: 2rem;
    padding-right: 2rem;
    gap: 3rem;
    min-height: 450px;
    grid-template-columns: repeat(2, 1fr);
    transition: all 0.5s ease;
}

/* Project Box */
.project-box {
    background-color: rgb(12, 12, 12);
    min-height: 300px;
    max-height: 400px;
    border-radius: 2rem;
    overflow-y: scroll;
    scrollbar-width: none;
    border: 2px solid var(--main-color);
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

.project-box:hover {
    background-color: black;
    color: white;
    border: 2px solid black;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    transform: scale(1.03);
}

/* Project Info Styles */
.project-info {
    padding: 2rem 5rem;
}

.project-info h4 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.content {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 400;
}

.content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.6;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--main-color);
}

.content p {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content li {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.project-info h4 a{
    color: var(--main-color);
}

.project-info img {
    width: 40px;
    border-radius: 50%;
}

.slide-dots {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    
    .project-container {
        padding: 10% 3%;
    }
    .view-toggle-btn {
      display: block;
      position: absolute;
      right: 3%;
      left: 3%;
    }
    .projects h2 {
        font-size: 6rem;
    }

    .project-slider {
        display: flex;
        flex-direction: column;
        height: 460px;
        overflow: hidden;
        touch-action: pan-y pinch-zoom;
    }

    .project-slider:not(.expanded) {
        scroll-snap-type: y mandatory;
    }

    /* Dots Navigation */
    .slide-dots {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        left: 2%;
        top: 50%;
        transform: translateY(-50%);
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        transition: all 0.3s;
        cursor: pointer;
    }

    .dot.active {
        background-color: rgba(0, 255, 0, 1);
        transform: scale(1.2);
    }

    /* Project Box Mobile Styles */
    .project-box {
        flex: 0 0 100%;
        scroll-snap-align: start;
        transform: translateY(0);
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .project-info {
        padding: 1.5rem 2rem;
    }

    .project-info h4{
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .content h3 {
        font-size: 1.2rem;
        margin-top: 1rem;
        margin-bottom: 0.6rem;
    }

    .content p,
    .content li {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 0.6rem;
    }

    .content ul {
        margin-left: 1.2rem;
        margin-bottom: 0.8rem;
    }

    /* Expanded View */
    .project-slider.expanded {
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
        overflow: visible;
        /* max-height: auto; */
    }

    /* View Controls Mobile */
    .view-controls {
        flex-direction: column-reverse;
        align-items: flex-start;
        /* padding-left: 3rem; */
    }

   
}

/* .SIH h4{
  font-size: 2rem 
} */
.proj-head{
    margin-bottom: 1.5rem;
}

.update {
    font-size: 1.8rem;
}

.update h5{
    display: inline;
    font-size: 1.8rem;
}



/* Achievements Section */
.achivement {
    background-color: var(--second-bg-color);
}

.achivement-box {
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.achivement .heading {
    width: 100%;
    margin-bottom: 10rem;
}

.achivement-box img {
    width: 15rem;
    object-fit: cover;
    background-color: white;
    border-radius: 5px;
}

.achiv-hack img{
    border: none;
    background-color:inherit;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Achievement Carousel */
.achiev-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    position: relative;
}

.achiev-carousel .wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none;
    touch-action: pan-x;
}

.achiev-carousel .wrapper::-webkit-scrollbar {
    display: none;
}

.achiev-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.achiev-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.achiev-dot.active {
    background-color: rgba(0, 255, 0, 1);
    transform: scale(1.01);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.achiev-carousel .achivement-item {
    flex: 0 0 calc(33.333% - 1.7rem);
    margin: 0;
}

.achivement-item {
    min-height: 45rem;
    max-width: 40rem;
    background-color: rgb(12, 12, 12);
    border: 2px solid var(--main-color);
    border-radius: 2rem;
    margin: 0 2rem;
    padding: 30px 60px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    transition: 0.4s ease-in-out;
}

.achivement-item:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    background-color: black;
    border: 2px solid black;
    transform: scale(1.03);
}

.achivement-item h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.achivement-item p {
    overflow: scroll;
    text-align: center;
    font-size: 1.3rem;
}

.achivement-item p::-webkit-scrollbar {
    display: none;
}

/* Rating Section */
.rating {
    font-size: 2rem;
}

.rating a h4 {
    color: var(--main-color);
}

#star {
    color: gold;
    font-size: 2rem;
}


/* About Section */
.about {
    background-color: var(--second-bg-color);
}
.about .heading{
    margin-bottom: 10rem;
}

.about h2 {
    margin-bottom: 3rem;
    color: black;
}

.about form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}

.about form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.about form .input-box input,
.about form textarea {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}

.about .btn {
    margin-top: 2rem;
}

.about .btn:hover {
    color: var(--textnew-color);
}

/* Footer Section */
.footer {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: #11ff38c7;
}

.footer .social a {
    font-size: 2.5rem;
    color: black;
    border: 2px solid black;
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: black;
    border: 2px solid black;
    color: var(--textnew-color);
    box-shadow: 0 0 10px rgb(0, 0, 0, 0.5), 0 0 40px rgb(0, 0, 0, 0.3);
}

.footer .copyright {
    margin-top: 5px;
    text-align: center;
    font-size: 16px;
    color: black;
}

/* Responsive Styles */
@media (max-width: 1285px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 4rem 5% 2.5rem;
    }

    .about form {
        flex-direction: column;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 895px) {
    #menu-icon {
        display: block;
    }
    
    .navbar {
        position: absolute;
        display: flex;
        align-items: center;
        flex-direction: column;
        top: 100%;
        right: 0;
        width: 100%;
        padding: 1rem 3%;
        color: var(--text-color);
        background-color:transparent;
        margin-top: -2rem;
        max-height: 0;
        border-bottom: 2px solid var(--main-color);
        overflow: hidden; /* Prevent overflow */
        transition: max-height 0.8s ease, padding 0.5s ease; /* Transition for max-height */
    }
    
    .navbar.active {
        margin-top: 0rem;
        border-bottom-left-radius: 2rem;
        border-bottom-right-radius: 2rem;
        max-height: 300px; /* Arbitrary large value to allow expansion */
        padding: 0.5rem 3%; /* Reset padding */
        background-color: rgba(23, 23, 23, 0.3);
    }
    
    .navbar a {
        display: block;
        font-size: 2rem;
        font-weight: 500;
        margin: 0.8rem 0;
    }
    

}

@media (max-width: 915px) {
    
    .achivement .wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .achiev-carousel .achivement-item {
        flex: 0 0 calc(50% - 1.25rem);
    }

    .achivement-item {
        width: 25rem;
        height: 30rem;
    }
}

@media (max-width: 700px) {
    
    .hor-line{
        top: 160%;
    }

    .verticle-line-even{
        height: 13rem;
    }
    .verticle-line-odd{
        height: 13rem;

    }
    .timeline-date{
        font-size: 2.5rem;
    }
  
    .timeline-content h3 {
        font-size: 2rem;
    }

    .timeline-content p {
        font-size: 1.5rem;
        font-weight: 200;
        line-height: 18px;
    } 
}

@media (max-width: 660px) {
    .achivement .wrapper {
        gap: 2.5em;
    }

    .achiev-carousel .achivement-item {
        flex: 0 0 calc(100% - 0rem);
    }

    .achivement-item {
        min-height: 30rem;
        max-width: 20rem;
        border-radius: 1.5rem;
        margin: 0 0.5rem;
        padding: 30px 60px;
    }

    .achivement-box img {
        width: 10rem;
    }

    .achivement-item h2 {
        font-size: 1.5rem;
    }

    .achivement-item p {
        font-size: 1.2rem;
    }

    .rating {
        font-size: 1.5rem;
    }
}

@media (max-width: 560px) {

    .project-box img {
        width: 3rem;
    }

    .achivement .wrapper {
        gap: 2.5rem;
    }

    .achivement-item {
        min-height: 20rem;
        max-width: 18rem;
        border-radius: 1.5rem;
        /* margin: 0 0.5rem; */
        padding: 30px 60px;
    }

    .heading {
        font-size: 6rem;
        line-height: 1.1;
        padding: 0.8rem 1.2rem;
        display: inline-block;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Info Section */
.info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
}

.info h2 {
    color: white;
    border-bottom: 2px solid white;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
}

.info .sc {
    padding: 2rem 4rem;
    border-radius: 2rem;
    background-color: rgb(12, 12, 12);;
    border: 2px solid var(--main-color);
    transition: all 0.4s ease-in-out;
}

#abtme {
    display: flex;
    flex-direction: column;
}

.sc:hover {
    border-radius: 3rem;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    transform: scale(1.03);
    background-color: black;
    border: 2px solid black;
}

.me p {
    padding-left: 5rem;
    margin-left: -10%;
}

.info #abtme img {
    filter: drop-shadow(0 0 30px var(--main-color));
    margin-left: -10%;
    height: 100%;
}

#abtme .me {
    display: flex;
    height: 40rem;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

#abtme .me a {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: rgb(0, 255, 0,0.8);
}

#hobby {
    height: 100%;
    font-size: 1.5rem;
    line-height: 1.5;
}

#hobby h4 {
    margin-bottom: 0.8rem;
    font-weight: 550;
}

#skills {
    line-height: 1.5;
}

#skills #tech h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

#skills #tech h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

#skills #tech {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1080px) {
    #skills #tech {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #skills #tech {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #skills #tech {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    #skills #tech h3 {
        font-size: 1.3rem;
    }

    #skills #tech h4 {
        font-size: 1.2rem;
    }
}

#future {
    height: 100%;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 500;
}


@media (max-width: 895px) {
    .info {
        grid-template-columns: repeat(1, 1fr);
        gap: 3rem;
    }

    #abtme .me {
        height: auto;
        font-size: 1.4rem;
        align-items: center;
    }

    .info #abtme img {
        margin-left: 0;
        height: 22rem;
        width: auto;
        flex-shrink: 0;
    }

    .me p {
        padding-left: 2rem;
        margin-left: 0;
    }
}

@media (max-width: 607px) {
    .info {
        margin: auto;
        grid-template-columns: repeat(1, 1fr);
        gap: 2.5rem;
    }

    section {
        padding: 3rem 5% 2rem;
        min-height: unset;
    }

    .info .sc {
        padding: 1.5rem 2rem;
    }

    #abtme .me {
        flex-direction: row;
        align-items: center;
        height: auto;
        gap: 1.5rem;
        font-size: 1.3rem;
    }

    .info #abtme img {
        margin-left: 0;
        height: 14rem;
        width: auto;
        flex-shrink: 0;
    }

    .me p {
        padding-left: 0;
        margin-left: 0;
    }

    #abtme .me a {
        font-size: 1.5rem;
    }

    #skills #tech h3 {
        font-size: 1.2rem;
    }

    #skills #tech h4 {
        font-size: 1.1rem;
    }

    .footer {
        height: fit-content;
    }
}
