/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

section,
#header,
#about,
#services,
#portfolio,
#contact {
    scroll-margin-top: 100px;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

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

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

/* Screen-reader only text (accessible labels) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Honeypot field (anti-spam) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== UTILITY ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: min(1200px, calc(100% - 48px));
    padding: 14px 0;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    animation: navFadeIn 0.5s ease-out;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

nav ul li a {
    color: #ccc;
    font-size: 15px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.3s, background 0.3s;
    letter-spacing: 0.3px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 3px;
    border-radius: 999px;
    background: #ff004f;
    transform: scaleX(0) translateZ(0);
    transform-origin: left;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

nav ul li a:hover,
nav ul li a:focus {
    color: #fff;
    background: rgba(255, 0, 79, 0.1);
}

nav ul li a.active-nav-link {
    color: #fff;
    background: rgba(255, 0, 79, 0.22);
    transition: color 0.25s ease, background 0.25s ease;
}

nav ul li a:hover::after,
nav ul li a:focus::after,
nav ul li a.active-nav-link::after {
    transform: scaleX(1);
}

/* ===== HEADER / HERO ===== */
#header {
    width: 100%;
    min-height: auto;
    background: #0a0a0a;
}

#header > .container {
    padding-top: 80px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 48px 0 40px;
}

.header-text {
    flex: 1;
    min-width: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-btn {
    margin: 0;
}

.hero-btn,
.btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    will-change: transform;
}

.hero-btn:hover,
.btn:hover {
    transform: translateY(-2px);
}

.hero-btn:active,
.btn:active {
    transform: translateY(0) scale(0.985);
}

.hero-btn:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(255, 0, 79, 0.45);
    outline-offset: 3px;
}

.hero-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-color: rgba(37, 211, 102, 0.55);
    color: #dfffe9;
}

.hero-btn-whatsapp i {
    font-size: 18px;
}

.hero-btn-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.28);
}

.hero-image-wrap {
    flex: 0 0 auto;
}

.hero-image {
    width: 320px;
    height: 390px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.35);
    border: 2px solid rgba(255,255,255,0.08);
    display: block;
}

.header-text p {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 16px;
    animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.header-text h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.header-text h1 span {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    letter-spacing: 0.6px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff004f;
    position: relative;
}

.header-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff004f;
    opacity: 0.4;
    border-radius: 2px;
}

/* ===== MOTION ===== */
.motion-ready .animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready .animate-on-scroll.reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.motion-ready .animate-on-scroll.delay-1 {
    transition-delay: 0.08s;
}

.motion-ready .animate-on-scroll.delay-2 {
    transition-delay: 0.16s;
}

.motion-ready .animate-on-scroll.delay-3 {
    transition-delay: 0.24s;
}

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

@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== SECTION TITLES ===== */
.sub-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

/* ===== ABOUT ===== */
#about {
    padding: 48px 0;
    color: #b0b0b0;
}

#about .row {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-col-1 {
    flex: 0 0 320px;
}

