@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&family=Baloo+Bhai+2:wght@400;500;600&family=Dancing+Script&display=swap');

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

:root{
    --text-color: #e7e7e7ea;
    --text-hover-color: rgba(231, 231, 231, 0.523);
    --logo-violet: #9828ff;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color: black;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0 100px;
    overflow-x: hidden;
    max-width: 100vw;
}

.grid-gradient {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.8;
    z-index: -1;
    transition: transform 0.9s ease;
}

.grid-class {
    position: absolute;
    right: 0;
    overflow: hidden;
    width: 500px;
    height: 600px;
}

body:has(.hero-image:hover) .grid-gradient {
    transform: scale(1.4);
}

.grid-blur {
    height: 0;
    width: 30rem;
    position: absolute;
    top: 20%;
    right: 0;
    box-shadow: 0 0 700px 15px rgba(255, 255, 255, 0.462);
    rotate: 30deg;
    z-index: -1;
}

nav {
    margin: 30px 0px;
    display: flex;
    position: relative;
    z-index: 10;
    align-items: center;
    justify-content: space-between;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.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);
}

.logo a {
    text-decoration: none;
    cursor: pointer;
}

.logo h1 {
    color: white;
}

.logo h1 span {
    color: var(--logo-violet);
}

.nav-link {
    list-style: none;
    display: flex;
    gap: 37px;
    margin-left: auto;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-link li a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.nav-link li:not(.contact-link) a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--logo-violet);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link li:not(.contact-link) a:hover::after {
    width: 100%;
}

.nav-link li:not(.contact-link) a:hover {
    color: var(--logo-violet);
    transform: translateY(-2px);
}

.contact-link{
    padding: 7px 30px;
    border-radius: 30px;
    background-color: #e7e7e7c9;
}

.nav-link .contact-link a{
    color: rgba(0, 0, 0, 0.936);
}

.nav-link .contact-link:hover{
    background-color: #ffffff;
}

.nav-link .contact-link a:hover{
    color: black;
}

.hero-section {
    margin: 14vh 0px;
    display: flex;
}

.hero-content {
    width: 50%;
}

