/* =========================================================
   GUNJAN KARN - PROFESSIONAL PORTFOLIO
   CLEAN & RESPONSIVE STYLE
========================================================= */


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}


/* =========================
   HEADER
========================= */

header {
    width: 94%;
    max-width: 1200px;
    margin: 18px auto 0;
    padding: 14px 22px;

    background: #171717;
    color: white;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 45px;
    height: 45px;

    object-fit: cover;
    border-radius: 50%;
}

header h1 {
    font-size: 22px;
}


/* Header Buttons */

nav ul {
    list-style: none;

    display: flex;
    align-items: center;
    gap: 9px;
}

nav a {
    display: inline-block;

    padding: 9px 14px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s;
}

.cv-nav-btn {
    background: #007bff;
    color: white;
}

.cv-nav-btn:hover {
    background: #005fcc;
}

.create-id-button {
    background: white;
    color: #222;
}

.create-id-button:hover {
    background: #eeeeee;
}


/* =========================
   GENERAL SECTION
========================= */

section {
    width: 94%;
    max-width: 1200px;

    margin: 20px auto;

    padding: 40px;

    background: white;

    border-radius: 15px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.section-heading {
    text-align: center;

    margin-bottom: 30px;
}

.section-heading span {
    display: block;

    color: #007bff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 6px;
}

.section-heading h2 {
    font-size: 30px;
}


/* =========================
   HOME
========================= */

.hero-section {
    padding: 35px 40px;
}

.hero-content {
    max-width: 1050px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-small-title {
    color: #007bff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.hero-text h2 {
    font-size: 40px;

    line-height: 1.15;

    margin: 8px 0;
}

.hero-text h2 span {
    color: #007bff;
}

.hero-text h3 {
    font-size: 17px;

    margin-bottom: 12px;
}

.hero-text p {
    max-width: 650px;

    color: #555;

    font-size: 15px;
}


/* Home Photo */

.hero-image {
    width: 210px;

    flex-shrink: 0;

    display: flex;

    justify-content: center;
}

.hero-image img {
    width: 190px;
    height: 190px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid white;

    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.15);
}


/* Home Buttons */

.hero-buttons {
    display: flex;

    gap: 10px;

    margin-top: 18px;
}

.primary-btn,
.secondary-btn {
    padding: 9px 17px;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 600;

    transition: 0.3s;
}

.primary-btn {
    background: #007bff;

    color: white;
}

.primary-btn:hover {
    background: #005fcc;
}

.secondary-btn {
    background: #222;

    color: white;
}

.secondary-btn:hover {
    background: #444;
}


/* =========================
   ABOUT
========================= */

.about-container {
    max-width: 950px;

    margin: auto;
}

.about-content h3 {
    font-size: 23px;

    margin-bottom: 12px;
}

.about-content p {
    color: #555;

    font-size: 15px;

    margin-bottom: 11px;
}


/* About Information */

.about-highlights {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-top: 20px;
}

.about-highlights div {
    padding: 14px;

    background: #f4f8ff;

    border-left: 4px solid #007bff;

    border-radius: 8px;
}

.about-highlights strong {
    display: block;

    color: #007bff;

    font-size: 12px;
}

.about-highlights span {
    font-size: 13px;
}


/* =========================
   JOURNEY
========================= */

.journey-content {
    max-width: 850px;

    margin: auto;

    text-align: center;
}

.journey-content p {
    color: #555;

    margin-bottom: 13px;

    font-size: 15px;
}


/* =========================
   FEATURED PROJECT
========================= */

.featured-project-container {
    max-width: 1050px;

    margin: auto;

    padding: 28px;

    background: #f3f7ff;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.featured-project-content {
    flex: 1;
}

.project-label {
    color: #007bff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.featured-project-content h3 {
    font-size: 25px;

    margin: 7px 0 10px;
}

.featured-project-content p {
    color: #555;

    font-size: 14px;

    margin-bottom: 9px;
}


/* Features */

.project-features {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin: 15px 0;
}

.project-features span {
    background: white;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 600;
}


/* Featured Icons */

.featured-project-icon {
    display: flex;

    gap: 12px;
}

.featured-project-icon div {
    width: 80px;
    height: 80px;

    background: white;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 38px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);
}


/* Create Button */

.create-cv-btn {
    display: inline-block;

    padding: 10px 17px;

    background: #007bff;

    color: white;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 600;

    transition: 0.3s;
}

.create-cv-btn:hover {
    background: #005fcc;
}


/* =========================
   PROJECTS
========================= */

.portfolio-intro {
    max-width: 650px;

    margin: -10px auto 25px;

    text-align: center;

    color: #666;

    font-size: 14px;
}

