body {
    margin: 0;
    background: #120822;
    min-height: 100vh;
    color: #fff;
      padding-top: 60px;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(18, 8, 34, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(159, 69, 255, 0.15);
}

.top-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
}

.top-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.top-nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.top-nav-links a:hover {
    color: #9F45FF;
}

.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            60vw 65vh at var(--g1x, 15%) var(--g1y, 90%),
            #3b1a6e 0%,
            transparent 65%
        ),
        radial-gradient(
            50vw 55vh at var(--g2x, 88%) var(--g2y, 95%),
            #4a1f80 0%,
            transparent 65%
        ),
        linear-gradient(180deg, #0a0412 0%, #120822 60%, #0d0618 100%);
    filter: blur(72px) saturate(130%) brightness(90%);
    opacity: 0.95;
    transition: filter 220ms linear;
}

.animated-bg.layer2 {
    background:
radial-gradient(
    18vw 16vh at var(--g3x, 50%) var(--g3y, 20%),
    #c084fc26 0%,
    transparent 70%
),
        radial-gradient(
            28vw 28vh at 80% 70%,
            #7c3aed1a 0%,
            transparent 65%
        ),
        linear-gradient(180deg, #1a0a2e 0%, transparent 100%);
    filter: blur(90px) saturate(150%) brightness(105%);
    opacity: 0.6;
}

.floating-nav {
    position: fixed;
    left: 80px;
    top: 35%;
    transform: translateY(-50%);

    background: rgba(40, 0, 80, 0.6);
    backdrop-filter: blur(10px);

    padding: 12px;
    border-radius: 30px;

    display: flex;
    flex-direction: column;
    gap: 15px;

    box-shadow: 0 0 20px rgba(159, 69, 255, 0.3);
    z-index: 9999;
     transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;

    border: none;
    background: transparent;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Images */
.floating-nav button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.6);
    transition: filter 0.3s ease, transform 0.2s ease;
}

.floating-nav svg {
    width: 30px;
    height: 30px;
}

.floating-nav button:hover {
    background: #9F45FF;
    transform: scale(1.1);
    box-shadow: 0 0 10px #9F45FF;
}

.floating-nav button:hover img {
    filter: brightness(0) invert(1) opacity(1)
            drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    transform: scale(1.1);
}

.floating-nav button.active {
    background: #9F45FF;
    box-shadow: 0 0 15px #9F45FF;
}

.floating-nav button.active img {
    filter: brightness(0) invert(1) opacity(1);
}

.footer-contact {
    margin: 2rem 0;
    padding: 0.9rem 1.6rem;
    border: 1px solid #8e8e8e;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Arial, sans-serif;
}

.footer-contact p {
    margin: 0;
    color: #5d5d5d;
}

.footer-icons {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-icons a {
    display: inline-flex;
    color: #a88cff;
    text-decoration: none;
}

.footer-icons a:hover {
    opacity: 0.8;
}

.footer-icons svg {
    width: 16px;
    height: 16px;
}




#typed-line2::after {
    content: '|';
    color: #c084fc;
    animation: blink 0.7s step-end infinite;
}

#typed-line2:not(:empty) ~ * #typed-line::after {
    display: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    margin: 3rem auto 2.5rem;
    padding: 0 1.25rem 0 1.4rem;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.hero-content {
    font-family: 'IBM Plex Sans';
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 0.5rem 0 1rem;
}

.hero-name-display {
    margin: 0;
    line-height: 1.05;
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
}

.hero-tagline {
    margin: 0;
    max-width: 34ch;
    line-height: 1.2;
     font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    text-align: left;
}

.hero-tagline-line {
    display: block;
}

.hero-lead {
    margin: 1.35rem 0 0;
      max-width: 48rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.78);
     font-size: 1.20rem;
    line-height: 1.65;
}

