/* =============== VARIABLES =============== */
:root {
    --bg-color: #050510;
    /* Very deep dark space */
    --surface-color: #0c0f16;
    --text-primary: #ffffff;
    --text-secondary: #9da3ad;

    --primary-color: #ff2a2a;
    /* Blood/Neon Red */
    --primary-glow: rgba(255, 42, 42, 0.5);
    --secondary-color: #00e1ff;
    /* Neon Cyan */

    --font-heading: 'Teko', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --transition-fast: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-medium);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =============== TYPOGRAPHY =============== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 2px;
}

h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

h2 span {
    color: var(--primary-color);
}

p {
    color: var(--text-secondary);
}

/* =============== BUTTONS (AGGRESSIVE / SLANTED) =============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 2px;
    cursor: pointer;
    border: none;
    transition: var(--transition-medium);
    position: relative;
    z-index: 1;
}

.btn-slant {
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    /* Extra padding left and right to compensate for clip-path */
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: #fff;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    z-index: -1;
    transition: var(--transition-medium);
}

.btn-secondary:hover::before {
    background-color: var(--primary-color);
}

.btn-glow {
    box-shadow: 0 0 20px var(--primary-glow);
    animation: neon-pulse 1.5s infinite alternate;
}

@keyframes neon-pulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 42, 42, 0.4));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(255, 42, 42, 0.8)) drop-shadow(0 0 30px rgba(255, 42, 42, 0.6));
    }
}

/* =============== NAVBAR =============== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-medium);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.95);
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    /* Cyan hover for contrast */
    transition: var(--transition-fast);
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
}

/* =============== HERO SECTION =============== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 16, 0.95) 0%, rgba(5, 5, 16, 0.5) 60%, rgba(5, 5, 16, 0) 100%);
}

.hero-slant {
    position: absolute;
    right: -10%;
    bottom: -15%;
    width: 40%;
    height: 120%;
    background-color: var(--primary-color);
    transform: rotate(-15deg);
    opacity: 0.15;
    mix-blend-mode: screen;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2;
}

.badge {
    align-self: flex-start;
    background: var(--primary-color);
    color: #fff;
    padding: 0.2rem 1rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
}

.hero-title {
    font-size: 7rem;
    line-height: 0.9;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* =============== PERALATAN SECTION =============== */
.equipment {
    padding: 8rem 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%23222"/></svg>') repeat;
}

.section-header {
    margin-bottom: 4rem;
}

.text-slant {
    display: inline-block;
    background: #fff;
    color: var(--bg-color);
    padding: 0.5rem 2rem;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
    margin-bottom: 1rem;
}

.text-slant h2 {
    margin: 0;
    color: var(--bg-color);
}

.text-slant h2 span {
    color: var(--primary-color);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.equip-card {
    position: relative;
    background: var(--surface-color);
    border: 1px solid rgba(255, 42, 42, 0.2);
    overflow: hidden;
    transition: var(--transition-medium);
}

.equip-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 42, 42, 0.15);
}

/* Glitch frame effect */
.left-glitch::before,
.right-glitch::before {
    content: '';
    position: absolute;
    top: -5px;
    bottom: -5px;
    right: 100%;
    left: -5px;
    background: var(--primary-color);
    z-index: 0;
    transition: var(--transition-fast);
}

.equip-card:hover::before {
    right: -5px;
    opacity: 0.1;
}

.card-img {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.equip-card:hover .card-img img {
    transform: scale(1.1) rotate(2deg);
    filter: contrast(120%);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--surface-color) 0%, transparent 100%);
}

.card-content {
    position: relative;
    padding: 2rem;
    z-index: 2;
    margin-top: -3rem;
    /* overlap image */
}

.card-content h3 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.link-arrow i {
    transition: var(--transition-fast);
}

.link-arrow:hover i {
    transform: translateX(10px);
}

/* =============== WHY US SECTION =============== */
.benefits {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--bg-color) 100%);
    border-top: 2px solid rgba(255, 255, 255, 0.05);
}

.benefits-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefit-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-list li {
    display: flex;
    gap: 1.5rem;
}

.icon-hexagon {
    width: 70px;
    height: 70px;
    background: var(--bg-color);
    border: 2px solid var(--secondary-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    transition: var(--transition-medium);
}

.benefit-list li:hover .icon-hexagon {
    background: var(--secondary-color);
    color: var(--bg-color);
    transform: rotate(15deg);
}

.benefit-list h4 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.benefits-visual {
    position: relative;
    height: 400px;
}

.stripes-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: repeating-linear-gradient(-45deg,
            rgba(255, 42, 42, 0.1),
            rgba(255, 42, 42, 0.1) 10px,
            transparent 10px,
            transparent 20px);
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.visual-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    padding: 3rem;
    text-align: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 2;
    box-shadow: 0 0 40px rgba(255, 42, 42, 0.6);
}

.visual-badge h2 {
    font-size: 5rem;
    color: #fff;
    margin: 0;
    line-height: 1;
}

/* =============== CTA SECTION =============== */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    background: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23ffffff20"/></svg>') repeat;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-glitch {
    position: relative;
    display: inline-block;
}

.cta-glitch h2 {
    font-size: 6rem;
    margin-bottom: 1rem;
    position: relative;
    color: #fff;
}

.cta-glitch h2::before,
.cta-glitch h2::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cta-glitch h2::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.cta-glitch h2::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 83px, 0);
        transform: skew(0.5deg);
    }

    10% {
        clip: rect(66px, 9999px, 3px, 0);
        transform: skew(0.5deg);
    }

    20% {
        clip: rect(41px, 9999px, 15px, 0);
        transform: skew(0.5deg);
    }

    30% {
        clip: rect(4px, 9999px, 96px, 0);
        transform: skew(0.5deg);
    }

    40% {
        clip: rect(83px, 9999px, 58px, 0);
        transform: skew(0.5deg);
    }

    50% {
        clip: rect(27px, 9999px, 86px, 0);
        transform: skew(0.5deg);
    }

    60% {
        clip: rect(50px, 9999px, 98px, 0);
        transform: skew(0.5deg);
    }

    70% {
        clip: rect(25px, 9999px, 7px, 0);
        transform: skew(0.5deg);
    }

    80% {
        clip: rect(43px, 9999px, 20px, 0);
        transform: skew(0.5deg);
    }

    90% {
        clip: rect(81px, 9999px, 81px, 0);
        transform: skew(0.5deg);
    }

    100% {
        clip: rect(22px, 9999px, 49px, 0);
        transform: skew(0.5deg);
    }
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
}

/* =============== FOOTER =============== */
footer {
    background: #000;
    padding: 5rem 0 2rem;
    border-top: 4px solid var(--primary-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand p {
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.footer-contact h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
}

/* =============== ANIMATIONS =============== */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 992px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 5rem;
    }

    .benefits-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .btn-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 4rem;
    }

    .cta-glitch h2 {
        font-size: 4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-slant {
        display: none;
        /* Turn off slant bg on mobile for better text visibility */
    }

    .hero-overlay {
        background: rgba(5, 5, 16, 0.8);
    }
}