/* 1. DARK FOREST BASE & RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    background: #080808; 
    color: #E0E0E0; 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
}

/* 2. ATMOSPHERIC BACKGROUND SYSTEM */
.section { position: relative; padding: 100px 0; overflow: hidden; z-index: 1; }
.section::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: blur(1px) brightness(0.1); opacity: 0.45; z-index: -1;
}

/* Background Assignments for 7 Sections */
.section:nth-of-type(1)::before { background-image: url('https://i.ibb.co/dsPmbcq5/forest-mist.jpg') }
.section:nth-of-type(2)::before { background-image: url("https://i.ibb.co/pjVCcbnR/lithiophile.jpg"); }
.section:nth-of-type(3)::before { background-image: url('https://i.ibb.co/5gbrNwmx/research.jpg')}
.section:nth-of-type(4)::before { background-image: url('https://i.ibb.co/70TDDdN/graphene.jpg'); }
.section:nth-of-type(6)::before { background-image: url('https://i.ibb.co/tMx2pshK/graduation.jpg'); }
.section:nth-of-type(7)::before { background-image: url('https://i.ibb.co/0RkG76B5/volunteer.jpg'); }
.section:nth-of-type(8)::before { background-image: url('https://i.ibb.co/bgK2kfyH/industry.jpg'); }

