:root {
    --bg: #f4f2eb;
    --bg-soft: #faf9f5;
    --surface: rgba(255, 255, 255, .92);
    --surface-solid: #ffffff;
    --surface-two: #eceae1;
    --text: #10231f;
    --muted: #697a74;
    --primary: #075f56;
    --primary-two: #13a78e;
    --primary-three: #3d8075;
    --primary-dark: #033f39;
    --gold: #d09a43;
    --line: rgba(7, 95, 86, .13);
    --shadow: 0 28px 80px rgba(3, 60, 54, .11);
    --small-shadow: 0 13px 38px rgba(3, 60, 54, .08);
}

body.dark-theme {
    --bg: #061410;
    --bg-soft: #091c17;
    --surface: rgba(10, 31, 26, .93);
    --surface-solid: #0d221c;
    --surface-two: #112a23;
    --text: #f5fbf8;
    --muted: #a0ada8;
    --primary: #35c8ae;
    --primary-two: #6be4cf;
    --primary-three: #84d7c7;
    --primary-dark: #15937e;
    --gold: #edba61;
    --line: rgba(90, 218, 193, .15);
    --shadow: 0 30px 90px rgba(0, 0, 0, .33);
    --small-shadow: 0 15px 40px rgba(0, 0, 0, .25);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: "Manrope", sans-serif;
    line-height: 1.7;
    transition: background .35s ease, color .35s ease;
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

[lang="bn"] {
    font-family: "Hind Siliguri", "Manrope", sans-serif;
}

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

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

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

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

.page-grid {
    position: fixed;
    inset: 0;
    z-index: -20;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(7, 95, 86, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 95, 86, .035) 1px, transparent 1px);
    background-size: 58px 58px;
}

.ambient {
    position: fixed;
    z-index: -19;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(50px);
}

.ambient-one {
    top: -250px;
    right: -200px;
    background: rgba(32, 194, 163, .13);
}

.ambient-two {
    left: -250px;
    bottom: -250px;
    background: rgba(18, 112, 99, .10);
}

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 14px;
    transition: .3s ease;
}

.header.scrolled {
    padding-top: 6px;
}

.header-shell {
    min-height: 76px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 8px 13px 8px 16px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    box-shadow: var(--small-shadow);
}

.brand {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-two)
        );
    box-shadow: 0 12px 28px rgba(7, 95, 86, .20);
    font-size: 18px;
    font-weight: 800;
    transition: .35s ease;
}

.brand:hover .brand-mark {
    transform: rotate(-7deg) scale(1.06);
}

.brand-copy strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.brand-copy small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 7px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.nav-menu {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--surface-two);
    box-shadow:
        inset 0 -6px 12px rgba(0, 0, 0, .04),
        inset 0 2px 0 rgba(255, 255, 255, .45),
        0 13px 30px rgba(3, 60, 54, .07);
}

.nav-link {
    position: relative;
    min-width: 64px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border-radius: 22px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    transition:
        color .35s ease,
        transform .4s cubic-bezier(.22, 1, .36, 1);
}

.nav-icon {
    width: 0;
    height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(5px) scale(.5);
    color: var(--primary);
    background: var(--surface-solid);
    box-shadow: var(--small-shadow);
    transition: .4s cubic-bezier(.22, 1, .36, 1);
}

.nav-link.active {
    color: var(--primary);
    transform: translateY(-9px);
}

.nav-link.active::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 4px 2px -9px;
    border-radius: 22px 22px 27px 27px;
    background: var(--surface-solid);
    box-shadow: 0 12px 26px rgba(3, 60, 54, .13);
}

.nav-link.active .nav-icon {
    width: 34px;
    height: 34px;
    opacity: 1;
    transform: translateY(-8px) scale(1);
}

.nav-link.active > span:last-child {
    position: absolute;
    top: 32px;
    font-size: 7px;
}

.nav-link:hover:not(.active) {
    color: var(--primary);
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.theme-button,
.menu-button {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-solid);
    box-shadow: var(--small-shadow);
    transition: .35s ease;
}

.theme-button:hover {
    color: #fff;
    background: var(--primary);
    transform: translateY(-3px) rotate(-7deg);
}