.about-col-1 img {
    width: 100%;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-col-1 img:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.about-col-2 {
    flex: 1;
    min-width: 0;
}

.about-col-2 > p {
    font-size: 16px;
    line-height: 1.7;
    color: #999;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Tabs */

.tab-titles {
    display: flex;
    gap: 4px;
    margin: 28px 0 32px;
    background: #161616;
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
}

.tab-links {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 24px;
    border-radius: 10px;
    color: #888;
    transition: color 0.3s, background 0.3s;
    position: relative;
    user-select: none;
    background: transparent;
    border: none;
    font-family: inherit;
    line-height: 1;
}

.tab-links:hover {
    color: #ccc;
}

.tab-links:focus-visible {
    outline: 3px solid rgba(255, 0, 79, 0.45);
    outline-offset: 2px;
}

.tab-links.active-link {
    color: #fff;
    background: #ff004f;
}

/* Remove old underline effect */
.tab-links::after {
    display: none;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.tab-contents ul {
    list-style: none;
}

.tab-contents ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 15px;
    color: #b0b0b0;
}

.tab-contents ul li:last-child {
    border-bottom: none;
}

.tab-contents ul li span {
    color: #ff004f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ===== SERVICES ===== */
#services {
    padding: 80px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.services-list div {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 32px;
    border-radius: 16px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.35s;
}

.services-list div:hover {
    transform: translateY(-12px) scale(1.015);
    border-color: rgba(255, 0, 79, 0.45);
    box-shadow: 0 28px 70px rgba(255, 0, 79, 0.16);
    background: #141414;
}

.services-list div i {
    font-size: 40px;
    color: #ff004f;
    margin-bottom: 24px;
    display: block;
}

.services-list div h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.services-list div p {
    font-size: 14px;
    font-weight: 300;
    color: #888;
    line-height: 1.7;
}

/* ===== PORTFOLIO ===== */
#portfolio {
    padding: 80px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.work {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.35s;
    transform-style: preserve-3d;
    will-change: transform;
}

.work:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 0, 79, 0.45);
    box-shadow: 0 24px 55px rgba(255, 0, 79, 0.14);
}

@media (hover: hover) and (pointer: fine) {
    .work.work-tilt {
        transition: transform 0.18s ease, border-color 0.3s, box-shadow 0.35s;
    }

    .work.work-tilt:hover {
        transform: translateY(-10px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    }
}

@media (hover: none) and (pointer: coarse) {
    .work:active {
        transform: translateY(-6px) scale(0.99);
    }
}

.work img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.work picture,
.work > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.project-logo-fit {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
    padding: 16px;
    object-position: center;
}

.work:hover img {
    transform: scale(1.1);
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85), rgba(255, 0, 79, 0.85));
    border-radius: 16px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 28px;
    text-align: center;
    transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.work:hover .layer {
    height: 100%;
}

.layer h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.layer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.project-link:hover {
    background: #ffe3ec;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* ===== BUTTONS ===== */
.btn {
    display: block;
    margin: 48px auto;
    width: fit-content;
    border: 1px solid rgba(255, 0, 79, 0.5);
    padding: 14px 48px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: #ff004f;
    border-color: #ff004f;
    box-shadow: 0 8px 30px rgba(255, 0, 79, 0.25);
}

.btn.btn2 {
    display: inline-block;
    background: #ff004f;
    border-color: #ff004f;
}

.btn.btn2:hover {
    background: #e0003f;
    box-shadow: 0 8px 30px rgba(255, 0, 79, 0.35);
}

/* ===== CONTACT ===== */
#contact {
    padding: 80px 0 0;
}

#contact .row {
    display: flex;
    gap: 60px;
}

.contact-left {
    flex: 0 0 340px;
}

.contact-right {
    flex: 1;
    min-width: 0;
}

