/* =========================================================
   K TEJANYA - CYBERSECURITY PORTFOLIO
   DARK CYBER / NEON GREEN DESIGN
   RESPONSIVE DESKTOP + MOBILE
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: #020708;
    color: #e9f1f1;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --bg: #020708;
    --bg-dark: #010506;
    --bg-card: #071013;

    --green: #00f5a0;
    --green-bright: #00ff9d;
    --green-dark: #00b978;

    --white: #f4f8f8;
    --text: #c7d1d4;
    --muted: #8c9aa0;

    --border: rgba(0, 245, 160, 0.20);

    --shadow-green:
        0 0 20px rgba(0, 245, 160, 0.18),
        0 0 50px rgba(0, 245, 160, 0.08);
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 88px;

    background: rgba(1, 6, 7, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    z-index: 9999;

    backdrop-filter: blur(12px);
}

.nav-container {
    width: min(1500px, 92%);
    height: 100%;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    font-size: 29px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--white);
}

.logo span {
    color: var(--green);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

#navMenu {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link {
    position: relative;

    color: #89979b;

    font-size: 16px;
    font-weight: 600;

    padding: 30px 0;

    transition: 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green);
}

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 19px;

    width: 100%;
    height: 2px;

    background: var(--green);

    box-shadow: 0 0 10px var(--green);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.menu-toggle {
    display: none;

    background: transparent;
    border: 1px solid var(--border);

    color: var(--green);

    font-size: 25px;

    width: 45px;
    height: 45px;

    border-radius: 8px;

    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    padding-top: 88px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(0, 245, 160, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 245, 160, 0.018) 1px,
            transparent 1px
        ),
        #020708;

    background-size: 72px 72px;
}


/* HERO GREEN GLOW */

.hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    right: -150px;
    top: 100px;

    background: rgba(0, 245, 160, 0.035);

    filter: blur(100px);

    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   HERO GRID
   ========================================================= */

.hero-grid {
    width: min(1500px, 92%);
    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);

    gap: 50px;

    align-items: center;

    position: relative;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
    position: relative;
    z-index: 5;

    padding: 55px 0 70px;
}

.eyebrow {
    color: var(--green);

    font-size: 17px;
    font-weight: 800;

    letter-spacing: 7px;

    margin-bottom: 35px;
}


/* =========================================================
   MAIN TITLE
   ========================================================= */

.hero-content h1 {
    font-size: clamp(70px, 6.3vw, 108px);

    line-height: 0.95;

    font-weight: 900;

    letter-spacing: -4px;

    color: var(--white);

    margin-bottom: 30px;
}

.hero-content h1 span {
    display: block;

    color: var(--green);

    text-shadow:
        0 0 20px rgba(0, 245, 160, 0.12);
}


/* =========================================================
   SUBTITLE
   ========================================================= */

.hero-content h2 {
    color: #a9b6ba;

    font-size: clamp(26px, 2.2vw, 40px);

    font-weight: 500;

    margin-bottom: 36px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.hero-description {
    max-width: 650px;

    color: #9eacb0;

    font-size: 18px;

    line-height: 1.9;

    margin-bottom: 40px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 18px;

    flex-wrap: wrap;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 64px;

    padding: 0 28px;

    border-radius: 6px;

    font-size: 17px;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.primary-btn {
    background: var(--green);

    color: #00100a;

    box-shadow:
        0 0 25px rgba(0, 245, 160, 0.15);
}

.primary-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 35px rgba(0, 245, 160, 0.25);
}

.secondary-btn {
    border: 1px solid rgba(0, 245, 160, 0.35);

    background: transparent;

    color: var(--white);
}

.secondary-btn:hover {
    transform: translateY(-3px);

    border-color: var(--green);

    color: var(--green);
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
    position: relative;

    min-height: 620px;

    display: flex;

    align-items: flex-end;

    justify-content: flex-end;

    padding-top: 125px;
}


/* =========================================================
   PROFILE IMAGE
   ========================================================= */

.profile-ring {
    position: absolute;

    top: 15px;
    right: 35px;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    padding: 6px;

    border: 2px solid var(--green);

    background: rgba(0, 245, 160, 0.03);

    box-shadow:
        0 0 0 10px rgba(0, 245, 160, 0.035),
        0 0 0 20px rgba(0, 245, 160, 0.018),
        0 0 35px rgba(0, 245, 160, 0.25);

    z-index: 10;

    overflow: visible;
}


/* OUTER ROTATING RING */

.profile-ring::before {
    content: "";

    position: absolute;

    inset: -18px;

    border-radius: 50%;

    border: 1px solid rgba(0, 245, 160, 0.18);

    animation: profileRotate 12s linear infinite;
}


/* DECORATIVE DOTS */

.profile-ring::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    top: 0;
    right: -35px;

    box-shadow:
        -180px 120px 0 var(--green),
        -50px -35px 0 var(--green);

    opacity: 0.9;
}