.card-shape {
    width: min(100%, 380px);
    min-height: 460px;
    padding: 1.35rem 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-right-radius: 0;
    border-bottom-right-radius: 150px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 82px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-photo-wrap {
    width: 118px;
    height: 118px;
    border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(168, 140, 255, 0.12);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-shape h2 {
    margin: 0.85rem 0 0.25rem;
    text-align: center;
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
}


.card-shape h3 {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #c084fc;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    align-self: stretch;
        color: #3b1a6e;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    font-size: 1.20rem;
    line-height: 1.35;
  color: rgba(255,255,255,0.8);
    justify-content: center;
}


.contact-list li,
.contact-list a,
.card-phone {
    font-size: 1.40rem;
}


.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.06rem;
     color: #7c3aed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 14px;
    height: 14px;
}

.contact-icon--inline {
    margin-top: 0;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.card-phone {
    margin: 0.65rem 0 0;
    padding: 0;
    width: 100%;
    font-size: 1.40rem;
     color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.card-shape .contact-list a {
    color: #c084fc;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.card-skills {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.4rem;
    width: 100%;
}

.card-skills span {
    display: inline-block;
    margin: 0;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: #ede0ff;
    color: #4a1f80;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.card-shape .cv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: auto;
    margin: 1.1rem auto 0;
    padding: 0.35rem 0.15rem;
    font-size: 0.90rem;
    font-weight: 600;
     color: #fff;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.cv-btn__icon {
    width: 1.1em;
    height: 1.1em;
}

.skills-section {
    position: relative;
    z-index: 1;
    padding: 3rem 0 3.25rem;
}

.skills-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
}

.skills-intro {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-heading {
    width: 250px;
    text-align: center;
    margin: 0 0 1.2rem;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.skills-intro-block {
    width: 250px;
    max-width: 15rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
}

.skills-rule {
    display: none;
}

.skills-quote {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

.skills-cards {
        display: flex;
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: nowrap;
    }

.skills-panel {
    box-sizing: border-box;
    padding: 1.35rem 1.3rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 36px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    width: 300px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.skills-panel-title {
    margin: 0 0 1.15rem;
    font-size: 1.05rem;
    font-weight: 700;
   color: #c084fc;
    text-transform: lowercase;
    line-height: 1.2;
}

.skills-panel-title--split {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-transform: none;
}

.skills-panel-title--split span {
    display: block;
}


.skills-icons-grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 0.65rem;
    justify-items: center;
}

.skills-lang-icon {
width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 5px;
    opacity: 0;
    transform: translateY(20px);
}

.skills-panel .skills-icons-grid {
    margin: 0 ;
}

.skills-icon-react svg {
    width: 34px;
    height: 34px;
}

.skills-row {
    font-size: 0.78rem;
    font-weight: 600;
   color: rgba(255, 255, 255, 0.7); 
    line-height: 1.3;
}


.skill-item {
    position: relative;
    width: 44px;
    height: 44px;
    perspective: 600px;
    cursor: pointer;
}

.skill-item .skills-lang-icon,
.skill-item .skill-name {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.5s ease;
}

.skill-item .skills-lang-icon {
      transform: rotateY(0deg);
    opacity: 1 !important;  /* override the scroll animation */
    object-fit: contain;
}

.skill-item .skill-name {
  transform: rotateY(180deg);
    background: rgba(192, 132, 252, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 8px;
    color: #c084fc;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2px;
}

.skill-item:hover .skills-lang-icon {
   transform: rotateY(-180deg);
}

.skill-item:hover .skill-name {
    transform: rotateY(0deg);
}


#projects {
   
    color: white;
    text-align: center;
}

#projects h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: auto;
}

.project-card:last-child {
    grid-column: 1 / -1;
    width: calc(100% - 20px);  
    margin: 0 auto;
}

.project-card {
    text-align: left;
    transform: translateY(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-radius: 16px;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(159, 69, 255, 0.25);
}

.project-card .img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}



.project-card h3 {
    margin-top: 15px;
    font-size: 18px;
}

.project-card p {
    font-size: 14px;
    opacity: 0.8;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.project-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.project-links a {
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    background: transparent;
    border: 1.5px solid rgba(192, 132, 252, 0.6);
    color: #c084fc;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.project-links a:hover {
    background: rgba(192, 132, 252, 0.15);
    border-color: #c084fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(159, 69, 255, 0.3);
    color: #fff;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; 
    margin-top: 10px;
    font-size: 12px;
}
.tech-stack span {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}




#experience {
    padding: 60px 20px;
    max-width: 1250px;
    margin: 0 auto;
    color: #fff;
    align-items: center;
     display: flex;
     flex-direction: column;
}

#experience h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.experience-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem; 
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.experience-header h3 {
    margin: 0 0 0.3rem;
    font-size: 1.5rem;
    color: #fff;
}

.experience-company {
    margin: 0;
    color: #c084fc;
    font-size: 1rem;
}

.experience-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    white-space: nowrap;
}

.experience-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.07rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.experience-details {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.07rem;
    line-height: 1.8;
    padding-left: 1.2rem;
    margin-bottom: 1.2rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.experience-tags span {
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(192, 132, 252, 0.2);
}



.tech-stack span:nth-child(1) { background: rgba(160, 100, 220, 0.18); color: #cba8f0; }
.tech-stack span:nth-child(2) { background: rgba(120, 80, 200, 0.15); color: #b99ee8; }
.tech-stack span:nth-child(3) { background: rgba(100, 60, 180, 0.15); color: #a990e0; }
.tech-stack span:nth-child(4) { background: rgba(180, 80, 200, 0.14); color: #d4a0e8; }
.tech-stack span:nth-child(5) { background: rgba(80, 60, 200, 0.15); color: #9f96e0; }


.footer-contact {
    text-align: center;
    margin-top: 60px;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-icons svg {
    width: 24px;
    height: 24px;
    cursor: pointer;
}


#projects h2,
#experience h2,
.skills-heading {
    color: #fff;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.6);
    border-bottom: 3px solid #5e4675;
    display: inline-block;
    padding-bottom: 8px;
}

@media (max-width: 768px) {

    /* Nav */
    .top-nav-links {
        gap: 1rem;
    }

    .top-nav-links a {
        font-size: 0.8rem;
    }

    /* Hide floating nav on mobile — top nav covers it */
    .floating-nav {
        display: none;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
        margin: 1.5rem auto;
    }

    .card-shape {
        width: 100%;
        max-width: 340px;
    }

    .hero-tagline {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    /* Skills */
    .skills-inner {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    .skills-cards {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .skills-panel {
        width: 100%;
        max-width: 340px;
    }

    .skills-heading {
        font-size: 2.5rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 1rem;
    }

    .project-card:last-child {
        grid-column: 1;
        width: 100%;
    }

    /* Experience */
    #experience {
        padding: 40px 1rem;
    }

    .experience-header {
        flex-direction: column;
        gap: 0.3rem;
    }

    .experience-date {
        align-self: flex-start;
    }

    /* Contact */
    #contact {
        padding: 40px 1rem;
    }

    /* Footer */
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        border-radius: 20px;
    }

    /* Section headings */
    #projects h2,
    #experience h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-list li,
    .contact-list a,
    .card-phone {
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .top-nav-logo {
        font-size: 1rem;
    }

    .top-nav-links a {
        font-size: 0.75rem;
    }

    .top-nav-links {
        gap: 0.6rem;
    }
    
 .floating-nav {
        left: 50%;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%);
        flex-direction: row;
        border-radius: 999px;
        padding: 10px 16px;
    }
}

