@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Roboto:wght@400;500&display=swap');

:root {
    --neon-main: #ff00cc;
    --neon-sub: #00fff7;
    --bg-dark: #0a0a13;
    --box-bg: rgba(30, 20, 40, 0.95);
    --box-shadow: 0 0 32px 4px var(--neon-main), 0 0 64px 8px var(--neon-sub);
}

body {
    background: #f7f7fa;
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    color: #222;
    padding: 0;
    min-height: 100vh;
    letter-spacing: 0.5px;
}

.navbar {
    width: 100%;
    background: var(--bg-dark);
    box-shadow: 0 0 16px var(--neon-main), 0 0 32px var(--neon-sub);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.7em 0;
    margin-bottom: 48px;
}
.navbar ul {
    display: flex;
    justify-content: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar a {
    color: var(--neon-main);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 10px 18px;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 8px var(--neon-main) inset;
    font-family: 'Orbitron', 'Poppins', Arial, sans-serif;
}
.navbar a:hover, .navbar a:focus {
    background: var(--neon-main);
    color: #fff;
    box-shadow: 0 0 24px var(--neon-main), 0 0 32px var(--neon-sub);
}

.hero-bg {
    background: linear-gradient(120deg, #ffce3a 0% 45%, #f7f7fa 45% 100%);
    border-radius: 20px;
    margin: 18px;
    padding: 0;
    height: 80vh;
    position: relative;
    box-shadow: 0 4px 32px 0 #ffe7a1;
}

.hero-header {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    padding: 48px 48px 0 48px;
}
.hero-left {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 320px;
    max-width: 540px;
}
.hero-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: #222;
}
.hero-role {
    color: #222;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
}
.hero-main {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 18px 0;
    color: #222;
    line-height: 1.1;
}
.hero-main .highlight {
    color: #ffb300;
}
.hero-desc {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 90%;
}
.hero-btns {
    display: flex;
    gap: 16px;
}
.hero-btn {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    border: 2px solid #222;
    background: #fff;
    color: #222;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
    cursor: pointer;
}
.hero-btn.primary {
    background: #ffb300;
    color: #222;
    border: 2px solid #ffb300;
}
.hero-btn:hover {
    background: #222;
    color: #fff;
    border: 2px solid #222;
}
.hero-btn.primary:hover {
    background: #fff;
    color: #ffb300;
    border: 2px solid #ffb300;
}
.hero-right {
    flex: 1 1 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 260px;
    position: relative;
}
.hero-img {
    width: 340px;
    height: 420px;
    object-fit: cover;
    border-radius: 0 0 180px 180px/0 0 220px 220px;
    background: #ffe7a1;
    box-shadow: 0 8px 32px 0 #ffce3a99;
    margin-bottom: -32px;
    margin-right: -32px;
    border: 6px solid #ffce3a;
}

.hero-navbar {
    position: absolute;
    top: 32px;
    right: 48px;
}
.hero-navbar ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hero-navbar a {
    color: #222;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.hero-navbar a:hover {
    background: #ffb300;
    color: #fff;
}

.main-content {
    max-width: 1200px;
    margin: 48px auto 0 auto;
    padding: 0 48px 48px 48px;
    box-sizing: border-box;
    
}
.about-section, .projects-section, .contacts-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 18px 0 #ffe7a1;
    padding: 36px 32px;
    margin-bottom: 36px;
    height:auto;
    width: auto;
}
.about-section {
    font-size: 1.25rem;
    line-height: 2.1;
}
.about-section h2, .projects-section h2, .contacts-section h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2rem;
    color: #ffb300;
    margin-top: 0;
    margin-bottom: 18px;
}
.about-text {
    font-size: 1.18rem;
    line-height: 2.1;
    margin-bottom: 18px;
    color: #222;
}
.about-list {
    margin-top: 24px;
    font-size: 1.13rem;
}
.about-list li {
    margin-bottom: 14px;
}
.about-btns {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.about-section ul, .contacts-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-section li, .contacts-section li {
    font-size: 1.08rem;
    margin-bottom: 12px;
    color: #444;
}
.projects-section .project-card {
    background: #fffbe6;
    border-left: 5px solid #ffb300;
    border-radius: 10px;
    margin-bottom: 32px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px 0 #ffe7a1;
    font-size: 1.13rem;
}
.projects-section .project-card h3 {
    margin: 0 0 12px 0;
    color: #222;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.25rem;
}
.project-tech {
    margin: 14px 0 10px 0;
    color: #ffb300;
    font-weight: 600;
    font-size: 1.08rem;
}
.project-features {
    margin: 0 0 10px 18px;
    padding: 0;
    color: #444;
    font-size: 1.08rem;
    line-height: 1.8;
}
.project-features li {
    margin-bottom: 4px;
    list-style: disc;
}
.project-links {
    margin-top: 10px;
    font-size: 1.08rem;
}
.project-links a {
    color: #222;
    background: #ffb30022;
    border-radius: 6px;
    padding: 3px 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.project-links a:hover {
    background: #ffb300;
    color: #fff;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    font-size: 1.08rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: #fffbe6;
    color: #222;
    text-decoration: none;
    box-shadow: 0 2px 8px 0 #ffe7a1;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.icon-btn svg {
    margin-right: 8px;
}
.icon-btn.github-btn {
    background: #222;
    color: #fff;
}
.icon-btn.github-btn:hover {
    background: #333;
    color: #ffb300;
}
.icon-btn.leetcode-btn {
    background: #fff;
    color: #FFA116;
    border: 2px solid #FFA116;
}
.icon-btn.leetcode-btn:hover {
    background: #FFA116;
    color: #fff;
}
.icon-btn.hackerrank-btn {
    background: #fff;
    color: #2EC866;
    border: 2px solid #2EC866;
}
.icon-btn.hackerrank-btn:hover {
    background: #2EC866;
    color: #fff;
}

.contact-btns {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.contact-btn {
    font-size: 1.08rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: #fffbe6;
    color: #222;
    text-decoration: none;
    box-shadow: 0 2px 8px 0 #ffe7a1;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.contact-btn svg {
    margin-right: 8px;
}
.email-btn {
    border: 2px solid #ffb300;
    color: #ffb300;
    background: #fff;
}
.email-btn:hover {
    background: #ffb300;
    color: #fff;
}
.linkedin-btn {
    border: 2px solid #0A66C2;
    color: #0A66C2;
    background: #fff;
}
.linkedin-btn:hover {
    background: #0A66C2;
    color: #fff;
}

/* Custom scrollbar to match theme */
::-webkit-scrollbar {
    width: 10px;
    background: #fffbe6;
}
::-webkit-scrollbar-thumb {
    background: #ffb300;
    border-radius: 8px;
    border: 2px solid #fffbe6;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffce3a;
}

/* For Firefox */
html {
    scrollbar-color: #ffb300 #fffbe6;
    scrollbar-width: thin;
}

@media (max-width: 1200px) {
    .hero-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 5vw 0 5vw;
    }
    .hero-right {
        align-items: center;
        justify-content: center;
        margin-top: 32px;
        width: 100%;
    }
    .hero-img {
        width: 220px;
        height: 260px;
        margin-bottom: 0;
        margin-right: 0;
    }
    .hero-navbar {
        right: 5vw;
        top: 18px;
    }
}
@media (max-width: 900px) {
    .hero-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 2vw 0 2vw;
    }
    .hero-img {
        width: 160px;
        height: 180px;
    }
    .main-content {
        padding: 0 2vw 24px 2vw;
        max-width: 100vw;
    }
    .about-section, .projects-section, .contacts-section {
        padding: 18px 8px;
    }
    .hero-navbar ul {
        gap: 18px;
    }
}
@media (max-width: 600px) {
    .hero-bg {
        margin: 0;
        border-radius: 0;
        min-height: 0;
        padding-bottom: 24px;
    }
    .hero-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 2vw 0 2vw;
    }
    .hero-title {
        font-size: 1rem;
    }
    .hero-main {
        font-size: 1.5rem;
    }
    .hero-img {
        width: 90px;
        height: 100px;
    }
    .main-content {
        padding: 0 1vw 12px 1vw;
    }
    .about-section, .projects-section, .contacts-section {
        padding: 10px 2vw;
    }
    .hero-navbar {
        right: 2vw;
        top: 8px;
        display: none;
    }
    .hero-navbar ul {
        gap: 8px;
    }
    .hero-navbar a {
        font-size: 0.95rem;
        padding: 4px 6px;
    }
    .about-section {
        font-size: 1.05rem;
    }
    .about-section h2 {
        font-size: 1.3rem;
    }
    .about-text {
        font-size: 1rem;
    }
    .icon-btn {
        font-size: 0.95rem;
        padding: 8px 10px;
    }
}

