/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #00002a;
    color: white;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    background-color: #12123e;
    padding: 0 40px;
    box-shadow: 0 2px 12px rgba(112, 0, 254, 0.35);
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgb(170, 107, 228);
    white-space: nowrap;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 22px;
}

.nav-links ul li a {
    text-decoration: none;
    color: #ddd;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.nav-links ul li a:hover {
    color: rgb(170, 107, 228);
}

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-icon div {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

/* ===== HR DIVIDERS ===== */
main hr {
    border: 0;
    background: linear-gradient(to right, transparent, #9c97f1, transparent);
    height: 1.5px;
    margin: 0 60px;
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 70px 80px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    color: white;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: rgb(112, 0, 254);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 80px 80px;
    flex-wrap: wrap;
    gap: 40px;
    min-height: calc(100vh - 70px);
}

.hero-left {
    flex: 1;
    min-width: 300px;
}

.hero-greeting {
    font-size: 1.15rem;
    color: rgb(0, 213, 255);
    margin-bottom: 8px;
}

.hero-name {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #bbb;
    margin-bottom: 4px;
}

#element {
    font-size: 1.8rem;
    color: rgb(170, 107, 228);
    font-weight: 600;
    min-height: 2.2rem;
    display: inline-block;
}

.hero-buttons {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background-color: rgb(112, 0, 254);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-size: 0.97rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
    background-color: rgb(88, 0, 210);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(112, 0, 254, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgb(112, 0, 254);
    color: white;
}

.btn-outline:hover {
    background-color: rgb(112, 0, 254);
}

.hero-right {
    flex: 1;
    min-width: 260px;
    display: flex;
    justify-content: center;
}

.hero-right img {
    width: 100%;
    max-width: 460px;
}

.purple {
    color: rgb(170, 107, 228);
}

/* ===== ABOUT ===== */
.about-container {
    background: linear-gradient(135deg, #12123e, #18185a);
    border-radius: 14px;
    padding: 36px 44px;
    box-shadow: 0 8px 30px rgba(112, 0, 254, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.02rem;
    color: #ddd;
    line-height: 1.85;
}

.about-text strong {
    color: rgb(170, 107, 228);
}

.about-details {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgb(0, 213, 255);
    font-size: 0.93rem;
}

.detail-item i {
    color: rgb(170, 107, 228);
    font-size: 1rem;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, #12123e, #18185a);
    border-radius: 14px;
    padding: 30px 28px;
    box-shadow: 0 4px 20px rgba(112, 0, 254, 0.15);
    border-left: 4px solid rgb(112, 0, 254);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(112, 0, 254, 0.35);
}

.service-icon {
    font-size: 2.4rem;
    color: rgb(170, 107, 228);
}

.service-card h3 {
    font-size: 1.05rem;
    color: rgb(0, 213, 255);
    line-height: 1.4;
}

.service-desc {
    font-size: 0.91rem;
    color: #ccc;
    line-height: 1.75;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
}

.service-features li {
    font-size: 0.86rem;
    color: #ddd;
    padding-left: 18px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    background-color: rgb(112, 0, 254);
    border-radius: 50%;
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgb(112, 0, 254), rgb(170, 107, 228), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 52px;
    margin-bottom: 32px;
}

.timeline-dot {
    position: absolute;
    left: 8px;
    top: 20px;
    width: 18px;
    height: 18px;
    background-color: rgb(112, 0, 254);
    border: 3px solid rgb(170, 107, 228);
    border-radius: 50%;
}

.timeline-card {
    background: linear-gradient(135deg, #12123e, #18185a);
    border-radius: 10px;
    padding: 22px 26px;
    box-shadow: 0 4px 20px rgba(112, 0, 254, 0.18);
    border-left: 3px solid rgb(112, 0, 254);
    transition: box-shadow 0.3s, transform 0.2s;
}

.timeline-card:hover {
    box-shadow: 0 6px 28px rgba(112, 0, 254, 0.4);
    transform: translateY(-2px);
}

.timeline-header h3 {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 4px;
}

.company {
    display: block;
    font-size: 0.97rem;
    color: rgb(0, 213, 255);
    font-weight: 600;
    margin-bottom: 2px;
}

.duration {
    display: block;
    font-size: 0.82rem;
    color: #999;
    margin-bottom: 14px;
}

.timeline-desc {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 14px;
}

.timeline-desc li {
    font-size: 0.93rem;
    color: #ccc;
    margin-bottom: 5px;
    line-height: 1.6;
}

/* ===== TECH TAGS (shared) ===== */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tech-tags span {
    background-color: rgba(112, 0, 254, 0.25);
    border: 1px solid rgba(112, 0, 254, 0.55);
    color: rgb(200, 170, 255);
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.78rem;
}

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.skills-card {
    background: linear-gradient(135deg, #12123e, #18185a);
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 4px 20px rgba(112, 0, 254, 0.15);
    border-top: 3px solid rgb(112, 0, 254);
    transition: transform 0.2s, box-shadow 0.2s;
}

.skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(112, 0, 254, 0.3);
}

.skills-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: rgb(0, 213, 255);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-card h3 i {
    color: rgb(170, 107, 228);
    font-size: 1.1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    background-color: rgba(112, 0, 254, 0.22);
    border: 1px solid rgba(170, 107, 228, 0.35);
    color: #eee;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.83rem;
    transition: background-color 0.2s;
}

.skill-tags span:hover {
    background-color: rgba(112, 0, 254, 0.5);
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: linear-gradient(135deg, #12123e, #18185a);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 4px 20px rgba(112, 0, 254, 0.2);
    border-bottom: 3px solid rgb(112, 0, 254);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(112, 0, 254, 0.4);
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-icon {
    font-size: 2.2rem;
    color: rgb(170, 107, 228);
}

.project-header h3 {
    font-size: 1.08rem;
    color: white;
    line-height: 1.4;
}

.project-date {
    font-size: 0.8rem;
    color: #999;
}

.project-badge {
    display: inline-block;
    background-color: rgba(0, 213, 255, 0.12);
    border: 1px solid rgba(0, 213, 255, 0.35);
    color: rgb(0, 213, 255);
    font-size: 0.76rem;
    padding: 2px 10px;
    border-radius: 20px;
    width: fit-content;
}

.project-desc {
    font-size: 0.92rem;
    color: #ccc;
    line-height: 1.75;
}

/* ===== CERTIFICATIONS ===== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    background: linear-gradient(135deg, #12123e, #18185a);
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(112, 0, 254, 0.18);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 3px solid rgb(170, 107, 228);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(112, 0, 254, 0.35);
}

.cert-icon {
    font-size: 1.8rem;
    color: rgb(170, 107, 228);
    padding-top: 2px;
    min-width: 32px;
}

.cert-info h3 {
    font-size: 0.95rem;
    color: white;
    margin-bottom: 5px;
    line-height: 1.4;
}

.cert-issuer {
    display: block;
    font-size: 0.83rem;
    color: rgb(0, 213, 255);
    margin-bottom: 3px;
}

.cert-date {
    display: block;
    font-size: 0.78rem;
    color: #999;
}

/* ===== EDUCATION ===== */
.edu-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

.edu-card {
    background: linear-gradient(135deg, #12123e, #18185a);
    border-radius: 12px;
    padding: 26px 30px;
    box-shadow: 0 4px 20px rgba(112, 0, 254, 0.2);
    display: flex;
    gap: 22px;
    align-items: flex-start;
    border-right: 3px solid rgb(112, 0, 254);
    transition: box-shadow 0.2s, transform 0.2s;
}

.edu-card:hover {
    box-shadow: 0 8px 28px rgba(112, 0, 254, 0.35);
    transform: translateY(-2px);
}

.edu-icon {
    font-size: 2rem;
    color: rgb(170, 107, 228);
    min-width: 40px;
    padding-top: 3px;
}

.edu-info h3 {
    font-size: 1.08rem;
    color: white;
    margin-bottom: 6px;
}

.edu-institution {
    display: block;
    font-size: 0.93rem;
    color: rgb(0, 213, 255);
    font-weight: 600;
    margin-bottom: 4px;
}

.edu-duration {
    display: block;
    font-size: 0.83rem;
    color: #999;
    margin-bottom: 4px;
}

.edu-grade {
    display: block;
    font-size: 0.9rem;
    color: rgb(170, 107, 228);
    font-weight: 600;
    margin-bottom: 10px;
}

.edu-subjects {
    font-size: 0.87rem;
    color: #bbb;
    line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(135deg, #12123e, #18185a);
    border-radius: 10px;
    padding: 18px 22px;
    box-shadow: 0 4px 16px rgba(112, 0, 254, 0.18);
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #ddd;
    font-size: 0.88rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border-bottom: 2px solid rgb(112, 0, 254);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(112, 0, 254, 0.35);
    background: linear-gradient(135deg, #1a1a5e, #22208a);
    color: white;
}

.contact-card.no-link {
    cursor: default;
}

.contact-card i {
    font-size: 1.5rem;
    color: rgb(170, 107, 228);
    min-width: 28px;
}

/* ===== FOOTER ===== */
footer {
    background-color: #12123e;
    text-align: center;
    padding: 18px;
    color: #888;
    font-size: 0.88rem;
    margin-top: 20px;
    box-shadow: 0 -2px 10px rgba(112, 0, 254, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .section {
        padding: 55px 40px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .hero {
        padding: 60px 40px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #12123e;
        padding: 20px 24px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-links.open {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 14px;
    }

    .nav-links ul li a {
        font-size: 1rem;
    }

    .menu-icon {
        display: flex;
    }

    .section {
        padding: 44px 20px;
    }

    main hr {
        margin: 0 20px;
    }

    .hero {
        padding: 50px 20px;
        flex-direction: column;
        text-align: center;
        min-height: auto;
        gap: 30px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-right {
        width: 100%;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        padding-left: 0;
    }

    .timeline-dot {
        display: none;
    }

    .about-container {
        padding: 22px;
    }

    .edu-card {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-name {
        font-size: 1.65rem;
    }

    #element {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .cert-card {
        flex-direction: column;
        gap: 10px;
    }
}
