/* =========================================================
   SUMIT GYAWALI — RESPONSIVE CYBERSECURITY PORTFOLIO
   ========================================================= */

:root {
    --bg: #06111d;
    --bg-soft: #0a1826;
    --surface: rgba(10, 25, 40, 0.78);
    --surface-strong: #0c1c2d;
    --text: #f5f8fb;
    --muted: #a9b8c8;
    --accent: #16c7f5;
    --accent-2: #008dff;
    --border: rgba(22, 199, 245, 0.22);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --header-height: 76px;
    --container: 1180px;
    --radius: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container,
.header-container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

/* ========================= HEADER ========================= */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(4, 15, 27, 0.82);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background .25s ease, box-shadow .25s ease;
}

.site-header.scrolled {
    background: rgba(4, 15, 27, 0.96);
    box-shadow: 0 10px 30px rgba(0,0,0,.24);
}

.header-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 42px);
}

.nav-link {
    position: relative;
    padding: 28px 0 24px;
    color: #dce7f1;
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15px;
    height: 2px;
    transform: scaleX(0);
    background: var(--accent);
    transition: transform .2s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--accent); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.header-right {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #dbe6ef;
    font-size: .85rem;
    font-weight: 700;
}

.lang {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 4px;
    transition: color .2s ease;
}

.lang:hover,
.lang.active { color: var(--accent); }

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: var(--text);
}

/* ========================= SECTIONS ========================= */

.page-section {
    min-height: 100svh;
    position: relative;
}

.home-section {
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 70px) 0 60px;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(3, 14, 25, .96) 0%,
            rgba(3, 14, 25, .84) 35%,
            rgba(3, 14, 25, .35) 68%,
            rgba(3, 14, 25, .74) 100%),
        url("../images/Cybersecurity.jpg") center right / cover no-repeat;
}

.home-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 78% 45%, rgba(0, 178, 255, .17), transparent 28%),
        linear-gradient(180deg, rgba(0,0,0,.05), rgba(2,10,18,.52));
    pointer-events: none;
}

.home-container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .55fr);
    gap: 60px;
    align-items: center;
}

.home-content {
    max-width: 760px;
}

.small-heading,
.section-label {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .28em;
}

.small-heading {
    margin-bottom: 12px;
}

.home-content h1 {
    margin-bottom: 12px;
    font-size: clamp(3rem, 7vw, 5.7rem);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 850;
}

.home-content h2 {
    max-width: 850px;
    margin-bottom: 24px;
    font-size: clamp(1.15rem, 2.2vw, 1.7rem);
    line-height: 1.35;
    color: #eef5fa;
}

.home-description {
    max-width: 650px;
    margin-bottom: 30px;
    color: #b9c9d8;
    font-size: clamp(.98rem, 1.5vw, 1.08rem);
}

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 50px;
    padding: 12px 23px;
    border-radius: 999px;
    font-weight: 750;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #03111d;
    background: linear-gradient(135deg, #15d2f7, #059bea);
    box-shadow: 0 12px 30px rgba(0, 170, 255, .22);
}

.btn-secondary {
    color: var(--text);
    background: rgba(5, 18, 31, .42);
    border-color: rgba(255,255,255,.55);
}

.home-tags,
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.home-tags span,
.skill-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(22, 199, 245, .34);
    border-radius: 999px;
    background: rgba(5, 19, 32, .56);
    color: #dcecf6;
    font-size: .78rem;
    font-weight: 650;
}

