@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

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

:root {
    --bg-color: #000000;
    --second-bg-color: #161616;
    --text-color: #fff;
    --main-color: #7b4bb7;
}

html { font-size: 62.5%; overflow-x: hidden; }
body { background-color: var(--bg-color); color: var(--text-color); }
html ::-webkit-scrollbar { width: 0.8rem; }
html ::-webkit-scrollbar-track { background: var(--bg-color); }
html ::-webkit-scrollbar-thumb { background: var(--main-color); }

.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 3rem 9%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s ease;
    border-bottom: 1px solid transparent;
}
.header.sticky {
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid var(--main-color);
    padding: 2rem 9%;
}
.logo { font-size: 3rem; color: var(--main-color); font-weight: 800; cursor: pointer; transition: 0.5s ease; }
.logo:hover { transform: scale(1.1); }
.navbar a { font-size: 1.8rem; color: var(--text-color); margin-left: 4rem; font-weight: 500; transition: 0.3s ease; border-bottom: 3px solid transparent; }
.navbar a:hover, .navbar a.active { color: var(--main-color); border-bottom: 3px solid var(--main-color); }
#menu-icon { font-size: 3.6rem; color: var(--main-color); display: none; cursor: pointer; }

@media (max-width: 995px) {
    #menu-icon { display: block; }
    .navbar { position: absolute; top: 100%; right: 0; width: 40%; border-left: 3px solid var(--main-color); border-bottom: 3px solid var(--main-color); border-bottom-left-radius: 2rem; padding: 1rem 3%; background-color: var(--second-bg-color); display: none; }
    .navbar.active { display: block; }
    .navbar a { display: block; font-size: 2rem; margin: 3rem 0; }
    .navbar a:hover, .navbar a.active { padding: 1rem; border-radius: 0.5rem; border-bottom: 0.5rem solid var(--main-color); }
}

section { min-height: 100vh; }

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20rem;
    background: var(--bg-color);
    padding-top: 10rem;
}
.home .home-content h1 { font-size: 6rem; font-weight: 700; line-height: 1.3; }
span { color: var(--main-color); }
.home-content h3 { font-size: 4rem; margin-bottom: 1rem; font-weight: 700; }
.home-img img { position: relative; width: 28vw; border-radius: 50%; box-shadow: 0 0 25px var(--main-color); cursor: pointer; margin-left: 10rem; }
.home-img img:hover { transform: scale(1.01); filter: drop-shadow(0 0 25px var(--main-color)); }
.home-content p { font-size: 1.8rem; font-weight: 500; }

