/* aboout.css */
/* About Section */
.about {
    background: var(--card-bg-light);
    border-radius: 20px;
    padding: 5rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--title-underline);

    animation: expandLine 0.8s ease-out forwards;
}

@keyframes expandLine {
  from { width: 0; }
  to { width: 80px; }
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* About Picture */
.about-pic {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
/* About Picture Image */
.about-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    transition: transform 0.6s ease;
}
/* Overlay effect */
.about-pic::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    /* backdrop-filter: blur(0px); */
    opacity: 0;
    transition: opacity 0.4s ease;
     pointer-events: none;
}
/* Shine sweep */
.about-pic::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent);
    transform: rotate(25deg);
    transition: left 0.6s ease;
    z-index: 2; 
} 
.about-pic:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.about-pic:hover img {
    transform: scale(1.08);
}

.about-pic:hover::before {
    opacity: 1;
}

.about-pic:hover::after {
    left: 120%;
}
/* body.dark .about-pic::after {
    background: rgba(255, 255, 255, 0.06);
} */


/* ========================================
   RESPONSIVE DESIGN - ABOUT SECTION
   ======================================== */

/* Tablets (Medium Devices) */
@media (max-width: 1024px) {
    .about {
        padding: 4rem;
        gap: 2rem;
        grid-template-columns: 1fr auto;
    }

    .about h2 {
        font-size: 2.2rem;
    }

    .about p {
        font-size: 1rem;
    }

    .about-pic {
        width: 250px;
        height: 350px;
    }

    .resume-download-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Tablets (Small Devices) */
@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2.5rem;
        margin: 1.5rem 0;
    }

    .about h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .about h2::after {
        width: 50px;
    }

    @keyframes expandLine {
        from { width: 0; }
        to { width: 50px; }
    }

    .about p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .about-pic {
        width: 280px;
        height: 380px;
        margin: 0 auto;
    }

    .resume-download-btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Mobile Phones (Small Devices) */
@media (max-width: 600px) {
    .about {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
        margin: 1rem 0;
        border-radius: 15px;
    }

    .about h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .about h2::after {
        width: 40px;
    }

    .about p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }

    .about-pic {
        width: 220px;
        height: 300px;
        margin: 0 auto;
        border-radius: 20px;
    }

    .resume-download-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
        display: inline-block;
        width: 100%;
        text-align: center;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .about {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .about h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .about p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .about-pic {
        width: 200px;
        height: 280px;
        border-radius: 15px;
    }

    .about-pic img {
        border-radius: 15px;
    }

    .resume-download-btn {
        font-size: 0.85rem;
        padding: 0.65rem 0.9rem;
    }
}








