/* ============================================================
   Portfolio — Dark Theme Stylesheet
   ============================================================ */

/* 1. RESET + BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #34353b;
    color: #fbfbfb;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 2. HEADER / NAV
   ============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 100px;
    z-index: 99;
    background: rgba(52, 53, 59, 0.9);
    backdrop-filter: blur(10px);
}

header .logo {
    width: 50px;
    height: 50px;
    background: #ae86ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    color: #34353b;
    cursor: pointer;
    transition: transform 0.3s ease;
}

header .logo:hover {
    transform: scale(1.1);
}

nav ul {
    display: flex;
    gap: 40px;
}

nav ul li a {
    color: #98999a;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ae86ff;
    transition: width 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #fbfbfb;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #3d3e42;
    border-radius: 20px;
    padding: 8px 16px;
    gap: 8px;
}

.search-bar input {
    background: none;
    border: none;
    color: #fbfbfb;
    font-size: 14px;
    outline: none;
    width: 150px;
}

.search-bar input::placeholder {
    color: #98999a;
}

.search-bar i {
    color: #98999a;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-bar i:hover {
    color: #ae86ff;
}

/* 3. HERO / LANDING
   ============================================================ */
.landing {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 100px;
    position: relative;
}

.intro {
    max-width: 600px;
}

.intro h3 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.intro h3 span {
    color: #ae86ff;
}

.contact-btn {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid #ae86ff;
    border-radius: 30px;
    background: transparent;
    color: #fbfbfb;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-btn:hover {
    background: #ae86ff;
    color: #34353b;
}

.socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.socials::before {
    content: '';
    width: 2px;
    height: 120px;
    background: #ae86ff;
}

.socials a {
    color: #fbfbfb;
    font-size: 28px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.socials a:hover {
    color: #ae86ff;
    transform: translateY(-3px);
}

/* 4. ABOUT
   ============================================================ */
.about {
    padding: 100px;
}

.about h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 40px;
}

.about .desc {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.about .desc::before {
    content: '';
    min-width: 80px;
    height: 3px;
    background: #ae86ff;
    margin-top: 14px;
}

.about .desc p {
    font-size: 20px;
    color: #98999a;
    max-width: 700px;
}

.about .desc p span {
    color: #ae86ff;
}

/* 5. SKILLS
   ============================================================ */
.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 100px;
    overflow: hidden;
}

.skills h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 60px;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2.5vh;
    width: 100%;
    max-width: 1200px;
}

.skill-card {
    aspect-ratio: 1;
    background: #3d3e42;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5vh;
    padding: 24px;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    background: #ae86ff;
    transform: translateY(-8px);
}

.skill-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.skill-card h2 {
    font-size: 24px;
    font-weight: 600;
}

.skill-card__icon {
    font-size: 32px;
    color: #ae86ff;
    transition: color 0.3s ease;
}

.skill-card:hover .skill-card__icon {
    color: #fbfbfb;
}

.skill-card__category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #98999a;
}

.skill-card__name {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: #fbfbfb;
}

/* 6. EXPERIENCE
   ============================================================ */
.experience {
    position: relative;
}

.darker-div {
    background: #34353a;
    height: 10vh;
}

.experience h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 56px;
    font-weight: 700;
    position: absolute;
    top: 10%;
    left: 15%;
    color: #fbfbfb;
}

.lighter-div {
    background: #3d3e42;
    padding: 10vh 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.exp {
    width: 50vw;
    margin-left: 20vh;
}

.exp h2 {
    font-size: 32px;
    color: #fbfbfb;
    margin-bottom: 10px;
    position: relative;
    padding-left: 36px;
}

.exp h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ae86ff;
    border-radius: 50%;
    box-shadow: 0 0 12px #ae86ff;
}

.exp-desc {
    position: relative;
    padding-left: 36px;
}

.exp-desc::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    width: 2.5px;
    height: 100%;
    background: #fbfbfb;
}

.exp-desc h3 {
    font-size: 20px;
    color: #ae86ff;
    margin-bottom: 4px;
    padding-top: 8px;
}

.exp-desc p {
    font-size: 16px;
    color: #98999a;
    margin-bottom: 12px;
}

/* 7. EDUCATION
   ============================================================ */
.education {
    position: relative;
}

.education .darker-div {
    background: #34353a;
    height: 10vh;
}

.education h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 56px;
    font-weight: 700;
    position: absolute;
    top: 10%;
    left: 15%;
    color: #fbfbfb;
}

.education .lighter-div {
    background: #3d3e42;
    padding: 10vh 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.education .exp {
    width: 50vw;
    margin-left: 20vh;
}

.education .exp h2 {
    font-size: 32px;
    color: #fbfbfb;
    margin-bottom: 10px;
    position: relative;
    padding-left: 36px;
}

.education .exp h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ae86ff;
    border-radius: 50%;
    box-shadow: 0 0 12px #ae86ff;
}

.education .exp-desc {
    position: relative;
    padding-left: 36px;
}

.education .exp-desc::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    width: 2.5px;
    height: 100%;
    background: #fbfbfb;
}

.education .exp-desc h3 {
    font-size: 20px;
    color: #ae86ff;
    margin-bottom: 4px;
    padding-top: 8px;
}

.education .exp-desc p {
    font-size: 16px;
    color: #98999a;
    margin-bottom: 12px;
}

/* 8. CERTIFICATIONS
   ============================================================ */
.certifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 100px;
}

.certifications h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 60px;
}