.home-card {
    width: min(100%, 380px);
    justify-self: end;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(4, 17, 29, .72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.card-line {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.card-line:last-of-type {
    border-bottom: 0;
}

.card-label {
    margin-bottom: 3px;
    color: #7890a5;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.card-value {
    color: #eef7fc;
    font-weight: 700;
}

.availability {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    color: #c8d9e5;
    font-size: .85rem;
}

.availability-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #31e48c;
    box-shadow: 0 0 12px rgba(49,228,140,.7);
}

/* ========================= CONTENT SECTIONS ========================= */

.content-section,
.contact-section {
    padding: 110px 0;
    background: #f5f8fb;
    color: #0a1724;
}

.section-dark {
    padding: 110px 0;
    background: #071522;
    color: var(--text);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.section-heading h2 {
    margin-top: 7px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
}

.section-description {
    margin-top: 14px;
    color: #607285;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
    gap: 70px;
    align-items: center;
}
.about-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.35);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   ABOUT TEXT - JUSTIFIED ONLY
========================================= */

.about-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.about-content p {
    margin: 0 0 20px 0;

    font-size: 16px;
    line-height: 1.8;

    color: #333;

    /* Fully justified text */
    text-align: justify;
    text-justify: inter-word;
}

/* Remove extra space after the last paragraph */
.about-content p:last-child {
    margin-bottom: 0;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .about-content {
        width: 95%;
    }

    .about-content p {
        font-size: 15px;
        line-height: 1.75;

        text-align: justify;
        text-justify: inter-word;
    }
}


@media (max-width: 500px) {

    .about-content {
        width: 100%;
    }

    .about-content p {
        font-size: 14px;
        line-height: 1.7;

        text-align: justify;
        text-justify: inter-word;
    }
}
/* =========================================
   MY JOURNEY SECTION
========================================= */

.journey-section {
    padding: 90px 8%;
    background: #ffffff;
}

.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 55px;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-heading p {
    color: #666;
    line-height: 1.7;
}


/* =========================================
   JOURNEY TABLE
========================================= */

.journey-table {
    max-width: 1150px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}


/* Each row */

.journey-row {
    display: grid;
    grid-template-columns: 120px 1.5fr 1fr;
    border-bottom: 1px solid #e5e7eb;
}

.journey-row:last-child {
    border-bottom: none;
}


/* =========================================
   TABLE HEADER
========================================= */

.journey-header {
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748b;
}

.journey-header > div {
    padding: 18px 25px;
}


/* =========================================
   COLUMNS
========================================= */

.journey-year-column {
    padding: 30px 25px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.journey-experience-column {
    padding: 30px 30px;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.journey-skills-column {
    padding: 30px;
}


/* =========================================
   YEAR
========================================= */

.journey-year {
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
}

.current-year {
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}


/* =========================================
   EXPERIENCE
========================================= */

.journey-type {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.journey-experience-column h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.journey-duration,
.journey-location {
    margin: 6px 0;
    font-size: 0.85rem;
    color: #64748b;
}

.journey-duration i,
.journey-location i {
    margin-right: 6px;
}

.journey-experience-column > p:not(.journey-duration):not(.journey-location):not(.journey-learning) {
    margin-top: 15px;
    color: #555;
    line-height: 1.7;
}


/* =========================================
   SKILLS BOXES
========================================= */

.skill-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skill-box {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #dbe2ea;
    border-radius: 7px;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    transition: 0.2s ease;
}

.skill-box:hover {
    transform: translateY(-2px);
}


/* =========================================
   CURRENT CYBERSECURITY ROW
========================================= */

.journey-current {
    background: #fafcff;
}

.current-type {
    font-weight: 800;
}

.journey-learning {
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.6;
}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 850px) {

    .journey-section {
        padding: 70px 5%;
    }

    .journey-row {
        grid-template-columns: 90px 1fr;
    }

    .journey-header {
        display: none;
    }

    .journey-skills-column {
        grid-column: 2;
        padding: 0 25px 30px;
        border-left: 1px solid #e5e7eb;
    }

    .journey-experience-column {
        border-right: none;
    }

    .journey-year-column {
        padding: 30px 15px;
    }
}


@media (max-width: 600px) {

    .journey-section {
        padding: 60px 20px;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .journey-row {
        display: block;
    }

    .journey-year-column {
        justify-content: flex-start;
        padding: 22px 22px 5px;
    }

    .journey-experience-column {
        padding: 15px 22px 20px;
        border: none;
    }

    .journey-skills-column {
        padding: 0 22px 25px;
        border: none;
    }

    .journey-experience-column h3 {
        font-size: 1.15rem;
    }

    .skill-box {
        font-size: 0.75rem;
        padding: 7px 10px;
    }
}
```

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.skill-card {
    min-height: 100%;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius);
    background: rgba(255,255,255,.035);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--border);
    background: rgba(255,255,255,.055);
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 13px;
    color: var(--accent);
    background: rgba(22,199,245,.1);
    font-size: 1.2rem;
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.skill-card p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .92rem;
}

.skill-tags span {
    font-size: .72rem;
    background: rgba(0,0,0,.16);
}

/* ========================= CONTACT ========================= */

.contact-grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border: 1px solid #e2e8ed;
    border-radius: 13px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 38, 60, .08);
}

.contact-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #e8f8fd;
    color: #009dd0;
}

.contact-item strong,
.contact-item small {
    display: block;
}

.contact-item small {
    margin-top: 2px;
    color: #718093;
}

.contact-form {
    padding: 28px;
    border: 1px solid #e0e7ed;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 20px 60px rgba(15,38,60,.06);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #233548;
    font-size: .88rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #d6e0e7;
    border-radius: 10px;
    outline: none;
    padding: 12px 14px;
    color: #152638;
    background: #f9fbfc;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(22,199,245,.12);
}

.form-submit {
    width: 100%;
}

/* ========================= FOOTER ========================= */

.site-footer {
    padding: 25px 0;
    background: #04101b;
    color: #8ea1b3;
    text-align: center;
    font-size: .85rem;
}

/* ========================= RESPONSIVE ========================= */

@media (max-width: 1000px) {
    .home-container {
        grid-template-columns: 1fr;
    }

    .home-card {
        display: none;
    }

    .home-section {
        background-position: 72% center;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-image-wrapper {
        justify-items: start;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 68px;
    }

    .container,
    .header-container {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header {
        height: var(--header-height);
    }

    .header-right {
        right: 0;
        gap: 10px;
    }

    .main-nav {
        position: fixed;
        left: 14px;
        right: 14px;
        top: var(--header-height);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: rgba(5, 17, 29, .97);
        box-shadow: 0 25px 60px rgba(0,0,0,.35);
        backdrop-filter: blur(18px);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        padding: 14px 16px;
        border-radius: 10px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(22,199,245,.08);
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .home-section {
        min-height: 100svh;
        padding: calc(var(--header-height) + 48px) 0 48px;
        background-position: 68% center;
    }

    .home-section::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: rgba(2, 10, 18, .25);
        pointer-events: none;
    }

    .home-content h1 {
        font-size: clamp(2.7rem, 14vw, 4.4rem);
    }

    .home-content h2 {
        font-size: 1.12rem;
    }

    .home-description {
        font-size: .94rem;
    }

    .home-buttons {
        width: 100%;
    }

    .btn {
        flex: 1 1 180px;
    }

    .home-tags {
        gap: 7px;
    }

    .content-section,
    .section-dark,
    .contact-section {
        padding: 78px 0;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 460px) {
    .language-switcher {
        gap: 4px;
    }

    .header-right {
        gap: 8px;
    }

    .home-section {
        background-position: 70% center;
    }

    .home-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .home-tags span {
        font-size: .7rem;
    }

    .about-image {
        width: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
