* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    /* Prevent text size adjustment on iOS */
    -webkit-text-size-adjust: 100%;
    /* Smooth font rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
}

.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.content-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 1rem;
}

.company-name {
    /* Fluid typography - scales smoothly between screen sizes */
    font-size: clamp(1.75rem, 5vw + 1rem, 5rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.7);
    letter-spacing: clamp(0.05em, 2vw, 0.1em);
    animation: fadeIn 2s ease-in;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
    /* Prevent text selection on mobile (cleaner UX) */
    -webkit-user-select: none;
    user-select: none;
    /* Disable tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
}

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

/* Responsive design */

/* Tablet landscape and smaller desktops */
@media (max-width: 1024px) {
    .company-name {
        font-size: clamp(2rem, 6vw, 4rem);
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .content-container {
        padding: 1.5rem;
    }

    .company-name {
        font-size: clamp(1.875rem, 7vw, 3.5rem);
        text-shadow:
            2px 2px 5px rgba(0, 0, 0, 0.9),
            0 0 12px rgba(0, 0, 0, 0.8);
    }
}

/* Mobile landscape */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        height: 100svh; /* Use small viewport height for better mobile support */
    }

    .content-container {
        padding: 0.75rem;
    }

    .company-name {
        font-size: clamp(1.5rem, 5vh + 1rem, 2.5rem);
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .content-container {
        padding: 2rem 1rem;
    }

    .company-name {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        letter-spacing: 0.08em;
        line-height: 1.2;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .content-container {
        padding: 1.5rem 0.75rem;
    }

    .company-name {
        font-size: clamp(1.5rem, 9vw, 2rem);
        letter-spacing: 0.06em;
    }
}

/* Extra small mobile (iPhone SE, etc.) */
@media (max-width: 320px) {
    .company-name {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
    }
}

/* Support for modern mobile browsers - use dynamic viewport units */
@supports (height: 100dvh) {
    body {
        height: 100dvh; /* Dynamic viewport height - adjusts with browser UI */
    }
}

/* Improve background image positioning on mobile */
@media (max-width: 768px) {
    .background-container {
        background-size: cover;
        background-position: center center;
        /* Prevent background from scrolling on mobile browsers */
        background-attachment: scroll;
    }
}