.talk-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 17px;
    color: white;
    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-dark)
        );
    box-shadow: 0 13px 30px rgba(7, 95, 86, .20);
    font-size: 8px;
    font-weight: 800;
    transition: .35s ease;
}

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

.menu-button {
    display: none;
    gap: 5px;
    align-content: center;
}

.menu-button span {
    width: 21px;
    height: 2px;
    border-radius: 20px;
    background: var(--primary);
    transition: .3s ease;
}

.menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 150px 0 80px;
    background:
        radial-gradient(
            circle at 87% 35%,
            rgba(26, 183, 154, .12),
            transparent 31%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(7, 95, 86, .07),
            transparent 27%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 75px;
}

.hero-badge {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 50px;
    color: var(--primary);
    background: var(--surface);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.hero-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-two);
    box-shadow: 0 0 0 6px rgba(23, 173, 149, .12);
}

.hero-hello {
    margin-top: 26px;
    color: var(--muted);
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 600;
}

.hero-name {
    margin: 6px 0 23px;
    font-size: clamp(67px, 7vw, 103px);
    line-height: .91;
    letter-spacing: -6px;
}

.animated-name {
    display: block;
    width: fit-content;
    white-space: nowrap;
}

.first-name {
    color: var(--text);
}

.last-name {
    color: var(--primary);
}

body.name-ready .animated-name {
    font-size: 0;
}

.name-char {
    display: inline-block;
    opacity: 0;
    font-size: clamp(67px, 7vw, 103px);
    transform:
        translateY(45px)
        rotateX(65deg)
        scale(.84);
    transform-origin: bottom center;
    animation:
        letterEnter
        .75s
        cubic-bezier(.22, 1, .36, 1)
        forwards;
    animation-delay: var(--delay);
}

.first-name .name-char {
    color: var(--text);
}

.last-name .name-char {
    color: transparent;
    background:
        linear-gradient(
            90deg,
            #075f56 0%,
            #0b8877 38%,
            #15a58d 68%,
            #39796f 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
}

.dark-theme .last-name .name-char {
    background:
        linear-gradient(
            90deg,
            #51dbc2,
            #7cebd7,
            #39c8ad
        );
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes letterEnter {
    0% {
        opacity: 0;
        transform:
            translateY(45px)
            rotateX(65deg)
            scale(.84);
    }

    72% {
        opacity: 1;
        transform:
            translateY(-5px)
            rotateX(0deg)
            scale(1.02);
    }

    100% {
        opacity: 1;
        transform:
            translateY(0)
            rotateX(0deg)
            scale(1);
    }
}

.profession-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    font-size: 11px;
    font-weight: 800;
}

.profession-row i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

.hero-bilingual {
    max-width: 670px;
}

.hero-description {
    margin-top: 23px;
    color: var(--muted);
    font-size: 12.5px;
}

.hero-description.bn-copy {
    position: relative;
    margin-top: 13px;
    padding-left: 15px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
}

.hero-description.bn-copy::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    bottom: 5px;
    width: 3px;
    border-radius: 10px;
    background:
        linear-gradient(
            var(--primary),
            var(--primary-two)
        );
}

.bn-copy {
    color: var(--muted);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 30px;
}

.main-button {
    min-height: 53px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border-radius: 17px;
    font-size: 9px;
    font-weight: 800;
    transition: .35s ease;
}

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

.primary-button {
    color: #fff;
    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-dark)
        );
    box-shadow: 0 14px 35px rgba(7, 95, 86, .19);
}

.secondary-button {
    border: 1px solid var(--line);
    color: var(--primary);
    background: var(--surface-solid);
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.hero-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 9px;
}

.profile-stage {
    position: relative;
    width: min(500px, 92%);
    margin: auto;
    perspective: 1200px;
}

.profile-glow {
    position: absolute;
    inset: 10% -10%;
    border-radius: 40%;
    background: rgba(23, 173, 149, .18);
    filter: blur(50px);
}

.profile-ring {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 40px;
}

.ring-one {
    inset: -15px;
}

.ring-two {
    inset: -31px;
    border-style: dashed;
    opacity: .5;
    animation: ringPulse 5s ease-in-out infinite;
}

