/* General Styles */
:root {
    --primary-color: #6A0DAD; /* Royal Purple - Main branding color */
    --secondary-color: #5A6268; /* Muted Dark Gray - For general text/icons */
    --accent-color: #DAA520; /* Goldenrod - For highlights, links, hover states */
    --text-color: #343a40; /* Very Dark Gray for readability */
    --bg-color-light: #fdfdfd; /* Off-white for main background */
    --bg-color-dark: #eef2f5; /* Light subtle grey for section backgrounds */
    --card-bg: #ffffff; /* Pure white background for cards */
    --border-color: #cdd4da; /* Soft light blue-gray for borders */
    --font-family: 'Poppins', sans-serif;
    --delete-color: #dc3545; /* Standard red for delete/danger actions */
    --shadow-color: rgba(0, 0, 0, 0.08); /* Soft shadow for depth */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color-light);
    scroll-behavior: smooth; /* For smooth scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

h2 {
    font-size: 2.2em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.section-icon {
    margin-right: 15px;
    color: var(--secondary-color);
}

/* Header Section */
.hero-section {
    background-color: var(--primary-color); /* Royal Purple header background */
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly more opaque white for contrast */
    padding: 30px;
    border-radius: 15px;
    display: inline-block;
    max-width: 600px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.profile-pic:hover {
    transform: scale(1.05) rotate(3deg);
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #fff;
}

.hero-section .tagline {
    font-size: 1.2em;
    margin-bottom: 20px;
    opacity: 0.95;
}

.contact-info p {
    margin: 8px 0;
    font-size: 1.1em;
}

.contact-info a {
    color: #fff;
    opacity: 0.9;
}
.contact-info a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Navbar */
.navbar {
    background-color: #550a8a; /* Slightly darker purple for navbar */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #fff;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Main Content Sections */
.resume-section {
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.resume-section:last-child {
    border-bottom: none;
}

/* Education Section */
.education-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
}

.education-item h3 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px var(--shadow-color);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skill-card h3 {
    margin-top: 0;
    color: var(--text-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-links .button {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.project-links .button:hover {
    background-color: var(--accent-color);
}

/* Interests & Languages */
.resume-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.resume-section ul li {
    background-color: var(--bg-color-dark);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.resume-section ul li:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Achievements Section */
.achievement-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-item h3 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

.achievement-item ul {
    list-style: disc;
    padding-left: 20px;
    flex-direction: column;
    gap: 5px;
}

.achievement-item ul li {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-weight: 400;
    color: inherit;
}


/* Footer */
footer {
    background-color: #550a8a; /* Darker purple for footer */
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
}

/* Pop-up / Modal for Skill Details */
.popup {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeInScale 0.3s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
}

#popup-skill-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}
#popup-skill-description {
    font-size: 1em;
    color: var(--text-color);
}

/* Scroll Reveal Animations (JavaScript will add these classes) */
.resume-section:not(.hero-section),
.profile-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.resume-section.fade-in,
.profile-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar .container {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #550a8a; /* Match darker purple for mobile menu */
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 10px 15px var(--shadow-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    h2 {
        font-size: 1.8em;
    }

    /* Skills Grid for smaller screens */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-links {
        justify-content: center;
    }

    .resume-section ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .resume-section ul li {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .achievement-item ul {
        padding-left: 15px;
    }

    .popup-content {
        width: 95%;
        padding: 20px;
    }

    /* Even smaller screens (e.g., very narrow phones) */
    @media (max-width: 480px) {
        .skills-grid {
            grid-template-columns: 1fr;
        }
    }
}