:root {
    --brand-red: #ef3b3b;
    --ink: #1a1a1a;
    --ink-soft: #4a4a4a;
    --paper: #f5f5f5;
    --white: #ffffff;
    --muted: #4a4a4a;
    --line: #cccccc;
    --light-gray: #f5f5f5;
    --medium-gray: #cccccc;
    --dark-gray: #4a4a4a;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
    --shadow-deep: 0 20px 40px rgba(26, 26, 26, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle at 10% 10%, #ffffff 0%, #f5f5f5 50%, #ebebeb 100%);
    color: var(--ink-soft);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

body::before {
    width: 380px;
    height: 380px;
    top: -110px;
    right: -130px;
    background: radial-gradient(circle, rgba(239, 59, 59, 0.2), rgba(239, 59, 59, 0));
}

body::after {
    width: 300px;
    height: 300px;
    left: -120px;
    bottom: 18%;
    background: radial-gradient(circle, rgba(74, 74, 74, 0.13), rgba(74, 74, 74, 0));
}

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

.section-shell {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.section-head {
    margin-bottom: 2rem;
}

.section-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--brand-red);
    margin-bottom: 0.65rem;
}

.section-title {
    font-size: clamp(1.7rem, 2.8vw, 2.6rem);
    margin: 0;
    color: var(--ink);
}

.main-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.08);
    padding: 8px 4%;
    transition: padding 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.main-navbar.navbar-scrolled {
    padding-top: 6px;
    padding-bottom: 6px;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.14);
    background: rgba(255, 255, 255, 0.9);
}

.brand-stack {
    line-height: 1;
}

.brand-main {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.04em;
}

.brand-sub,
.brand-mini {
    display: block;
    text-transform: uppercase;
    color: var(--dark-gray);
}

.brand-sub {
    font-size: 0.5rem;
    letter-spacing: 0.31em;
    margin-top: 2px;
}

.brand-mini {
    font-size: 0.43rem;
    letter-spacing: 0.16em;
    margin-top: 2px;
}
.brand-logo {
    width: 118px;
    height: auto;
    object-fit: cover;
    margin-right: 4px;
}

.nav-link {
    color: var(--dark-gray);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 6px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active-link {
    color: var(--ink);
    border-bottom-color: var(--brand-red);
}

.btn-pulse,
.btn-ghost-light,
.btn-portfolio,
.btn-hero-outline {
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.nav-cta {
    align-items: center;
    gap: 10px;
}

.btn-portfolio {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--medium-gray);
    padding: 8px 16px;
}

.btn-portfolio:hover {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
    transform: translateY(-2px);
}

.btn-pulse {
    color: var(--white);
    background: var(--ink);
    border: 1px solid var(--ink);
    padding: 9px 18px;
}

.btn-pulse:hover {
    transform: translateY(-2px);
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--white);
}

.btn-ghost-light {
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--medium-gray);
    padding: 12px 24px;
}

.btn-ghost-light:hover {
    transform: translateY(-2px);
    background: var(--brand-red);
    color: var(--white);
    border-color: var(--brand-red);
}

.btn-hero-outline {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 12px 22px;
}

.btn-hero-outline:hover {
    transform: translateY(-2px);
    background: var(--white);
    color: var(--ink);
}

.hero {
    position: relative;
    min-height: 86vh;
    overflow: hidden;
    background: var(--ink);
}

.hero-track {
    position: relative;
    min-height: 86vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero-slide.is-active .hero-bg {
    animation: heroZoom 6.5s linear both;
}

@keyframes heroZoom {
    from {
        transform: scale(1.06);
    }
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(80deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.86) 42%, rgba(26, 26, 26, 0.25) 100%);
}

.hero-curve {
    position: absolute;
    top: -18%;
    left: -5%;
    width: 57%;
    height: 140%;
    border-right: 4px solid rgba(255, 255, 255, 0.65);
    border-radius: 0 54% 54% 0;
    background: rgba(26, 26, 26, 0.92);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: clamp(80px, 13vh, 130px) 6% 90px;
    width: min(620px, 92%);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5.4vw, 4.3rem);
    line-height: 1.05;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-title .accent {
    color: var(--brand-red);
}

