/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
    --background: #f8fafc;
    --white: #FFFFFF;
    --charcoal: #1543c3;

    --text: #3A3A3A;
    --muted: #707070;
    --border: #DDDDDD;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.10);

    --radius: 12px;

    --container: 1120px;

    --transition: 0.3s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}


/* =========================================================
   COMMON
========================================================= */

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-light {
    background: var(--white);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 55px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
    color: var(--charcoal);
}

.section-heading > p:last-child {
    margin-top: 18px;
    color: var(--muted);
}


/* =========================================================
   NAVBAR
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--charcoal);
}

.logo span {
    font-size: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--charcoal);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--charcoal);
    font-size: 22px;
    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

/* =================================
   HERO TEXT - FINAL
================================= */
.hero-content{  
    padding-left: 1rem;
    margin: 0.5;
}
/* Introduction paragraph */
.hero-content p {
    margin: 0 0 18px 0;
    line-height: 1.7;
    padding: 0;
}

/* Buttons */
.hero-buttons {
    margin-top: 0;
    gap: 8px;
}
/* Hello, I'm */
.hero-text .eyebrow {
    font-size: 17px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.3;
    margin: 0 0 8px;
    padding: 0;
}

/* Bijana Khadka */
.hero-text h1 {
    font-size: 50px;
    font-weight: 600;
    color: #1d4ed8;
    line-height: 1.05;
    margin: 0 0 12px;
    padding: 0;
}

/* Data Science Enthusiast */
.hero-text h2 {
    font-size: 25px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.3;
    margin: 0 0 10px;
    padding: 0;
}
.hero-content h2{
    margin: 0 0 10px 0;
}
.hero-buttons{
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;

}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 13px 22px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    transition: var(--transition);
}

.btn-primary {
    background: var(--charcoal);
    color: var(--white);
    border: 1px solid var(--charcoal);
}

.btn-primary:hover {
    background: #444;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
}

.btn-secondary:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    padding: 10px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;

    box-shadow: var(--shadow);
}

.image-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 50%;
}


/* =========================================================
   ABOUT
========================================================= */

.about-content {
    max-width: 850px;
}

.about-content p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 17px;
    gap: 8px;
}


/* =========================================================
   SKILLS
========================================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 30px 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.skill-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border: 1px solid var(--border);
    border-radius: 10px;

    color: var(--charcoal);
    font-size: 21px;
}

.skill-card h3 {
    margin-bottom: 8px;
    color: var(--charcoal);
    font-size: 17px;
}

.skill-card p {
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    position: relative;

    padding: 32px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
}

.project-number {
    margin-bottom: 30px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;

    color: #999;
}

.project-card h3 {
    margin-bottom: 13px;

    font-size: 20px;
    color: var(--charcoal);
}

.project-card p {
    color: var(--muted);
    font-size: 14px;
}

.project-tags,
.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 25px;
}

.project-tags span,
.experience-tags span {
    padding: 5px 10px;

    border: 1px solid var(--border);
    border-radius: 20px;

    font-size: 11px;
    font-weight: 500;

    color: #555;
}

.featured-project {
    border-color: #999;
}


/* =========================================================
   EXPERIENCE
========================================================= */

.experience-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 50px;

    max-width: 900px;
    margin: 0 auto;

    padding: 40px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.experience-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.experience-type {
    margin-bottom: 5px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #888;
}

.experience-content h3 {
    font-size: 24px;
    color: var(--charcoal);
}

.experience-content h4 {
    margin: 5px 0 18px;

    font-size: 15px;
    font-weight: 500;
    color: #666;
}

.experience-content > p {
    color: var(--muted);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-container {
    max-width: 950px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 22px;

    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: #999;
}

.contact-card > i {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--charcoal);
    color: var(--white);

    border-radius: 8px;
}

.contact-card span {
    display: block;
    margin-bottom: 2px;

    font-size: 12px;
    color: var(--muted);
}

.contact-card strong {
    display: block;

    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);

    word-break: break-word;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 28px 0;

    background: var(--charcoal);
    color: var(--white);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer p {
    font-size: 13px;
    color: #ddd;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #666;
    border-radius: 50%;

    color: var(--white);

    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white);
    color: var(--charcoal);
}


/* =========================================================
   BACK TO TOP
========================================================= */

#backToTop {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: var(--charcoal);
    color: var(--white);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: var(--transition);
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-3px);
}


