@import url(../css/font.css);

:root {
    --PJS: 'PJS', cursive;
    --GBS: 'GBS', cursive;
    --Fra: 'Fra', cursive;
    --Oswald: 'Oswald', cursive;

    /* palette (unchanged brand colors, just named) */
    --c-red: #ff0000;
    --c-red-dim: #cc0000;
    --c-red-soft: #fff1f1;
    --c-black: #000000;
    --c-ink: #101010;
    --c-white: #ffffff;
    --c-soft: #f7f7f6;
    --c-line: #e9e9e9;

    --radius-lg: 30px;
    --radius-pill: 50px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --dur-sm: .25s;
    --dur-md: .4s;
    --dur-lg: .7s;
}

* {
    margin: 0;
    padding: 0;
    font-family: var(--Fra);
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--c-white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

::selection {
    background: var(--c-red);
    color: var(--c-white);
}

/* focus visibility (accessibility) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--c-red);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ============ NAVBAR ============ */

.nav_bg {
    background-color: #101516;
}

.logo,
li a {
    font-family: var(--GBS);
    color: #fff !important;
    letter-spacing: 1.2px;
}

.logo {
    font-size: 1.5rem;
    transition: letter-spacing var(--dur-md) var(--ease), color var(--dur-md) var(--ease);
}

.logo:hover {
    letter-spacing: 2px;
    color: var(--c-red) !important;
}

.nav_b {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 14px 0;
    background: transparent;
    transition: background var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease);
}

.nav_box {
    border-radius: var(--radius-pill);
    background-color: #000000;
    padding: 5px 20px;
    transition: box-shadow var(--dur-md) var(--ease);
}

.nav_b.scrolled .nav_box {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.nav_hover a {
    position: relative;
    color: #fff !important;
    min-width: 90px;
    border: 1px solid transparent;
    background-color: transparent;
    border-radius: var(--radius-pill);
    padding: 8px 22px;
    text-align: center;
    align-items: center;
    display: inline-block;
    overflow: hidden;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
}

.nav_hover a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: var(--radius-pill);
    transform: scale(0);
    z-index: -1;
    transition: transform var(--dur-md) var(--ease);
}

.nav_hover a:hover,
.nav_hover a.active {
    color: #000 !important;
    transform: translateY(-1px);
}

.nav_hover a:hover::before,
.nav_hover a.active::before {
    transform: scale(1);
}

/* custom toggler: minimal thin lines, no circle/fill background */
.custom-toggler {
    position: relative;
    width: 30px;
    height: 20px;
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none !important;
}

.custom-toggler:focus {
    box-shadow: none;
    outline: none;
}

.toggler-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform-origin: center;
    transition: transform var(--dur-md) var(--ease), opacity var(--dur-sm) var(--ease),
        background var(--dur-md) var(--ease), width var(--dur-md) var(--ease);
}

.bar-mid {
    margin-left: auto;
    width: 70%;
}

.custom-toggler:hover .toggler-bar {
    background: var(--c-red);
}

.custom-toggler:hover .bar-mid {
    width: 100%;
}

/* open state (toggled via JS on collapse show/hide) */
.custom-toggler.is-open .toggler-bar {
    background: var(--c-red);
}

.custom-toggler.is-open .bar-top {
    transform: translateY(9px) rotate(45deg);
}

.custom-toggler.is-open .bar-mid {
    opacity: 0;
    width: 100%;
}

.custom-toggler.is-open .bar-bottom {
    width: 100%;
    transform: translateY(-9px) rotate(-45deg);
}

/* ============ BUTTONS ============ */

.btn_style1 {
    color: var(--c-red);
    border: 1px solid var(--c-red);
    border-radius: var(--radius-pill);
    padding: 9px 35px;
    letter-spacing: 1.2px;
    font-family: var(--Oswald);
    display: inline-block;
    transition: color var(--dur-sm) var(--ease), background-color var(--dur-sm) var(--ease),
        box-shadow var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
}

.btn_style1:hover {
    color: #fff;
    border: 1px solid var(--c-red);
    background-color: var(--c-red);
    padding: 9px 35px;
    box-shadow: 0 10px 25px rgba(255, 0, 0, .3);
    transform: translateY(-3px);
}

.btn_style2 {
    color: #fff;
    border: 1px solid #000;
    background-color: #000;
    border-radius: var(--radius-pill);
    padding: 9px 35px;
    letter-spacing: 1.2px;
    font-family: var(--Oswald);
    display: inline-block;
    transition: color var(--dur-sm) var(--ease), background-color var(--dur-sm) var(--ease),
        box-shadow var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
}