/* ── Profiles Wrapper ── */
.profiles-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2.5rem 0 3rem 0;
}
.profiles-group { display: flex; flex-direction: column; gap: 1rem; }
.profiles-label { font-size: 1.1rem; color: #888; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15rem; }
.profiles-divider { width: 1px; height: 6rem; background: linear-gradient(to bottom, transparent, var(--main-color), transparent); margin: 0 0.5rem; align-self: center; }

/* ── Social Icons ── */
.social-icon { display: flex; gap: 1rem; align-items: center; }
.social-icon a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.2rem; height: 4.2rem;
    background: transparent;
    border: 0.15rem solid var(--main-color);
    font-size: 1.8rem;
    border-radius: 1rem;
    color: var(--main-color);
    transition: 0.3s ease;
}
.social-icon a svg { width: 1.9rem; height: 1.9rem; fill: var(--main-color); transition: 0.3s ease; }
.social-icon a .social-favicon { width: 1.8rem; height: 1.8rem; object-fit: contain; border-radius: 0.3rem; transition: 0.3s ease; }
.social-icon a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -3.2rem; left: 50%;
    transform: translateX(-50%);
    background: var(--main-color);
    color: white; font-size: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0; transition: 0.3s ease;
    pointer-events: none; z-index: 10;
}
.social-icon a:hover::after { opacity: 1; }
.social-icon a:hover { color: white; transform: translateY(-4px); background: var(--main-color); box-shadow: 0 0 10px var(--main-color); }
.social-icon a:hover svg { fill: white; }
.social-icon a.fiverr-icon { border-color: #1dbf73; }
.social-icon a.fiverr-icon svg { fill: #1dbf73; }
.social-icon a.fiverr-icon::after { background: #1dbf73; }
.social-icon a.fiverr-icon:hover { background: #1dbf73; border-color: #1dbf73; box-shadow: 0 0 10px #1dbf73; }
.social-icon a.upwork-icon { border-color: #14a800; }
.social-icon a.upwork-icon svg { fill: #14a800; }
.social-icon a.upwork-icon::after { background: #14a800; }
.social-icon a.upwork-icon:hover { background: #14a800; border-color: #14a800; box-shadow: 0 0 10px #14a800; }
/* ── Brand colors ── */
.social-icon a:has(.fa-linkedin) { border-color: #0A66C2; color: #0A66C2; }
.social-icon a:has(.fa-linkedin):hover { background: #0A66C2; border-color: #0A66C2; box-shadow: 0 0 10px #0A66C2; color: white; }
.social-icon a:has(.fa-github) { border-color: #ffffff; color: #ffffff; }
.social-icon a:has(.fa-github):hover { background: #333; border-color: #333; box-shadow: 0 0 10px #333; color: white; }
.social-icon a:has([alt="Indeed"]) { border-color: #003A9B; }
.social-icon a:has([alt="Indeed"]):hover { background: #003A9B; border-color: #003A9B; box-shadow: 0 0 10px #003A9B; }
.social-icon a:has([alt="Glassdoor"]) { border-color: #0CAA41; }
.social-icon a:has([alt="Glassdoor"]):hover { background: #0CAA41; border-color: #0CAA41; box-shadow: 0 0 10px #0CAA41; }
.social-icon a:has([alt="CareerJunction"]) { border-color: #E8401C; }
.social-icon a:has([alt="CareerJunction"]):hover { background: #E8401C; border-color: #E8401C; box-shadow: 0 0 10px #E8401C; }
.social-icon a:has([alt="OfferZen"]) { border-color: #16CB7C; }
.social-icon a:has([alt="OfferZen"]):hover { background: #16CB7C; border-color: #16CB7C; box-shadow: 0 0 10px #16CB7C; }


.btn { display: inline-block; padding: 1rem 2.8rem; background: var(--bg-color); border-radius: 4rem; color: var(--main-color); border: 2px solid var(--main-color); letter-spacing: 0.1rem; font-weight: 600; transition: 0.3s ease; cursor: pointer; }
.btn:hover { transform: scale(1.03); background-color: var(--main-color); color: black; box-shadow: 0 0 25px var(--main-color); }

.typing-text { font-size: 34px; font-weight: 600; min-width: 280px; }
.typing-text span { position: relative; }
.typing-text span::before { content: 'Web Developer'; color: var(--main-color); animation: words 20s infinite; }
.typing-text span::after { content: ''; background: var(--bg-color); position: absolute; width: calc(100% + 8px); height: 100%; border-left: 3px solid var(--bg-color); right: -8px; animation: cursor 0.6s infinite, typing 20s steps(14) infinite; }

@keyframes cursor { to { border-left: 3px solid var(--main-color); } }
@keyframes words {
    0%, 28% { content: 'Web Developer'; }
    33%, 61% { content: 'Software Developer'; }
    66%, 100% { content: 'Full Stack Developer'; }
}
@keyframes typing {
    10%, 15%, 40%, 45%, 70%, 75% { width: 0; }
    5%, 20%, 35%, 50%, 65%, 80% { width: calc(100% + 8px); }
}

@media (max-width: 1000px) { .home { gap: 4rem; } }
@media (max-width: 995px) {
    .home { flex-direction: column; margin: 5rem 4rem; }
    .home .home-content h3 { font-size: 2.5rem; }
    .home-content h1 { font-size: 5rem; }
    .home-img img { width: 70vw; margin-top: 4rem; margin-left: 0; }
    .profiles-divider { display: none; }
    .profiles-wrapper { flex-direction: column; gap: 1.5rem; }
}

/* ── Services ── */
.services { background: var(--second-bg-color); padding: 10rem 9%; }
.heading { text-align: center; font-size: 4.5rem; margin-bottom: 5rem; }
.heading span { color: var(--main-color); }
.services-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.service-box { background-color: var(--main-color); border-radius: 3rem; cursor: pointer; transition: 0.3s ease; padding: 4rem 3rem; }
.service-box:hover { background: transparent; border: 2px solid var(--main-color); transform: scale(1.03); }
.service-info h4 { font-size: 2.5rem; font-weight: 600; margin-bottom: 1rem; }
.service-info p { font-size: 1.6rem; font-weight: 400; line-height: 1.7; }

@media (max-width: 991px) { section { padding: 10rem 3% 2rem; } .services { padding-bottom: 3rem; } .services-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 895px) { .services-container { grid-template-columns: repeat(1, 1fr); } }

/* ── Skills ── */
.skills { background: var(--bg-color); padding: 10rem 9%; }
.skills-category { margin-bottom: 5rem; }
.category-title { font-size: 2rem; font-weight: 600; color: var(--main-color); margin-bottom: 2.5rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--main-color); display: inline-block; }
.skills-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem; }
.skill-card { background: #1f1035; border: 1px solid var(--main-color); border-radius: 1.5rem; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; cursor: pointer; transition: 0.3s ease; }
.skill-card:hover { background: var(--main-color); transform: scale(1.05); box-shadow: 0 0 20px var(--main-color); }
.skill-card i { font-size: 5rem; }
.skill-card img { width: 5rem; height: 5rem; object-fit: contain; }
.skill-card span { font-size: 1.4rem; font-weight: 500; color: var(--text-color); text-align: center; }
@media (max-width: 991px) { .skills-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Education ── */
.education { background: var(--second-bg-color); padding: 10rem 9%; }
.edu-container { display: flex; flex-direction: column; gap: 3rem; max-width: 900px; margin: 0 auto; }
.edu-card { display: flex; align-items: flex-start; gap: 3rem; background: var(--bg-color); border-radius: 2rem; padding: 3rem; border: 1px solid var(--main-color); transition: 0.3s ease; }
.edu-card:hover { box-shadow: 0 0 25px rgba(123,75,183,0.3); transform: scale(1.02); }
.edu-left { display: flex; flex-direction: column; align-items: center; min-width: 12rem; gap: 0.8rem; padding-top: 0.5rem; }
.edu-year { font-size: 1.4rem; font-weight: 700; color: var(--main-color); white-space: nowrap; text-align: center; }
.edu-duration { font-size: 1.2rem; color: #aaa; background: rgba(123,75,183,0.15); padding: 0.3rem 1rem; border-radius: 2rem; border: 1px solid var(--main-color); white-space: nowrap; }
.edu-divider { display: flex; align-items: flex-start; justify-content: center; padding-top: 0.5rem; }
.edu-dot { width: 5rem; height: 5rem; background: var(--main-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white; flex-shrink: 0; }
.edu-right { flex: 1; }
.edu-degree { font-size: 2.2rem; font-weight: 700; color: var(--text-color); margin-bottom: 0.5rem; }
.edu-school { font-size: 1.6rem; color: var(--main-color); font-weight: 500; margin-bottom: 0.4rem; }
.edu-detail { font-size: 1.3rem; color: #aaa; margin-bottom: 1rem; }
.edu-desc { font-size: 1.4rem; color: #ccc; line-height: 1.8; }
@media (max-width: 600px) { .edu-card { flex-direction: column; text-align: center; } .edu-left { flex-direction: row; justify-content: center; gap: 1rem; width: 100%; } }

/* ── Contact Info ── */
.contact-info { display: flex; justify-content: center; flex-wrap: wrap; gap: 3rem; margin-bottom: 4rem; }
.contact-info-item { display: flex; align-items: center; gap: 1rem; font-size: 1.6rem; color: var(--text-color); }
.contact-info-item i { color: var(--main-color); font-size: 2rem; }
.contact-info-item a { color: var(--text-color); transition: 0.3s ease; }
.contact-info-item a:hover { color: var(--main-color); }

/* ── Experience ── */
.experience { background: var(--bg-color); padding: 10rem 9%; }
.experience-container { display: flex; flex-direction: column; gap: 3rem; max-width: 900px; margin: 0 auto; }
.experience-card { display: flex; gap: 3rem; background: var(--second-bg-color); border-radius: 2rem; padding: 3rem; border-left: 5px solid var(--main-color); transition: 0.3s ease; align-items: flex-start; }
.experience-card:hover { transform: translateX(10px); box-shadow: 0 0 25px rgba(123,75,183,0.3); }
.exp-icon { min-width: 7rem; height: 7rem; background: var(--main-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; }
.exp-details { flex: 1; }
.exp-date { font-size: 1.3rem; color: var(--main-color); font-weight: 600; letter-spacing: 0.1rem; }
.exp-role { font-size: 2.4rem; font-weight: 700; margin: 0.5rem 0; color: var(--text-color); }
.exp-company { font-size: 1.5rem; color: #aaa; margin-bottom: 1rem; }
.exp-company i { color: var(--main-color); margin-right: 0.5rem; font-size: 1.4rem; }
.exp-desc { font-size: 1.5rem; font-weight: 400; line-height: 1.8; color: #ccc; margin-bottom: 1.5rem; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 1rem; }
.exp-tags span { background: rgba(123,75,183,0.2); border: 1px solid var(--main-color); color: var(--main-color); padding: 0.4rem 1.2rem; border-radius: 2rem; font-size: 1.3rem; font-weight: 500; }
@media (max-width: 600px) { .experience-card { flex-direction: column; gap: 2rem; } }

/* ── Projects ── */
.projects { background: var(--second-bg-color); padding: 10rem 9%; }
.projects-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.project-card { background: var(--bg-color); border: 1px solid var(--main-color); border-radius: 2rem; padding: 3rem; display: flex; gap: 2rem; align-items: flex-start; transition: 0.3s ease; }
.project-card:hover { box-shadow: 0 0 25px rgba(123,75,183,0.3); transform: translateY(-5px); }
.project-icon { min-width: 5rem; height: 5rem; background: var(--main-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white; flex-shrink: 0; }
.project-info h3 { font-size: 2rem; font-weight: 700; color: var(--text-color); margin-bottom: 1rem; }
.project-info p { font-size: 1.4rem; color: #ccc; line-height: 1.8; margin-bottom: 1.5rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.project-tags span { background: rgba(123,75,183,0.2); border: 1px solid var(--main-color); color: var(--main-color); padding: 0.3rem 1rem; border-radius: 2rem; font-size: 1.2rem; font-weight: 500; }
.project-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.4rem; color: var(--main-color); font-weight: 600; transition: 0.3s ease; border-bottom: 2px solid transparent; }
.project-link:hover { border-bottom: 2px solid var(--main-color); }
@media (max-width: 900px) { .projects-container { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .project-card { flex-direction: column; } }

/* ── Contact ── */
.contact { background: var(--bg-color); padding: 10rem 9%; text-align: center; }
.contact h2 { margin-bottom: 3rem; }
.contact form { max-width: 70rem; margin: 0 auto; text-align: center; }
.contact form .input-box { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.contact form .input-box input { width: 48%; padding: 1.5rem; font-size: 1.6rem; color: var(--text-color); background: var(--second-bg-color); border-radius: 0.8rem; border: 2px solid var(--main-color); }
.contact form textarea { width: 100%; padding: 1.5rem; font-size: 1.6rem; color: var(--text-color); background: var(--second-bg-color); border-radius: 0.8rem; border: 2px solid var(--main-color); margin: 1.5rem 0; resize: none; }
.contact form .btn { margin-top: 1rem; cursor: pointer; }
@media (max-width: 600px) { .contact form .input-box input { width: 100%; } }

/* ── Footer ── */
.footer { background: #0d0d0d; position: relative; width: 100%; padding: 40px 0; }
.footer .social { text-align: center; padding-bottom: 25px; }
.footer .social a { position: relative; font-size: 20px; color: var(--main-color); border: 2px solid var(--main-color); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 1rem; margin: 0 8px; transition: 0.3s ease; }
.footer .social a svg { width: 20px; height: 20px; fill: var(--main-color); transition: 0.3s ease; }
.footer .social a::after { content: attr(data-tooltip); position: absolute; bottom: -3rem; left: 50%; transform: translateX(-50%); background: var(--main-color); color: white; font-size: 1.1rem; padding: 0.3rem 0.8rem; border-radius: 0.5rem; white-space: nowrap; opacity: 0; transition: 0.3s ease; pointer-events: none; }
.footer .social a:hover::after { opacity: 1; }
.footer .social a:hover { transform: translateY(-5px); background: var(--main-color); color: white; box-shadow: 0 0 15px var(--main-color); }
.footer .social a:hover svg { fill: white; }
.footer .social a.fiverr-icon { border-color: #1dbf73; }
.footer .social a.fiverr-icon svg { fill: #1dbf73; }
.footer .social a.fiverr-icon:hover { background: #1dbf73; border-color: #1dbf73; box-shadow: 0 0 15px #1dbf73; }
.footer .social a.upwork-icon { border-color: #14a800; }
.footer .social a.upwork-icon svg { fill: #14a800; }
.footer .social a.upwork-icon:hover { background: #14a800; border-color: #14a800; box-shadow: 0 0 15px #14a800; }
.footer ul { margin: 0; padding: 0; font-size: 18px; line-height: 1.8; text-align: center; }
.footer ul li a { color: var(--text-color); border-bottom: 3px solid transparent; transition: 0.3s ease; }
.footer ul li a:hover { color: var(--main-color); border-bottom: 3px solid var(--main-color); }
.footer ul li { display: inline-block; padding: 0 15px; }
.footer .copyright { margin-top: 50px; text-align: center; font-size: 16px; color: var(--text-color); }

@media (max-width: 991px) { .header { padding: 2rem 3%; } section { padding: 10rem 3% 2rem; } .services { padding-bottom: 7rem; } .footer { padding: 2rem 3%; } }
@media (max-width: 1285px) { html { font-size: 55%; } }

/* ── Thank You Popup ── */
#thank-you-popup { position: fixed; bottom: 3rem; right: 3rem; background: var(--main-color); color: white; padding: 2rem 3rem; border-radius: 1rem; font-size: 1.6rem; display: flex; align-items: center; gap: 1rem; opacity: 0; transform: translateY(2rem); transition: 0.4s ease; z-index: 9999; pointer-events: none; }
#thank-you-popup.show { opacity: 1; transform: translateY(0); }

/* ── Back to Top ── */
.back-to-top { position: fixed; bottom: 3rem; right: 3rem; width: 5rem; height: 5rem; background: var(--main-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; opacity: 0; pointer-events: none; transition: 0.3s ease; z-index: 999; }
.back-to-top.show { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: white; color: var(--main-color); transform: scale(1.1); }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
