:root {
    --surface: rgba(255, 255, 255, 0.76);
    --text: #102338;
    --muted: #516274;
    --primary: #0d6aa8;
    --primary-strong: #084e7a;
    --accent: #1aa3a3;
    --accent-soft: #e4f7f5;
    --border: rgba(16, 35, 56, 0.1);
    --shadow: 0 22px 60px rgba(16, 35, 56, 0.12);
    --shadow-soft: 0 12px 30px rgba(16, 35, 56, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --max-width: 1160px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background:
        radial-gradient(circle at top left, rgba(26, 163, 163, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(13, 106, 168, 0.15), transparent 26%),
        linear-gradient(180deg, #f8f3eb 0%, #eff5f7 48%, #f7fbfc 100%);
    min-height: 100vh;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: 120px;
    left: -120px;
    background: rgba(26, 163, 163, 0.18);
}

body::after {
    right: -120px;
    bottom: 60px;
    background: rgba(13, 106, 168, 0.16);
}

main {
    padding-bottom: 3rem;
}

#welcome-section,
#about,
#experience,
#projects,
#skills,
#education,
#why-work-with-me,
#contact {
    scroll-margin-top: 110px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.section-shell {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.glass-effect {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.content-section {
    padding: 2.4rem 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.section-heading-left {
    margin: 0 0 1.75rem;
    text-align: left;
}

.section-kicker {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.section-title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-intro {
    color: var(--muted);
    font-size: 1.02rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.78rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.button-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(13, 106, 168, 0.28);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.86);
    border-color: var(--border);
    color: var(--text);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(16, 35, 56, 0.1);
    color: var(--text);
}

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(248, 251, 252, 0.72);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 30px rgba(16, 35, 56, 0.08);
    z-index: 1000;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.15rem 0.75rem;
    color: #304557;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(13, 106, 168, 0.22);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.nav-links a i {
    font-size: 0.95rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.nav-links a:hover i,
.nav-links a.is-active i,
.nav-links a[aria-current="page"] i {
    color: var(--primary);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.hamburger span {
    position: absolute;
    left: 9px;
    width: 24px;
    height: 2.5px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger span:nth-child(1) {
    top: 13px;
}

.hamburger span:nth-child(2) {
    top: 20px;
}

.hamburger span:nth-child(3) {
    top: 27px;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-section {
    position: relative;
    min-height: 100svh;
    padding: 6.25rem 0 2rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(26, 163, 163, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(13, 106, 168, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 100%);
    color: var(--text);
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
}

.hero-section::before {
    width: 320px;
    height: 320px;
    top: 70px;
    left: min(5vw, 40px);
    background: radial-gradient(circle, rgba(26, 163, 163, 0.18) 0%, rgba(26, 163, 163, 0) 72%);
}

.hero-section::after {
    width: 260px;
    height: 260px;
    right: min(6vw, 56px);
    bottom: 40px;
    background: radial-gradient(circle, rgba(13, 106, 168, 0.16) 0%, rgba(13, 106, 168, 0) 72%);
}

.hero-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100svh - 8.25rem);
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    padding: 1.2rem 0 1.4rem;
    text-align: center;
}

.hero-portrait-shell {
    width: clamp(126px, 15vw, 164px);
    aspect-ratio: 1;
    margin: 0 auto 1.1rem;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    box-shadow: 0 18px 45px rgba(16, 35, 56, 0.18);
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(248, 251, 252, 0.96);
}

.hero-title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    line-height: 1.02;
    margin-bottom: 0.2rem;
    color: var(--text);
}

.hero-name {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.7rem, 7vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 34ch;
    margin: 0 auto 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.hero-section .button-primary {
    box-shadow: 0 18px 34px rgba(13, 106, 168, 0.2);
}

.hero-section .button-secondary {
    background: rgba(255, 255, 255, 0.86);
    border-color: var(--border);
    color: var(--text);
}

.hero-section .button-secondary:hover {
    background: rgba(255, 255, 255, 0.96);
}

.hero-section .button-ghost {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(16, 35, 56, 0.1);
    color: var(--text);
}

.hero-scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 0;
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.15rem;
    animation: hero-bounce 1.8s ease-in-out infinite;
}

.hero-panel {
    padding: 2rem;
    align-self: center;
}

.panel-label {
    color: var(--primary);
    font-size: 0.84rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-panel h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-points {
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.hero-points li,
.check-list li,
.process-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--muted);
}

.hero-points li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

.about-grid,
.services-grid,
.proof-grid,
.project-grid,
.skill-clusters,
.contact-layout {
    display: grid;
    gap: 1.25rem;
}

.about-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.about-card,
.service-card,
.proof-card,
.experience-card,
.education-card,
.skill-cluster,
.availability-card,
.process-card,
.contact-form-container,
.project-card {
    border-radius: var(--radius-md);
    padding: 1.6rem;
}

.about-card h3,
.service-card h3,
.proof-card h3,
.experience-card h3,
.education-card h3,
.availability-card h3,
.process-card h3,
.contact-form-container h3,
.skill-cluster h3 {
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}

.custom-link {
    color: #4da3ff; /* subtle brand-friendly blue */
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.custom-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background-color: #4da3ff;
    transition: width 0.3s ease;
}

.custom-link:hover {
    color: #82c0ff;
}

.custom-link:hover::after {
    width: 100%;
}

.experience-timeline {
    position: relative;
    display: grid;
    gap: 1.2rem;
    width: min(100%, 940px);
    margin: 0 auto;
}

.experience-timeline::before {
    content: "";
    position: absolute;
    top: 1.1rem;
    bottom: 1.1rem;
    left: 18px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
    opacity: 0.65;
}

.experience-card {
    position: relative;
    margin-left: 2.9rem;
}

.experience-card::before {
    content: "";
    position: absolute;
    top: 1.55rem;
    left: -2.3rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 6px rgba(13, 106, 168, 0.08);
}

.experience-card-header,
.education-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.experience-company,
.education-subtitle {
    color: var(--muted);
}

.experience-company {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.experience-summary {
    color: var(--muted);
    margin-bottom: 1rem;
}

.experience-tech {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(13, 106, 168, 0.08);
    color: #365067;
    font-size: 0.95rem;
    line-height: 1.55;
}

.experience-tech strong {
    color: var(--text);
}

.experience-period,
.education-period {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 106, 168, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.experience-note {
    margin-top: 1rem;
    color: #365067;
    font-weight: 600;
}

.education-list {
    display: grid;
    gap: 1rem;
    width: min(100%, 920px);
    margin: 0 auto;
}

.education-subtitle {
    margin-top: 0.2rem;
}

.education-link-line {
    margin-top: 1rem;
    color: var(--muted);
}

.about-card p + p {
    margin-top: 1rem;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

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

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -40px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 163, 163, 0.2), transparent 68%);
    pointer-events: none;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 1rem;
    color: var(--primary);
    background: rgba(13, 106, 168, 0.12);
}

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

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.project-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dfe9ee;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-body {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.project-header h3 {
    font-size: 1.22rem;
}

.project-badge {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(13, 106, 168, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.project-description {
    color: var(--muted);
    margin-bottom: 1rem;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.project-stack span {
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #276368;
    font-size: 0.82rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.project-link,
.project-note {
    font-weight: 600;
    font-size: 0.94rem;
}

.project-link {
    text-decoration: none;
    color: var(--primary);
}

.project-link:hover {
    color: var(--primary-strong);
}

.project-note {
    color: var(--muted);
}

.skill-clusters {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.cluster-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.cluster-header i {
    color: var(--primary);
    font-size: 1.15rem;
}

.cluster-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    color: var(--muted);
}

.cluster-list li {
    position: relative;
    padding-left: 1rem;
}

.cluster-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 50%;
    background: var(--accent);
}

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

.proof-card p {
    color: var(--muted);
}

.contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    align-items: start;
}

.contact-copy {
    display: grid;
    gap: 1rem;
}

.process-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
    counter-reset: process-step;
}

.process-list li::before {
    counter-increment: process-step;
    content: counter(process-step);
    position: absolute;
    left: 0;
    top: 0.16rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    font-size: 0.72rem;
    line-height: 1rem;
    text-align: center;
    color: #fff;
    background: var(--primary);
}

.social-links-row {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.4rem;
    justify-content: center;
}

.social-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: var(--primary-strong);
    box-shadow: 0 16px 30px rgba(13, 106, 168, 0.15);
}

.contact-form-container form {
    display: grid;
    gap: 0.8rem;
}

.contact-form-note {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.form-group {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
}

.form-group label {
    font-weight: 600;
    color: #284255;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(16, 35, 56, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(13, 106, 168, 0.6);
    box-shadow: 0 0 0 4px rgba(13, 106, 168, 0.12);
}

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

.submit-button {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.form-status {
    min-height: 1.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-status.success {
    color: #1f7a44;
}

.form-status.error {
    color: #b42318;
}

.form-status.loading {
    color: var(--primary);
}

.copyright-section {
    padding: 0 1rem 2rem;
    text-align: center;
    color: #526274;
}

.chatbot-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(13, 106, 168, 0.28);
    z-index: 1000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 42px rgba(13, 106, 168, 0.35);
}

.chatbot-toggle i {
    font-size: 1.3rem;
}

.chatbot-fallback-icon {
    display: inline-flex;
}

.chatbot-container {
    position: fixed;
    right: 24px;
    bottom: 100px;
    width: min(360px, calc(100vw - 32px));
    height: 520px;
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    overflow: hidden;
    z-index: 999;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
}

.chatbot-title-avatar,
.chatbot-message-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}

.chatbot-message-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    align-self: flex-end;
    margin-right: 0.65rem;
    background: rgba(13, 106, 168, 0.12);
    color: var(--primary);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chatbot-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a87c8 0%, #0f5f98 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.chatbot-avatar-fallback i {
    font-size: 0.95rem;
    transform: translateY(0.5px);
}

.chatbot-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 1.1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: linear-gradient(180deg, rgba(245, 249, 250, 0.95), rgba(255, 255, 255, 0.95));
}

.message {
    display: flex;
}

.bot-message {
    justify-content: flex-start;
    align-items: flex-end;
}

.user-message {
    justify-content: flex-end;
}

.message-content,
.typing-indicator {
    max-width: 85%;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    font-size: 0.94rem;
}

.bot-message .message-content,
.typing-indicator {
    background: rgba(13, 106, 168, 0.1);
    color: var(--text);
    border: 1px solid rgba(13, 106, 168, 0.12);
    border-bottom-left-radius: 6px;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    border-bottom-right-radius: 6px;
}

.chatbot-input-container {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid rgba(16, 35, 56, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

#chatbot-input {
    flex: 1;
    padding: 0.82rem 1rem;
    border: 1px solid rgba(16, 35, 56, 0.12);
    border-radius: 999px;
    background: #fff;
    font: inherit;
}

#chatbot-input:focus {
    outline: none;
    border-color: rgba(13, 106, 168, 0.6);
}

#chatbot-send {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    cursor: pointer;
}

#chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: typing 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@keyframes hero-bounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.65;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

@media (max-width: 1080px) {
    .services-grid,
    .proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-grid,
    .skill-clusters,
    .about-grid,
    .contact-layout,
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .experience-card-header,
    .education-card-header {
        flex-direction: column;
    }

}

@media (max-width: 768px) {
    .glass-nav {
        justify-content: center;
        min-height: 72px;
    }

    .hamburger {
        display: block;
        z-index: 1002;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.2rem 1rem 1.4rem;
        background: rgba(250, 252, 253, 0.98);
        border-bottom: 1px solid rgba(16, 35, 56, 0.08);
        box-shadow: 0 18px 30px rgba(16, 35, 56, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding-bottom: 0.5rem;
    }

    .hero-section {
        min-height: auto;
        padding-top: 6.4rem;
        padding-bottom: 1.6rem;
    }

    .hero-layout {
        min-height: auto;
    }

    .hero-copy {
        padding: 0.6rem 0 0.4rem;
    }

    .experience-timeline::before {
        left: 14px;
    }

    .experience-card {
        margin-left: 2.2rem;
    }

    .experience-card::before {
        left: -1.72rem;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .section-shell {
        width: min(var(--max-width), calc(100% - 1.2rem));
    }

    .content-section {
        padding: 1.8rem 0;
    }

    .services-grid,
    .proof-grid,
    .skill-clusters {
        grid-template-columns: 1fr;
    }

    .chatbot-container {
        right: 16px;
        bottom: 88px;
        width: calc(100vw - 32px);
        height: 70vh;
    }
}

@media (max-width: 560px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-name {
        font-size: 2.9rem;
    }

    .hero-subtitle {
        font-size: 0.96rem;
    }

    .experience-card,
    .education-card {
        padding: 1.25rem;
    }

    .experience-period,
    .education-period {
        white-space: normal;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .project-header {
        flex-direction: column;
    }
}
