body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
  
    margin: 0 auto;

}

/* Navigation */

nav {
    position: fixed;
    top: 0;
    z-index: 2;
    width: 100vw;
    display: flex;
    background-color: transparent;
    margin-bottom: 30px;
    transition: transform 420ms ease, opacity 420ms ease;
    will-change: transform;
}

nav.nav-hidden {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

nav .left-side{
    display: none;
}

nav .nav-toggle {
    display: none;
}

nav .right-side{
    padding: 3vh 3vh 3vh 0;
    width: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    background-color: transparent;
}

nav a:last-child {
    padding-right: 20px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.5rem;
    transition: color 0.3s;
}

nav a.active {
    text-decoration: underline;
}

/* Sections */
section {
    margin-bottom: 0;
    padding: 20px;

}

h1, h2, h3 {
    color: #2c3e50;
}

h1 {
    border-bottom: none;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    margin-top: 30px;
}

/* About Section */
#about {
    position: relative;
    height: 100vh;
    background-color: #ffffff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-inner {
    display: flex;
    align-items: stretch; /* Vertically center the content */
    justify-content: space-between; /* Distribute space between the two boxes */
    position: relative;
    margin: 0 auto;
    width: min(990px, 79.2vw);
    min-height: 616px;
    z-index: 1;
    box-shadow: none;
  }

.about-inner::after {
    content: none;
}

.background-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 37vw;
    height: 100%;
    min-height: 100vh;
    background-color: #d5d5d5;
    overflow: hidden;
    z-index: 0; /* Behind everything else */
}

.background-box::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.55) 0.8px, transparent 1.1px),
        radial-gradient(rgba(0, 0, 0, 0.28) 0.8px, transparent 1.1px);
    background-size: 4px 4px, 5px 5px;
    background-position: 0 0, 2px 2px;
}

/* Hero Box */
.hero-box {
    flex: 1; /* Each box takes up equal width */
    padding: 34px;
    background-color: transparent;
}

.hero-box p {
    margin: 0;
    padding: 1vh 0;
}

.hero-box h1{
    margin: 0;
    border: none;
    text-decoration: none;
    font-size: 90px;
    font-weight: bolder;
    font-stretch: ultra-expanded;
    line-height: 1;
}

.hero-box h2{
    text-align: center;
    font-weight: 900;
    font-size: xx-large;

}

.hero-box h3 {
    margin-top: 0;
}

.hero-box h3::after {
    content: none;
}

.hero-box:nth-child(1) {
    background-color: #e7e7e7;
    flex: 0 0 380px;
    max-width: 380px;
    align-self: flex-start;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 36px 135px;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.hero-box:nth-child(1)::before {
    content: none;
}

.hero-box:nth-child(1) > :not(.icon-row) {
    position: relative;
    z-index: 1;
}

.hero-box:nth-child(2) {
    background-color: transparent;
    box-shadow: none;
    border: none;
    margin-left: 56px;
    align-self: center;
    max-width: 616px;
    padding: 0;
}

.hero-box:nth-child(2) h1 {
    font-size: 140px;
    font-weight: 900;
}

.hero-box:nth-child(2) h3 {
    font-size: 1.875rem;
    font-weight: 700;
}

.hero-box:nth-child(2) p {
    font-size: 1.5625rem;
    line-height: 1.65;
    font-weight: 500;
}

.hero-box:nth-child(2) > * {
    opacity: 0;
    transform: translateY(14px);
    animation: aboutTextFade 680ms ease forwards;
}

.hero-box:nth-child(2) > *:nth-child(1) { animation-delay: 80ms; }
.hero-box:nth-child(2) > *:nth-child(2) { animation-delay: 220ms; }
.hero-box:nth-child(2) > *:nth-child(3) { animation-delay: 360ms; }
.hero-box:nth-child(2) > *:nth-child(4) { animation-delay: 500ms; }

@keyframes aboutTextFade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-box:nth-child(1) h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 2px;
    background: #1f5fd8;
    margin: 14px auto 0;
}

.hero-box:nth-child(1) h2 {
    font-size: 2.5rem;
    margin: 8px 0 0;
}

.about-role {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0;
    text-align: center;
    font-size: 1.575rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #334155;
}

.circle-image {
    width: 201px;
    height: 201px;
    margin: 0 auto 16px; /* tighter gap to name below */
    border-radius: 50%;
    overflow: hidden;
    border: none;
    box-shadow: 0 0 0.5vw 0.3vw rgba(0, 0, 0, 0.1);
}

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

