body {
    min-height: 100vh;
    background-color: #131F32;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
}

/* Homepage specific styling - centered content, no scroll */
body.homepage {
    height: 100vh;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    box-sizing: border-box;
}

/* Legal pages - allow scrolling */
body.legal-page {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-wrapper {
    /* Replicates: max-w-2xl, leading-loose */
    max-width: 42rem; /* 672px */
    line-height: 1.75;
    padding: 0 1rem; /* Adds some space on smaller screens */
}

.content-wrapper > * + * {
    margin-top: 1.5rem; /* 24px */
}

.logo-container {
    padding-top: 2rem;
    padding-bottom: 0.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo {
    width: 6rem; /* 96px */
    height: 6rem; /* 96px */
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    background-color: #2B496B;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo > img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the logo maintains its aspect ratio */
    transform: rotate(-45deg);
}

a {
    color: #E47849; /* Custom 'link' color */
    transition: opacity 0.2s ease-in-out;
    text-decoration: none; /* Removes underline */
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style-type: disc;
    padding-left: 1.5rem; /* Adds space for bullet points */
}

.portfolio-section {
    width: 100%;
    max-width: 42rem; /* Match content-wrapper width */
    margin-top: 0.25rem; /* Space above the portfolio section */
    text-align: center;
}

.portfolio-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.iphone-dock {
    background-color: rgba(255, 255, 255, 0.1); /* Frosted glass effect */
    border-radius: 1.5rem; /* Rounded corners for the dock */
    padding: 1rem 1rem 0.25rem 1rem; /* Top, right, bottom, left - reduced bottom padding */
    display: inline-flex; /* Let the dock size to its content */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px); /* Adds to the frosted glass effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

a.app-icon:hover {
    opacity: 0.9; /* Subtle hover effect */
}

.app-icon img {
    width: 4.5rem; /* 72px */
    height: 4.5rem; /* 72px */
    border-radius: 1rem; /* iOS-style rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Drop shadow for the icon */
    display: block;
}

.app-title {
    margin-top: 0.5rem; /* Space between icon and title */
    font-size: 0.875rem; /* 14px */
    color: #FFFFFF;
    font-weight: 500;
}

footer {
    width: 100%;
    max-width: 42rem; /* Match content-wrapper width */
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7); /* Slightly muted text color */
    font-size: 0.875rem; /* 14px */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
    color: #E47849;
    opacity: 1;
}

.legal-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.legal-content h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.back-link {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    body.homepage {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        justify-content: flex-start;
    }
    
    .logo-container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .logo {
        width: 5rem;
        height: 5rem;
    }
    
    .content-wrapper {
        padding: 0 1.5rem;
    }
    
    .portfolio-section {
        margin-bottom: 2rem;
    }
    
    .iphone-dock {
        padding: 0.75rem 0.75rem 0.375rem 0.75rem; /* Maintain proportional padding on mobile */
    }
    
    .app-icon img {
        width: 4rem;
        height: 4rem;
    }
    
    footer {
        margin-top: auto;
        padding-bottom: 2rem;
    }
}