.btn_style2:hover {
    color: #000;
    background-color: #fff;
    border: 1px solid #000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
    transform: translateY(-3px);
}

/* ============ HERO / BANNER ============ */

.bunner {
    top: auto;
}

.hig_col {
    color: var(--c-red) !important;
}

.bun_word p {
    color: #000;
    font-size: .8rem;
    letter-spacing: 1.2px;
    margin: 0;
    padding: 0;
    font-family: var(--Oswald);
}

.bun_word {
    margin-top: 130px;
    border: 1px solid var(--c-red);
    border-radius: var(--radius-pill);
    background-color: var(--c-red-soft) !important;
    color: var(--c-red) !important;
    padding: 6px 18px;
    width: fit-content;
    text-align: center;
    position: relative;
}

.bun_word::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-red);
    margin-right: 8px;
    vertical-align: middle;
    animation: pulseDot 1.8s var(--ease) infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, .5); }
    70% { box-shadow: 0 0 0 8px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.font_sz {
    font-size: clamp(2.1rem, 5.2vw + .6rem, 4rem);
    font-family: var(--GBS);
    line-height: 1.08;
}

.bunner p,
.bunner div {
    opacity: 0;
    transform: translateY(24px);
    animation: heroUp var(--dur-lg) var(--ease) forwards;
}

.bunner .bun_word { animation-delay: .05s; }
.bunner p.mt-3 { animation-delay: .15s; }
.bunner p.font_sz:nth-of-type(1) { animation-delay: .25s; }
.bunner p.font_sz:nth-of-type(2) { animation-delay: .35s; }
.bunner p.font_sz:nth-of-type(3) { animation-delay: .45s; }
.bunner div:last-child { animation-delay: .55s; }

@keyframes heroUp {
    to { opacity: 1; transform: translateY(0); }
}

.profile {
    margin-top: 130px;
    margin-left: auto;
    width: 420px;
    max-width: 100%;
    height: 420px;
    background-color: var(--c-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    animation: floatY 5s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.profile::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 0, 0, .55);
    animation: spinSlow 18s linear infinite;
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

.profile-img {
    width: 410px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.line {
    background-color: #000;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .8s var(--ease);
}

.line.in-view {
    transform: scaleX(1);
}

/* ============ SECTION REVEALS ============ */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

[data-reveal-stagger].in-view > * {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-stagger].in-view > *:nth-child(1) { transition-delay: .05s; }
[data-reveal-stagger].in-view > *:nth-child(2) { transition-delay: .15s; }
[data-reveal-stagger].in-view > *:nth-child(3) { transition-delay: .25s; }
[data-reveal-stagger].in-view > *:nth-child(4) { transition-delay: .35s; }
[data-reveal-stagger].in-view > *:nth-child(5) { transition-delay: .45s; }
[data-reveal-stagger].in-view > *:nth-child(6) { transition-delay: .55s; }

/* ============ SECTION TITLES ============ */

.sec_title {
    font-family: var(--GBS);
    text-align: center;
    margin-bottom: .4rem;
}

.sec_eyebrow {
    font-family: var(--Oswald);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--c-red);
    font-size: .8rem;
    text-align: center;
    display: block;
    margin-bottom: 8px;
}

.sec_underline {
    width: 60px;
    height: 3px;
    background: var(--c-red);
    border-radius: 3px;
    margin: 0 auto 3rem;
}

/* ============ ABOUT ============ */

.about_mew {
    font-size: 1.1rem;
    line-height: 1.7;
    letter-spacing: .4px;
    text-align: justify;
}

.table-card table {
    width: 100%;
    background: #000 !important;
    color: #fff !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-card th,
.table-card td {
    background: #000 !important;
    color: #fff !important;
    padding: 14px 20px;
    transition: background var(--dur-sm) var(--ease);
}

.table-card tr {
    transition: background var(--dur-sm) var(--ease);
}

.table-card tr:hover th,
.table-card tr:hover td {
    background: #1a1a1a !important;
}

.table-card th {
    font-family: var(--Oswald);
    font-weight: 500;
    letter-spacing: .6px;
    color: var(--c-red) !important;
}

.table-card th i {
    margin-right: 10px;
    color: var(--c-red);
    width: 16px;
}

/* ============ SOCIAL ICONS ============ */

.social_icon a {
    color: var(--c-red) !important;
    text-decoration: none;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--c-line);
    transition: transform var(--dur-sm) var(--ease), background var(--dur-sm) var(--ease),
        color var(--dur-sm) var(--ease), border-color var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease);
}

.social_icon a:hover {
    background: var(--c-red);
    color: #fff !important;
    border-color: var(--c-red);
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 22px rgba(255, 0, 0, .3);
}

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

footer {
    padding: 24px 0;
    border-top: 1px solid var(--c-line);
    margin-top: 40px;
}

footer p {
    font-family: var(--Oswald);
    letter-spacing: .5px;
    font-size: .9rem;
}

/* back to top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-black);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--dur-md) var(--ease), transform var(--dur-md) var(--ease),
        background var(--dur-sm) var(--ease), visibility var(--dur-md);
    z-index: 998;
    cursor: pointer;
}

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

.back-to-top:hover {
    background: var(--c-red);
}

/* ============ PAGE HEADER (Resume / Projects / Contact) ============ */

.page_head {
    padding: 170px 0 60px;
    text-align: center;
}

.page_head span.sec_eyebrow {
    margin-bottom: 14px;
}

.page_head h1 {
    font-family: var(--GBS);
    font-size: clamp(2rem, 4vw + .6rem, 3rem);
}

.page_head h1 span {
    color: var(--c-red);
}

.page_head p {
    max-width: 560px;
    margin: 14px auto 0;
    color: #444;
    line-height: 1.6;
}

/* ============ RESUME ============ */

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--c-line);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -40px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--c-red);
    z-index: 1;
}