.contact-left p {
    margin-top: 24px;
    font-size: 15px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-left p i {
    color: #ff004f;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #888;
    font-size: 18px;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: #fff;
    background: #ff004f;
    border-color: #ff004f;
    transform: translateY(-3px);
}

.contact-left .btn.btn2 {
    margin-top: 28px;
}

/* Contact form */
.trust-card {
    background: linear-gradient(145deg, rgba(255, 0, 79, 0.12), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 18px 18px 16px;
    margin-bottom: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.trust-quote {
    color: #f3f4f6;
    font-size: 15px;
    line-height: 1.65;
}

.trust-author {
    margin-top: 10px;
    color: #ff8fb7;
    font-size: 13px;
    font-weight: 500;
}

.trust-metrics {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trust-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d1d5db;
    font-size: 12px;
}

.trust-metrics strong {
    color: #ffffff;
    font-weight: 700;
}

/* Contact conversion helper */
.value-points {
    margin: 14px 0 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.value-points-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.value-points-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
}

.value-points-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.2;
}

.value-points-list i {
    color: #ff4d86;
    font-size: 14px;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    outline: none;
    background: #141414;
    padding: 16px 20px;
    margin: 8px 0;
    color: #fff;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    border-radius: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus,
form textarea:focus {
    border-color: rgba(255, 0, 79, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 0, 79, 0.1);
}

form input::placeholder,
form textarea::placeholder {
    color: #555;
}

form .btn2 {
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 16px;
    border: none;
    width: 100%;
    border-radius: 12px;
}

#msg {
    color: #4ade80;
    margin-top: 8px;
    display: block;
    font-size: 14px;
    min-height: 20px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

#msg.show {
    opacity: 1;
    transform: translateY(0);
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .motion-ready .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   RESPONSIVE — TABLET (max-width: 900px)
   ======================================== */
@media (max-width: 900px) {
    .services-list,
    .work-list {
        grid-template-columns: repeat(2, 1fr);
    }

    #about .row {
        gap: 40px;
    }

    .about-col-1 {
        flex: 0 0 260px;
    }
}

/* ========================================
   RESPONSIVE — MOBILE (max-width: 640px)
   ======================================== */
@media (max-width: 640px) {
    /* Spacing */
    .container {
        padding: 0 20px;
    }

    #about,
    #services,
    #portfolio,
    #contact {
        padding: 56px 0;
    }

    /* Nav */
    nav {
        width: 100%;
        left: 0;
        transform: none;
        padding: 10px 12px;
    }

    nav ul {
        position: static;
        width: 100%;
        height: auto;
        background: transparent;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        gap: 4px;
        box-shadow: none;
        border-left: none;
    }

    nav ul li {
        list-style: none;
        flex: 1;
    }

    nav ul li a {
        display: block;
        font-size: 13px;
        text-align: center;
        padding: 8px 6px;
        border-bottom: none;
        border-radius: 8px;
    }

    nav ul li a:hover {
        background: rgba(255, 0, 79, 0.1);
        color: #fff;
    }

    /* Hero */
    #header > .container {
        padding-top: 64px;
    }

    .header-content {
        flex-direction: column-reverse;
        padding: 20px 0 24px;
        gap: 20px;
    }

    .hero-image {
        width: 100%;
        height: 260px;
    }

    .hero-actions {
        gap: 12px;
        margin-top: 22px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding-left: 24px;
        padding-right: 24px;
    }

    .header-text h1 {
        font-size: clamp(28px, 8vw, 40px);
    }

    .header-text p {
        font-size: 12px;
        letter-spacing: 3px;
    }

    /* About */
    #about .row {
        flex-direction: column;
        gap: 32px;
    }

    .about-col-1 {
        flex: none;
        width: 100%;
    }

    .about-col-2 {
        font-size: 14px;
    }

    .sub-title {
        font-size: clamp(28px, 7vw, 40px);
    }

    /* Tabs */
    .tab-titles {
        width: 100%;
    }

    .tab-links {
        flex: 1;
        text-align: center;
        font-size: 13px;
        padding: 10px 12px;
    }

    /* Services & Portfolio */
    .services-list,
    .work-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .work {
        background: #111;
    }

    .work picture {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .work > img:not(.project-logo-fit) {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .project-logo-fit {
        background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
        padding: 14px;
        object-fit: contain;
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: 210px;
        width: 100%;
        object-position: center;
    }

    .work:hover img {
        transform: none;
    }

    .layer {
        position: static;
        height: auto;
        min-height: 0;
        padding: 20px;
        border-radius: 0 0 16px 16px;
        background: linear-gradient(180deg, rgba(18, 18, 18, 0.92), rgba(255, 0, 79, 0.92));
        align-items: flex-start;
        text-align: left;
        gap: 6px;
    }

    .project-link {
        align-self: flex-start;
    }

    .services-list div {
        padding: 28px 24px;
    }

    /* Contact */
    #contact .row {
        flex-direction: column;
        gap: 40px;
    }

    .contact-left {
        flex: none;
        width: 100%;
    }

    .contact-right {
        width: 100%;
    }

    .trust-card {
        padding: 16px 14px;
    }

    .trust-quote {
        font-size: 14px;
    }

    .value-points-list {
        grid-template-columns: 1fr;
    }

    form input,
    form textarea {
        font-size: 14px;
        padding: 14px 16px;
    }

}

/* ========================================
   RESPONSIVE — SMALL MOBILE (max-width: 380px)
   ======================================== */
@media (max-width: 380px) {
    .container {
        padding: 0 16px;
    }

    .header-text h1 {
        font-size: 26px;
    }

    .sub-title {
        font-size: 26px;
    }

    .tab-links {
        font-size: 12px;
        padding: 8px 8px;
    }
}