.certifications .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.cert-card {
    background: #3d3e42;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-card h3 {
    color: #ae86ff;
    font-size: 20px;
    font-weight: 600;
}

.cert-card p {
    color: #98999a;
    font-size: 14px;
}

.cert-card span {
    color: #98999a;
    font-size: 14px;
}

.cert-card a {
    display: inline-block;
    padding: 8px 20px;
    background: #ae86ff;
    color: #34353b;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.3s ease;
    margin-top: auto;
}

.cert-card a:hover {
    opacity: 0.85;
}

/* 9. PROJECTS / PORTFOLIO
   ============================================================ */
.portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 100px;
}

.portfolio h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 60px;
}

.portfolio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.portfolio-card {
    background: #3d3e42;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 53, 59, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-card:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 24px;
    color: #fbfbfb;
    font-weight: 600;
}

.overlay p {
    font-size: 16px;
    color: #98999a;
}

.overlay a {
    display: inline-block;
    padding: 10px 28px;
    background: #ae86ff;
    color: #34353b;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s ease;
    margin-top: 8px;
}

.overlay a:hover {
    opacity: 0.85;
}

/* 10. PUBLICATIONS
   ============================================================ */
.publications {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 100px;
}

.publications h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 60px;
}

.pub-card {
    background: #3d3e42;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 1000px;
    transition: transform 0.3s ease;
}

.pub-card:hover {
    transform: translateX(8px);
}

.pub-card h3 {
    font-size: 22px;
    color: #fbfbfb;
    margin-bottom: 8px;
    font-weight: 600;
}

.pub-card p {
    font-size: 15px;
    color: #98999a;
    margin-bottom: 6px;
}

.pub-card a {
    color: #ae86ff;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pub-card a:hover {
    color: #fbfbfb;
}

/* 11. CONTACT
   ============================================================ */
.contact-me {
    width: 100vw;
    padding: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-me h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.contact-card {
    background: #ae86ff;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7.5vh;
    color: #34353b;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(174, 134, 255, 0.3);
}

.contact-card i {
    font-size: 18px;
}

/* 12. FOOTER
   ============================================================ */
footer {
    text-align: center;
    padding: 30px;
    color: #98999a;
    font-size: 14px;
    border-top: 1px solid #3d3e42;
}

/* 13. RESPONSIVE
   ============================================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    header {
        padding: 20px 40px;
    }

    nav ul {
        gap: 24px;
    }

    .landing {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 40px;
        gap: 60px;
        height: auto;
        min-height: 90vh;
        padding-top: 100px;
    }

    .intro h3 {
        font-size: 48px;
    }

    .socials {
        flex-direction: row;
        gap: 24px;
    }

    .socials::before {
        display: none;
    }

    .about {
        padding: 60px 40px;
    }

    .about h1 {
        font-size: 42px;
    }

    .about .desc p {
        font-size: 18px;
    }

    .skills {
        padding: 40px;
    }

    .skills h1 {
        font-size: 42px;
    }

    .skills__grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .exp,
    .education .exp {
        width: 65vw;
        margin-left: 10vh;
    }

    .certifications .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-me {
        padding: 60px 40px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    header {
        padding: 16px 24px;
        flex-wrap: wrap;
        gap: 12px;
    }

    nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 14px;
    }

    .search-bar {
        display: none;
    }

    .landing {
        padding: 120px 24px 40px;
    }

    .intro h3 {
        font-size: 36px;
    }

    .contact-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .socials a {
        font-size: 24px;
    }

    .about {
        padding: 40px 24px;
    }

    .about h1 {
        font-size: 32px;
    }

    .about .desc {
        flex-direction: column;
        gap: 20px;
    }

    .about .desc::before {
        min-width: 60px;
        height: 2px;
    }

    .about .desc p {
        font-size: 16px;
    }

    .skills {
        padding: 40px 24px;
    }

    .skills h1 {
        font-size: 32px;
    }

    .skills__grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

    .experience h1,
    .education h1 {
        font-size: 32px;
        left: 10%;
    }

    .exp,
    .education .exp {
        width: 80vw;
        margin-left: 5vh;
    }

    .exp h2,
    .education .exp h2 {
        font-size: 24px;
    }

    .exp-desc h3,
    .education .exp-desc h3 {
        font-size: 18px;
    }

    .exp-desc p,
    .education .exp-desc p {
        font-size: 14px;
    }

    .certifications {
        padding: 40px 24px;
    }

    .certifications h1 {
        font-size: 32px;
    }

    .certifications .cards {
        grid-template-columns: 1fr;
    }

    .portfolio {
        padding: 40px 24px;
    }

    .portfolio h1 {
        font-size: 32px;
    }

    .portfolio-cards {
        grid-template-columns: 1fr;
    }

    .overlay h3 {
        font-size: 20px;
    }

    .overlay p {
        font-size: 14px;
    }

    .publications {
        padding: 40px 24px;
    }

    .publications h1 {
        font-size: 32px;
    }

    .pub-card h3 {
        font-size: 18px;
    }

    .pub-card p {
        font-size: 14px;
    }

    .contact-me {
        padding: 40px 24px;
    }

    .contact-me h1 {
        font-size: 32px;
    }

    .contact {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .contact-card {
        margin-top: 0;
    }

    footer {
        font-size: 12px;
        padding: 20px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .intro h3 {
        font-size: 28px;
    }

    .skills__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .exp,
    .education .exp {
        width: 90vw;
        margin-left: 1rem;
    }
}
