:root {
    --bg-dark: #383838;
    /* adjusted from #232323 for better logo clarity */
    --orange: #db3f28;
    --green: #008f45;
    --yellow: #fac41b;
    --text-white: #ffffff;
    --text-gray: #b5b5b5;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    /* Add the background image with a subtle dark gradient overlay to ensure the white text remains highly legible */
    background-image:
        linear-gradient(rgba(56, 56, 56, 0.7), rgba(56, 56, 56, 0.7)),
        url('assets/bg.png');
    background-size: contain;
    background-position: 85%;
    /* Moved slightly to the right from center (50%) */
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Centralized Ribbon Accents in the Background */
.bg-accents {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    /* Subtle backdrop to not overpower the text */
    overflow: hidden;
}

.accent-stripe {
    position: absolute;
    bottom: 0;
    /* All originate from the bottom */
}

/* Red / Orange Pillar - Full Height Left Side */
.accent-stripe.orange {
    left: 10vw;
    width: 25vw;
    height: 100vh;
    background-color: var(--orange);
    /* Descent downwards towards middle exactly matching reference corner point */
    clip-path: polygon(0 0%, 100% 30%, 100% 100%, 0 100%);
    z-index: 1;
    /* Keep underneath green piece to hide corner overlap */
}

/* Green Pillar - The bridging block */
.accent-stripe.green {
    left: 25vw;
    width: 35vw;
    height: 70vh;
    background-color: var(--green);
    /* Middle bridge piece perfectly aligned with the descent angles */
    clip-path: polygon(10vw 30%, 10vw 45%, 100% 100%, 0% 100%);
    clip-path: polygon(0 45%, 70% 80%, 70% 30%, 100% 45%, 100% 100%, 0% 100%);
    z-index: 2;
    /* Rests visually above the orange */
}

/* Yellow Pillar - Right side */
.accent-stripe.yellow {
    left: 50vw;
    width: 25vw;
    height: 80vh;
    background-color: var(--yellow);
    /* Right pillar matches left descent parallel */
    clip-path: polygon(0 15%, 100% 45%, 100% 100%, 0 100%);
    z-index: 1;
    /* Below the green bridge piece */
}

/* Centered Container Wrapper */
.container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-wrapper {
    margin-bottom: 2.5rem;
    animation: fadeInDown 1.2s ease-out forwards;
}

.main-logo {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0px 8px 24px rgba(0, 0, 0, 0.3));
}

.slogan {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 700px;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.status-indicator {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

.status-indicator .dot {
    width: 10px;
    height: 10px;
    background-color: var(--orange);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--orange);
}

.status-indicator .dot::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    border: 1px solid var(--orange);
    border-radius: 50%;
    animation: pulseRing 2s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

/* Contact Grid - Side by Side but Centered Layout */
.contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    margin-bottom: 5rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.7s forwards;
}

.contact-card {
    text-align: center;
    flex: 1;
    max-width: 350px;
}

/* Central Divider */
.contact-card.border-separator {
    position: relative;
}

.contact-card.border-separator::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

/* Small Colored Accent under Contact Title */
.contact-card:first-child h3::after {
    content: '';
    width: 30px;
    height: 2px;
    background-color: white;
}

.contact-card.border-separator h3::after {
    content: '';
    width: 30px;
    height: 2px;
    background-color: white;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.contact-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: var(--orange);
}

/* Centered Footer Logos */
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 1s forwards;
}

.footer-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.footer-logos img:hover {
    transform: scale(1.08);
    /* slight lift effect */
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    body {
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 800px) {
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .contact-card.border-separator::before {
        display: none;
        /* remove vertical line on mobile */
    }

    .contact-card {
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        /* horizontal line for mobile */
    }

    .contact-card:first-child {
        padding-top: 0;
        border-top: none;
    }

    .bg-accents {
        display: none;
    }

    /* keep mobile simple and clean */
    .slogan {
        font-size: 1.2rem;
    }

    .footer-logos {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .footer-logos img {
        height: 35px;
    }
}