.skills-section {
    background: #fffbe6;
    border-left: 5px solid #ffb300;
    border-radius: 10px;
    margin-bottom: 36px;
    padding: 32px 32px 24px 32px;
    box-shadow: 0 2px 8px 0 #ffe7a1;
    font-size: 1.18rem;
}
.skills-block {
    background: #fff;
    border-left: 5px solid #ffb300;
    border-radius: 10px;
    margin-bottom: 28px;
    padding: 24px 28px 18px 28px;
    box-shadow: 0 2px 8px 0 #ffe7a1;
}
.skills-section h2 {
    font-size: 2rem;
    color: #ffb300;
    margin-top: 0;
    margin-bottom: 18px;
    font-family: 'Montserrat', Arial, sans-serif;
}
.sub-section-title {
    font-size: 1.22rem;
    color: #ffb300;
    margin-top: 24px;
    margin-bottom: 10px;
    font-family: 'Montserrat', Arial, sans-serif;
    border-left: 4px solid #ffb300;
    padding-left: 12px;
    background: none;
    display: inline-block;
}
.skills-block:first-child .sub-section-title {
    margin-top: 0;
}
.skills-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 8px;
    color: #444;
    font-size: 1.08rem;
    line-height: 2.1;
}
.skills-list li {
    margin-bottom: 10px;
}
.skills-list a {
    color: #222;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}
.skills-list a:hover {
    color: #222;
}
.cert-link {
    display: inline-block;
    margin-top: 7px;
    background: #fffbe6;
    color: #ffb300;
    border: 2px solid #ffb300;
    border-radius: 8px;
    padding: 7px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px 0 #ffe7a1;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.15s;
    cursor: pointer;
    outline: none;
}
.cert-link:hover, .cert-link:focus {
    background: #ffb300;
    color: #fff;
    border: 2px solid #ffb300;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px 0 #ffb30055;
}

.contacts-section {
    background: #fffbe6;
    border-left: 5px solid #ffb300;
    border-radius: 10px;
    margin-bottom: 36px;
    padding: 32px 32px 24px 32px;
    box-shadow: 0 2px 8px 0 #ffe7a1;
    font-size: 1.18rem;
}
.contacts-section h2 {
    font-size: 2rem;
    color: #ffb300;
    margin-top: 0;
    margin-bottom: 18px;
    font-family: 'Montserrat', Arial, sans-serif;
}
.contact-block {
    background: #fff;
    border-left: 5px solid #ffb300;
    border-radius: 10px;
    padding: 24px 28px 18px 28px;
    box-shadow: 0 2px 8px 0 #ffe7a1;
}
.contact-intro {
    font-size: 1.13rem;
    color: #222;
    margin-bottom: 18px;
    line-height: 2;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 8px;
    color: #444;
    font-size: 1.08rem;
    line-height: 2.1;
}
.contact-list li {
    margin-bottom: 10px;
}
.contact-list a {
    color: #222;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}
.contact-list a:hover {
    color: #ffb300;
}

@media (max-width: 600px) {
    .skills-section {
        padding: 14px 6px 10px 6px;
        font-size: 1.02rem;
    }
    .skills-block {
        padding: 10px 4px 8px 8px;
    }
    .skills-section h2 {
        font-size: 1.2rem;
    }
    .sub-section-title {
        font-size: 1.05rem;
        padding-left: 7px;
    }
    .skills-list {
        font-size: 0.98rem;
    }
    .cert-link {
        font-size: 0.95rem;
        padding: 5px 10px;
    }
    .contacts-section {
        padding: 14px 6px 10px 6px;
        font-size: 1.02rem;
    }
    .contact-block {
        padding: 10px 4px 8px 8px;
    }
    .contacts-section h2 {
        font-size: 1.2rem;
    }
    .contact-intro {
        font-size: 0.98rem;
    }
    .contact-list {
        font-size: 0.98rem;
    }
}