.icon-row {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin-top: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e8eaf0;
    padding: 14px 0;
    z-index: 3;
    isolation: isolate;
    box-sizing: border-box;
}

.hero-box:nth-child(1) .icon-row {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}

.icon-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: -1;
}

.icon-row i {
    font-size: 34px; /* Adjust size as needed */
    color: #333; /* Icon color */
    cursor: pointer; /* Optional: makes icons clickable */
}

/* How I Help Section */
#how-i-help {
    position: relative;
    overflow: hidden;
    background-color: #d5d5d5;
    padding: 64px 20px 72px;
}

#how-i-help::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.55) 0.8px, transparent 1.1px),
        radial-gradient(rgba(0, 0, 0, 0.28) 0.8px, transparent 1.1px);
    background-size: 4px 4px, 5px 5px;
    background-position: 0 0, 2px 2px;
}

#how-i-help > * {
    position: relative;
    z-index: 1;
}

#how-i-help h1 {
    margin-left: clamp(20px, 8vw, 180px);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 14px;
}

#how-i-help h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: #1f5fd8;
}

.help-card {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #dfe3ea;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.10),
        0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 26px 30px;
}

.help-card p {
    margin-top: 0;
    color: #1f2937;
    font-size: 1.08rem;
    line-height: 1.7;
}

.help-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #374151;
    line-height: 1.8;
}

.help-subsection + .help-subsection {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e5e9f2;
}

.help-subsection h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #1f2937;
}

.lm-carousel {
    margin-top: 22px;
    position: relative;
}

.lm-viewport {
    width: 100%;
    min-height: 420px;
    background: #ffffff;
    border: 1px solid #dfe3ea;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.10),
        0 2px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.lm-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.lm-slide {
    display: none;
    margin: 0;
    width: 100%;
    height: 100%;
}

.lm-slide.is-active {
    display: block;
}

.lm-slide img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.lm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid #d7ddeb;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2937;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 2;
}

.lm-prev {
    left: 14px;
}

.lm-next {
    right: 14px;
}

.lm-dots {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.lm-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: #c8cfde;
    cursor: pointer;
}

.lm-dot.is-active {
    background: #1f5fd8;
}

.business-cards {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.business-card {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.08),
        0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.business-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 14px 26px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.08);
}

.business-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.business-logo-slot {
    height: 132px;
    border: 1px dashed #8fa0c2;
    border-radius: 6px;
    background: #f7f9ff;
    color: #5b6b8b;
    font-weight: 600;
    display: grid;
    place-items: center;
    line-height: 0;
    margin-bottom: 12px;
    box-sizing: border-box;
    padding: 6px;
}

.business-logo-slot img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    display: block;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

.business-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #1f2937;
}

.business-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 6px;
}

.business-card-head h3 {
    margin: 0;
}

.business-card-social {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0A66C2;
    color: #ffffff;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.business-card-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(10, 102, 194, 0.35);
}

.business-card-social svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    display: block;
}

.business-card p {
    margin: 0;
    color: #4b5563;
    font-size: 0.93rem;
}

.business-card > p {
    margin-top: auto;
}

.business-cards > :nth-child(2) {
    background: #000000;
    border-color: #FBA526;
}

.business-cards > :nth-child(2) h3,
.business-cards > :nth-child(2) p {
    color: #FBA526;
}

.business-cards > :nth-child(2) .business-logo-slot {
    background: #0f0f0f;
    border-color: #FBA526;
    color: #FBA526;
}

.business-cards > :nth-child(1) {
    background: #ffffff;
    border-color: #AD2632;
}

.business-cards > :nth-child(1) h3,
.business-cards > :nth-child(1) p {
    color: #AD2632;
}

.business-cards > :nth-child(1) .business-logo-slot {
    background: #ffffff;
    border-color: #AD2632;
    color: #AD2632;
}

.business-card-inprogress {
    background: #000000;
    border-color: #ffffff;
    color: #ffffff;
}

.business-card-inprogress h3,
.business-card-inprogress p {
    color: #ffffff;
}

.business-card-inprogress .business-logo-slot {
    background: #000000;
    border: 1px dashed #ffffff;
    color: #ffffff;
}


/* Projects Section */
#projects{
    position: relative;
    overflow: hidden;
    background-color: #d5d5d5;
}