@keyframes ringPulse {
    50% {
        transform: scale(1.018);
        opacity: .2;
    }
}

.profile-card {
    position: relative;
    z-index: 2;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 35px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.profile-image {
    width: 100%;
    min-height: 480px;
    height: min(590px, 69vh);
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 27px;
    background: var(--surface-two);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.profile-footer {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 9px 2px;
}

.profile-footer strong {
    display: block;
    font-size: 12px;
}

.profile-footer div span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.online-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--primary-two);
    box-shadow: 0 0 0 6px rgba(23, 173, 149, .12);
}

.hero-stats {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--small-shadow);
}

.hero-stats article {
    min-height: 130px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 23px;
    border-right: 1px solid var(--line);
    transition: .35s ease;
}

.hero-stats article:last-child {
    border-right: 0;
}

.hero-stats article:hover {
    background: var(--surface-solid);
    transform: translateY(-4px);
}

.hero-stats i {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 17px;
}

.hero-stats strong {
    color: var(--primary);
    font-size: 22px;
    line-height: 1.1;
}

.hero-stats span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
}

.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 50px;
}

.section-heading.center {
    margin-inline: auto;
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-label::before {
    content: "";
    width: 27px;
    height: 2px;
    border-radius: 20px;
    background: var(--primary-two);
}

.section-heading h2 {
    margin-top: 10px;
    font-size: clamp(38px, 5vw, 61px);
    line-height: 1.08;
    letter-spacing: -3px;
}

.section-heading h2 em {
    display: block;
    color: var(--primary);
    font-style: normal;
}

.section-heading p {
    margin-top: 15px;
    color: var(--muted);
    font-size: 11px;
}

.section-heading .bn-copy {
    font-size: 13px;
}

.reveal {
    opacity: 1;
    transform: none;
}

body.reveal-ready .reveal:not(.show) {
    opacity: 0;
    transform: translateY(45px);
}

body.reveal-ready .reveal {
    transition:
        opacity .75s ease,
        transform .85s cubic-bezier(.22, 1, .36, 1);
}

body.reveal-ready .reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.about {
    background: var(--bg-soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 75px;
}

.language-title {
    width: fit-content;
    margin-bottom: 15px;
}

.language-title span {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 30px;
    color: var(--primary);
    background: var(--surface-two);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.language-title.bangla-label span {
    font-size: 11px;
    letter-spacing: 0;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
}

.about-content .about-lead {
    color: var(--text);
    font-size: 21px;
    font-weight: 600;
}

.bangla-about {
    position: relative;
    margin-top: 35px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: var(--surface-solid);
    box-shadow: var(--small-shadow);
}

.bangla-about p {
    font-size: 14px;
    line-height: 1.85;
}

.bangla-about .about-lead {
    font-size: 19px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.about-card {
    position: relative;
    min-height: 225px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-solid);
    box-shadow: 0 12px 35px rgba(3, 60, 54, .05);
}

.about-card > span {
    position: absolute;
    top: 15px;
    right: 18px;
    color: rgba(7, 95, 86, .12);
    font-size: 28px;
    font-weight: 800;
}

.about-card > i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 14px;
    color: white;
    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-two)
        );
}

.about-card small {
    color: var(--primary);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.about-card h3 {
    margin-top: 4px;
    font-size: 16px;
}

.about-card p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
}

.card-bn {
    padding-top: 6px;
    border-top: 1px solid var(--line);
    color: var(--text) !important;
    font-size: 11px !important;
    line-height: 1.65;
}

.services-summary {
    margin-top: 70px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        linear-gradient(
            145deg,
            var(--surface-solid),
            var(--surface)
        );
    box-shadow: var(--shadow);
}

.service-summary-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.service-summary-heading h3 {
    margin-top: 8px;
    font-size: clamp(29px, 4vw, 43px);
    line-height: 1.15;
    letter-spacing: -2px;
}

.service-summary-heading h3 span {
    color: var(--primary);
}

.service-summary-heading p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
}

.service-summary-heading .bn-copy {
    font-size: 13px;
}

.service-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.service-mini-card {
    min-height: 115px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-two);
    transition: .35s ease;
}

.service-mini-card:hover {
    background: var(--surface-solid);
}

