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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

*::selection {
    background: #00abf0;
    color: #081b29;
}

body {
    background: #081b29;
    color: #ededed;
}

/* ─── HEADER ─────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(6px);
    background: rgba(8, 27, 41, 0.7);
}

.logo {
    position: relative;
    font-size: 25px;
    color: #ededed;
    text-decoration: none;
    font-weight: 600;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay: .4s;
}

.navbar a {
    font-size: 16px;
    color: #ededed;
    text-decoration: none;
    font-weight: 500;
    margin-left: 30px;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: #00abf0;
}

/* ─── HOME ───────────────────────────────────────── */
.home {
    height: 100vh;
    background: #081b29;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.home-content {
    max-width: 600px;
    z-index: 101;
}

.home-content h1 {
    position: relative;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
}

.home-content h1::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content h3 {
    position: relative;
    font-size: 28px;
    font-weight: 700;
    color: #00abf0;
    margin-top: 6px;
}

.home-content h3::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay: 1.3s;
}

.home-content p {
    position: relative;
    font-size: 15px;
    line-height: 1.7;
    margin: 20px 0 40px;
    color: #b0c4d8;
}

.home-content p::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay: 1.6s;
}

.home-content .btn-box {
    position: relative;
    display: flex;
    gap: 20px;
    height: 50px;
}

.home-content .btn-box::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay: 1.9s;
    z-index: 2;
}

.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 100%;
    background: #00abf0;
    border: 2px solid #00abf0;
    border-radius: 8px;
    font-size: 17px;
    color: #081b29;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box a:hover { color: #00abf0; }

.btn-box a:nth-child(2) {
    background: transparent;
    color: #00abf0;
}

.btn-box a:nth-child(2):hover { color: #081b29; }
.btn-box a:nth-child(2)::before { background: #00abf0; }

.btn-box a::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: #081b29;
    z-index: -1;
    transition: .5s;
}

.btn-box a:hover::before { width: 100%; }

.home-sci {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    position: relative;
}

.home-sci::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay: 2.5s;
    z-index: 2;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00abf0;
    border-radius: 50%;
    font-size: 20px;
    color: #00abf0;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci a:hover { color: #081b29; }

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: #00abf0;
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before { width: 100%; }

/* ─── HOME PHOTO ─────────────────────────────────── */
.home-photo {
    flex-shrink: 0;
    z-index: 101;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

.home-photo-wrap {
    width: 340px;
    height: 420px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    overflow: hidden;
    border: 4px solid #00abf0;
    box-shadow: 0 0 40px #00abf040, 0 0 80px #00abf015;
    position: relative;
}

.home-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(1.05) contrast(1.05);
}

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

/* ─── SECTION SHARED ─────────────────────────────── */
section {
    padding: 80px 10%;
}

.heading {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
}

.heading span {
    color: #00abf0;
}

/* ─── ABOUT ──────────────────────────────────────── */
.about {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
    background: #0a2035;
}

.about-img {
    position: sticky;
    top: 100px;
    height: 460px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #00abf030;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-subheading {
    font-size: 20px;
    color: #00abf0;
    margin-bottom: 14px;
}

.about-text {
    font-size: 15px;
    line-height: 1.8;
    color: #b0c4d8;
    margin-bottom: 36px;
}

.edu-box,
.awards-box {
    margin-bottom: 36px;
}

.edu-box h3,
.awards-box h3 {
    font-size: 20px;
    color: #00abf0;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #00abf030;
}

.edu-item {
    margin-bottom: 22px;
    padding-left: 16px;
    border-left: 3px solid #00abf0;
}

.edu-year {
    font-size: 12px;
    color: #00abf0;
    font-weight: 600;
    letter-spacing: .5px;
}

.edu-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0 2px;
}

.edu-item h4 span {
    color: #00abf0;
    font-weight: 400;
}

.edu-item p {
    font-size: 14px;
    color: #b0c4d8;
}

.edu-item small {
    font-size: 12px;
    color: #6e8fa8;
    line-height: 1.6;
    display: block;
    margin-top: 4px;
}

.awards-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.awards-box ul li {
    font-size: 14px;
    color: #b0c4d8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.awards-box ul li i {
    color: #00abf0;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ─── EXPERIENCE ─────────────────────────────────── */
.experience {
    background: #081b29;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #00abf030;
}

.timeline-item {
    width: 48%;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item.left {
    left: 0;
    padding-right: 30px;
    text-align: right;
}

.timeline-item.right {
    left: 52%;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00abf0;
    top: 18px;
}

.timeline-item.left::before  { right: -7px; }
.timeline-item.right::before { left: -7px; }

.timeline-content {
    background: #0a2035;
    border: 1px solid #00abf020;
    border-radius: 10px;
    padding: 22px 24px;
    transition: border-color .3s, transform .3s;
}

.timeline-content:hover {
    border-color: #00abf0;
    transform: translateY(-4px);
}

.timeline-date {
    font-size: 12px;
    color: #00abf0;
    font-weight: 600;
    letter-spacing: .5px;
}

.timeline-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 6px 0 2px;
}

.timeline-content h4 {
    font-size: 13px;
    color: #6e8fa8;
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.timeline-item.left .timeline-content ul {
    text-align: right;
}

.timeline-content ul li {
    font-size: 13px;
    color: #b0c4d8;
    line-height: 1.6;
    position: relative;
    padding-left: 14px;
}

.timeline-item.left .timeline-content ul li {
    padding-left: 0;
    padding-right: 14px;
}

.timeline-content ul li::before {
    content: '▸';
    color: #00abf0;
    position: absolute;
    left: 0;
    font-size: 11px;
}

.timeline-item.left .timeline-content ul li::before {
    left: auto;
    right: 0;
}

/* ─── SKILLS ─────────────────────────────────────── */
.skills-section {
    background: #0a2035;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.skill-card {
    background: #081b29;
    border: 1px solid #00abf020;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    transition: border-color .3s, transform .3s;
}

.skill-card:hover {
    border-color: #00abf0;
    transform: translateY(-6px);
}

.skill-card i {
    font-size: 36px;
    color: #00abf0;
    margin-bottom: 14px;
}

.skill-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
}

.skill-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-card ul li {
    font-size: 13px;
    color: #b0c4d8;
}

/* Publications */
.publications {
    margin-bottom: 50px;
}

.publications h3,
.certifications h3 {
    font-size: 22px;
    color: #00abf0;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #00abf030;
}

.pub-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #081b29;
    border: 1px solid #00abf020;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: border-color .3s;
}

