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

/* Layout */
html, body {
    height: 100%; /* Full viewport height */
}

body {
    display: flex;
    flex-direction: column; /* Stack header, main, and footer vertically */
    font-family: Arial, sans-serif;
    background-image: url('/assets/bg2.svg'); /* Path to your background image */
    background-size: cover; /* Cover the entire background */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* No tiling */
    position: relative;
    background-attachment: fixed; /* Ensures background stays fixed while scrolling */
}

/* Overlay for background */
body::before {
    content: ""; /* Empty content for the overlay */
    position: fixed; /* Use 'fixed' instead of 'absolute' */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay */
    z-index: -1; /* Keep it behind the content */
    pointer-events: none; /* Allow interaction with underlying elements */
}

header {
    background-color: rgba(0, 0, 0, 0.3); /* Add transparency */
    color: yellow;
    padding: 8px;
    text-align: center;
}

main {
    flex: 1; /* Take up all available space between header and footer */
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
    color: #FFFFFF; /* Text is readable on the dark background */
}

footer {
    background-color: rgba(31, 41, 55, 0.8);
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.typing {
    font-family: 'Courier New', Courier, monospace;
    font-size: 36px;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #FFF;
    width: 0;
    animation: typing 4s steps(30) 1s infinite, blink 0.75s step-end infinite;
}

p, a {
    font-size: 1.2em;
}

a {
    display: inline-block;
    margin: 10px;
    padding: 5px 20px;
    color: #FFFFFF;
    background-color: #43b678;
    text-decoration: none;
    border-radius: 5px;
}

/* Flexbox for Download Buttons */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: 30px;
    animation: fadeIn 1s ease-in-out; /* Apply animation */
}
.download-button {
    background-color: #FFFFFF;
    color: #FFFFFF;
    padding: 20px 20px 8px;
    border: none;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download-button img {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.download-button span {
    font-size: 18px;
    font-weight: bold;
    color: black;
}

.download-button.highlight {
    border-color: #f39c12;
    background-color: #fef5e7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.download-link {
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
    text-decoration: none;
    background-color: #43b678;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px; /* Explicit height for the link */
    padding: 0 10px; /* Ensure no extra vertical padding */
    border-radius: 5px;
}

.download-link:hover {
    background-color: #369d63;
}

.download-link img {
    width: 24px; /* Icon size */
    height: 24px;
    object-fit: contain;
    margin-right: 8px; 
    vertical-align: middle; 
    margin-top: 8px;
}

/* Contact Section with Animation */
.contact {
    display: flex; /* Display contact items in a row */
    justify-content: center; /* Center the contact items horizontally */
    align-items: center; /* Vertically center the contact items */
    gap: 30px; /* Space between the contact items */
    margin-top: 32px;
    color: #FFFFFF;
    animation: fadeInBottom 1s ease-in-out; /* Apply animation */
}

.contact-item {
    display: flex;
    align-items: center; /* Align the icon and text vertically */
    gap: 15px; /* Space between the icon and text */
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 350px; /* Limit the width of each item */
    text-align: left;
}

.contact-item .contact-icon {
    width: 40px; /* Size of the icon */
    height: 40px;
    border-radius: 20px;
}

.contact-item .contact-details {
    display: flex;
    flex-direction: column;
}

.contact-item span {
    font-size: 1.5em;
    font-weight: bold;
    color: yellow;
}

.contact-item p {
    font-size: 1.2em;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 15px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 2.5em;
    }

    p, a {
        font-size: 1.5em;
    }
    .download-button {
        width: 160px;
        padding: 15px 15px 0;
        box-shadow: none;
    }

    .download-button img {
        width: 50px;
        height: 50px;
        border-radius: 25px;
    }

    .download-button span {
        font-size: 14px;
    }

    .download-link img {
        width: 24px;
        height: 24px;
        object-fit: contain; 
        margin-top: 8px;
    }

    .contact {
        flex-direction: column; 
        gap: 20px;
        margin: 8px 30px;
        margin-top: 16px;
    }

    /* .contact-item {
        flex-direction: column; 
        align-items: center; 
        max-width: 100%; 
    } */

    .contact-item .contact-icon {
        width: 50px; 
        height: 50px;
        border-radius: 25px;
    }

    .contact-item span, .contact-item p {
        text-align: center; 
    }
}

/* For mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    p, a {
        font-size: 0.8em;
    }

    .typing {
        font-size: 20px;
    }

    .download-buttons {
        justify-content: center;
        margin-top: 16px;
        margin-left: 30px;
    }

    .download-button {
        width: 140px;
        padding: 12px 12px 0;
    }

    .download-button img {
        width: 80px;
        height: 80px;
        border-radius: 40px;
    }

    .download-button span {
        font-size: 12px;
    }

    .download-link img {
        width: 24px;
        height: 24px;
        object-fit: contain; 
        margin-top: 8px;
    }  
}

/* Keyframes for Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInBottom {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact {
        flex-direction: column;
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}