.hello{
    font-family: 'Dancing Script', cursive;
    font-size: 2.4em;
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 500;
    margin: 2vh 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-content h1 span{
    color: var(--logo-violet);
}

.hero-content h3 {
    font-weight: 400;
    color: rgba(231, 231, 231, 0.878);
    letter-spacing: 3.4px;
}

.hero-content p {
    margin-top: 3vh;
    font-size: 1.2rem;
    color: grey;
    letter-spacing: 0.05em;
    max-width: 35rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-image {
    width: 50%;
    display: flex;
    
}

.hero-image img {
    position: absolute;
    width: 31.5%;
    right: 0;
    top: 20vh;
    pointer-events: none;
    border-radius: 10px;
}

/* Hero Actions - Resume & Social Icons */
.hero-actions {
    margin-top: 5vh;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.resume-download {
    padding: 16px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    background-color: transparent;
    border: 0.7px solid rgba(128, 128, 128, 0.342);
    color: #9728ffb5;
    cursor: pointer;
    letter-spacing: 2px;
    transition: background-color 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.resume-download:hover {
    background-color: #1a1a1a;
    color: #9728fff0
}

/* Hero Social Icons */
.hero-social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.hero-social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    padding-right: 0;
    background: transparent;
    border: 0.7px solid rgba(128, 128, 128, 0.342);
    border-radius: 50px;
    color: #9728ffb5;
    text-decoration: none;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                padding-right 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 100%;
    background: transparent;
    border-radius: 50%;
    transform: scale(1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.hero-social-link i {
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.6s ease;
    flex-shrink: 0;
    color: inherit;
}

.social-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #9728fff0;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    padding-right: 0;
    padding-left: 0;
    position: relative;
    z-index: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-social-link:hover {
    width: auto;
    padding-right: 20px;
    border-color: rgba(128, 128, 128, 0.342);
    background: #1a1a1a;
    color: #9728fff0;
    box-shadow: none;
    z-index: 10;
}

.hero-social-link:hover::before {
    transform: scale(1);
    border-radius: 50px;
    width: 100%;
    background: transparent;
}

.hero-social-link:hover i {
    color: #9728fff0;
}

.hero-social-link:hover .social-text {
    opacity: 1;
    max-width: 300px;
    padding-left: 10px;
    padding-right: 10px;
}


.skill {
    margin-top: 60vh;
    margin-bottom: 30vh;
}

.skill h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.7em;
}

.skill h2 span{
    color: var(--logo-violet);
}

.skills-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    margin-top: 5vh;
    align-items: start;
}

.skill-left{
    font-size: 1.8em;
    width: 280px;
    line-height: 1.5em;
    display: flex;
    flex-direction: column;
}

.skill > p {
    color: rgba(231, 231, 231, 0.878);
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    margin: 30px 0;
}

.skill span {
    color: var(--logo-violet);
    font-weight: 500;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    position: relative;
}

.stats-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    border-radius: 0 0 15px 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 1.1rem;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 0.7px solid rgba(128, 128, 128, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.stat-item:hover {
    border-color: rgba(152, 40, 255, 0.4);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(152, 40, 255, 0.15);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--logo-violet);
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

.stat-item p {
    font-size: 0.65rem;
    color: grey;
    margin: 0;
    letter-spacing: 1px;
    font-weight: 400;
}

.skill-right {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    justify-items: center;
}

.skills-grid {
    display: contents;
}

.skill-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 0.7px solid rgba(128, 128, 128, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 160px;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(152, 40, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(152, 40, 255, 0.4);
    box-shadow: 0 10px 30px rgba(152, 40, 255, 0.2);
}

.skill-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.skill-card:hover img {
    transform: scale(1.1);
}

.skill-card p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 1px;
    margin: 0;
}

/* View Detailed Container */
.view-detailed-container {
    display: flex;
    align-items: stretch;
    width: 220px;
}

.view-detailed-box {
    background: linear-gradient(to bottom, rgba(51, 50, 50, 0.5) 0%, rgba(26, 26, 26, 0.3) 60%, transparent 100%);
    border: 1px solid rgba(152, 40, 255, 0.15);
    border-bottom: none;
    border-radius: 16px;
    padding: 4rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    min-height: 370px;
    position: relative;
    box-sizing: border-box;
}

.view-detailed-box:hover {
    border-color: rgba(152, 40, 255, 0.5);
    box-shadow: 0 0 30px rgba(152, 40, 255, 0.3);
}

.view-detailed-box p {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(231, 231, 231, 0.7);
    text-align: center;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Tech Popup Overlay */
.tech-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.tech-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tech-popup-container {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid rgba(152, 40, 255, 0.3);
    border-radius: 30px;
    padding: 2.5rem 2.5rem 0rem 2.5rem;
    max-width: 95vw;
    width: 1400px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.tech-popup-overlay.active .tech-popup-container {
    transform: scale(1);
}

.tech-popup-container h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.tech-popup-container h2::before {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--logo-violet);
    margin: 0 auto 0.8rem;
}

.close-popup {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-popup:hover {
    color: var(--logo-violet);
    transform: rotate(90deg) scale(1.2);
    text-shadow: 0 0 20px rgba(152, 40, 255, 0.6);
}

/* Popup Content Wrapper */
.popup-content-wrapper {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: space-between;
    max-height: calc(90vh - 8rem);
    overflow-y: auto;
}

/* Tech Categories List */
.tech-categories-list {
    /* flex: 0 0 240px; */
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
}

.category-item {
    background: transparent;
    border: none;
    padding: 0.35rem 0;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateX(5px);
}

.category-item h3 {
    font-size: 1rem;
    color: var(--logo-violet);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.category-item p {
    font-size: 0.9rem;
    color: rgba(231, 231, 231, 0.7);
    margin: 0;
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* Semi-Circle Container */
.semi-circle-container {
    position: relative;
    flex: 1;
    height: 390px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-self: flex-end;
}

.rotating-circle {
    position: absolute;
    width: 780px;
    height: 780px;
    /* bottom: 0; */
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: rotateCircle 60s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

@keyframes rotateCircle {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

.tech-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78px;
    height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1.5px solid rgba(152, 40, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform-origin: center;
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--logo-violet);
    transition: all 0.3s ease;
}

.tech-item span {
    font-size: 0.65rem;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
}

.tech-item:hover {
    border-color: rgba(152, 40, 255, 0.6);
    box-shadow: 0 5px 20px rgba(152, 40, 255, 0.4);
    z-index: 10;
    transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)) scale(1.1);
}

.tech-item:hover i {
    transform: scale(1.2);
    color: #fff;
}

/* Position tech items on circle circumference */
.tech-item:nth-child(1) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(2) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(3) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(4) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(5) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(6) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(7) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(8) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(9) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(10) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(11) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(12) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(13) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(14) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(15) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(16) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(17) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(18) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(19) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }
.tech-item:nth-child(20) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-390px) rotate(calc(var(--index) * -18deg)); }

.projects{
    margin-top: 30vh;
}

.projects h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.7em;
}

.projects h2 span{
    color: var(--logo-violet);
}

/* Dot Abstract Decoration */
.dot-abstract-decoration {
    position: absolute;
    right: 0;
    width: 450px;
    height: 450px;
    background-image: url('images/grid-abstract-png-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
    margin-top: -13vh;
    mask-image: radial-gradient(ellipse 80% 80% at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 70%);
}

.projects .major-project-logo img{
    position: absolute;
    left: 0;
    margin-top: 7vh;
    width: 8%;
}

.major-project{
    margin-top: 8vh;
}

.major-project-title{
    font-size: 2em;
    line-height: 1.5em;
    flex-direction: column;
    justify-content: center;
}

.major-project-title span{
    color: #0cca4c;
    font-family: 'Dancing Script', cursive;
    font-weight: 900;
}

.major-project-img img{
    width: 85%;
    margin-top: 5vh;
    margin-left: 1vw;
    border-radius: 15px;
    z-index: 1;
    transition: transform 1000ms ease-in-out;
}

.major-project-img img:hover{
    transform: scale(1.04);
    box-shadow: 0 10px 30px rgba(152, 40, 255, 0.2);
    cursor: pointer;
}

.major-project-content{
    display: flex;
    margin-top: 2vh;
}

.major-project-info{
    margin-top: 2.2vw;
    font-size: 1.3rem;
    color: rgb(179, 178, 178);
    max-width: 60%;
    line-height: 1.6em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.major-project-info ul{
    margin-top: 3.5vh;
    margin-left: 3vh;
}

.major-project-info ul li span {
    color: var(--logo-violet);
}

.major-project-btn button{
    margin-top: 3vh;
    margin-left: 2vw;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 30px;
    width: fit-content;
    background-color: transparent;
    border: 1px solid var(--logo-violet);
}

.major-project-btn button a{
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.major-project-btn button:hover{
    background-color: #1d1d1d;
}

.my-project{
    margin-top: 15vh;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-1, .project-2, .project-3, .project-4{
    border: 1px solid rgba(128, 128, 128, 0.2);
    padding: 10px;
    border-radius: 12px;
}

.my-project img{
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}

/* Avni Project Slider Animation */
.avni-slider,
.yt-info-slider,
.movie-info-slider,
.resume-builder-slider {
    position: relative;
    width: 100%;
    height: 280px;
    perspective: 1000px;
    overflow: hidden;
}

.slider-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}

.slider-card.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 3;
    pointer-events: auto;
}

.slider-card.previous {
    opacity: 0;
    transform: translateX(0);
    z-index: 1;
}

.slider-card.next {
    opacity: 0;
    transform: translateX(0);
    z-index: 2;
}

.slider-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.my-project-name{
    margin-top: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--logo-violet);
    letter-spacing: 1px;
}

.my-project-description{
    margin-top: 1.4rem;
    font-size: 0.9rem;
    color: grey;
    line-height: 1.4em;
}

.technology-stack{
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: rgba(231, 231, 231, 0.678);
    word-spacing: 3px;
}

.project-visit-btn{
    margin-top: 1.7rem;
    margin-left: 1rem;
    margin-bottom: 0.7rem;
}

.project-visit-btn button{
    padding: 11px 20px;
    border-radius: 30px;
    background-color: transparent;
    border: 1px solid var(--logo-violet);
    cursor: pointer;
    transition: 0.3s;
}

.project-visit-btn button a{
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.project-visit-btn button:hover{
    background-color: #1a1a1a;
}

/* Experience Section */
.experience {
    margin-top: 30vh;
    margin-bottom: 10vh;
}

.experience h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.7em;
}

.experience h2 span{
    color: var(--logo-violet);
}

.experience-container {
    margin-top: 8vh;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-left: 3vw;
    position: relative;
    padding-left: 2vw;
}

.experience-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--logo-violet) 10%, var(--logo-violet) 90%, transparent);
}

.work-exp {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.work-exp::before {
    content: '';
    position: absolute;
    left: -2.38rem;
    top: 1.2rem;
    width: 14px;
    height: 14px;
    background: var(--logo-violet);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(152, 40, 255, 0.25);
    z-index: 1;
}

.experience-title {
    min-width: 400px;
    max-width: 400px;
}

.experience-date {
    font-size: 2em;
    font-family: 'Dancing Script', cursive;
    color: var(--logo-violet);
}

.experience-role {
    font-size: 1.4rem;
    color: rgba(231, 231, 231, 0.878);
    line-height: 1.2em;
    font-weight: 600;
}

.experience-company {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: rgb(173, 173, 173);
    letter-spacing: 0.5px;
    font-weight: 400;
}

.experience-info {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: grey;
    line-height: 1.6em;
    max-width: 45vw;
    margin-left: 10vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Education Section */
.education {
    margin-top: 30vh;
    margin-bottom: 10vh;
}

.education h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.7em;
}

.education h2 span{
    color: var(--logo-violet);
}

.education-container {
    margin-top: 8vh;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-left: 3vw;
    position: relative;
    padding-left: 2vw;
}

.education-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--logo-violet) 10%, var(--logo-violet) 90%, transparent);
}