.pub-item:hover { border-color: #00abf0; }

.pub-item i {
    font-size: 24px;
    color: #00abf0;
    flex-shrink: 0;
    margin-top: 2px;
}

.pub-item p {
    font-size: 13px;
    color: #b0c4d8;
    line-height: 1.7;
}

.pub-item a {
    color: #00abf0;
    text-decoration: none;
}

.pub-item a:hover { text-decoration: underline; }

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.cert-grid span {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #081b29;
    border: 1px solid #00abf020;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    color: #b0c4d8;
    transition: border-color .3s;
}

.cert-grid span:hover { border-color: #00abf0; }

.cert-grid span i {
    color: #00abf0;
    font-size: 18px;
    flex-shrink: 0;
}

/* ─── VOLUNTEERING ───────────────────────────────── */
.volunteering {
    background: #0a2035;
}

.volunteer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.volunteer-card {
    background: #081b29;
    border: 1px solid #00abf020;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .3s, transform .3s;
}

.volunteer-card:hover {
    border-color: #00abf0;
    transform: translateY(-4px);
}

.volunteer-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #ededed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.volunteer-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.volunteer-content {
    padding: 24px;
}

.volunteer-date {
    font-size: 12px;
    color: #00abf0;
    font-weight: 600;
    letter-spacing: .5px;
}

.volunteer-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 12px;
}

.volunteer-content p {
    font-size: 13px;
    line-height: 1.8;
    color: #b0c4d8;
}

/* ─── CONTACT ────────────────────────────────────── */
.contact {
    background: #081b29;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.contact-item {
    background: #0a2035;
    border: 1px solid #00abf020;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: border-color .3s, transform .3s;
}

.contact-item:hover {
    border-color: #00abf0;
    transform: translateY(-4px);
}

.contact-item i {
    font-size: 32px;
    color: #00abf0;
    margin-bottom: 12px;
}

.contact-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-item p,
.contact-item a {
    font-size: 13px;
    color: #b0c4d8;
    text-decoration: none;
    word-break: break-word;
    transition: color .3s;
}

.contact-item a:hover { color: #00abf0; }

.contact-cta {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 36px;
    background: #00abf0;
    border: 2px solid #00abf0;
    border-radius: 8px;
    font-size: 16px;
    color: #081b29;
    text-decoration: none;
    font-weight: 600;
    transition: .4s;
}

.btn:hover {
    background: transparent;
    color: #00abf0;
}

.btn-outline {
    background: transparent;
    color: #00abf0;
}

.btn-outline:hover {
    background: #00abf0;
    color: #081b29;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
    background: #050f18;
    padding: 30px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #00abf020;
}

.footer p {
    font-size: 14px;
    color: #6e8fa8;
}

.footer-sci {
    display: flex;
    gap: 14px;
}

.footer-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #00abf0;
    border-radius: 50%;
    color: #00abf0;
    font-size: 18px;
    text-decoration: none;
    transition: .3s;
}

.footer-sci a:hover {
    background: #00abf0;
    color: #081b29;
}

/* ─── KEYFRAMES ──────────────────────────────────── */
@keyframes showRight {
    100% { width: 0; }
}


/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
    .about { grid-template-columns: 1fr; }
    .about-img { position: relative; top: auto; height: 320px; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .cert-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }

    .timeline::before { left: 16px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 44px !important; padding-right: 0 !important; text-align: left !important; }
    .timeline-item::before { left: 9px !important; right: auto !important; }
    .timeline-item.left .timeline-content ul { text-align: left; }
    .timeline-item.left .timeline-content ul li { padding-left: 14px; padding-right: 0; }
    .timeline-item.left .timeline-content ul li::before { left: 0; right: auto; }
}

@media (max-width: 768px) {
    section { padding: 60px 6%; }
    .header { padding: 16px 6%; }
    .navbar a { margin-left: 16px; font-size: 14px; }
    .home { padding: 80px 6% 60px; flex-direction: column-reverse; justify-content: center; height: auto; gap: 30px; }
    .home-content h1 { font-size: 36px; }
    .home-content h3 { font-size: 22px; }
    .home-photo-wrap { width: 220px; height: 270px; }
    .skills-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .volunteer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .contact-cta { flex-direction: column; align-items: center; }
    .footer { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .contact-grid { grid-template-columns: 1fr; }
    .home-content h1 { font-size: 28px; }
    .btn-box { flex-direction: column; height: auto; gap: 14px; }
    .btn-box a { width: 100%; }
}
