/*
  Bharathan A C S Portfolio CSS
  Modern, clean, and responsive
*/

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #18122B;
    color: #fff;
    min-height: 100vh;
}

.dark-header {
    background: #1a1333;
    box-shadow: 0 2px 16px #0008;
    padding: 0;
}
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-icon {
    font-size: 2rem;
    color: #a084ee;
}
.nav-bar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-bar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-bar ul li a:hover {
    color: #a084ee;
}

.dark-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}
.hero {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}
.avatar-glow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
}
.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    box-shadow: 0 0 40px 10px #a084ee55, 0 0 0 6px #fff2, 0 0 0 12px #a084ee22;
    background: #fff;
}
.subtitle {
    color: #faf7f7;
    font-size: 1.2rem;
    margin: 0.5rem 0 0.2rem 0;
}
.headline {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.2rem 0 0.7rem 0;
    color: #fff;
    line-height: 1.2;
}
.cover {
    color: #a084ee;
    font-weight: 700;
}
.cover-glow {
    color: #fff;
    background: linear-gradient(90deg, #a084ee 0%, #8f43ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.role {
    font-size: 1.1rem;
    color: #a084ee;
    margin-bottom: 0.5rem;
}
.desc {
    color: #cfc6f8;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.work-exp {
    margin: 2.5rem 0 2rem 0;
    text-align: center;
}
.work-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.work-card {
    background: #231942;
    border-radius: 18px;
    box-shadow: 0 0 24px 0 #a084ee33;
    padding: 1.2rem 1.5rem;
    min-width: 260px;
    max-width: 350px;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.work-icon {
    font-size: 2.2rem;
    color: #a084ee;
    margin-top: 0.2rem;
}

.projects-section {
    margin: 2.5rem 0 2rem 0;
    text-align: center;
}
.project-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.project-card {
    background: #231942;
    border-radius: 18px;
    box-shadow: 0 0 24px 0 #a084ee33;
    padding: 1.2rem 1.5rem;
    min-width: 260px;
    max-width: 350px;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.project-icon {
    font-size: 2.2rem;
    color: #a084ee;
    margin-top: 0.2rem;
}

.skills-section {
    margin: 2.5rem 0 2rem 0;
    text-align: center;
}
.skills-glow {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
.skills-glow span {
    background: #231942;
    color: #a084ee;
    border-radius: 12px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    box-shadow: 0 0 16px 0 #a084ee33;
    margin-bottom: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.education-section {
    margin: 2.5rem 0 2rem 0;
    text-align: center;
}
.edu-card {
    background: #231942;
    border-radius: 18px;
    box-shadow: 0 0 24px 0 #a084ee33;
    padding: 1.2rem 1.5rem;
    color: #fff;
    margin: 1rem auto 1.5rem auto;
    max-width: 400px;
}

.certifications-section {
    margin: 2.5rem 0 2rem 0;
    text-align: center;
}
.certs-glow {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
.certs-glow span {
    background: #231942;
    color: #a084ee;
    border-radius: 12px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    box-shadow: 0 0 16px 0 #a084ee33;
    margin-bottom: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.contact-section {
    margin: 2.5rem 0 2rem 0;
    text-align: center;
}
.contact-glow {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.contact-glow a {
    background: #231942;
    color: #a084ee;
    border-radius: 12px;
    padding: 0.7rem 1.5rem;
    font-size: 1.1rem;
    box-shadow: 0 0 16px 0 #a084ee33;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.contact-glow a:hover {
    background: #a084ee;
    color: #fff;
}

.dark-footer {
    background: #1a1333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0 1rem 0;
    margin-top: 2rem;
    box-shadow: 0 -2px 16px #0008;
}

@media (max-width: 900px) {
    .nav-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0.5rem;
    }
    .dark-main {
        padding: 0 0.5rem 2rem 0.5rem;
    }
    .work-cards, .project-cards, .skills-glow, .certs-glow, .contact-glow {
        flex-direction: column;
        gap: 1rem;
    }
}
