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

body, html {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    overflow-y: auto; /* Allow vertical scrolling */
}

body {
    background: url('img/jwst.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    color: #333;
}

/* Overlay to enhance text readability over background */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container for main content */
.container {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

/* Profile Picture */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Heading */
h1 {
    font-size: 2em;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 700;
}

/* Description Paragraph */
.container p {
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
    font-weight: 300;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Icon Buttons */
.icon-btn {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: #333; /* Default background color */
}

.icon-btn:hover {
    transform: scale(1.1);
}

/* Specific Button Colors */
.email-btn {
    background-color: #007bff;
}

.email-btn:hover {
    background-color: #0056b3;
}

.mastodon-btn {
    background-color: #563ACC;
}

.mastodon-btn:hover {
    background-color: #4628A0;
}

.projects-btn {
    background-color: #28a745;
}

.projects-btn:hover {
    background-color: #218838;
}

/* SVG Icons within Icon Buttons */
.icon-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* App Store Button Styling */
.app-store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Increased width */
    height: 50px; /* Increased height */
    background-color: transparent; /* No background */
    border: none; /* No border */
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.app-store-button:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.app-store-svg {
    width: 100%; /* Ensures SVG fills the button */
    height: 100%;
    object-fit: contain;
}

/* Projects Section */
.projects-section {
    margin-top: 2rem;
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.projects-section.active {
    opacity: 1;
    max-height: 1000px; /* A value larger than the expected content height */
}

/* Projects Heading */
.projects-section h2 {
    font-size: 1.8em;
    margin-bottom: 1rem;
    color: #333;
}

/* Projects Container */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual App Styling */
.app {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.app:hover {
    transform: translateY(-5px);
}

.app-icon {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Updated .app-info to use Flexbox for alignment */
.app-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between; /* Distributes space between children */
    align-items: center;
}

/* Footer Styling */
footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.footer-content p {
    color: #fff;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .icon-btn {
        width: 45px;
        height: 45px;
    }

    .projects-section h2 {
        font-size: 1.5em;
    }

    .app {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-store-button {
        width: 40px; /* Adjusted size for smaller screens */
        height: 40px;
        margin-top: 0.5rem;
    }

    .app-store-button img {
        transform: scale(1.5); /* Scales the SVG by 150% */
        transition: transform 0.3s ease;
    }
    
    .app-store-button:hover img {
        transform: scale(1.6); /* Optional: Slightly larger on hover */
    }


    .app-store-svg {
        width: 100%;
        height: 100%;
    }

    footer {
        position: static;
        margin-top: 2rem;
    }

    .footer-content p {
        background: rgba(255, 255, 255, 0.8);
        color: #333;
    }
}