.hero-text {
    max-width: 54ch;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
    color: var(--light-gray);
    line-height: 1.7;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    bottom: 28px;
    right: 4.5%;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
}

.hero-indicators {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 28px;
    height: 3px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease;
    padding: 0;
}

.hero-dot.is-active {
    background: var(--brand-red);
}

.hero-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--white);
    background: transparent;
}

.hero-arrow:hover {
    background: var(--white);
    color: var(--ink);
}

.hero-page {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--light-gray);
}

.component-section {
    padding: 80px 0;
}

.about-section {
    margin-top: -18px;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: clamp(22px, 4vw, 42px);
    display: flex;
    gap: clamp(20px, 3vw, 38px);
    align-items: stretch;
    flex-wrap: wrap;
    border: 1px solid rgba(204, 204, 204, 0.6);
}

.about-copy {
    flex: 1 1 340px;
}

.about-copy p {
    color: var(--muted);
    line-height: 1.72;
}

.about-bullets {
    list-style: none;
    padding: 0;
    margin: 1.15rem 0 0;
}

.about-bullets li {
    margin-bottom: 0.7rem;
    position: relative;
    padding-left: 22px;
    font-weight: 600;
}

.about-bullets li::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand-red);
    position: absolute;
    top: 0.48rem;
    left: 0;
}

.about-media {
    flex: 1 1 310px;
    min-height: 320px;
    border-radius: 34px;
    position: relative;
    overflow: hidden;
}

.about-media::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0 54% 54% 0;
    border-left: 4px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(135deg, rgba(239, 59, 59, 0.24), rgba(26, 26, 26, 0.56));
    z-index: 2;
}

.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    box-shadow: 0 8px 24px rgba(12, 15, 18, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red), #ff8f8f);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--dark-gray);
    box-shadow: 0 16px 30px rgba(26, 26, 26, 0.12);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--white);
    margin-bottom: 0.95rem;
}

.service-title {
    margin-bottom: 0.7rem;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
}

.service-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.9rem;
}

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

.project-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 28px rgba(26, 26, 26, 0.18);
}

.project-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0) 25%, rgba(26, 26, 26, 0.88) 100%);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.project-item:hover img {
    transform: scale(1.07);
}

.project-meta {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 14px;
    z-index: 2;
    color: var(--white);
    transform: translateY(4px);
    transition: transform 0.3s ease;
}

.project-item:hover .project-meta {
    transform: translateY(0);
}

.project-meta h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.project-meta p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--light-gray);
}

.contact-card {
    background: linear-gradient(132deg, #1a1a1a, #2a2a2a 65%, #4a4a4a);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px);
    color: var(--white);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: -90px;
    top: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 59, 59, 0.38), rgba(239, 59, 59, 0));
}

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

.contact-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.contact-item h5 {
    margin: 0 0 6px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--light-gray);
}

.contact-item p,
.contact-item a {
    margin: 0;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.site-footer {
    padding: 28px 0 36px;
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.85rem;
}

.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--white);
    background: linear-gradient(135deg, #16c559, #0f9d46);
    padding: 11px 14px;
    box-shadow: var(--shadow-deep);
    font-weight: 700;
    font-size: 0.82rem;
    animation: floatPing 2.8s ease-in-out infinite;
}

.floating-whatsapp i {
    font-size: 1.06rem;
}

.floating-whatsapp:hover {
    color: var(--white);
    transform: translateY(-2px);
}

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

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

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

@media (max-width: 991px) {
    .hero,
    .hero-track {
        min-height: 78vh;
    }

    .hero-curve {
        width: 100%;
        left: 0;
        border-right: none;
        border-radius: 0;
    }

    .hero-content {
        padding-top: 105px;
        width: min(700px, 94%);
    }

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

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

@media (max-width: 767px) {
    .main-navbar {
        padding-left: 3%;
        padding-right: 3%;
    }

    .brand-logo {
        width: 104px;
    }

    .hero-controls {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        justify-content: center;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

    .floating-whatsapp span {
        display: none;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        justify-content: center;
        padding: 0;
    }

    .about-media {
        min-height: 240px;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
