@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ── Keyframes ── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(139,92,246,0.4), 0 0 40px rgba(139,92,246,0.2); }
    50%       { box-shadow: 0 0 35px rgba(139,92,246,0.7), 0 0 70px rgba(139,92,246,0.35); }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes blink {
    0%, 100% { border-color: transparent; }
    50%       { border-color: #8b5cf6; }
}
@keyframes particleFloat {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}
@keyframes revealUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ── Reset & Base ── */
* { padding: 0; margin: 0; box-sizing: border-box; }

body {
    font-family: "Poppins", sans-serif;
    background: #0f0f1a;
    color: #e2e8f0;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* ── Particle Canvas ── */
#particles-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f0f1a; }
::-webkit-scrollbar-thumb { background: linear-gradient(#8b5cf6, #ec4899); border-radius: 3px; }

p { color: #94a3b8; }
a, .btn { transition: all 300ms ease; }

/* ── Nav ── */
nav, .nav-links { display: flex; }

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(139,92,246,0.15);
    animation: fadeInDown 0.6s ease both;
}

.nav-links {
    gap: 1.5rem;
    list-style: none;
    font-size: 0.95rem;
}

a {
    color: #e2e8f0;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    transition: width 0.3s ease;
    border-radius: 2px;
}

a:hover::after { width: 100%; }

a:hover {
    color: #c4b5fd;
    text-decoration: none;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #06b6d4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.logo:hover { cursor: default; }
/* ── Hamburger ── */
#hamburger-nav { display: none; }

.hamburger-menu { position: relative; display: inline-block; }

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px; width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%; height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.menu-links {
    position: absolute;
    top: 100%; right: 0;
    background: rgba(15,15,26,0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 1rem;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.menu-links a {
    display: block;
    padding: 8px 16px;
    text-align: center;
    font-size: 0.95rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-links a:hover { color: #c4b5fd; background: rgba(139,92,246,0.1); }
.menu-links li { list-style: none; }
.menu-links.open { max-height: 400px; }

.hamburger-icon.open span:first-child  { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:last-child   { transform: rotate(-45deg) translate(10px, -6px); }


/* ── Sections ── */
section {
    padding-top: 5vh;
    padding-bottom: 5vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
    position: relative;
    z-index: 1;
}

.section-container { display: flex; }

/* ── Profile ── */
#profile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
    min-height: 90vh;
}

.section_pic-container {
    display: flex;
    height: 400px; width: 400px;
    margin: auto 0;
    position: relative;
}

/* glowing ring around profile pic */
.section_pic-container::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #06b6d4);
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

.section_pic-container img {
    border-radius: 50%;
    width: 100%; height: 100%;
    object-fit: cover;
    animation: float 4s ease-in-out infinite;
}

.section_text {
    align-self: center;
    text-align: center;
    animation: fadeInRight 0.8s ease both;
}

.section_text p { font-weight: 800; color: #94a3b8; }

.section_text_p1 {
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8b5cf6 !important;
}

.section_text_p2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #c4b5fd !important;
    font-weight: 400;
}

/* typed cursor effect */
.section_text_p2::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
    color: #8b5cf6;
    margin-left: 2px;
}

#rotating-role {
    display: inline-block;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.title {
    font-size: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #fff 30%, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title1 {
    font-size: 2.2rem;
    text-align: center;
    background: linear-gradient(135deg, #fff 30%, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* section label above titles */
.section_text_p1 {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8b5cf6 !important;
    margin-bottom: 0.5rem;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1.2rem;
}

.icon {
    cursor: pointer;
    height: 2rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: invert(1) opacity(0.85);
}

.icon:hover {
    transform: scale(1.2) translateY(-3px);
    filter: invert(1) brightness(1.3) drop-shadow(0 0 6px #8b5cf6);
}

/* profile pic and project images should NOT be inverted */
.section_pic-container img,
.about-pic,
.project-img {
    filter: none !important;
}

/* contact link icons — small, no invert override needed */
.contact-link-item .icon { height: 1.1rem; cursor: default; filter: invert(1) opacity(0.75); }

/* ── Buttons ── */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 0.6rem 1.2rem;
    width: 9rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before { width: 300px; height: 300px; }

.btn-color-1 {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}

.btn-color-1:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139,92,246,0.6);
}

.btn-color-2 {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(139,92,246,0.5);
}

.btn-color-2:hover {
    background: rgba(139,92,246,0.15);
    border-color: #8b5cf6;
    color: #c4b5fd;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}

/* ── About ── */
#about { position: relative; }

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
}

.about-containers, .about-details-container { display: flex; }

.about-pic {
    border-radius: 2rem;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
    animation: float 2s ease-in-out infinite;
    filter: invert(1) opacity(0.5);
}

/* ── Cards ── */
.details-containers {
    padding: 1.5rem;
    flex: 1;
    border-radius: 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(139,92,246,0.2);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.details-containers:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(139,92,246,0.25);
    border-color: rgba(139,92,246,0.5);
}

.details-containers h3 { color: #e2e8f0; }

.section-container {
    gap: 4rem;
    height: 80%;
}

.section_pic-container {
    height: 400px; width: 400px;
    margin: auto 0;
}

/* ── Skills ── */
#experience { position: relative; }

.experience-sub-title {
    color: #c4b5fd;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1.5rem;
}

article {
    flex: 46%;
    max-width: 46%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    transition: background 0.3s ease;
}

article:hover { background: rgba(139,92,246,0.08); }
article .icon { cursor: default; }
article h3 { color: #e2e8f0; font-size: 0.95rem; }
article p  { font-size: 0.8rem; color: #64748b; }

#Education { position: relative; }

/* ── Projects ── */
#projects { position: relative; }

.color-container {
    border-color: rgba(139,92,246,0.25);
    background: rgba(255,255,255,0.03);
}

.project-img {
    border-radius: 1rem;
    width: 90%; height: 90%;
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

.details-containers:hover .project-img { transform: scale(1.04); }

.project-title {
    margin: 1rem;
    color: #e2e8f0;
}

.project-btn {
    color: #c4b5fd;
    border-color: rgba(139,92,246,0.4);
}

/* ── Footer ── */
footer {
    min-height: 10vh;
    margin: 0 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(139,92,246,0.15);
    background: rgba(15,15,26,0.8);
}

footer p {
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
}

footer .nav-links a { color: #64748b; font-size: 1rem; }
footer .nav-links a:hover { color: #c4b5fd; }

/* ── Contact ── */
#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 50vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: 1px solid rgba(139,92,246,0.25);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    padding: 1rem 2rem;
    transition: box-shadow 0.3s ease;
}

.contact-info-upper-container:hover {
    box-shadow: 0 8px 40px rgba(139,92,246,0.2);
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem;
}

.contact-info-container p { font-size: larger; color: #94a3b8; }
.contact-info-container { cursor: default; }

/* ── Scroll reveal base ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* fallback — if JS fails or is slow, show everything */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* ── Internship Section ── */
#internship { position: relative; }

.internship-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.internship-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
    border-radius: 4px 0 0 4px;
}

.internship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(139,92,246,0.25);
    border-color: rgba(139,92,246,0.5);
}

.internship-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.internship-role {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.internship-company {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.internship-type {
    font-size: 0.85rem;
    color: #64748b;
}

.internship-date {
    display: inline-block;
    font-size: 0.85rem;
    color: #8b5cf6;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.25);
    padding: 0.2rem 0.75rem;
    border-radius: 2rem;
}

.internship-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.internship-badge.current {
    background: rgba(6,182,212,0.15);
    color: #06b6d4;
    border: 1px solid rgba(6,182,212,0.3);
    animation: glowPulse 2.5s ease-in-out infinite;
}

.internship-badge.past {
    background: rgba(139,92,246,0.1);
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,0.25);
}

.internship-points {
    list-style: none;
    margin-bottom: 1.2rem;
}

.internship-points li {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0.3rem 0 0.3rem 1.5rem;
    position: relative;
}

.internship-points li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-size: 1rem;
}

.internship-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.internship-tags span {
    font-size: 0.78rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    background: rgba(139,92,246,0.1);
    color: #c4b5fd;
    border: 1px solid rgba(139,92,246,0.2);
    transition: background 0.2s ease;
}

.internship-tags span:hover {
    background: rgba(139,92,246,0.25);
}

/* ── Skills Accordion ── */
.skills-accordion {
    max-width: 860px;
    margin: 2rem auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-group {
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 1.2rem;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.skill-group.open {
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 8px 32px rgba(139,92,246,0.2);
}

.skill-group-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease;
}

.skill-group-header:hover {
    background: rgba(139,92,246,0.08);
    color: #c4b5fd;
}

.skill-group.open .skill-group-header {
    background: rgba(139,92,246,0.1);
    color: #c4b5fd;
}

.skill-arrow {
    font-size: 1.2rem;
    transition: transform 0.35s ease;
    color: #8b5cf6;
}

.skill-group.open .skill-arrow {
    transform: rotate(180deg);
}

.skill-group-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.3s ease;
    padding: 0 1.8rem;
}

.skill-group.open .skill-group-body {
    max-height: 800px;
    padding: 0.5rem 1.8rem 1.5rem;
}

.skill-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(139,92,246,0.08);
    flex-wrap: wrap;
}

.skill-row:last-child { border-bottom: none; }

.skill-label {
    min-width: 180px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #8b5cf6;
    padding-top: 0.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags.solo {
    padding: 0.5rem 0;
}

.skill-tags span {
    font-size: 0.8rem;
    padding: 0.25rem 0.85rem;
    border-radius: 2rem;
    background: rgba(139,92,246,0.1);
    color: #c4b5fd;
    border: 1px solid rgba(139,92,246,0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.skill-tags span:hover {
    background: rgba(139,92,246,0.25);
    transform: translateY(-2px);
}

/* ── Nav Dropdown ── */
.nav-dropdown { position: relative; }

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15,15,26,0.97);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 140px;
    z-index: 200;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.nav-submenu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    white-space: nowrap;
    color: #94a3b8;
}

.nav-submenu li a:hover { color: #c4b5fd; background: rgba(139,92,246,0.1); }
.nav-submenu li a::after { display: none; }

.nav-dropdown:hover .nav-submenu { display: block; }

/* ── Contact Form ── */
#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 50vh;
}

.contact-form {
    max-width: 640px;
    width: 100%;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8b5cf6;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    color: #e2e8f0;
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #475569; }

.form-group input:focus,
.form-group textarea:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.form-submit-btn {
    width: fit-content;
    align-self: center;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.form-status {
    text-align: center;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

@media screen and (max-width: 600px) {
    .form-row { flex-direction: column; }
    .nav-submenu { left: 0; transform: none; }
}

/* ── Contact info links ── */
.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 1.2rem 0 1.5rem;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 2rem;
    padding: 0.45rem 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-link-item:hover {
    color: #c4b5fd;
    border-color: rgba(139,92,246,0.5);
    background: rgba(139,92,246,0.1);
    transform: translateY(-2px);
}

.contact-link-item::after { display: none; }
.contact-link-item .icon { height: 1.1rem; cursor: default; filter: invert(1) opacity(0.75); }

/* ── Education Cards ── */
.edu-card {
    width: 240px;
    border-radius: 1.2rem;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139,92,246,0.2);
}

.edu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139,92,246,0.3);
}

.edu-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    filter: none !important;
    transition: transform 0.4s ease;
}

.edu-card:hover .edu-thumb { transform: scale(1.05); }

/* dim backdrop + modal */
.edu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(5px);
    z-index: 500;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.edu-backdrop.active { display: flex; }

.edu-modal {
    background: #1a1a2e;
    border: 1px solid rgba(139,92,246,0.4);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    cursor: default;
    box-shadow: 0 20px 60px rgba(139,92,246,0.4);
    animation: fadeInUp 0.3s ease;
}

.edu-modal h4 {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.edu-modal p {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.edu-modal-close {
    position: absolute;
    top: 0.75rem; right: 1rem;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.edu-modal-close:hover { color: #f87171; }

/* ── Certificates Grid ── */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin: 2rem 0;
}

.cert-grid .details-containers {
    flex: 0 1 calc(33.33% - 1.2rem);
    min-width: 200px;
    max-width: 280px;
}

@media screen and (max-width: 900px) {
    .cert-grid .details-containers { flex: 0 1 calc(50% - 1.2rem); }
}

@media screen and (max-width: 600px) {
    .cert-grid .details-containers { flex: 0 1 100%; max-width: 100%; }
    .edu-card { width: 100%; }
}

/* ── Internship Detail Modal ── */
.intern-detail-btn {
    margin-top: 1rem;
    width: auto;
    padding: 0.5rem 1.2rem;
    font-size: 0.82rem;
    align-self: flex-start;
}

.intern-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(6px);
    z-index: 600;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.intern-backdrop.active { display: flex; }

.intern-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(139,92,246,0.4);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 70px rgba(139,92,246,0.35);
    animation: fadeInUp 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.intern-modal::-webkit-scrollbar { width: 4px; }
.intern-modal::-webkit-scrollbar-thumb { background: #8b5cf6; border-radius: 2px; }

.intern-modal-close {
    position: absolute;
    top: 1rem; right: 1.2rem;
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.3);
    color: #f87171;
    font-size: 0.9rem;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}

.intern-modal-close:hover { background: rgba(248,113,113,0.25); }

.intern-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(139,92,246,0.15);
    flex-wrap: wrap;
}

.intern-modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.intern-modal-header h3 {
    font-size: 0.88rem;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.intern-modal-header span {
    font-size: 0.78rem;
    color: #8b5cf6;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.25);
    padding: 0.2rem 0.7rem;
    border-radius: 2rem;
    display: inline-block;
}

.intern-modal-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.intern-modal-points li {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.65;
    padding: 0.6rem 0.8rem 0.6rem 2rem;
    position: relative;
    background: rgba(139,92,246,0.05);
    border-radius: 0.6rem;
    border-left: 2px solid rgba(139,92,246,0.3);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.intern-modal-points li:hover {
    background: rgba(139,92,246,0.1);
    border-left-color: #8b5cf6;
}

.intern-modal-points li::before {
    content: '▹';
    position: absolute;
    left: 0.6rem;
    color: #8b5cf6;
    font-size: 0.9rem;
}