.service-mini-card > i {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-two)
        );
}

.service-mini-card strong {
    display: block;
    font-size: 10px;
}

.service-mini-card span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.journey {
    background: var(--surface-two);
}

.timeline {
    position: relative;
    max-width: 950px;
    margin: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 38px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background:
        linear-gradient(
            var(--primary),
            var(--primary-two),
            transparent
        );
}

.timeline-card {
    position: relative;
    display: grid;
    grid-template-columns: 77px 1fr;
    gap: 35px;
    margin-bottom: 20px;
}

.timeline-year {
    position: relative;
    z-index: 3;
    width: 77px;
    height: 77px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: white;
    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-dark)
        );
    box-shadow: 0 14px 32px rgba(7, 95, 86, .17);
    font-size: 13px;
    font-weight: 800;
}

.timeline-copy {
    padding: 24px 27px;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: var(--surface-solid);
    box-shadow: 0 10px 30px rgba(3, 60, 54, .04);
}

.timeline-copy > span {
    color: var(--primary);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.timeline-copy h3 {
    margin-top: 4px;
    font-size: 20px;
}

.timeline-copy p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

.timeline-bn {
    padding-top: 9px;
    border-top: 1px solid var(--line);
    color: var(--text) !important;
    font-size: 12px !important;
}

.recognition {
    background: var(--bg-soft);
}

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.recognition-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: var(--surface-solid);
    box-shadow: var(--small-shadow);
}

.recognition-image {
    position: relative;
    width: 100%;
    height: 380px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 10px;
    border: 0;
    background: var(--surface-two);
}

.recognition-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s ease;
}

.recognition-image:hover img {
    transform: scale(1.025);
}

.recognition-image span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: var(--surface-solid);
    box-shadow: var(--small-shadow);
}

.recognition-copy {
    min-height: 145px;
    padding: 20px 21px;
}

.recognition-copy small {
    color: var(--gold);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.recognition-copy h3 {
    margin-top: 5px;
    font-size: 17px;
}

.recognition-copy p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 9px;
}

.skills {
    background: var(--surface-two);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.skill-card {
    min-height: 270px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-solid);
    box-shadow: var(--small-shadow);
}

.skill-card > i {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    border-radius: 18px;
    color: white;
    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-two)
        );
    font-size: 19px;
}

.skill-card h3 {
    font-size: 16px;
}

.skill-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.portfolio-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(23, 173, 149, .12),
            transparent 30%
        ),
        var(--bg);
}

.book-area {
    max-width: 1140px;
    margin: auto;
}

.book-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.book-control {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 17px;
    color: var(--primary);
    background: var(--surface-solid);
    box-shadow: var(--small-shadow);
    transition: .3s ease;
}

.book-control:hover {
    color: white;
    background: var(--primary);
    transform: translateY(-4px);
}

.book-control:disabled {
    opacity: .35;
    cursor: default;
    transform: none;
}

.book-page-counter {
    min-width: 155px;
    text-align: center;
}

.book-page-counter span {
    display: block;
    color: var(--muted);
    font-size: 7px;
    letter-spacing: 1.7px;
}

.book-page-counter strong {
    display: block;
    margin-top: 2px;
    color: var(--primary);
    font-size: 14px;
}

.book-scene {
    position: relative;
    width: 100%;
    perspective: 2400px;
    padding: 35px 0 45px;
}

.flip-book {
    position: relative;
    width: min(1080px, 100%);
    height: 660px;
    margin: auto;
    transform-style: preserve-3d;
    perspective: 2400px;
}

.book-shadow {
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: -25px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .17);
    filter: blur(25px);
    transform: scaleY(.45);
}

.book-base {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    border: 1px solid rgba(101, 72, 36, .20);
    background:
        linear-gradient(
            145deg,
            #163f38,
            #082a25
        );
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, .20),
        0 20px 55px rgba(0, 0, 0, .17);
}

.book-base-left {
    left: 0;
    border-radius: 30px 4px 4px 30px;
}

.book-base-right {
    right: 0;
    border-radius: 4px 30px 30px 4px;
}

.base-decoration {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    color: rgba(255, 255, 255, .13);
}

.base-decoration span {
    width: 75px;
    height: 75px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 22px;
    font-size: 30px;
    font-weight: 800;
}