#projects::before,
#resume::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.55) 0.8px, transparent 1.1px),
        radial-gradient(rgba(0, 0, 0, 0.28) 0.8px, transparent 1.1px);
    background-size: 4px 4px, 5px 5px;
    background-position: 0 0, 2px 2px;
}

#projects > *,
#resume > * {
    position: relative;
    z-index: 1;
}

#projects h1 {
    border-bottom: none;
    margin-bottom: 12px;
    margin-left: clamp(20px, 8vw, 180px);
    position: relative;
    padding-bottom: 14px;
}

#projects h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: #1f5fd8;
}

.projects-intro {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
    color: #374151;
    font-size: 1.3rem;
    font-weight: 500;
}

#how-i-help .projects-intro a {
    color: inherit;
}

.project-card {
    max-width: 980px;
    margin: 0 auto 22px;
    background: #ffffff;
    border-radius: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border: 1px solid #dfe3ea;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 14px 28px rgba(0, 0, 0, 0.10),
        0 30px 50px rgba(0, 0, 0, 0.10);
}

.project-content {
    padding: 34px 34px;
    border-left: 8px solid #0056b3;
}

.project-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0056b3;
    font-size: 1.7rem;
}

.project-content p {
    margin: 0;
    color: #1f2937;
    font-size: 1.05rem;
    line-height: 1.75;
}

.project-skills {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-pill {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f4f9c;
    background: #eef4ff;
    border: 1px solid #cddbf5;
    border-radius: 999px;
    line-height: 1.2;
}

.project-links {
    margin-top: 16px;
}

.project-link {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: #0056b3;
    border: 1px solid #0056b3;
    background: transparent;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.project-link:hover {
    background-color: #eef4ff;
}

.project-media {
    min-height: 320px;
    overflow: hidden;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 300ms ease;
}

#projects .project-card:first-of-type .project-media img {
    object-position: right center;
}

#projects .project-card:nth-of-type(2) .project-media img {
    object-position: right center;
}

#projects .project-card:nth-of-type(3) .project-media img {
    object-position: right center;
}

#projects .project-card:nth-of-type(4) .project-media img {
    object-position: right center;
}

/* Resume Section */
#resume {
    position: relative;
    overflow: hidden;
    background-color: #d5d5d5;
}

#resume h1 {
    border-bottom: none;
    margin-bottom: 30px;
    margin-left: clamp(20px, 8vw, 180px);
    position: relative;
    padding-bottom: 14px;
}

#resume h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: #1f5fd8;
}

#resume h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.resume-block {
    max-width: 980px;
    margin: 0 auto 26px;
}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cert-grid {
    align-items: start;
}

.resume-card {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    border-radius: 0;
    padding: 20px 22px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 14px 28px rgba(0, 0, 0, 0.10),
        0 30px 50px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 10px;
}

.project-card::after,
.resume-card::after {
    content: "";
    position: absolute;
    inset: 10px -10px -10px 10px;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.10), rgba(0, 0, 0, 0.06));
    z-index: -1;
    filter: blur(2px);
    transform: translateZ(-1px);
}

.project-card:hover,
.resume-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 6px 10px rgba(0, 0, 0, 0.08),
        0 24px 42px rgba(0, 0, 0, 0.16),
        0 44px 70px rgba(0, 0, 0, 0.16);
    border-color: #cfd7e4;
}

.project-card:hover .project-media img {
    transform: scale(1.03);
}

.resume-card-meta {
    color: #0056b3;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.resume-card-body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #1f2937;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #d9dfeb;
}

.resume-card-body p {
    margin: 0 0 6px;
    color: #4b5563;
}

.resume-card-body p:last-child {
    margin-bottom: 0;
}

.skills-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.skills-list li {
    color: #374151;
}

.skills-groups {
    display: grid;
    gap: 14px;
}

.skills-group h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #334155;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.skills-group + .skills-group {
    padding-top: 10px;
    border-top: 1px solid #e6ebf4;
}

.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chip {
    display: inline-block;
    padding: 8px 12px;
    background: #edf3ff;
    border: 1px solid #cedcf8;
    color: #1f4f9c;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    line-height: 1.2;
}

.cert-item {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 10px 18px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.cert-item summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    display: grid;
    gap: 4px;
}

.cert-item summary::-webkit-details-marker {
    display: none;
}

.cert-date {
    color: #0056b3;
    font-weight: 700;
    font-size: 0.9rem;
}

.cert-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.98rem;
}