.college{
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.college::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: 1.2rem;
    width: 12px;
    height: 12px;
    background: var(--logo-violet);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(152, 40, 255, 0.2);
    z-index: 1;
}

.education-date{
    font-size: 2em;
    font-family: 'Dancing Script', cursive;
    color: var(--logo-violet);
}

.education-course{
    font-size: 1.2rem;
    color: rgba(231, 231, 231, 0.878);
    line-height: 1.2em;
    font-weight: 500;
}

.education-institute{
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: rgb(173, 173, 173);
    letter-spacing: 0.5px;
    font-weight: 400;
}

.education-title{
    min-width: 400px;
    max-width: 400px;
}

.education-info {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: grey;
    line-height: 1.6em;
    max-width: 45vw;
    margin-left: 10vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.education-info p{
    color: var(--logo-violet);
    font-weight: 400;
    display: inline-block;
}

/* Contact Section */
.contact {
    margin-top: 25vh;
    /* margin-bottom: 5vh; */
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Left */
.contact-left {
    position: relative;
}

.contact-left h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.7em;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-left h2 span {
    color: var(--logo-violet);
}

.contact-description {
    font-size: 1rem;
    color: rgba(231, 231, 231, 0.7);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 90%;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 0;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item:hover {
    padding-left: 0.5rem;
    border-bottom-color: rgba(152, 40, 255, 0.3);
}

.contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid rgba(152, 40, 255, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-item:hover .contact-icon {
    border-color: var(--logo-violet);
    background: rgba(152, 40, 255, 0.05);
}

.contact-icon i {
    font-size: 1.1rem;
    color: rgba(152, 40, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-item:hover .contact-icon i {
    color: var(--logo-violet);
    transform: scale(1.05);
}

.contact-details h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(231, 231, 231, 0.4);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.contact-details a,
.contact-details span {
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-details a:hover {
    color: var(--logo-violet);
    transform: translateX(3px);
}

/* Contact Social */
.contact-social {
    margin-top: 3rem;
}

.contact-social h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(231, 231, 231, 0.7);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-social-links {
    display: flex;
    gap: 0.8rem;
}

.contact-social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0.7px solid rgba(128, 128, 128, 0.342);
    border-radius: 10px;
    color: #9728ffb5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    background: #1a1a1a;
    border-color: rgba(128, 128, 128, 0.342);
    color: #9728fff0;
    transform: translateY(-3px);
}

.contact-social-link i {
    font-size: 1.1rem;
}

/* Contact Right - Form */
.contact-right {
    position: relative;
    margin-top: 19vh;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 1rem;
    color: rgba(152, 40, 255, 0.5);
    transition: all 0.3s ease;
    z-index: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

/* Remove autofill background */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px black inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text-color);
}

/* Custom selection color */
.form-group input::selection,
.form-group textarea::selection {
    background-color: rgba(152, 40, 255, 0.3);
    color: var(--text-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 1.5rem;
}

.form-group textarea ~ i {
    top: 1.5rem;
}

.form-group label {
    position: absolute;
    left: 2.5rem;
    top: 1rem;
    font-size: 0.95rem;
    color: rgba(231, 231, 231, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group textarea ~ label {
    top: 1.5rem;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    left: 0;
    font-size: 0.75rem;
    color: var(--logo-violet);
}

.form-group input:focus ~ i,
.form-group textarea:focus ~ i {
    color: var(--logo-violet);
    transform: scale(1.1);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--logo-violet);
    transition: width 0.4s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.contact-submit-btn {
    margin-top: 1rem;
    padding: 16px 30px;
    background: transparent;
    border: 0.7px solid rgba(128, 128, 128, 0.342);
    border-radius: 30px;
    color: #9728ffb5;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.contact-submit-btn:hover {
    background: #1a1a1a;
    color: #9728fff0;
    transform: translateY(-2px);
}

.contact-submit-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover i {
    transform: translateX(5px);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px;
    height: 50px;
    background: var(--logo-violet);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(152, 40, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000 !important;
}

.scroll-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.scroll-to-top:hover {
    background: #b028ff;
    box-shadow: 0 6px 20px rgba(152, 40, 255, 0.6);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(152, 40, 255, 0.5);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsive Design */

/* Tablet - Large (1024px - 1280px) */
@media (max-width: 1280px) {
    body {
        margin: 0 40px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-image img {
        width: 32%;
        border-radius: 10px;
    }

    .skill-left {
        font-size: 1.6em;
        max-width: 30%;
        min-width: 30%;
    }

    .skills-container {
        gap: 3rem;
    }

    .my-project {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet - Medium (768px - 1024px) */
@media (max-width: 1024px) {
    body {
        margin: 0 25px;
    }

    nav {
        flex-wrap: wrap;
        gap: 20px;
    }

    .nav-link {
        gap: 25px;
    }

    .nav-link li a {
        font-size: 1rem;
    }

    .hero-section {
        flex-direction: column;
        margin: 10vh 0;
    }

    .hero-content {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .resume-download {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hello {
        font-size: 2em;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-image {
        width: 100%;
        position: relative;
        margin-top: 5vh;
        justify-content: center;
    }

    .hero-image img {
        position: relative;
        width: 50%;
        top: 0;
        border-radius: 10px;
    }

    .skill {
        margin-top: 20vh;
    }

    .skills-container {
        display: flex;
        flex-direction: column;
        gap: 4rem;
    }

    .skill-left {
        width: 100%;
        max-width: 100%;
        font-size: 1.5em;
    }

    .skill-left > p {
        white-space: normal;
    }

    .skill-right {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        justify-items: center;
    }

    .skills-grid {
        display: contents;
    }

    .view-detailed-container {
        margin-top: 3rem;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .view-detailed-box {
        width: auto;
        min-width: 200px;
    }

    .popup-content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .tech-categories-list {
        flex: none;
        width: 100%;
        gap: 0.6rem;
    }

    .semi-circle-container {
        width: 100%;
        max-width: 700px;
        height: 350px;
    }

    .rotating-circle {
        width: 700px;
        height: 700px;
    }

    .tech-item {
        width: 75px;
        height: 75px;
    }

    .tech-item i {
        font-size: 1.3rem;
    }

    .tech-item span {
        font-size: 0.6rem;
    }

    .tech-item:nth-child(1) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(2) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(3) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(4) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(5) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(6) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(7) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(8) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(9) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(10) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(11) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(12) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(13) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(14) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(15) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(16) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(17) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(18) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(19) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(20) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)); }

    .tech-item:hover {
        transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-320px) rotate(calc(var(--index) * -18deg)) scale(1.1);
    }

    .projects {
        margin-top: 20vh;
    }

    .projects .major-project-logo img {
        width: 12%;
    }

    .major-project-title {
        font-size: 1.7em;
    }

    .major-project-content {
        flex-direction: column;
    }

    .major-project-img img {
        width: 100%;
    }

    .major-project-info {
        max-width: 100%;
        margin-top: 3vh;
    }

    .my-project {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 10vh;
    }

    .experience-container {
        margin-left: 4vw;
    }

    .experience-title {
        min-width: 250px;
        max-width: 250px;
    }

    .experience-info {
        max-width: 100%;
        margin-left: 5vw;
    }

    .experience-date {
        font-size: 1.7em;
    }

    .experience-role {
        font-size: 1.2rem;
    }

    .experience-company {
        font-size: 1rem;
    }

    .education-container {
        margin-left: 4vw;
    }

    .education-title {
        min-width: 250px;
        max-width: 250px;
    }

    .education-info {
        max-width: 100%;
        margin-left: 5vw;
    }

    .education-date {
        font-size: 1.7em;
    }

    .education-course {
        font-size: 1.2rem;
    }

    .education-institute {
        font-size: 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-description {
        max-width: 100%;
    }
}

/* Mobile - Large (600px - 768px) */
@media (max-width: 768px) {
    body {
        margin: 0 20px;
    }

    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Ensure images and media don't overflow */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }

    /* Ensure all sections fit within viewport */
    section, .hero-section, .skills-container, .my-project, 
    .experience-container, .education-container, .contact-container {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Ensure grid and flex containers don't overflow */
    .skills-grid, .certificates-grid, .my-project {
        width: 100%;
        box-sizing: border-box;
    }

    /* Hide scroll to top button on mobile */
    .scroll-to-top {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    nav {
        flex-wrap: nowrap;
    }

    .nav-link {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        margin: 0;
        z-index: 99;
        border-left: 1px solid rgba(152, 40, 255, 0.3);
    }

    .nav-link.active {
        right: 0;
    }

    .nav-link li {
        width: 100%;
        text-align: center;
    }

    .contact-link {
        width: 80%;
        text-align: center;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-link {
        gap: 15px;
        font-size: 0.9rem;
    }

    .contact-link {
        padding: 5px 20px;
    }

    .hero-content h1 {
        font-size: 2em;
        line-height: 1.2;
    }

    .hello {
        font-size: 1.7em;
    }

    .hero-content h3 {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
        letter-spacing: 0.03em;
    }

    .hero-image img {
        width: 60%;
    }

    .grid-class {
        width: 300px;
        height: 400px;
    }

    .skill h2,
    .projects h2,
    .experience h2,
    .education h2 {
        font-size: 2.2rem;
    }

    .skill-left {
        font-size: 1.3em;
        width: 100%;
    }

    .skill-left > p {
        margin-bottom: 2rem;
        white-space: normal;
    }

    .skill-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-items: center;
    }

    .skills-grid {
        display: contents;
    }

    .stat-item h3 {
        font-size: 1.7rem;
    }

    .skill-card {
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 160px;
    }

    .skill-card img {
        width: 55px;
        height: 55px;
    }

    .view-detailed-container {
        margin-top: 2.5rem;
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .view-detailed-box {
        padding: 2rem 1.5rem;
        min-width: auto;
        min-height: auto;
        width: 90%;
        max-width: 320px;
        border: 1px solid rgba(152, 40, 255, 0.2);
    }

    .view-detailed-box i {
        font-size: 2.5rem;
    }

    .view-detailed-box p {
        font-size: 0.85rem;
    }

    .tech-popup-container {
        padding: 2rem;
        max-width: 95vw;
        width: 95vw;
    }

    .tech-popup-container h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .category-item {
        padding: 0.4rem 0;
    }

    .category-item h3 {
        font-size: 0.8rem;
    }

    .category-item p {
        font-size: 0.65rem;
    }

    .semi-circle-container {
        width: 100%;
        max-width: 500px;
        height: 280px;
    }

    .rotating-circle {
        width: 560px;
        height: 560px;
    }

    .tech-item {
        width: 65px;
        height: 65px;
    }

    .tech-item i {
        font-size: 1.1rem;
    }

    .tech-item span {
        font-size: 0.55rem;
    }

    .tech-item:nth-child(1) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(2) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(3) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(4) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(5) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(6) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(7) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(8) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(9) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(10) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(11) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(12) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(13) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(14) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(15) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(16) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(17) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(18) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(19) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(20) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)); }

    .tech-item:hover {
        transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-260px) rotate(calc(var(--index) * -18deg)) scale(1.1);
    }

    .projects .major-project-logo img {
        width: 15%;
        margin-top: 5vh;
    }

    .major-project-title {
        font-size: 1.4em;
    }

    .major-project-info {
        font-size: 1.1rem;
    }

    .major-project-btn button {
        font-size: 1rem;
    }

    .my-project {
        grid-template-columns: 1fr;
    }

    .experience-container {
        margin-left: 0;
        padding-left: 1.5rem;
        gap: 3rem;
    }

    .work-exp {
        flex-direction: column;
        gap: 1rem;
    }

    .work-exp::before {
        left: -1.88rem;
    }

    .experience-title {
        min-width: 100%;
        max-width: 100%;
    }

    .experience-info {
        margin-left: 0;
        max-width: 100%;
    }

    .experience-date {
        font-size: 1.5em;
    }

    .experience-role {
        font-size: 1.1rem;
    }

    .experience-company {
        font-size: 0.95rem;
    }

    .experience-info {
        font-size: 0.95rem;
    }

    .education-container {
        margin-left: 0;
        padding-left: 1.5rem;
        gap: 3rem;
    }

    .college {
        flex-direction: column;
        gap: 1rem;
    }

    .college::before {
        left: -1.75rem;
    }

    .education-title {
        min-width: 100%;
        max-width: 100%;
    }

    .education-info {
        margin-left: 0;
        max-width: 100%;
    }

    .education-date {
        font-size: 1.5em;
    }

    .education-course {
        font-size: 1.1rem;
    }

    .education-institute {
        font-size: 0.95rem;
    }

    .education-info {
        font-size: 0.95rem;
    }

    .contact-left h2 {
        font-size: 2.2em;
    }

    .contact-description {
        font-size: 0.95rem;
    }

    .contact-info-item {
        padding: 0.8rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-container {
        gap: 2rem;
    }

    .info-card,
    .form-card,
    .social-card {
        padding: 1.8rem;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }

    .social-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile - Medium (480px - 600px) */
@media (max-width: 600px) {
    body {
        margin: 0 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-link {
        width: 75%;
    }

    .hero-content h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }

    .hello {
        font-size: 1.5em;
    }

    .hero-content h3 {
        font-size: 0.9rem;
    }

    .resume-download {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
    }

    .skill-card {
        width: 100%;
        max-width: 150px;
    }

    .projects .major-project-logo img {
        width: 20%;
    }

    .major-project-title {
        font-size: 1.2em;
    }

    .major-project-info {
        font-size: 1rem;
    }
}

/* Mobile - Small (320px - 480px) */
@media (max-width: 480px) {
    body {
        margin: 0 12px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .nav-link li a {
        font-size: 0.85rem;
    }

    .contact-link {
        padding: 4px 15px;
    }

    .hero-content h1 {
        font-size: 1.5em;
        line-height: 1.2;
    }

    .hello {
        font-size: 1.3em;
    }

    .hero-content h3 {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 0.9rem;
        max-width: 100%;
        letter-spacing: 0.02em;
    }

    .hero-image img {
        width: 70%;
    }

    .skill h2,
    .projects h2,
    .education h2 {
        font-size: 1.8em;
    }

    .skill-left {
        font-size: 1.1em;
        width: 100%;
    }

    .skill-left > p {
        margin-bottom: 1.5rem;
        white-space: normal;
    }

    .skill-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        justify-items: center;
    }

    .skills-grid {
        display: contents;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .stat-item p {
        font-size: 0.6rem;
    }

    .skill-card {
        padding: 1.2rem 0.8rem;
        width: 100%;
        max-width: 140px;
    }

    .skill-card img {
        width: 45px;
        height: 45px;
    }

    .skill-card p {
        font-size: 0.85rem;
    }

    .view-detailed-container {
        margin-top: 2rem;
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .view-detailed-box {
        padding: 1.5rem 1.2rem;
        min-width: auto;
        min-height: auto;
        width: 85%;
        max-width: 280px;
        border: 1px solid rgba(152, 40, 255, 0.2);
    }

    .view-detailed-box p {
        font-size: 0.8rem;
    }

    .tech-popup-container {
        padding: 1.5rem 1rem;
    }

    .tech-popup-container h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .close-popup {
        font-size: 1.3rem;
    }

    .category-item {
        padding: 0.3rem 0;
    }

    .category-item h3 {
        font-size: 0.75rem;
    }

    .category-item p {
        font-size: 0.6rem;
    }

    .semi-circle-container {
        width: 95vw;
        max-width: 380px;
        height: 210px;
    }

    .rotating-circle {
        width: 420px;
        height: 420px;
    }

    .tech-item {
        width: 50px;
        height: 50px;
        gap: 0.2rem;
    }

    .tech-item i {
        font-size: 0.9rem;
    }

    .tech-item span {
        font-size: 0.45rem;
    }

    .tech-item:nth-child(1) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(2) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(3) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(4) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(5) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(6) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(7) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(8) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(9) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(10) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(11) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(12) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(13) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(14) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(15) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(16) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(17) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(18) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(19) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }
    .tech-item:nth-child(20) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)); }

    .tech-item:hover {
        transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-195px) rotate(calc(var(--index) * -18deg)) scale(1.05);
    }
    .tech-item:nth-child(20) { transform: translate(-50%, -50%) rotate(calc(var(--index) * 18deg)) translateY(-165px) rotate(calc(var(--index) * -18deg)); }

    .projects .major-project-logo img {
        width: 25%;
    }

    .major-project-title {
        font-size: 1em;
    }

    .major-project-info {
        font-size: 0.9rem;
    }

    .major-project-btn button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .my-project-name {
        font-size: 1rem;
    }

    .my-project-description {
        font-size: 0.85rem;
    }

    .technology-stack {
        font-size: 0.75rem;
    }

    .project-visit-btn button {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    .experience-container {
        padding-left: 1rem;
    }

    .work-exp::before {
        left: -1.38rem;
        width: 11px;
        height: 11px;
    }

    .experience-date {
        font-size: 1.3em;
    }

    .experience-role {
        font-size: 1rem;
    }

    .experience-company {
        font-size: 0.85rem;
    }

    .experience-info {
        font-size: 0.85rem;
    }

    .education-container {
        padding-left: 1rem;
    }

    .college::before {
        left: -1.25rem;
        width: 10px;
        height: 10px;
    }

    .education-date {
        font-size: 1.3em;
    }

    .education-course {
        font-size: 1rem;
    }

    .education-institute {
        font-size: 0.85rem;
    }

    .education-info {
        font-size: 0.85rem;
    }

    .contact {
        margin-top: 15vh;
    }

    .contact-left h2 {
        font-size: 2em;
    }

    .contact-container {
        gap: 2.5rem;
    }

    .contact-info-list {
        gap: 1.2rem;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
    }

    .contact-icon i {
        font-size: 1.1rem;
    }

    .contact-details h4 {
        font-size: 0.8rem;
    }

    .contact-details a,
    .contact-details span {
        font-size: 0.95rem;
    }

    .contact-social-link {
        width: 40px;
        height: 40px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding-left: 2.2rem;
    }

    .form-group label {
        left: 2.2rem;
        font-size: 0.9rem;
    }

    .contact-submit-btn {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
}