@keyframes profileRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ACTUAL PROFILE IMAGE */

.profile-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #061112;

    background: #081012;
}


/* =========================================================
   TERMINAL
   ========================================================= */

.terminal {
    position: relative;

    width: min(720px, 100%);

    min-height: 510px;

    margin-left: auto;

    background:
        linear-gradient(
            145deg,
            rgba(10, 21, 24, 0.97),
            rgba(3, 9, 11, 0.98)
        );

    border: 1px solid rgba(0, 245, 160, 0.13);

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(0, 245, 160, 0.04);

    z-index: 4;
}


/* TERMINAL HEADER */

.terminal-header {
    height: 64px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 24px;

    background: #0d171b;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


/* TERMINAL DOTS */

.terminal-dot {
    width: 15px;
    height: 15px;

    border-radius: 50%;

    display: inline-block;
}

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
}


/* TERMINAL TITLE */

.terminal-title {
    margin-left: 14px;

    color: #8b989d;

    font-size: 16px;
}


/* TERMINAL BODY */

.terminal-body {
    padding: 30px 34px;

    font-family:
        "Courier New",
        Consolas,
        monospace;

    font-size: 17px;

    color: #d2dadd;
}


/* TERMINAL LINES */

.terminal-body p {
    margin-bottom: 20px;
}


/* PROMPT */

.terminal-green {
    color: var(--green);

    font-weight: 700;
}


/* OUTPUT */

.terminal-output {
    color: #94a3a8;

    padding-left: 16px;

    line-height: 1.7;
}

.terminal-output strong {
    color: var(--green);
}


/* CURSOR */

.cursor {
    display: inline-block;

    width: 9px;
    height: 19px;

    margin-left: 5px;

    vertical-align: middle;

    background: var(--white);

    animation: blink 1s infinite;
}


@keyframes blink {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}


/* =========================================================
   COMMON SECTIONS
   ========================================================= */

.section {
    position: relative;

    padding: 120px 4%;

    background: #020708;
}

.dark-section {
    background:
        linear-gradient(
            180deg,
            #020708,
            #03090b
        );
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    width: min(1200px, 100%);

    margin: 0 auto 70px;

    text-align: center;
}

.section-label {
    color: var(--green);

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 5px;

    margin-bottom: 12px;
}

.section-heading h2 {
    color: var(--white);

    font-size: clamp(38px, 4vw, 58px);

    line-height: 1.1;

    margin-bottom: 20px;
}

.section-heading h2 span {
    color: var(--green);
}

.section-description {
    max-width: 750px;

    margin: auto;

    color: var(--muted);

    font-size: 17px;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
    width: min(1250px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: start;
}

.about-text p {
    color: #9eabad;

    font-size: 17px;

    line-height: 1.9;

    margin-bottom: 25px;
}

.about-cards {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.info-card {
    background: #071013;

    border: 1px solid rgba(0, 245, 160, 0.10);

    border-radius: 12px;

    padding: 28px;

    transition: 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);

    border-color: rgba(0, 245, 160, 0.4);

    box-shadow: var(--shadow-green);
}

.info-icon {
    font-size: 30px;

    display: block;

    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--white);

    margin-bottom: 10px;
}