.cert-body {
    border-top: 1px solid #e7ebf3;
    padding: 12px 16px 14px;
}

.cert-body p {
    margin: 0 0 6px;
    color: #4b5563;
}

.cert-body p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
#contact {
    background-color: #d5d5d5;
    padding: 64px 20px 72px;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.55) 0.8px, transparent 1.1px),
        radial-gradient(rgba(0, 0, 0, 0.28) 0.8px, transparent 1.1px);
    background-size: 4px 4px, 5px 5px;
    background-position: 0 0, 2px 2px;
}

#contact h1 {
    border-bottom: none;
    margin-bottom: 26px;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-bottom: 14px;
}

#contact h1::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 56px;
    height: 3px;
    background: #1f5fd8;
}

.contact-card {
    width: min(760px, 92vw);
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #dfe3ea;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.10),
        0 2px 6px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    text-decoration: none;
    border-bottom: 1px solid #eceff4;
    transition: background-color 0.2s ease;
}

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

.contact-row:hover {
    background-color: #f6f8fc;
}

.contact-label {
    color: #1f2937;
    font-weight: 700;
}

.contact-value {
    color: #374151;
    text-align: right;
}

/* Responsive */
@media (min-width: 768px) and (max-width: 1440px) {
    nav a {
        font-size: clamp(0.78125rem, 0.33625rem + 0.93vw, 1.171875rem);
    }
}

@media (max-width: 800px) {
    .business-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1440px) {
    .about-inner {
        width: min(900px, 78vw);
        min-height: 560px;
    }

    .background-box {
        width: 34vw;
    }

    .hero-box:nth-child(1) {
        flex: 0 0 clamp(300px, 24vw, 360px);
        max-width: clamp(300px, 24vw, 360px);
        padding: clamp(34px, 2.6vw, 48px) clamp(24px, 2.2vw, 36px) clamp(115px, 7.75vw, 135px);
    }

    .circle-image {
        width: clamp(164px, 13.6vw, 201px);
        height: clamp(164px, 13.6vw, 201px);
        margin-bottom: clamp(12px, 1vw, 16px);
    }

    .hero-box:nth-child(1) h2 {
        font-size: clamp(2rem, 1.2rem + 1.2vw, 2.5rem);
    }

    .about-role {
        font-size: clamp(1.15rem, 0.85rem + 0.8vw, 1.575rem);
    }

    .icon-row i {
        font-size: clamp(26px, 1.6vw, 34px);
    }

    .hero-box:nth-child(2) {
        margin-left: clamp(24px, 3vw, 56px);
        max-width: clamp(460px, 42vw, 616px);
    }

    .hero-box:nth-child(2) h1 {
        font-size: clamp(92px, 8.2vw, 140px);
    }

    .hero-box:nth-child(2) h3 {
        font-size: clamp(1.35rem, 1.05rem + 0.8vw, 1.875rem);
    }

    .hero-box:nth-child(2) p {
        font-size: clamp(1.08rem, 0.9rem + 0.6vw, 1.5625rem);
        line-height: 1.55;
    }
}

@media (max-width: 425px) {
    #about {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 76px;
        box-sizing: border-box;
    }

    .about-inner {
        width: 88vw;
        flex-direction: column;
        gap: 18px;
        min-height: 0;
    }

    .background-box {
        top: 30%;
        left: 0;
        width: 100%;
        height: 70%;
        min-height: 0;
    }

    .hero-box:nth-child(1) {
        flex-basis: auto;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        aspect-ratio: 10 / 11;
        margin: 0;
        padding: clamp(18px, 4vw, 34px) clamp(12px, 3.2vw, 28px) clamp(52px, 8.8vw, 84px);
    }

    .circle-image {
        width: clamp(132px, 34vw, 248px);
        height: clamp(132px, 34vw, 248px);
        margin: 0 auto clamp(8px, 2vw, 18px);
    }

    .hero-box:nth-child(1) h2 {
        font-size: clamp(1.65rem, 4.8vw, 3rem);
        margin: clamp(4px, 1.4vw, 12px) 0 0;
    }

    .hero-box:nth-child(1) h2::after {
        width: clamp(42px, 10vw, 58px);
        margin: clamp(10px, 2vw, 16px) auto 0;
    }

    .about-role {
        margin-top: clamp(8px, 2vw, 12px);
        font-size: clamp(1.28rem, 3.6vw, 1.8rem);
        letter-spacing: clamp(0.01em, 0.18vw, 0.04em);
    }

    .hero-box:nth-child(1) .icon-row {
        padding: clamp(12px, 2.6vw, 16px) 0;
        gap: clamp(22px, 5vw, 34px);
    }

    .icon-row i {
        font-size: clamp(28px, 5.2vw, 36px);
    }

    .hero-box:nth-child(2) {
        margin-left: 0;
        max-width: none;
        width: 100%;
        padding: 8px 4px 0;
    }

    .icon-row i {
        font-size: clamp(24px, 6.4vw, 30px);
    }

}

