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

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

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(rgba(20, 0, 20, 0.8), rgba(50, 0, 50, 0.8)), url('img/purple_acrylic_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: #BE91BE;
    font-weight: 800;
    cursor: pointer;
    text-shadow: 0 0 5px #BE91BE, 0 0 25px #BE91BE;
}

.logo:hover {
    color: white;
    text-shadow: 0 0 5px white, 0 0 25px white;
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #BE91BE;
    border-bottom: 3px solid #BE91BE;
}

/* Sections */
section {
    padding: 10rem 9% 5rem;
}

.page-title {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 5rem;
}

.page-title span {
    color: #BE91BE;
}

/* Experience Cards */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.job-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid #BE91BE;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(190, 145, 190, 0.5);
}

.job-card h2 {
    font-size: 2.5rem;
    color: #BE91BE;
}

.job-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.job-card .date {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #ddd;
}

.job-card ul {
    list-style-type: disc;
    padding-left: 2rem;
}

.job-card li {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 1.5rem;
    border-left: 5px solid #BE91BE;
}

.skill-category h3 {
    font-size: 2rem;
    color: #BE91BE;
    margin-bottom: 1rem;
}

.skill-category p {
    font-size: 1.6rem;
    line-height: 1.5;
}

/* Education & Certifications */
.education-card,
.cert-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 1px solid rgba(190, 145, 190, 0.3);
}

.education-card h2,
.cert-card h3 {
    font-size: 2.2rem;
    color: #BE91BE;
    margin-bottom: 0.5rem;
}

.education-card h3,
.cert-card p {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.education-card .date,
.cert-card .year {
    font-size: 1.4rem;
    color: #ccc;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Menu Dots (Fixed Middle Right) */
.menu-dots {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    z-index: 1000;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.menu-dots .dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu-dots:hover .dot {
    background-color: #BE91BE;
    transform: scale(1.2);
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    /* Hidden by default */
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    transition: right 0.4s ease-in-out;
    z-index: 100;
    border-left: 1px solid #BE91BE;
}

.side-menu.active {
    right: 0;
}

.side-menu a {
    font-size: 2rem;
    color: white;
    padding: 1.5rem 3rem;
    transition: 0.3s ease;
    border-left: 3px solid transparent;
    display: block;
    text-align: left;
}

.side-menu a:hover,
.side-menu a.active {
    color: #BE91BE;
    background: rgba(190, 145, 190, 0.1);
    border-left: 3px solid #BE91BE;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #BE91BE;
}

/* Section Hamburger (Mobile Only) */
.section-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 101;
}

.section-hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Adjust Top Nav for Desktop */
@media (min-width: 996px) {
    #nav-menu {
        display: flex;
        gap: 2rem;
    }

    .hamburger {
        display: none;
        /* Hide old hamburger if present */
    }
}

/* Responsive Design */
@media (max-width: 995px) {
    header {
        padding: 2rem 4%;
    }

    /* Hide old hamburger */
    .hamburger {
        display: none;
    }

    /* Show section hamburger */
    .section-hamburger {
        display: flex;
    }

    /* Keep dots visible */
    .menu-dots {
        display: flex;
    }

    /* Mobile Section Nav */
    #nav-menu {
        display: none;
        /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 2rem 0;
        border-top: 1px solid #BE91BE;
        text-align: center;
    }

    #nav-menu.active {
        display: flex;
    }

    #nav-menu a {
        font-size: 1.6rem;
        margin: 1.5rem 0;
        display: block;
        width: 100%;
    }

    .page-title {
        font-size: 3.5rem;
    }

    .job-card {
        padding: 2rem;
    }

    .job-card h2 {
        font-size: 2rem;
    }

    /* Refine Menu Dots for Mobile */
    .menu-dots {
        right: 10px;
        padding: 8px;
        gap: 6px;
    }

    .menu-dots .dot {
        width: 6px;
        height: 6px;
    }
}