/* 
 * Makmur Insuma - Shared Styles
 * Industrial "Raw Sophistication" Design System
 */

/* ===== CSS Variables ===== */
:root {
    --color-red: #D20000;
    --color-white: #EAEAEA;
    --color-black: #111111;
}

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--color-white);
    font-family: 'Inter', sans-serif;
    color: var(--color-black);
    font-size: 18px;
    /* Dotted Grid Background */
    background-image: radial-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
}

/* Ensure background is visible on "white" sections */
.bg-brand-white,
.bg-white {
    background-color: var(--color-white);
    background-image: radial-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
}

/* ===== Typography ===== */
.font-oswald {
    font-family: 'Oswald', sans-serif;
}

.massive-text {
    font-size: clamp(4rem, 12vw, 16rem);
    line-height: 0.8;
    letter-spacing: -0.05em;
}

.section-label {
    display: inline-block;
    background: var(--color-black);
    color: var(--color-white);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* ===== Header Styles ===== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--color-black);
}

#main-header.scrolled {
    background-color: var(--color-red);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#main-header.scrolled a {
    color: var(--color-white);
}

#main-header.scrolled img {
    filter: brightness(0) invert(1);
}

#main-header.solid {
    background-color: var(--color-red);
    color: var(--color-white);
}

#main-header.solid a {
    color: var(--color-white);
}

#main-header.solid img {
    filter: brightness(0) invert(1);
}

/* ===== Language Switcher ===== */
.lang-btn {
    background: transparent;
    border: 2px solid currentColor;
    color: inherit;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.lang-btn .icon {
    font-size: 1.25rem;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--color-white);
    border: 4px solid var(--color-black);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-switcher:hover .lang-dropdown,
.language-switcher:focus-within .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-black) !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 2px solid var(--color-black);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--color-red);
    color: var(--color-white) !important;
}

.lang-option.active {
    background: var(--color-black);
    color: var(--color-white) !important;
}

/* ===== Mobile Menu ===== */
.burger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: inherit;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .burger-btn {
        display: flex;
        align-items: center;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-black);
        z-index: 9998;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    .mobile-menu.open {
        display: flex;
    }

    .mobile-menu a {
        color: var(--color-white);
        font-size: 1.5rem;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: none;
    }

    .mobile-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: transparent;
        border: none;
        color: var(--color-white);
        cursor: pointer;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== Stamp Cards ===== */
.stamp-card {
    background: var(--color-white);
    border: 4px solid var(--color-black);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stamp-card:hover {
    box-shadow: 8px 8px 0px var(--color-red);
    transform: translate(-4px, -4px);
}

/* ===== Industrial Elements ===== */
.red-tape {
    position: absolute;
    background: rgba(210, 0, 0, 0.9);
    height: 40px;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    transform: rotate(-2deg);
    z-index: 10;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.tape-top-left {
    top: -15px;
    left: -30px;
}

/* ===== Control Deck ===== */
.control-deck {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #222;
    border: 4px solid #444;
    border-radius: 4px;
    padding: 1rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
    transform: rotate(-1deg);
}

.control-deck::before {
    content: "SYSTEM CONTROL";
    position: absolute;
    top: -1.5rem;
    left: 0;
    background: var(--color-red);
    color: white;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    font-weight: bold;
    font-family: monospace;
}

.deck-btn {
    background: #333;
    color: #888;
    border: 1px solid #555;
    padding: 0.5rem 1rem;
    font-family: monospace;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 200px;
    text-decoration: none;
}

.deck-btn:hover,
.deck-btn.active {
    background: #000;
    color: var(--color-red);
    border-color: var(--color-red);
    box-shadow: inset 0 0 10px rgba(210, 0, 0, 0.2);
}

.deck-btn .indicator {
    width: 8px;
    height: 8px;
    background: #444;
    border-radius: 50%;
    box-shadow: 0 0 2px #000;
}

.deck-btn:hover .indicator,
.deck-btn.active .indicator {
    background: var(--color-red);
    box-shadow: 0 0 8px var(--color-red);
}

/* ===== Counter/Stats ===== */
.stat-counter {
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-red);
}

.stat-label {
    font-family: monospace;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
}

/* ===== Ticker Tape Animation ===== */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-tape {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 4rem;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-red);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--color-red);
    border: 4px solid var(--color-black);
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-year {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-red);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 900;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

/* ===== Animations ===== */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 10s linear infinite;
}