.timeline-item .t_date {
    font-family: var(--Oswald);
    color: var(--c-red);
    font-size: .8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.timeline-item h4 {
    font-family: var(--GBS);
    margin: 6px 0 8px;
    font-size: 1.25rem;
}

.timeline-item p {
    color: #444;
    line-height: 1.6;
}

.skill-block {
    margin-bottom: 22px;
}

.skill-block .skill-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--Oswald);
    letter-spacing: .5px;
    margin-bottom: 8px;
    font-size: .95rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    border-radius: 8px;
    background: var(--c-soft);
    overflow: hidden;
}

.skill-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--c-red-dim), var(--c-red));
    transition: width 1.1s var(--ease);
}

.skill-bar.filled span {
    width: var(--target, 0%);
}

.service-card {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    height: 100%;
    transition: transform var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease), border-color var(--dur-md);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    border-color: transparent;
}

.service-card .s_icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-red-soft);
    color: var(--c-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
    transition: background var(--dur-md) var(--ease), color var(--dur-md) var(--ease);
}

.service-card:hover .s_icon {
    background: var(--c-red);
    color: #fff;
}

.service-card h5 {
    font-family: var(--GBS);
    margin-bottom: 10px;
}

.service-card p {
    color: #555;
    font-size: .95rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.resume-cta {
    background: var(--c-black);
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    text-align: center;
    color: #fff;
}

.resume-cta h3 {
    font-family: var(--GBS);
    margin-bottom: 10px;
}

.resume-cta p {
    color: #bbb;
    margin-bottom: 24px;
}

.resume-cta .btn_style1 {
    color: #fff;
    border-color: #fff;
}

.resume-cta .btn_style1:hover {
    background: var(--c-red);
    border-color: var(--c-red);
    color: #fff;
}

/* ============ PROJECTS ============ */

.project-section {
    width: 100%;
    padding: 0;
    display: block;
    margin: 0 auto;
}

.project-card {
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    margin-bottom: 34px;
    transition: transform var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .1);
}

.project-card:nth-child(even) {
    flex-direction: row-reverse;
}

.project-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-content .p_tag {
    font-family: var(--Oswald);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: .75rem;
    color: var(--c-red);
    margin-bottom: 10px;
}

.project-content h3 {
    font-family: var(--GBS);
    font-size: 1.9rem;
    color: #111;
    margin-bottom: 16px;
}

.project-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 20px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.tech-tags span {
    font-family: var(--Oswald);
    font-size: .75rem;
    letter-spacing: .5px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: var(--c-soft);
    color: #333;
}

.project-image {
    flex: 0 0 380px;
    height: auto;
    min-height: 320px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--ease);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--Oswald);
    letter-spacing: .5px;
    font-size: .9rem;
    color: #111;
    text-decoration: none;
    margin-right: 22px;
    transition: color var(--dur-sm) var(--ease), gap var(--dur-sm) var(--ease);
}

.project-links a:hover {
    color: var(--c-red);
}

.project-links a i {
    transition: transform var(--dur-sm) var(--ease);
}

.project-links a:hover i {
    transform: translateX(4px);
}