.base-decoration i {
    font-size: 50px;
}

.base-decoration small {
    letter-spacing: 3px;
    font-size: 8px;
}

.book-leaves {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.book-leaf {
    position: absolute;
    top: 12px;
    left: 50%;
    width: calc(50% - 12px);
    height: calc(100% - 24px);
    transform-origin: left center;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition:
        transform
        1.15s
        cubic-bezier(.18, .72, .16, 1);
    will-change: transform;
    pointer-events: auto;
    cursor: pointer;
}

.book-leaf.flipped {
    transform: rotateY(-180deg);
}

.book-leaf.turning {
    transition:
        transform
        1.15s
        cubic-bezier(.18, .72, .16, 1);
}

.book-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(85, 64, 32, .12);
    background: #fbfaf5;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    box-shadow:
        inset 0 0 35px rgba(70, 54, 29, .055);
}

.book-front {
    border-radius: 3px 22px 22px 3px;
    transform: rotateY(0deg) translateZ(.6px);
}

.book-back {
    border-radius: 22px 3px 3px 22px;
    transform: rotateY(180deg) translateZ(.6px);
}

.book-face::before,
.book-face::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.book-face::before {
    z-index: 30;
    opacity: 0;
}

.book-face::after {
    z-index: 20;
}

.book-front::after {
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .10),
            transparent 8%,
            transparent 87%,
            rgba(255, 255, 255, .40)
        );
}

.book-back::after {
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .38),
            transparent 10%,
            transparent 91%,
            rgba(0, 0, 0, .09)
        );
}

.book-leaf.turning-forward .book-front::before {
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, .06) 35%,
            rgba(0, 0, 0, .30) 79%,
            rgba(255, 255, 255, .45) 100%
        );
    animation:
        frontPageShade
        1.15s
        ease-in-out;
}

.book-leaf.turning-forward .book-back::before {
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .42),
            rgba(0, 0, 0, .17),
            transparent
        );
    animation:
        backPageShade
        1.15s
        ease-in-out;
}

.book-leaf.turning-backward .book-back::before {
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .40),
            rgba(0, 0, 0, .20),
            transparent
        );
    animation:
        backPageShade
        1.15s
        ease-in-out
        reverse;
}

.book-leaf.turning-backward .book-front::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0, 0, 0, .25),
            rgba(255, 255, 255, .38)
        );
    animation:
        frontPageShade
        1.15s
        ease-in-out
        reverse;
}

.book-leaf.turning-forward {
    animation:
        forwardPageLift
        1.15s
        ease;
}

.book-leaf.turning-backward {
    animation:
        backwardPageLift
        1.15s
        ease;
}

@keyframes frontPageShade {
    0% {
        opacity: 0;
    }

    24% {
        opacity: .34;
    }

    52% {
        opacity: .92;
    }

    78% {
        opacity: .38;
    }

    100% {
        opacity: 0;
    }
}

@keyframes backPageShade {
    0% {
        opacity: 0;
    }

    32% {
        opacity: .28;
    }

    57% {
        opacity: .78;
    }

    82% {
        opacity: .22;
    }

    100% {
        opacity: 0;
    }
}

@keyframes forwardPageLift {
    0% {
        filter:
            drop-shadow(
                0 4px 7px
                rgba(0, 0, 0, .05)
            );
    }

    46% {
        filter:
            drop-shadow(
                22px 25px 30px
                rgba(0, 0, 0, .30)
            );
    }

    100% {
        filter:
            drop-shadow(
                0 4px 7px
                rgba(0, 0, 0, .05)
            );
    }
}

@keyframes backwardPageLift {
    0% {
        filter:
            drop-shadow(
                0 4px 7px
                rgba(0, 0, 0, .05)
            );
    }

    46% {
        filter:
            drop-shadow(
                -22px 25px 30px
                rgba(0, 0, 0, .30)
            );
    }

    100% {
        filter:
            drop-shadow(
                0 4px 7px
                rgba(0, 0, 0, .05)
            );
    }
}

.book-cover-face {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
    text-align: center;
    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(35, 215, 180, .23),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #083e37,
            #031f1c
        );
}

