﻿/* Universal box-sizing for better mobile handling */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }   
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive styles */ 
@media (max-width: 575px) {
    * {
        box-sizing: border-box;
    }
    
    .bg-content {
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .bg-content h1 {
        max-width: 100%;
        margin: 0 auto;
        margin-top: 5rem;
        line-height: 1.3;
        font-size: 2.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 0.5rem;
    }
    
    .bg-content p {
        font-size: 1.2rem;
        max-width: 100%;
        margin: 1rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Tablet responsive styles */
@media (min-width: 576px) and (max-width: 991px) {
    .bg-content {
        padding: 0 2rem;
        max-width: 90%;
    }

    .bg-content h1 {
        font-size: 2.2rem;
        max-width: 100%;
        margin-top: 2rem;
    }

    .bg-content p {
        font-size: 1.2rem;
        max-width: 100%;
    }
}

/* Desktop responsive styles */
@media (min-width: 992px) {
    .bg-content p {
        font-size: 1.4rem;
    }
}

body {
    background: linear-gradient(#112846EE, #112846EE), url("/images/web-pictures/landing-page.jpg");
    background-size: cover;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    min-height: 100vh;
    position: relative;
}

.bg-image {
    position: relative;
    min-height: 100vh;
    height: auto;
    width: 100%;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    box-sizing: border-box;
}

.bg-content {
    position: relative;
    flex-grow: 1;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow-x: hidden;
}

.bg-content h1 {
    color: white;
    font-weight: 600;
    font-size: 3rem;
    margin: 0 1rem;
    margin-top: 4rem;
}

.hook {
    opacity: 0;
    display: inline-block;
    animation: fadeInUp 0.5s ease-out forwards;
}

.hook:nth-child(1) { animation-delay: 0s; }
.hook:nth-child(2) { animation-delay: 0.05s; }
.hook:nth-child(3) { animation-delay: 0.1s; }
.hook:nth-child(4) { animation-delay: 0.15s; }
.hook:nth-child(5) { animation-delay: 0.2s; }
.hook:nth-child(6) { animation-delay: 0.25s; }

.bg-content p {
    opacity: 0;
    margin-top: 2rem;
    max-width: 1000px;
    margin: 0;
    animation: scaleIn 0.5s ease-out forwards;
}

.bg-content p:nth-child(1) { animation-delay: 0.3s; } /* Collaborate */
.bg-content p:nth-child(3) { animation-delay: 0.35s; } /* Design */
.bg-content p:nth-child(5) { animation-delay: 0.4s; } /* Develop */
.bg-content p:nth-child(2) { animation-delay: 0.4s; } /* Pipe Symbol */
.bg-content p:nth-child(4) { animation-delay: 0.4s; } /* Pipe Symbol */

.cta-btn {
    display: inline-block;
    margin: 2rem auto 0 auto;
    padding: 0.9rem 2.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #112846;
    background: linear-gradient(90deg, #ffffff 0%, rgba(6, 165, 221, 1) 100%);
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 18px rgba(33,150,243,0.15);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
}

.cta-btn:hover, .cta-btn:focus {
    color: #ffffff;
    background: linear-gradient(90deg, #112846 0%, rgba(6, 165, 221, 1) 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 32px rgba(33,150,243,0.25);
    outline: none;
}

.container {
    padding-top: 0;
}

h1, h2, p {
    margin-bottom: 1rem;
}

.animated-container {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated {
    margin: auto 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.animated-word {
    display: inline-block;
    transition: font-size 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.animated-word:hover {
    font-size: 1.8rem;
    background: linear-gradient(0deg, #ffffff 0%, rgba(6, 165, 221, 1) 100%);
    font-weight: 600;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer {
    position: absolute;
    bottom: 0;
    padding: 0px 12px 12px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Additional mobile fixes */
@media (max-width: 575px) {
    footer {
        position: relative;
        margin-top: 2rem;
        padding: 12px;
    }
    
    .animated-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .animated {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .cta-btn {
        max-width: 280px;
        margin: 2rem auto 0 auto;
        width: auto;
        padding: 0.7rem 1.8rem; /* Smaller padding for mobile */
        font-size: 1rem; /* Smaller font for mobile */
    }
}

/* Tablet responsive sizing for CTA button */
@media (min-width: 576px) and (max-width: 991px) {
    .cta-btn {
        padding: 0.8rem 2rem; /* Slightly smaller padding for tablet */
        font-size: 1.1rem; /* Slightly smaller font for tablet */
    }
}