.projects-note {
    background: var(--c-red-soft);
    border: 1px dashed var(--c-red);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    color: var(--c-red-dim);
    font-size: .9rem;
    font-family: var(--Oswald);
    letter-spacing: .3px;
    margin-bottom: 40px;
}

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

.contact-card {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
    text-align: center;
    transition: transform var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}

.contact-card .c_icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--c-red-soft);
    color: var(--c-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-card h5 {
    font-family: var(--GBS);
    margin-bottom: 6px;
}

.contact-card p,
.contact-card a {
    color: #555;
    text-decoration: none;
    font-size: .95rem;
}

.contact-card a:hover {
    color: var(--c-red);
}

.contact-form {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 45px;
}

.contact-form .form-label {
    font-family: var(--Oswald);
    font-size: .85rem;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 8px;
}

.contact-form .form-control {
    border: none;
    border-bottom: 1px solid var(--c-line);
    border-radius: 0;
    padding: 10px 4px;
    font-family: var(--Fra);
    transition: border-color var(--dur-sm) var(--ease);
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--c-red);
}

.contact-form button[type="submit"] {
    border: none;
}

.form-status {
    font-family: var(--Oswald);
    font-size: .85rem;
    margin-top: 14px;
    display: none;
}

.form-status.show {
    display: block;
}

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

/* Large tablets / small laptops */
@media (max-width: 1199px) {
    .container { max-width: 100%; }
    .project-image { flex-basis: 320px; }
}

/* Tablets: navbar collapses, hero stacks, cards go single column */
@media (max-width: 991px) {
    .nav_b { padding: 10px 0; }

    .nav_box {
        border-radius: 24px;
        padding: 10px 18px;
    }

    .navbar-collapse {
        background: #000;
        border-radius: 18px;
        margin-top: 14px;
        padding: 10px 8px 16px;
    }

    .nav_hover {
        text-align: center;
    }

    .nav_hover a {
        display: block;
        width: 100%;
        margin: 0 !important;
        padding: 12px 20px;
        border-radius: 0;
        color: #ddd !important;
        font-size: .95rem;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .nav_hover li:last-child a {
        border-bottom: none;
    }

    .nav_hover a::before {
        content: none;
    }

    .nav_hover a::after {
        content: "";
        display: block;
        width: 0;
        height: 2px;
        background: var(--c-red);
        margin: 6px auto 0;
        transition: width var(--dur-md) var(--ease);
    }

    .nav_hover a:hover,
    .nav_hover a.active {
        color: var(--c-red) !important;
        transform: none;
    }

    .nav_hover a:hover::after,
    .nav_hover a.active::after {
        width: 28px;
    }

    .bunner .row { flex-direction: column-reverse; }

    .profile {
        margin: 0 auto 30px;
        width: 280px;
        height: 280px;
    }

    .profile-img { width: 270px; }

    .bun_word { margin-top: 30px; }

    .project-card,
    .project-card:nth-child(even) {
        flex-direction: column;
    }

    .project-image {
        flex: 0 0 240px;
        width: 100%;
    }

    .page_head { padding: 130px 0 50px; }

    .timeline { padding-left: 32px; }
    .timeline-item::before { left: -32px; }
}

/* Phones */
@media (max-width: 575px) {
    .container { padding-left: 16px; padding-right: 16px; }

    .bun_word p { font-size: .72rem; }

    .about_mew { font-size: 1rem; text-align: left; }

    .table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-card table { min-width: 380px; }
    .table-card th,
    .table-card td { padding: 12px 14px; font-size: .9rem; }

    .service-card,
    .contact-card { padding: 26px 22px; }

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

    .resume-cta { padding: 36px 20px; }

    .project-content { padding: 26px; }
    .project-content h3 { font-size: 1.5rem; }

    .social_icon a {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

    .btn_style1,
    .btn_style2 {
        padding: 9px 26px;
        display: inline-block;
        width: 100%;
        max-width: 260px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .font_sz { letter-spacing: 0; }
    .page_head h1 { font-size: 1.8rem; }
    .sec_title { font-size: 1.5rem; }
    .profile { width: 220px; height: 220px; }
    .profile-img { width: 210px; }
}

/* Touch devices: skip hover-only motion, keep transitions snappy */
@media (hover: none) {
    .service-card:hover,
    .contact-card:hover,
    .project-card:hover,
    .social_icon a:hover {
        transform: none;
        box-shadow: none;
    }

    .project-card:hover .project-image img {
        transform: none;
    }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .bunner p,
    .bunner div,
    [data-reveal],
    [data-reveal-stagger] > * {
        opacity: 1;
        transform: none;
    }
}