/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Poppins', sans-serif;
    background: #000;
    background-color: #000;
    color: white;
    overflow-x: hidden;
    margin: 0;
    min-height: 100vh;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
.page-transition {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.page-loaded {
    opacity: 1;
}

/* ============================================
   NAVBAR STYLES (Global)
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 60%;
    width: 40%;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 0 0 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    box-shadow: -5px 5px 25px rgba(155, 61, 255, 0.45);
    z-index: 999;
    animation: navbarFade 1s ease;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.25s ease;
}

.navbar li a:hover {
    color: #e0b3ff;
    text-shadow: 0 0 8px rgba(200, 120, 255, 0.8);
    transform: translateY(-2px);
    border-bottom: 2px solid #c599ff;
    padding-bottom: 4px;
}

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

@media (max-width: 768px) {
    .navbar {
        left: 0;
        top: 10px;
        width: 95%;
        height: auto;
        padding: 10px 0;
        border-radius: 12px;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        padding: 5px 10px;
    }

    .navbar li a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: 100%;
        left: 0;
        top: 5px;
    }

    .navbar ul {
        gap: 10px;
    }

    .navbar li a {
        font-size: 0.8rem;
    }
}

/* ============================================
   PORTFOLIO PAGE (index.html) - SCOPED STYLES
   ============================================ */
body.body-portfolio {
    overflow: hidden;
}

body.body-portfolio #canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

body.body-portfolio .content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

body.body-portfolio .hero {
    text-align: center;
    animation: fadeIn 1s ease-in;
}

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

body.body-portfolio .profile-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

body.body-portfolio .glow {
    position: absolute;
    inset: -30px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

body.body-portfolio .profile-pic {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

body.body-portfolio .profile-pic img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: white;
    object-fit: cover;
}

body.body-portfolio h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

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

body.body-portfolio .subtitle {
    font-size: clamp(2rem, 4vw, 3rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    min-height: 3.5rem;
}

body.body-portfolio .buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

body.body-portfolio .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.body-portfolio .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

body.body-portfolio .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

body.body-portfolio .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

body.body-portfolio .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

body.body-portfolio .buttons #btnlink {
    color: white;
    text-decoration: none;
}

body.body-portfolio .social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

body.body-portfolio .social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

body.body-portfolio .social-link:hover {
    transform: scale(1.15) translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

body.body-portfolio .social-link svg {
    width: 32px;
    height: 32px;
}

body.body-portfolio .github svg {
    fill: #fff;
}

body.body-portfolio .leetcode svg {
    width: 35px;
    height: 35px;
}

body.body-portfolio .linkedin svg {
    fill: #0077B5;
}

body.body-portfolio .gmail svg {
    fill: #EA4335;
}

@media (max-width: 768px) {
    body.body-portfolio .profile-pic {
        width: 150px;
        height: 150px;
    }

    body.body-portfolio .profile-pic-inner {
        font-size: 3rem;
    }
}

/* ============================================
   COURSES PAGE (courses2.html) - SCOPED STYLES
   ============================================ */
body.body-courses {
    padding: 50px 20px;
}

body.body-courses h1 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 50px;
    margin-top: 80px;
    padding: 0 20px;
}

body.body-courses h1 span {
    color: #8e2de2;
}

body.body-courses .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: stretch;
    padding: 0 20px 50px;
}

body.body-courses .card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
    position: relative;
    cursor: pointer;
}

body.body-courses .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #fff;
    transition: transform 0.5s ease, filter 0.5s ease;
}

body.body-courses .Leetcode {
    object-position: top;
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #fff;
    transition: transform 0.5s ease, filter 0.5s ease;
}

body.body-courses .card h3 {
    font-size: 1rem;
    margin: 15px 10px 18px;
    line-height: 1.4;
    font-weight: 600;
}

body.body-courses .card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 0 25px rgba(142, 45, 226, 0.8);
    border-color: #8e2de2;
}

body.body-courses .card:hover img {
    filter: brightness(0.8);
    transform: scale(1.1);
}

body.body-courses .card::before,
body.body-courses .card::after {
    pointer-events: none;
}

body.body-courses .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

body.body-courses .card:hover::before {
    opacity: 1;
}

body.body-courses .card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

body.body-courses .card::after {
    content: "\f0c1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: 2;
    transition: all 0.4s ease;
}

@media (max-width: 768px) {
    body.body-courses h1 {
        font-size: 2rem;
    }

    body.body-courses .grid {
        gap: 25px;
    }

    body.body-courses .card img {
        height: 200px;
    }

    body.body-courses .card h3 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body.body-courses {
        padding: 30px 10px;
    }

    body.body-courses h1 {
        font-size: 1.7rem;
    }

    body.body-courses .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.body-courses .card img {
        height: 180px;
    }

    body.body-courses .card h3 {
        font-size: 0.9rem;
    }
}

/* ============================================
   EDUCATION PAGE (education2.html) - SCOPED STYLES
   ============================================ */