.book-cover-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.book-cover-logo {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    margin: 0 auto 34px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    color: #7be7d3;
    background: rgba(255, 255, 255, .06);
    box-shadow:
        inset 0 0 30px
        rgba(255, 255, 255, .04);
    font-size: 30px;
    font-weight: 800;
}

.book-cover-content small {
    display: block;
    color: #75dfcc;
    font-size: 8px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.book-cover-content h3 {
    margin-top: 15px;
    font-size: clamp(35px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.book-cover-content p {
    max-width: 350px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, .64);
    font-size: 11px;
}

.cover-open-label {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 35px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50px;
    color: white;
    background: rgba(255, 255, 255, .07);
    font-size: 8px;
    font-weight: 800;
}

.project-page {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 23px;
    color: #11231f;
}

.project-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 37px;
    padding-bottom: 12px;
    border-bottom:
        1px solid
        rgba(16, 35, 31, .10);
}

.project-page-header span {
    color: #176d60;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.project-page-header strong {
    color: rgba(16, 35, 31, .24);
    font-size: 14px;
}

.project-page-image {
    position: relative;
    flex: 1;
    min-height: 0;
    display: grid;
    place-items: center;
    margin: 17px 0;
    overflow: hidden;
    border-radius: 14px;
    background: #efede7;
}

.project-page-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.project-full-button {
    position: absolute;
    z-index: 50;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #0b6459;
    background: white;
    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, .12);
}

.project-page-footer {
    min-height: 74px;
}

.project-page-footer small {
    display: block;
    color: #b47b27;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.project-page-footer h3 {
    margin-top: 4px;
    font-size: 19px;
    line-height: 1.25;
}

.pdf-book-page {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    text-align: center;
    color: #075f56;
}

.book-spine {
    position: absolute;
    z-index: 30;
    top: 13px;
    bottom: 13px;
    left: 50%;
    width: 14px;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .13),
            rgba(255, 255, 255, .3),
            rgba(0, 0, 0, .15)
        );
    filter: blur(2px);
    opacity: .6;
}

.book-instruction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 8px;
    color: var(--muted);
    text-align: center;
    font-size: 8px;
}

.book-instruction i {
    color: var(--primary);
}

.vision {
    padding: 115px 0;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(
            circle at 15% 50%,
            rgba(35, 211, 178, .18),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #06483f,
            #031f1c
        );
}

.vision-grid {
    display: grid;
    grid-template-columns: .42fr 1.58fr;
    align-items: center;
    gap: 70px;
}

.vision-year {
    color: rgba(255, 255, 255, .08);
    font-size: clamp(90px, 13vw, 175px);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -10px;
}

.vision-content > span {
    color: #74e5d1;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.vision-content h2 {
    max-width: 850px;
    margin-top: 9px;
    font-size: clamp(39px, 5vw, 63px);
    line-height: 1.08;
    letter-spacing: -3px;
}

.vision-content h2 em {
    display: block;
    color: #7ce8d5;
    font-style: normal;
}

.vision-content p {
    max-width: 760px;
    margin-top: 20px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
}

.vision-bn {
    padding-left: 15px;
    border-left: 3px solid #6ee3ce;
    color: rgba(255, 255, 255, .82) !important;
    font-size: 14px !important;
    line-height: 1.8;
}

.vision-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.vision-tags span {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50px;
    font-size: 7px;
}

.contact {
    background: var(--bg-soft);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.contact-card {
    min-height: 112px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 21px;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: var(--surface-solid);
    box-shadow: var(--small-shadow);
}

.contact-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: white;
    font-size: 18px;
}

.phone-icon {
    background:
        linear-gradient(
            145deg,
            #136b61,
            #25b399
        );
}

.whatsapp-icon {
    background:
        linear-gradient(
            145deg,
            #0a9452,
            #25d366
        );
}

.email-icon {
    background:
        linear-gradient(
            145deg,
            #3268a8,
            #46a0dc
        );
}

