body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

.menu-open {
    display: flex !important; 
    flex-direction: column; 
    
    /* Mobile styles from before */
    position: absolute; 
    top: 100%; 
    right: 0;
    width: 100%;
    background-color: #1f2937; 
    padding: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    z-index: 40;
}

/* Add spacing styles for vertical links */
.menu-open a {
    padding: 0.75rem 0;
    margin-left: 0 !important; 
    width: 100%; 
}


.page {
    background-image: url(images/truckloading.jpg); 
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    background-attachment: fixed;
}



.typewriter-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.15em solid white;
    max-width: 100vw;
    box-sizing: border-box;
}


.hidden-initial {
    opacity: 0;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 20ch; 
    }
}

@keyframes typing-secondary {
    from {
        width: 0;
    }
    to {
        width: 83ch; 
    }
}


@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}


.typing-active {
    animation: typing 4s steps(44, end) forwards, blink-caret 0.75s step-end infinite;
}

.typing-active-secondary {
    animation: typing-secondary 6s steps(110, end) forwards, blink-caret 0.75s step-end infinite;
}


.typing-finished {
    border-color: transparent !important;
    border-right: none !important;
    animation: none !important;
    width: fit-content !important;
    display: inline !important;
}



/* Tablet/Smaller Desktop */
@media (max-width: 1023px) {
      
    .main h1 {
        font-size: 4rem;
    }
    .main h2 {
        font-size: 2.5rem;
    }
    .main p {
        font-size: 1.1rem;
        max-width: 90%;
    }
}

/* Mobile Landscape/Small Tablet */
@media (max-width: 768px) {
    .main h1 {
        font-size: 3rem;
    }
    .main h2 {
        font-size: 2rem;
    }
    .main p {
        font-size: 1rem;
    }
    .typewriter-container {
        border-right-width: 0.1em; /* thinner cursor */
    }
}

/* Small Mobile Portrait */
@media (max-width: 480px) {
    .main h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    .main h2 {
        font-size: 1.5rem;
    }
    .main p {
        font-size: 0.95rem;
        max-width: 95%;
    }
}