body.body-education {
    background: #0f0f0f !important;
    background-color: #0f0f0f !important;
}

body.body-education .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100vh;
    padding: 0 10%;
    gap: 40px;
    position: relative;
}

body.body-education .edu-left img {
    width: 100%;
    max-width: 420px;
    animation: float 3s ease-in-out infinite;
}

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

body.body-education .edu-right h2 {
    font-size: 2.8rem;
    margin: 0 0 10px;
}

body.body-education .edu-right span {
    color: violet;
}

body.body-education .edu-right p {
    line-height: 1.6;
    color: #ccc;
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

body.body-education .scroll-down {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    color: violet;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-align: center;
    animation: fadeBlink 2s infinite, moveDown 1.5s ease-in-out infinite;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.body-education .scroll-down.fade-out {
    opacity: 0;
    transform: translate(-50%, 20px);
}

@keyframes moveDown {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 10px);
    }
}

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

body.body-education .timeline {
    position: relative;
    width: 80%;
    margin: auto;
    padding: 100px 0;
    opacity: 0;
    transform: translateY(80px);
    transition: all 1.5s ease;
}

body.body-education .timeline.active {
    opacity: 1;
    transform: translateY(0);
}

body.body-education .timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, rgba(180, 120, 255, 0.7), rgba(120, 120, 255, 0.4));
    box-shadow: 0 0 15px rgba(180, 120, 255, 0.4);
    transform: translateX(-50%);
}

body.body-education .timeline-item {
    width: 45%;
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

body.body-education .timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

body.body-education .timeline-item.left {
    left: 0;
    text-align: right;
}

body.body-education .timeline-item.right {
    left: 55%;
    text-align: left;
}

body.body-education .timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: royalblue;
    border: 4px solid #0f0f0f;
    left: 100%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(120, 120, 255, 0.8);
}

body.body-education .timeline-item.right::before {
    left: -2%;
}

body.body-education .content {
    background: linear-gradient(135deg, #1b1b1b, #232323);
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 110px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

body.body-education .content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(100, 100, 255, 0.5);
}

body.body-education .edu-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(120, 120, 255, 0.4);
    padding: 3px;
    flex-shrink: 0;
}

body.body-education .text-box {
    flex: 1;
}

body.body-education .text-box ul {
    text-align: left;
    padding-left: 20px;
    margin-left: 0;
}

body.body-education .text-box ul li {
    margin-bottom: 10px;
}

body.body-education .text-box h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

body.body-education .text-box h4 {
    margin: 0.1rem 0;
    color: violet;
    font-size: 0.95rem;
    font-weight: 500;
}

body.body-education .text-box p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 300;
}

body.body-education .text-box span {
    color: violet;
}

body.body-education .timeline-item.left.show {
    animation: slideLeft 1s ease forwards;
}

body.body-education .timeline-item.right.show {
    animation: slideRight 1s ease forwards;
}

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

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

@media (max-width: 900px) {
    body.body-education .intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
        height: 90vh;
    }

    body.body-education .timeline-line {
        left: 10px;
    }

    body.body-education .timeline-item,
    body.body-education .timeline-item.right,
    body.body-education .timeline-item.left {
        width: 100%;
        left: 0;
        text-align: left;
    }

    body.body-education .timeline-item::before {
        left: 0;
        transform: translateX(-50%);
    }

    body.body-education .content {
        align-items: flex-start;
    }

    body.body-education .edu-logo {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   WORK EXPERIENCE PAGE (workExperience2.html) - SCOPED STYLES
   ============================================ */
body.body-experience .experience-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100vh;
    padding: 0 10%;
    gap: 40px;
}

body.body-experience .exp-left img {
    width: 100%;
    max-width: 420px;
    animation: float 3s ease-in-out infinite;
}

body.body-experience .exp-right h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

body.body-experience .exp-right span {
    color: violet;
}

body.body-experience .exp-right p {
    line-height: 1.6;
    color: #ccc;
    font-size: 1.1rem;
}

body.body-experience .scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: violet;
    font-size: 0.9rem;
    letter-spacing: 2px;
    animation: fadeBlink 2s infinite, moveDown 1.5s ease-in-out infinite;
}

body.body-experience .experience-section {
    width: 70%;
    margin: auto;
    padding: 100px 0;
}

body.body-experience .experience-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: stretch;
    margin: 60px 0;
    background: #1b1b1b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(80px);
    transition: all 1.2s ease;
}

body.body-experience .experience-card.show {
    opacity: 1;
    transform: translateY(0);
}

