﻿/* 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;
        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%;
    }

    .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: 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%;
    min-height: 100vh;
}

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;
    align-items: center;
    box-sizing: border-box;
    overflow-x: hidden;
    min-height: calc(120vh - 120px); /* Account for header height and footer space */
}

.footer-wrapper {
    margin-top: auto;
}

.bg-content h1 {
    color: white;
    font-weight: 600;
    font-size: 3rem;
    margin: 0 1rem;
}

.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;
    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: .8rem;
    color: black;
    background: linear-gradient(135deg, #f4d03f 0%, #f4d03f 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

    .cta-btn:hover, .cta-btn:focus {
        color: black;
        background: linear-gradient(135deg, #f39c12 0%, #f39c12 100%);
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 12px 35px rgba(6, 165, 221, 0.4);
        border-color: rgba(255, 255, 255, 0.5);
        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(135deg, white 0%, white 50%, white 100%);
        font-weight: 600;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

/* Additional mobile fixes */
@media (max-width: 575px) {
    .bg-content {
        min-height: calc(120vh - 100px); /* Adjust for smaller header on mobile */
    }
    
    .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 */
    }
}

.text-secondary {
    color: white !important;
}