.portfolio-grid {
    max-width: 1050px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.project {
    padding: 25px 20px;

    text-align: center;

    background: white;

    border: 1px solid #eeeeee;

    border-radius: 13px;

    transition: 0.3s;
}

.project:hover {
    transform: translateY(-5px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.project-icon {
    font-size: 40px;

    margin-bottom: 10px;
}

.project h3 {
    font-size: 18px;

    margin-bottom: 7px;
}

.project p {
    color: #666;

    font-size: 13px;
}


/* Project Tags */

.project-tags {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 13px;
}

.project-tags span {
    padding: 4px 8px;

    background: #eaf3ff;

    color: #007bff;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 600;
}


/* =========================
   RESUME
========================= */

.resume-container {
    max-width: 800px;

    margin: auto;

    text-align: center;
}

.resume-content {
    padding: 28px;

    background: #f5f8ff;

    border-radius: 13px;
}

.resume-content h3 {
    font-size: 21px;

    margin-bottom: 9px;
}

.resume-content p {
    color: #666;

    font-size: 14px;

    margin-bottom: 18px;
}

.resume-btn {
    display: inline-block;

    padding: 10px 18px;

    background: #222;

    color: white;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 600;
}

.resume-btn:hover {
    background: #444;
}


/* =========================
   SKILLS
========================= */

.skills-container {
    max-width: 1050px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.skill-card {
    padding: 21px 15px;

    text-align: center;

    border: 1px solid #eeeeee;

    border-radius: 12px;

    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.07);
}

.skill-icon {
    font-size: 31px;

    margin-bottom: 7px;
}

.skill-card h3 {
    font-size: 15px;

    margin-bottom: 6px;
}

.skill-card p {
    color: #666;

    font-size: 12px;
}


/* =========================
   WHAT I DO
========================= */

.services-container {
    max-width: 900px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.service-card {
    padding: 25px 18px;

    text-align: center;

    background: #f7f9fc;

    border-radius: 12px;
}

.service-card h3 {
    font-size: 17px;

    margin-bottom: 7px;
}

.service-card p {
    color: #666;

    font-size: 13px;
}


/* =========================
   CONTACT
========================= */

.contact-container {
    max-width: 950px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;
}

.contact-info,
.contact-message {
    padding: 25px;

    background: #f7f9fc;

    border-radius: 12px;
}

.contact-info h3,
.contact-message h3 {
    font-size: 20px;

    margin-bottom: 10px;
}

.contact-info p,
.contact-message p {
    color: #666;

    font-size: 13px;

    margin-bottom: 13px;
}

.contact-item {
    display: flex;

    flex-direction: column;

    margin-top: 13px;
}

.contact-item strong {
    color: #007bff;

    font-size: 12px;
}

.contact-item a {
    color: #333;

    font-size: 13px;

    word-break: break-word;
}

.contact-item a:hover {
    color: #007bff;
}

.contact-message strong {
    color: #007bff;
}


/* =====================================================
   SMALL CHAT BUTTON + LARGE OPEN CHAT
===================================================== */

.chat-box {
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 125px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

/* Small closed button */

.chat-header {
    padding: 8px 10px;
    background: #007bff;
    color: white;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}


/* Large chat when opened */

.chat-content {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0;
    bottom: 42px;

    width: 320px;
    height: 390px;

    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.18);
}


/* Messages */

.chat-messages {
    flex: 1;

    padding: 12px;

    overflow-y: auto;

    background: white;

    font-size: 13px;
}


/* Message input */

#chatForm {
    display: flex;

    border-top: 1px solid #ddd;

    background: white;
}

#chatInput {
    flex: 1;

    min-width: 0;

    padding: 11px;

    border: none;

    outline: none;

    font-size: 13px;
}

#chatForm button {
    padding: 11px 15px;

    background: #007bff;

    color: white;

    border: none;

    cursor: pointer;

    font-size: 13px;
}

#chatForm button:hover {
    background: #005fcc;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 480px) {

    .chat-box {
        right: 10px;
        bottom: 10px;
        width: 115px;
    }

    .chat-content {
        width: calc(100vw - 25px);
        height: 360px;

        right: 0;
        bottom: 40px;
    }

    .chat-header {
        font-size: 10px;
        padding: 7px 9px;
    }

}
/* =====================================================
   PREMIUM FOOTER
===================================================== */

footer {
    width: 94%;
    max-width: 1200px;

    margin: 25px auto 20px;
    padding: 35px 20px 20px;

    background: linear-gradient(
        135deg,
        #0f172a,
        #172554,
        #1e3a8a
    );

    color: #ffffff;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.25);
}


/* =========================
   NAME
========================= */

.footer-content {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}

.footer-content h3 {
    margin: 0;

    font-size: 26px;

    font-weight: 700;

    letter-spacing: 0.8px;

    color: #ffffff;
}


/* =========================
   JOB TITLE
========================= */

.footer-content p {
    margin: 5px 0 0;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 1.5px;

    color: #67e8f9;
}


/* =========================
   DESCRIPTION
========================= */

.footer-content .footer-description {
    max-width: 600px;

    margin-top: 12px;

    font-size: 12px;

    line-height: 1.7;

    font-weight: 400;

    letter-spacing: 0;

    color: #cbd5e1;
}


/* =========================
   DIVIDER
========================= */

.footer-divider {
    width: 70px;

    height: 2px;

    margin: 22px auto 13px;

    background: #67e8f9;

    border-radius: 20px;
}


/* =========================
   COPYRIGHT
========================= */

.copyright {
    margin: 0;

    font-size: 11px;

    color: #94a3b8;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    footer {
        width: 94%;

        padding: 28px 15px 18px;

        border-radius: 15px;
    }

    .footer-content h3 {
        font-size: 22px;
    }

    .footer-content p {
        font-size: 12px;
    }

    .footer-content .footer-description {
        max-width: 320px;

        font-size: 11px;
    }

    .copyright {
        font-size: 10px;
    }

}