body.body-experience .experience-image {
    flex: 0 0 30%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.body-experience .experience-content {
    flex: 1;
    padding: 35px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1b1b1b;
}

body.body-experience .experience-content h3 {
    margin: 0;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

body.body-experience .experience-content h4 {
    margin: 6px 0 12px;
    color: #a0a0a0;
    font-weight: 500;
    font-size: 1rem;
}

body.body-experience .experience-content p {
    color: #c8c8c8;
    line-height: 1.6;
    font-size: 0.95rem;
}

body.body-experience .experience-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

body.body-experience .experience-content li {
    margin-bottom: 12px;
    color: #c8c8c8;
    line-height: 1.6;
}

@media (max-width: 900px) {
    body.body-experience .experience-intro {
        grid-template-columns: 1fr;
        height: auto;
        padding: 80px 5% 40px;
        text-align: center;
    }

    body.body-experience .exp-left img {
        max-width: 300px;
        margin: 0 auto;
    }

    body.body-experience .experience-section {
        width: 90%;
    }

    body.body-experience .experience-card {
        flex-direction: column;
    }

    body.body-experience .experience-image {
        width: 100%;
        min-height: 250px;
        flex: none;
    }

    body.body-experience .experience-content {
        width: 100%;
        padding: 30px;
        flex: none;
    }

    body.body-experience .experience-content h3 {
        font-size: 1.4rem;
    }

    body.body-experience .experience-content h4 {
        font-size: 1rem;
    }

    body.body-experience .experience-content li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    body.body-experience .experience-image {
        min-height: 220px;
    }

    body.body-experience .experience-content {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    body.body-experience .experience-image {
        min-height: 200px;
    }

    body.body-experience .experience-content {
        padding: 20px;
    }

    body.body-experience .experience-content h3 {
        font-size: 1.2rem;
    }

    body.body-experience .experience-content h4 {
        font-size: 0.9rem;
    }

    body.body-experience .experience-content li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    body.body-experience .experience-image {
        min-height: 180px;
    }

    body.body-experience .experience-content {
        padding: 18px;
    }

    body.body-experience .exp-right h2 {
        font-size: 2rem;
    }

    body.body-experience .experience-content h3 {
        font-size: 1.1rem;
    }
}

/* ============================================
   PROJECTS PAGE (project2.html) - SCOPED STYLES
   ============================================ */
body.body-projects .title {
    text-align: center;
    padding-top: 120px;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 50px;
}

body.body-projects .projects {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

body.body-projects .projects .card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.4s ease;
    height: 400px;
    display: flex;
    align-items: flex-end;
}

body.body-projects .projects .card:hover {
    transform: translateY(-10px);
}

body.body-projects .projects .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

body.body-projects .shade {
    position: relative;
    width: 100%;
    min-height: 25%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6));
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    z-index: 10;
}

body.body-projects .projects .card:hover .shade {
    min-height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.75));
}

body.body-projects .projects .card.expanded .shade {
    min-height: 100%;
    background: rgba(0, 0, 0, 0.92);
    justify-content: flex-start;
    overflow-y: auto;
}

body.body-projects .projects .content {
    position: relative;
    z-index: 10;
}

body.body-projects .projects .content h2 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    font-weight: 600;
}

body.body-projects .short-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

body.body-projects .projects .card:hover .short-desc {
    opacity: 1;
    max-height: 100px;
}

body.body-projects .details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

body.body-projects .projects .card.expanded .details {
    opacity: 1;
    max-height: 1000px;
    margin-top: 20px;
}

body.body-projects .projects .card.expanded .short-desc {
    display: none;
}

body.body-projects .details h3 {
    color: #9f4df5;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

body.body-projects .details p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 15px;
}

body.body-projects .details ul {
    list-style-position: inside;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    padding-left: 10px;
}

body.body-projects .details ul li {
    margin-bottom: 8px;
}

body.body-projects .tech-stack {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 15px;
}

body.body-projects .icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
}

body.body-projects .projects .card:hover .icons,
body.body-projects .projects .card.expanded .icons {
    opacity: 1;
    transform: translateY(0);
}

body.body-projects .icons a {
    color: white;
    font-size: 1.4rem;
    transition: 0.3s;
    text-decoration: none;
}

body.body-projects .icons a:hover {
    color: #9f4df5;
    transform: scale(1.2);
}

body.body-projects .read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: rgba(159, 77, 245, 0.2);
    border: 1px solid #9f4df5;
    border-radius: 20px;
    color: #9f4df5;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

body.body-projects .projects .card:hover .read-more {
    opacity: 1;
    transform: translateY(0);
}

body.body-projects .read-more:hover {
    background: #9f4df5;
    color: white;
}

body.body-projects .projects .card.expanded .read-more {
    display: none;
}

@media (max-width: 768px) {
    body.body-projects .title {
        font-size: 2rem;
        padding-top: 100px;
    }

    body.body-projects .projects .card {
        height: 350px;
    }
}

/* ============================================
   RESUME PAGE (resume.html) - SCOPED STYLES
   ============================================ */
body.body-resume {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

body.body-resume .resume-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    padding-top: 80px;
}

body.body-resume .download-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(45deg, #8e2de2, #4a00e0);
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    margin-bottom: 35px;
    animation: pulseBounce 2s infinite;
}

@keyframes pulseBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

body.body-resume .download-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 0 25px #8e2de2;
    animation: none;
}

body.body-resume .resume-img {
    width: 80%;
    max-width: 700px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(130, 0, 255, 0.25);
}