/* 3. LAYOUT LOGIC */
.container-narrow { max-width: 780px; margin-left: 120px; position: relative; z-index: 2; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }
.border-top { border-top: 1px solid #1A1A1A; }

/* 4. HERO SECTION & PROFILE OVERLAP FIX */
.hero-wrapper { max-width: 1200px; margin: 20px auto 0; padding: 0 2rem; position: relative; z-index: 10; }
.hero-banner { height: 320px; border-radius: 24px; overflow: hidden; background: #111; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }

.hero-content { margin-top: -90px; padding-bottom: 40px; }
.profile-left { margin-left: 120px; }

.avatar-wrap { 
    width: 145px; height: 145px; 
    background: #080808; border-radius: 50%; 
    padding: 5px; position: relative; 
    margin-bottom: 20px;
}
.avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.status-dot { 
    position: absolute; bottom: 10px; right: 15px; 
    width: 18px; height: 18px; background: #10b981; 
    border: 3px solid #080808; border-radius: 50%; 
}

.profile-row { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.profile-text { max-width: 60%; }
.profile-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.profile-text h1 { font-size: 2.2rem; font-weight: 600; color: #FFF; margin-bottom: 4px; letter-spacing: -0.02em; }
/* PURPLE ACCENT: Role text */
.role { color: #A78BFA; font-weight: 500; } 
.location { color: #888; font-size: 0.95rem; margin-top: 8px; }

.socials { display: flex; gap: 12px; }
.social-btn { 
   width: 44px; height: 44px; border: 1px solid #333; 
    border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; text-decoration: none; color: #BBB;
}
.cta-button { 
    background: linear-gradient(96deg, #065f46 12%, #10b981 90%); 
    color: #fff; padding: 12px 28px; border-radius: 50px; 
    text-decoration: none; font-weight: 600; font-size: 0.95rem; 
    white-space: nowrap;
}

/* 5. TECHNICAL BLOG (50/50 TOP-ALIGNED) */
.blog-card-long {
    display: flex; background: rgba(10, 15, 10, 0.6); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px; margin-bottom: 40px; padding: 80px 40px; gap: 60px; overflow: hidden; align-items: flex-start;
}
.blog-text-side, .blog-visual-side { flex: 1; }
.blog-card-long.reflected { flex-direction: row-reverse; }
.blog-text-side h2 { font-size: 1.8rem; color: #FFF; margin-bottom: 16px; }
.blog-text-side p { color: #BBB; margin-bottom: 24px; }
.visit-link { font-weight: 600; color: #4ade80; text-decoration: none; border-bottom: 2px solid #4ade80; padding-bottom: 2px; }
.visual-inner { transform: rotate(3deg); border-radius: 12px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.6); }
.visual-inner img { width: 100%; display: block; }
.blog-card-long.reflected .visual-inner { transform: rotate(-3deg); }
.label-small { font-size: 0.65rem; letter-spacing: 1.5px; color: #4ade80; margin-bottom: 8px; display: block; text-transform: uppercase; }

/* --- CENTERED SECTION WRAPPER --- */
.container-center {
    max-width: 1000px; /* Wider for better spreading */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- EXPLODED LAYOUT LOGIC --- */
.research-exploded-wrapper {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.exploded-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.corner-img {
    position: absolute;
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 24px; /* All corners rounded */
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: brightness(0.7);
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Positioning images into the corners */
.tl { top: 0; left: 0; transform: rotate(-3deg); }
.tr { top: 0; right: 0; transform: rotate(3deg); }
.bl { bottom: 0; left: 0; transform: rotate(2deg); }
.br { bottom: 0; right: 0; transform: rotate(-2deg); }

.research-exploded-wrapper:hover .corner-img {
    filter: brightness(0.9);
    transform: scale(1.05) rotate(0deg);
}

/* --- CENTER OVERLAY REFINEMENT --- */
.checker-overlay.center-float {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 550px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(167, 139, 250, 0.2);
    padding: 35px;
    border-radius: 30px; /* Matching rounded theme */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

/* Responsive adjustment for small screens */
@media (max-width: 850px) {
    .research-exploded-wrapper {
        min-height: auto;
        flex-direction: column;
    }
    .exploded-grid {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    .corner-img {
        position: static;
        width: 100%;
        height: 150px;
        transform: none !important;
    }
    .checker-overlay.center-float {
        width: 100%;
    }
}
/* 7. INTERNSHIP & EXPERIENCE STYLES */
/* EXPERIENCE BLOCK STYLING */
.exp-item {
    margin-bottom: 40px;
    padding: 20px 0;
}

.exp-main h3 {
    font-size: 1.35rem;
    color: #FFF;
    margin-bottom: 6px;
    line-height: 1.3;
}

.exp-meta {
    font-size: 0.95rem;
    color: #A78BFA; /* Purple accent for your role/dates */
    font-weight: 500;
    margin-bottom: 18px;
    display: block;
}

.exp-main ul {
    padding-left: 1.2rem;
    list-style: none;
}

.exp-main li {
    position: relative;
    color: #BBB;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.exp-main li::before {
    content: "•";
    color: #10b981; /* Forest Green bullet point */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* 8. EDUCATION STYLES */
.edu-item { display: flex; gap: 40px; margin-bottom: 32px; align-items: flex-start; }
.date-badge { 
    min-width: 160px; font-size: 0.8rem; border: 1px solid #333; background: rgba(9, 28, 4, 0.719); 
    padding: 6px 12px; border-radius: 6px; text-align: center; color: #888; font-weight: 500;
}
.edu-content h4 { font-size: 1.05rem; font-weight: 600; color: #FFF; }

/* --- UPDATED VOLUNTEERING GRID --- */
.vol-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
}

.vol-card {
    display: flex;
    gap: 24px;
    background: rgba(17, 17, 17, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.vol-card:hover {
    transform: translateX(10px);
    background: rgba(167, 139, 250, 0.05);
}

.vol-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.vol-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.vol-info h3 {
    font-size: 1.15rem;
    color: #FFF;
    margin-bottom: 4px;
}

.vol-info .exp-meta {
    font-size: 0.85rem;
    color: #A78BFA; /* Purple accent for dates */
    margin-bottom: 12px;
    display: block;
}

.vol-info p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .vol-card {
        flex-direction: column;
    }
    .vol-img {
        width: 60px;
        height: 60px;
    }
}
/* 10. REFINED INDUSTRIAL GALLERY */

.featured-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
}



/* Ensure all cards have equal height regardless of text length */
.work-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.work-content {
    flex-grow: 1;
}

.img-box { 
    width: 100%; 
    aspect-ratio: 16/9; 
    border-radius: 16px; 
    overflow: hidden; 
    background: #000; 
    margin-bottom: 20px;
    position: relative;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.5s ease;
    filter: grayscale(20%);
}

/* Hover Effects */
.work-card:hover {
    background: rgba(167, 139, 250, 0.08);
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(167, 139, 250, 0.1);
}

.work-card:hover .img-box img {
    opacity: 1;
    transform: scale(1.08);
    filter: grayscale(0%);
}

.work-content h3 {
    color: #FFF;
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.work-card .muted {
    color: #999;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}


/* Responsive adjustment for tablets/mobile */
@media (max-width: 1024px) {
    .featured-grid { grid-template-columns: 1fr; }
}
/* 11. GENERAL ELEMENTS */
.label { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: #555; font-weight: 600; margin-bottom: 24px; }
.about-text { font-size: 2rem; line-height: 1.4; font-weight: 400; color: #FFF; margin-bottom: 20px; }
.highlight { background: rgba(34, 197, 94, 0.2); color: #86efac; padding: 0 4px; border-radius: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pills span { border: 1px solid #333; background: #111; padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; color: #BBB; }
.muted { color: #666; font-size: 0.9rem; }

/* 12. FOOTER */
footer { padding: 60px 0; border-top: 1px solid #1A1A1A; color: #444; font-size: 0.85rem; position: relative; z-index: 2; }

/* 13. RESPONSIVE */
@media (max-width: 900px) {
    .container-narrow, .profile-left { margin-left: 0; padding: 0 20px; }
    .hero-content { margin-top: -60px; }
    .profile-row { flex-direction: column; align-items: flex-start; }
    .profile-text { max-width: 100%; }
    .blog-card-long, .blog-card-long.reflected { flex-direction: column; padding: 40px 20px; }
    .checker-overlay { grid-area: auto; width: 100%; margin: 20px 0; position: static; }
    .vol-card { flex-direction: column; }
    .featured-grid, .edu-item { grid-template-columns: 1fr; flex-direction: column; gap: 12px; }
    .date-badge { min-width: auto; align-self: flex-start; }
}
/* ALL PREVIOUS SAVED STYLES UNTOUCHED, ADDING NEW LOGIC BELOW */

/* HEADER BUTTON GROUP */
.cta-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.grades-button {
    border: 2px solid #10b981;
    background: #000100; /* Dark Green Interior */
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.grades-button:hover {
    background: transparent;
    color: #10b981;
}

/* --- INFINITE SEAMLESS SLIDER --- */
.slider {
    height: auto; /* Changed from fixed height to accommodate P tags */
    min-height: 420px; 
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding-bottom: 20px;
}


.slide-track {
    display: flex;
    /* Adjust width based on total number of slides (Original + Duplicates) */
    width: calc(320px * 8); 
    animation: scroll 40s linear infinite;
}

/* Pause animation when user wants to read the description */
.slider:hover .slide-track {
    animation-play-state: paused;
}
.slide:hover {
    border-color: #10b981;
    transform: translateY(-5px);
}

.slide {
    width: 300px;
    margin-right: 20px;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.6;
    border-radius: 16px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.slide img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px 16px 0 0; opacity: 0.7; }
.slide h4 { padding: 15px; color: #fff; font-size: 1rem; }
/* NEW: P Tag Styling */
.slide p {
    padding: 0 15px 20px 15px;
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
    flex-grow: 1; /* Ensures buttons or spacing remain consistent if cards differ in text length */
}
.status-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}
.status-tag.ongoing { background: #A78BFA; color: #fff; }
.status-tag.completed { background: #10b981; color: #fff; }

/* --- UPDATED SLIDER STYLES FOR DESCRIPTIONS --- */








@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-320px * 4)); } /* Move by width of original set */
}


/* --- EDUCATION & CERTIFICATIONS SPLIT --- */
.edu-cert-split {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    align-items: flex-start;
}

.education-block { flex: 1.5; }

.certifications-block {
    flex: 1;
    background: rgba(167, 139, 250, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(167, 139, 250, 0.1);
}


/* RE-APPLYING YOUR SAVED ATMOSPHERIC BLUR FROM BEFORE */
.section::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: blur(1px) brightness(0.1); opacity: 0.45; z-index: -1;
}

/* --- CERTIFICATIONS WITH IMAGES --- */
.cert-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cert-entry {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.cert-entry:hover {
    background: rgba(167, 139, 250, 0.05);
    border-color: rgba(167, 139, 250, 0.2);
}

/* Thumbnail Styling */
.cert-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
}

.cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.3s ease;
}

.cert-entry:hover .cert-thumb img {
    opacity: 1;
    transform: scale(1.1);
}

/* Details Styling */
.cert-details {
    display: flex;
    flex-direction: column;
}

.cert-details p {
    color: #FFF;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
}

.cert-issuer, .cert-id {
    font-size: 0.75rem;
    color: #888;
    display: block;
}

.cert-date {
    font-size: 0.75rem;
    color: #10b981; /* Forest Green */
    font-weight: 600;
    margin-top: 4px;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .cert-entry { flex-direction: column; }
    .cert-thumb { width: 100%; height: 150px; }
}