@media (max-width: 768px) {
    #about {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 76px;
        box-sizing: border-box;
    }

    nav {
        justify-content: flex-end;
        align-items: flex-start;
        padding: 12px 12px 0 0;
        box-sizing: border-box;
    }

    nav.nav-hidden {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    nav .nav-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        border: 1px solid #cfd7e4;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.95);
        color: #1f2937;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    }

    nav .nav-toggle i {
        font-size: 1.2rem;
        line-height: 1;
    }

    nav .right-side {
        display: none;
        position: absolute;
        top: 62px;
        right: 12px;
        width: min(82vw, 320px);
        padding: 12px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #d5dbe7;
        border-radius: 12px;
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
        flex-direction: column;
        gap: 8px;
        justify-content: flex-start;
    }

    nav.nav-open .right-side {
        display: flex;
    }

    nav a {
        margin: 0;
        padding: 9px 10px;
        font-size: 1rem;
        border-radius: 8px;
        background: #f8fafc;
    }

    nav a:last-child {
        padding-right: 10px;
    }

    .about-inner {
        width: 88vw;
        flex-direction: column;
        gap: 18px;
        min-height: 0;
    }

    .background-box {
        top: 30%;
        left: 0;
        width: 100%;
        height: 70%;
        min-height: 0;
    }

    .hero-box:nth-child(1) {
        flex-basis: auto;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        aspect-ratio: 10 / 11;
        margin: 0;
        padding: clamp(24px, 4.2vw, 34px) clamp(18px, 3.5vw, 28px) clamp(64px, 9.5vw, 84px);
    }

    .circle-image {
        width: clamp(168px, 36vw, 248px);
        height: clamp(168px, 36vw, 248px);
        margin: 0 auto clamp(12px, 2.4vw, 18px);
    }

    .hero-box:nth-child(1) h2 {
        font-size: clamp(2.1rem, 5.2vw, 3rem);
        margin: clamp(8px, 1.8vw, 12px) 0 0;
    }

    .hero-box:nth-child(1) h2::after {
        width: clamp(36px, 9vw, 52px);
        margin: clamp(8px, 1.8vw, 14px) auto 0;
    }

    .about-role {
        margin-top: clamp(4px, 1.5vw, 12px);
        font-size: clamp(1rem, 3.2vw, 1.8rem);
        letter-spacing: clamp(0.01em, 0.18vw, 0.04em);
    }

    .hero-box:nth-child(1) .icon-row {
        padding: clamp(8px, 2vw, 14px) 0;
        gap: clamp(14px, 4.2vw, 30px);
    }

    .hero-box:nth-child(2) {
        margin-left: 0;
        max-width: none;
        width: 100%;
        padding: 8px 4px 0;
    }

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

    .help-card,
    .project-card,
    .resume-block,
    .contact-card {
        width: min(100%, 88vw);
    }

    .resume-card {
        padding: 16px 16px;
        border-radius: 0;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-content {
        padding: 20px 18px;
        border-left-width: 6px;
    }

    .project-content h3 {
        font-size: 1.25rem;
    }

    .project-content p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .project-media {
        min-height: 220px;
        border-top-right-radius: 0;
        border-bottom-left-radius: 14px;
        border-bottom-right-radius: 14px;
    }

    .contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .contact-value {
        text-align: left;
    }

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

    .lm-viewport {
        min-height: 260px;
    }

    .lm-slide img {
        min-height: 260px;
    }

    .lm-nav {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 600px) {
    .business-cards {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 425px) and (max-width: 600px) {
    .business-card {
        aspect-ratio: 4 / 2.5;
        overflow: hidden;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .business-card-link {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        min-width: 0;
    }

    .business-logo-slot {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
    }
}

@media (min-width: 425px) and (max-width: 500px) {
    .business-logo-slot img {
        transform: translateY(-16px);
    }
}
