/* ===== Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Quicksand:wght@500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: white;
    line-height: 1.6;
    min-height: 100vh;
    background: linear-gradient(to bottom, #3a0068, #000000);
    background-attachment: fixed;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
    padding-top: 80px; /* Space for fixed nav */
}


@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== Static Navigation Bar ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 25px 0;
    background: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    z-index: 1000;
    font-family: 'Quicksand', sans-serif;
}

nav a {
    color: white;
    text-decoration: none; /* Removes underlines */
    font-weight: 700;
    font-size: 1.3rem; /* Increased from 1.1rem */
    padding: 5px 15px;
    transition: all 0.3s ease;
    position: relative;
}

nav a {
    /* existing styles */
    transition: transform 0.3s ease, color 0.3s ease;
}

nav a:hover {
    transform: scale(1.15);
    color: #d3a8ff;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15%;
    width: 0%;
    height: 3px;
    background: #d3a8ff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 70%;
}


/* ===== Hero Section ===== */
.hero {
    text-align: center;
    margin-top: 50px;
    padding: 40px 20px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #b388ff;
    margin: 0 auto 25px;
    display: block;
}

.hero h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 3rem;
    margin: 20px 0 10px;
    color: white;
}

.tagline {
    font-size: 1.5rem;
    margin: 15px auto;
    color: #b388ff;
}

.intro {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 20px;
    text-align: center;
}

/* ===== Page Containers ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Page Headers ===== */
h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #b388ff;
    text-align: center;
    padding-top: 20px;
}

/* ===== Active States ===== */
body.home nav a[href="index.html"],
body.projects nav a[href="projects.html"],
body.work nav a[href="work.html"], 
body.education nav a[href="education.html"],
body.skills nav a[href="skills.html"],
body.contact nav a[href="contact.html"] {
    color: #b388ff;
    transform: scale(1.15);
}

body.home nav a[href="index.html"]::after,
body.projects nav a[href="projects.html"]::after,
body.work nav a[href="work.html"]::after,
body.education nav a[href="education.html"]::after,
body.skills nav a[href="skills.html"]::after,
body.contact nav a[href="contact.html"]::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15%;
    width: 70%;
    height: 3px;
    background: #b388ff;
    border-radius: 3px;
}

/* ===== Skills Page ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ... (rest of your existing styles) ... */
.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.skill-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.skill-name {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: white;
}

/* Empty item for symmetry */
.skill-item.empty {
    visibility: hidden;
}

.progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.progress-bar {
    fill: none;
    stroke: #b388ff;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
}



/* Responsive adjustments */
@media (max-width: 900px) {
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
    .skill-item.empty {
        display: none;
    }
}

@media (max-width: 600px) {
    .skill-icon {
        width: 35px;
        height: 35px;
    }

    .skill-circle {
        width: 90px;
        height: 90px;
    }
}



@media (max-width: 600px) {
    nav {
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px 0;
    }

    nav a {
        font-size: 1.3rem;
        padding: 8px 12px;
    }
}


/* ===== Work/Education Timeline ===== */
.timeline {
    margin-left: 40px; /* Increased left spacing */
    padding-left: 20px;
    padding-bottom: 0px;
    border-left: 2px solid rgba(179, 136, 255, 0.3);
}

.timelineWork {
    margin-left: 40px; /* Increased left spacing */
    padding-left: 20px;
    padding-bottom: 5px;
    border-left: 2px solid rgba(179, 136, 255, 0.3);
}

.timeline-item {
    margin-bottom: 40px;
    padding-left: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #b388ff;
}

.education-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.education-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.education-details {
    flex: 1;
}


/* ===== Projects Grid ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* ===== Contact Page ===== */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 40px auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

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

.contact-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.contact-card a {
    color: #b388ff;
    text-decoration: none;
    word-break: break-all;
}