/* Home section styles */
#home {
    height: 100vh; /* Full viewport height */
    min-height: 600px; /* Fallback for older browsers */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to the top */
    text-align: center;
    position: relative; /* Needed for absolute positioning of video */
    overflow: hidden; /* Hide anything that goes outside the section */
    padding-top: 20vh; /* Push content down from the top */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

#home-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
}

#home .container {
    position: relative; /* Ensure content is above the video */
    z-index: 1;
}

#home h1 {
    font-size: 5rem; /* Larger font size for impact */
    margin: 0;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

#home p {
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.ca-text {
    position: absolute;
    bottom: 180px;
    left: 20px;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
}

/* Home social media section */
.home-social-section {
    position: absolute;
    bottom: 70px;
    left: 230px;
    z-index: 1;
}

.home-social-icons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.home-social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.home-social-icons a:hover {
    transform: scale(1.1);
}

.home-social-icons img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
}

/* Responsive design for home section */
@media (max-width: 768px) {
    #home {
        padding-top: 15vh; /* Reduce top padding on mobile */
    }

    #home h1 {
        font-size: 2.5rem; /* Further reduced for mobile */
        line-height: 1.2;
    }

    #home p {
        font-size: 1rem; /* Further reduced for mobile */
        padding: 0 10px; /* Add some horizontal padding */
    }

    .ca-text {
        width: 85%;
        max-width: 350px;
        bottom: 110px; /* Adjust position */
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        font-size: 0.9rem; /* Reduce font size */
        padding: 10px;
        word-wrap: break-word; /* Crucial for long string */
        box-sizing: border-box;
    }

    .home-social-section {
        width: 100%;
        bottom: 40px; /* Adjust position */
        left: 50%;
        transform: translateX(-50%);
    }

    .home-social-icons {
        justify-content: center;
        gap: 25px; /* Increase gap slightly for better touch targets */
    }
    
    .home-social-icons img {
        width: 38px;
        height: 38px;
    }
}