/* =========================================================
   SCROLL ANIMATION
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width: 1000px) {

    .hero-content {
        grid-template-columns: 1fr 0.8fr;
        gap: 40px;
    }

    .image-wrapper {
        width: 290px;
        height: 290px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 768px) {

    .section {
        padding: 80px 0;
    }


    /* Mobile Navbar */

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;
        align-items: center;

        padding: 25px;

        background: var(--white);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }


    /* Hero */

    .hero {
        padding-top: 120px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-text h1 {
        letter-spacing: -2px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }


    /* Skills */

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* Projects */

    .projects-grid {
        grid-template-columns: 1fr;
    }


    /* Experience */

    .experience-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* Contact */

    .contact-grid {
        grid-template-columns: 1fr;
    }


    /* Footer */

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

}


@media (max-width: 500px) {

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .image-wrapper {
        width: 240px;
        height: 240px;
    }

    .hero-text h1 {
        font-size: 44px;
    }

    .hero-text h2 {
        font-size: 19px;
    }

    .btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }
}
/* =================================
   HERO PROFILE IMAGE
================================= */

.hero-image {
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}


/* =================================
   HERO LAYOUT
================================= */

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}


/* =================================
   RESPONSIVE
================================= */

@media (max-width: 768px) {

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

}
.hero-content {
    padding-left: 0.5;
    margin-left: 0.5;
}

.hero-content .intro-text,
.hero-content h1,
.hero-content h2,
.hero-content p {
    margin-left: 0.5;
}

.hero-buttons {
    margin-left: 0.5;
}
.section-heading {
    margin-bottom: 10px;
}

#about {
    padding-top: 45px;
    padding-bottom: 75px !important;
}
#skills {
    padding-top: 45px !important;
}
#skills {
    padding-bottom: 85px;
}
#projects {
    padding-top: 45px !important;
}
#contact {
    padding-top: 5px !important;
}
#hero {
    padding-bottom: 35px 
}
.nav-links {
    margin-left: auto;
}
/* Section headings */
.section-heading {
    width: 100%;
    text-align: center;
    margin: 0 auto 20px;
}

.section-heading h2 {
    text-align: center;
    margin: 0 auto;
}
/* ==================== CERTIFICATES ==================== */

#certificates {
    padding: 50px 0;
}

#certificates .section-heading {
    text-align: center;
    margin-bottom: 15px;
}

.certificate-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.certificate-content h3 {
    margin-bottom: 10x;
    font-size: 22px;
}

.certificate-content p {
    margin-bottom: 20px;
}

/* View Certificate Button */
.certificate-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;

    padding: 12px 24px;
    background: #1d4ed8;
    color: #ffffff !important;

    border: 1px solid #1d4ed8;
    border-radius: 6px;

    text-decoration: none !important;
    font-weight: 600;
    cursor: pointer;
}

.certificate-btn:hover {
    background: #ffffff;
    color: #1d4ed8 !important;
}

#certificates {
    padding-top: 45px;
    padding-bottom: 55px !important;
}

/* Reduce gap between Certificates and Contact */
#certificates {
    padding-bottom: 80px !important;
    
}

#contact {
    padding-top: 25px !important;
}
#certificates {
    padding-top: 0.7px !important;
}
/* ================= ABOUT ME ================= */

/* ABOUT ME */
/* ABOUT ME */
#about .section-heading {
    text-align: center;
    margin-bottom: 20px;
}

#about .about-content {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px;
}

#about .about-content p {
    margin: 0;
    text-align: justify;
    line-height: 1.7;
}
.hero-description {
    text-align: justify;
    line-height: 1.7;
    margin: 0 0 18px 0;
}
#contact .section-heading > p {
    text-align: justify;
    line-height: 1.7;
    margin-top: 18px;
}

/* =========================================================
   MOBILE PARAGRAPH SPACING & ALIGNMENT
========================================================= */

@media (max-width: 768px) {

    /* Keep equal space on left and right */
    .section-heading,
    .about-content,
    .hero-text,
    .certificate-content,
    .experience-content {
        width: 100%;
        box-sizing: border-box;
    }

    /* All normal section paragraphs */
    .section-heading > p,
    .about-content p,
    .hero-description,
    .certificate-content p,
    .experience-content > p {
        width: 100%;
        padding-left: 7px;
        padding-right: 7px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
        line-height: 1.7;
        box-sizing: border-box;
    }
}

.hero-description {
    line-height: 1.7;
    margin: 0 0 18px 0;
    text-align: justify;
}

@media (max-width: 768px) {
    .hero-description {
        text-align:justify;
        width: 100%;
        padding-left: 7px;
        padding-right: 7px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
        line-height: 1.7;
        box-sizing: border-box;
        
    }
}

@media (max-width: 768px) {
    .certificate-content p {
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .hero-text {
        width: 100%;
        text-align: center;
    }

    .hero-text .eyebrow,
    .hero-text h1,
    .hero-text h2 {
        text-align: center;
    }
}
.project-card p {
    text-align: justify;
    line-height: 1.7;
    margin-left: 0;
    margin-right: 0;
}

.skill-card p {
    text-align: left;
    
}