.contact-card small {
    display: block;
    color: var(--muted);
    font-size: 7px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-card strong {
    display: block;
    margin-top: 3px;
    font-size: 11px;
}

.contact-card > i {
    color: var(--primary);
    font-size: 10px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 35px;
}

.social-card {
    min-height: 98px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 18px 21px;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: var(--surface-solid);
    box-shadow: var(--small-shadow);
}

.social-card > i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: white;
    background:
        linear-gradient(
            145deg,
            #1463ca,
            #2e91ff
        );
    font-size: 19px;
}

.social-card small {
    display: block;
    color: var(--muted);
    font-size: 7px;
    text-transform: uppercase;
}

.social-card strong {
    display: block;
    margin-top: 2px;
    font-size: 11px;
}

.social-card > span {
    color: var(--primary);
}

.footer {
    padding: 35px 0;
    color: rgba(255, 255, 255, .53);
    background: #031f1c;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 20px;
}

.footer strong {
    color: white;
    font-size: 12px;
}

.footer p {
    margin-top: 3px;
    font-size: 7px;
}

.copyright {
    text-align: center;
}

.developer {
    text-align: right;
}

.developer span {
    display: block;
    font-size: 7px;
}

.developer a {
    color: #6ae1cb;
    font-size: 9px;
    font-weight: 800;
}

.floating-whatsapp {
    position: fixed;
    z-index: 950;
    right: 17px;
    bottom: 17px;
    min-height: 51px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 19px;
    border-radius: 17px;
    color: white;
    background:
        linear-gradient(
            145deg,
            #0e9c59,
            #20c778
        );
    box-shadow:
        0 15px 38px
        rgba(0, 0, 0, .16);
    font-size: 9px;
    font-weight: 800;
}

.back-top {
    position: fixed;
    z-index: 950;
    left: 17px;
    bottom: 17px;
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 15px;
    color: white;
    background: var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .3s ease;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(2, 20, 18, .96);
    backdrop-filter: blur(13px);
    opacity: 0;
    visibility: hidden;
    transition: .35s ease;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    width: min(1050px, 88vw);
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 82vh;
    margin: auto;
    object-fit: contain;
    border-radius: 15px;
}

.lightbox-content h3 {
    margin-top: 12px;
    color: white;
    font-size: 14px;
}

.lightbox-close {
    position: absolute;
    top: 21px;
    right: 21px;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 15px;
    color: var(--primary-dark);
    background: white;
}

@media (max-width: 1050px) {
    .recognition-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recognition-card:first-child {
        grid-column: 1 / -1;
    }

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

    .service-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flip-book {
        height: 610px;
    }
}