.info-card p {
    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   SKILLS
   ========================================================= */

.skills-grid {
    width: min(1250px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.skill-card {
    background: #071013;

    border: 1px solid rgba(0, 245, 160, 0.10);

    border-radius: 14px;

    padding: 30px;

    transition: 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-7px);

    border-color: rgba(0, 245, 160, 0.35);

    box-shadow: var(--shadow-green);
}

.skill-icon {
    font-size: 32px;

    margin-bottom: 18px;
}

.skill-card h3 {
    color: var(--white);

    font-size: 20px;

    margin-bottom: 20px;
}

.skill-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.skill-tags span {
    color: #aebbc0;

    border: 1px solid rgba(0, 245, 160, 0.13);

    background: rgba(0, 245, 160, 0.025);

    padding: 7px 10px;

    border-radius: 5px;

    font-size: 12px;
}


/* =========================================================
   EXPERIENCE
   ========================================================= */

.timeline {
    width: min(1100px, 100%);

    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 14px;

    top: 0;
    bottom: 0;

    width: 1px;

    background:
        linear-gradient(
            var(--green),
            rgba(0, 245, 160, 0.05)
        );
}

.timeline-item {
    position: relative;

    padding-left: 55px;
}

.timeline-dot {
    position: absolute;

    left: 7px;
    top: 20px;

    width: 15px;
    height: 15px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 15px var(--green);
}

.timeline-card {
    background: #071013;

    border: 1px solid rgba(0, 245, 160, 0.12);

    border-radius: 14px;

    padding: 35px;

    margin-bottom: 30px;
}

.timeline-top {
    display: flex;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 25px;
}

.timeline-card h3 {
    color: var(--white);

    font-size: 26px;
}

.company {
    color: var(--green);

    font-weight: 700;

    margin-top: 5px;
}

.timeline-date {
    color: #8c999e;

    white-space: nowrap;
}

.timeline-card ul {
    padding-left: 20px;
}

.timeline-card li {
    color: #9daaad;

    margin-bottom: 12px;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects-grid {
    width: min(1250px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.project-card {
    position: relative;

    background: #071013;

    border: 1px solid rgba(0, 245, 160, 0.10);

    border-radius: 15px;

    padding: 35px;

    overflow: hidden;

    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);

    border-color: rgba(0, 245, 160, 0.4);

    box-shadow: var(--shadow-green);
}

.project-number {
    position: absolute;

    top: 18px;
    right: 22px;

    color: rgba(0, 245, 160, 0.35);

    font-size: 14px;

    font-weight: 800;
}

.project-icon {
    font-size: 38px;

    margin-bottom: 20px;
}

.project-card h3 {
    color: var(--white);

    font-size: 24px;

    margin-bottom: 15px;
}

.project-card p {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 22px;
}

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.project-tags span {
    color: var(--green);

    border: 1px solid rgba(0, 245, 160, 0.18);

    padding: 6px 10px;

    border-radius: 5px;

    font-size: 12px;
}


/* =========================================================
   EDUCATION
   ========================================================= */

.education-grid {
    width: min(1250px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.education-card {
    position: relative;

    background: #071013;

    border: 1px solid rgba(0, 245, 160, 0.10);

    border-radius: 14px;

    padding: 35px;

    transition: 0.3s ease;
}

.education-card:hover {
    transform: translateY(-7px);

    border-color: rgba(0, 245, 160, 0.35);
}

.education-year {
    color: var(--green);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 18px;
}

.education-icon {
    font-size: 34px;

    margin-bottom: 18px;
}

.education-card h3 {
    color: var(--white);

    font-size: 21px;

    margin-bottom: 10px;
}

.education-card h4 {
    color: var(--green);

    font-size: 14px;

    margin-bottom: 15px;
}

.education-card p {
    color: var(--muted);

    font-size: 14px;

    margin-bottom: 6px;
}

.education-result {
    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    color: #aeb9bd;
}

.education-result strong {
    color: var(--green);
}


/* =========================================================
   CERTIFICATIONS
   ========================================================= */

.certifications-grid {
    width: min(1250px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.certificate-card {
    background: #071013;

    border: 1px solid rgba(0, 245, 160, 0.10);

    border-radius: 14px;

    overflow: hidden;

    transition: 0.3s ease;

    cursor: pointer;
}

.certificate-card:hover {
    transform: translateY(-7px);

    border-color: rgba(0, 245, 160, 0.35);

    box-shadow: var(--shadow-green);
}

.certificate-image-wrapper {
    position: relative;

    width: 100%;

    height: 270px;

    background: #010405;

    overflow: hidden;
}

.certificate-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-image {
    transform: scale(1.03);
}

.certificate-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.65);

    color: var(--green);

    opacity: 0;

    transition: 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-content {
    padding: 28px;
}

.certificate-category {
    color: var(--green);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}

.certificate-content h3 {
    color: var(--white);

    font-size: 21px;

    margin: 10px 0;
}

.certificate-content p {
    color: #a2afb3;

    margin-bottom: 15px;
}

.certificate-content ul {
    padding-left: 18px;

    color: var(--muted);

    font-size: 14px;
}

.certificate-content li {
    margin-bottom: 6px;
}

.view-certificate-btn {
    margin-top: 20px;

    background: transparent;

    border: 1px solid rgba(0, 245, 160, 0.25);

    color: var(--green);

    padding: 10px 15px;

    border-radius: 5px;

    cursor: pointer;

    transition: 0.3s ease;
}

.view-certificate-btn:hover {
    background: var(--green);

    color: #00100a;
}


/* =========================================================
   CERTIFICATE MODAL
   ========================================================= */

.certificate-modal {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.88);

    backdrop-filter: blur(8px);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    z-index: 10000;
}

.certificate-modal.show {
    display: flex;
}

.modal-content {
    position: relative;

    width: min(1000px, 100%);

    max-height: 90vh;

    overflow: auto;

    background: #071013;

    border: 1px solid rgba(0, 245, 160, 0.25);

    border-radius: 14px;

    padding: 30px;

    box-shadow:
        0 0 50px rgba(0, 245, 160, 0.12);
}

.close-modal {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 40px;
    height: 40px;

    border: 1px solid rgba(0, 245, 160, 0.2);

    background: #091215;

    color: white;

    border-radius: 50%;

    font-size: 25px;

    cursor: pointer;

    z-index: 2;
}

.modal-title-area {
    margin-bottom: 20px;
}

.modal-title-area p {
    color: var(--green);

    font-size: 12px;

    letter-spacing: 3px;
}

.modal-title-area h3 {
    color: var(--white);

    font-size: 24px;
}

.modal-image-container {
    width: 100%;
}

.modal-image-container img {
    width: 100%;

    border-radius: 8px;
}


/* =========================================================
   LANGUAGES
   ========================================================= */

.languages-grid {
    width: min(1000px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.language-card {
    text-align: center;

    background: #071013;

    border: 1px solid rgba(0, 245, 160, 0.10);

    border-radius: 14px;

    padding: 30px 20px;

    transition: 0.3s ease;
}

.language-card:hover {
    transform: translateY(-6px);

    border-color: rgba(0, 245, 160, 0.35);

    box-shadow: var(--shadow-green);
}

.language-symbol {
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--green);

    font-size: 28px;

    font-weight: 800;

    margin-bottom: 15px;
}

.language-card h3 {
    color: var(--white);

    font-size: 18px;
}

.language-card p {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-grid {
    width: min(1100px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.contact-card {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 24px;

    background: #071013;

    border: 1px solid rgba(0, 245, 160, 0.10);

    border-radius: 12px;

    transition: 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);

    border-color: rgba(0, 245, 160, 0.35);

    box-shadow: var(--shadow-green);
}

.contact-icon {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 245, 160, 0.06);

    border: 1px solid rgba(0, 245, 160, 0.18);

    border-radius: 10px;

    color: var(--green);

    font-size: 20px;

    font-weight: 800;
}

.contact-card span {
    display: block;

    color: #7f8d92;

    font-size: 13px;

    margin-bottom: 3px;
}

.contact-card strong {
    color: var(--white);

    font-size: 15px;

    word-break: break-word;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: #010506;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    padding: 50px 20px;

    text-align: center;
}

.footer-content {
    width: min(900px, 100%);

    margin: auto;
}

.footer-logo {
    font-size: 28px;

    font-weight: 900;

    letter-spacing: 4px;

    color: var(--white);
}

.footer-logo span {
    color: var(--green);
}

.footer-content p {
    color: #829096;

    margin-top: 12px;
}

.footer-content .copyright {
    font-size: 13px;

    color: #647176;

    margin-top: 20px;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #010506;
}

::-webkit-scrollbar-thumb {
    background: #075d47;

    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green);
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: var(--green);

    color: #00100a;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    #navMenu {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;

        gap: 25px;
    }

    .hero-content h1 {
        font-size: 70px;
    }

    .hero-content h2 {
        font-size: 27px;
    }

    .terminal {
        min-height: 470px;
    }

    .profile-ring {
        width: 140px;
        height: 140px;

        right: 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    /* -----------------------------------------------------
       NAVBAR
       ----------------------------------------------------- */

    .navbar {
        height: 75px;
    }

    .nav-container {
        width: 90%;
    }

    .logo {
        font-size: 23px;
    }

    .menu-toggle {
        display: block;
    }

    #navMenu {
        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        background: #03090b;

        border-top: 1px solid rgba(0, 245, 160, 0.1);

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        padding: 15px 7%;
    }

    #navMenu.show {
        display: flex;
    }

    .nav-link {
        width: 100%;

        padding: 14px 0;

        font-size: 15px;
    }

    .nav-link.active::after {
        display: none;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero {
        padding-top: 75px;

        min-height: 100vh;

        align-items: flex-start;
    }

    /*
       IMPORTANT:

       DO NOT change hero-grid to column.

       The desktop-style structure is kept so the
       profile/terminal visual remains on the right.
    */

    .hero-grid {
        width: 94%;

        display: grid;

        grid-template-columns: minmax(0, 1fr) minmax(105px, 0.38fr);

        gap: 0;

        align-items: start;

        position: relative;
    }


    /* -----------------------------------------------------
       HERO CONTENT MOBILE
       ----------------------------------------------------- */

    .hero-content {
        width: 100%;

        padding-top: 65px;

        padding-bottom: 50px;

        position: relative;

        z-index: 5;
    }

    .eyebrow {
        font-size: 11px;

        letter-spacing: 3px;

        margin-bottom: 22px;
    }

    .hero-content h1 {
        font-size: clamp(48px, 13vw, 70px);

        line-height: 0.95;

        letter-spacing: -3px;

        margin-bottom: 24px;
    }

    .hero-content h2 {
        font-size: 22px;

        line-height: 1.35;

        margin-bottom: 30px;
    }

    .hero-description {
        max-width: 100%;

        font-size: 16px;

        line-height: 1.8;

        margin-bottom: 35px;
    }


    /* -----------------------------------------------------
       BUTTONS MOBILE
       ----------------------------------------------------- */

    .hero-buttons {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 16px;
    }

    .btn {
        width: 100%;

        min-height: 58px;

        padding: 0 18px;

        font-size: 16px;
    }


    /* -----------------------------------------------------
       HERO VISUAL MOBILE
       
       This is the MAIN FIX.
       
       The visual is NOT pushed underneath the text.
       It stays in the right column.
       ----------------------------------------------------- */

    .hero-visual {
        position: absolute;

        top: 25px;

        right: 0;

        width: 125px;

        height: 470px;

        min-height: 0;

        padding: 0;

        display: block;

        z-index: 6;

        pointer-events: none;
    }


    /* -----------------------------------------------------
       PROFILE IMAGE MOBILE

       SMALL + TOP RIGHT
       ----------------------------------------------------- */

    .profile-ring {
        position: absolute;

        top: 0;

        right: 0;

        width: 92px;

        height: 92px;

        padding: 4px;

        border-width: 2px;

        z-index: 20;

        box-shadow:
            0 0 0 7px rgba(0, 245, 160, 0.035),
            0 0 0 14px rgba(0, 245, 160, 0.018),
            0 0 25px rgba(0, 245, 160, 0.20);
    }


    /* outer ring */

    .profile-ring::before {
        inset: -8px;

        border-width: 1px;
    }


    /* hide decorative dots on phone */

    .profile-ring::after {
        display: none;
    }


    /* profile photo */

    .profile-image {
        width: 100%;

        height: 100%;

        border-width: 2px;

        object-fit: cover;
    }


    /* -----------------------------------------------------
       TERMINAL MOBILE

       Keep it in right-side visual area.
       It appears lower, but it will NOT push the
       profile image down.
       ----------------------------------------------------- */

    .terminal {
        position: absolute;

        top: 105px;

        right: -250px;

        width: 360px;

        min-height: 420px;

        border-radius: 14px;

        z-index: 4;

        opacity: 0.95;
    }

    .terminal-header {
        height: 52px;

        padding: 0 15px;
    }

    .terminal-dot {
        width: 12px;

        height: 12px;
    }

    .terminal-title {
        font-size: 13px;

        margin-left: 8px;
    }

    .terminal-body {
        padding: 22px 18px;

        font-size: 12px;
    }

    .terminal-body p {
        margin-bottom: 14px;
    }

    .terminal-output {
        padding-left: 7px;
    }


    /* -----------------------------------------------------
       COMMON SECTIONS
       ----------------------------------------------------- */

    .section {
        padding: 80px 5%;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .section-heading h2 {
        font-size: 38px;
    }


    /* -----------------------------------------------------
       ABOUT
       ----------------------------------------------------- */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .about-cards {
        grid-template-columns: 1fr 1fr;
    }


    /* -----------------------------------------------------
       SKILLS
       ----------------------------------------------------- */

    .skills-grid {
        grid-template-columns: 1fr;
    }


    /* -----------------------------------------------------
       EXPERIENCE
       ----------------------------------------------------- */

    .timeline-top {
        flex-direction: column;

        gap: 8px;
    }

    .timeline-date {
        white-space: normal;
    }


    /* -----------------------------------------------------
       PROJECTS
       ----------------------------------------------------- */

    .projects-grid {
        grid-template-columns: 1fr;
    }


    /* -----------------------------------------------------
       EDUCATION
       ----------------------------------------------------- */

    .education-grid {
        grid-template-columns: 1fr;
    }


    /* -----------------------------------------------------
       CERTIFICATIONS
       ----------------------------------------------------- */

    .certifications-grid {
        grid-template-columns: 1fr;
    }


    /* -----------------------------------------------------
       LANGUAGES
       ----------------------------------------------------- */

    .languages-grid {
        grid-template-columns: 1fr 1fr;
    }


    /* -----------------------------------------------------
       CONTACT
       ----------------------------------------------------- */

    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .hero-grid {
        width: 94%;

        grid-template-columns:
            minmax(0, 1fr)
            90px;
    }

    .hero-content {
        padding-top: 55px;
    }

    .hero-content h1 {
        font-size: 52px;

        letter-spacing: -3px;
    }

    .hero-content h2 {
        font-size: 21px;
    }

    .hero-description {
        font-size: 15.5px;

        line-height: 1.75;
    }


    /* profile stays top-right */

    .hero-visual {
        width: 90px;

        right: 0;

        top: 20px;
    }

    .profile-ring {
        width: 78px;

        height: 78px;

        right: 0;
    }


    /* terminal stays mostly outside the main content */

    .terminal {
        top: 95px;

        right: -270px;

        width: 340px;
    }


    /* buttons */

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn {
        width: 100%;
    }


    /* other sections */

    .about-cards {
        grid-template-columns: 1fr;
    }

    .languages-grid {
        grid-template-columns: 1fr;
    }

    .timeline-card {
        padding: 25px;
    }

    .terminal-body {
        font-size: 12px;
    }

    .terminal-output {
        padding-left: 8px;
    }
}


/* =========================================================
   EXTRA SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .logo {
        font-size: 20px;

        letter-spacing: 3px;
    }

    .menu-toggle {
        width: 42px;

        height: 42px;

        font-size: 22px;
    }

    .hero-content h1 {
        font-size: 46px;
    }

    .hero-content h2 {
        font-size: 19px;
    }

    .hero-description {
        font-size: 15px;
    }

    .profile-ring {
        width: 68px;

        height: 68px;
    }

    .hero-visual {
        width: 78px;
    }
}