@media (max-width: 900px) {
    .header-shell {
        grid-template-columns: 1fr auto;
    }

    .nav-menu {
        position: fixed;
        top: 91px;
        left: 50%;
        width: min(520px, calc(100% - 30px));
        height: auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 9px;
        padding: 20px 14px 14px;
        border-radius: 25px;
        background: var(--surface-solid);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform:
            translate(-50%, -20px)
            scale(.96);
        transition: .35s ease;
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform:
            translate(-50%, 0)
            scale(1);
    }

    .nav-link {
        min-width: 0;
        height: 70px;
        flex-direction: column;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--surface-two);
    }

    .nav-link.active {
        color: white;
        background: var(--primary);
        transform: translateY(-7px);
    }

    .nav-link.active::before {
        display: none;
    }

    .nav-icon,
    .nav-link.active .nav-icon {
        width: 30px;
        height: 30px;
        opacity: 1;
        transform: none;
        color: inherit;
        background: transparent;
        box-shadow: none;
    }

    .nav-link.active > span:last-child {
        position: static;
        font-size: 8px;
    }

    .talk-button {
        display: none;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .profile-stage {
        width: min(500px, 80%);
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats article:nth-child(2) {
        border-right: 0;
    }

    .hero-stats article:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

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

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

    .vision-year {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .developer {
        text-align: center;
    }
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 24px);
    }

    html {
        scroll-padding-top: 90px;
    }

    .header {
        padding-top: 7px;
    }

    .header-shell {
        min-height: 65px;
        padding: 7px;
        border-radius: 20px;
    }

    .brand-mark {
        width: 43px;
        height: 43px;
        border-radius: 13px;
    }

    .brand-copy strong {
        font-size: 12px;
    }

    .brand-copy small {
        display: none;
    }

    .theme-button,
    .menu-button {
        width: 43px;
        height: 43px;
        border-radius: 13px;
    }

    .nav-menu {
        top: 79px;
    }

    .hero {
        padding: 105px 0 70px;
    }

    .profile-stage {
        width: calc(100% - 12px);
    }

    .profile-card {
        padding: 8px;
        border-radius: 28px;
    }

    .profile-image {
        min-height: 0;
        height: auto;
        aspect-ratio: 3 / 4;
        border-radius: 22px;
    }

    .hero-name,
    .name-char {
        font-size: clamp(52px, 16vw, 72px);
        letter-spacing: -4px;
    }

    .profession-row {
        font-size: 8px;
        gap: 6px;
    }

    .hero-description {
        font-size: 11.5px;
    }

    .hero-description.bn-copy {
        font-size: 13px;
    }

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

    .main-button {
        width: 100%;
    }

    .hero-contact {
        flex-direction: column;
        gap: 7px;
    }

    .section {
        padding: 80px 0;
    }

    .section-heading h2 {
        font-size: 37px;
        letter-spacing: -2px;
    }

    .about-cards,
    .recognition-grid,
    .skills-grid,
    .contact-grid,
    .social-grid,
    .service-mini-grid {
        grid-template-columns: 1fr;
    }

    .recognition-card:first-child {
        grid-column: auto;
    }

    .services-summary {
        padding: 23px;
        border-radius: 24px;
    }

    .service-mini-card {
        min-height: 100px;
    }

    .recognition-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .timeline::before {
        left: 27px;
    }

    .timeline-card {
        grid-template-columns: 56px 1fr;
        gap: 13px;
    }

    .timeline-year {
        width: 56px;
        height: 56px;
        border-radius: 17px;
        font-size: 10px;
    }

    .timeline-copy {
        padding: 17px;
    }

    .book-scene {
        padding: 22px 0 35px;
        overflow: visible;
    }

    .flip-book {
        width: 100%;
        height: min(620px, 72vh);
        min-height: 520px;
    }

    .book-base-left {
        display: none;
    }

    .book-base-right {
        left: 0;
        right: auto;
        width: 100%;
        border-radius: 25px;
    }

    .book-leaf {
        left: 0;
        top: 8px;
        width: calc(100% - 16px);
        height: calc(100% - 16px);
        margin-inline: 8px;
        transform-origin: left center;
        transition:
            transform
            1.05s
            cubic-bezier(.18, .72, .16, 1);
    }

    .book-leaf.turning {
        transition:
            transform
            1.05s
            cubic-bezier(.18, .72, .16, 1);
    }

    .book-front,
    .book-back {
        border-radius: 22px;
    }

    .book-spine {
        display: none;
    }

    .book-cover-face {
        padding: 28px;
    }

    .book-cover-content h3 {
        font-size: 38px;
    }

    .project-page {
        padding: 16px;
    }

    .project-page-image {
        margin: 12px 0;
    }

    .project-page-footer {
        min-height: 65px;
    }

    .project-page-footer h3 {
        font-size: 16px;
    }

    .book-instruction {
        padding: 0 12px;
        font-size: 7px;
    }

    .vision {
        padding: 85px 0;
    }

    .vision-content h2 {
        font-size: 38px;
        letter-spacing: -2px;
    }

    .contact-card {
        min-height: 96px;
        padding: 14px;
    }

    .contact-card strong {
        font-size: 9px;
        word-break: break-word;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        min-height: 50px;
        padding: 0;
        display: grid;
        place-items: center;
        border-radius: 15px;
        font-size: 18px;
    }

    .floating-whatsapp span {
        display: none;
    }

    .lightbox {
        padding: 12px;
    }

    .lightbox-content {
        width: 95vw;
    }
}

@media (max-width: 420px) {
    .container {
        width: calc(100% - 18px);
    }

    .brand-copy strong {
        max-width: 135px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .hero-name,
    .name-char {
        font-size: 49px;
    }

    .profession-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .profession-row i {
        display: none;
    }

    .nav-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .flip-book {
        height: 555px;
        min-height: 500px;
    }

    .project-page {
        padding: 13px;
    }

    .project-page-footer h3 {
        font-size: 14px;
    }
}

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

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}