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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Full viewport background image */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('header-background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Floating card - BASE DESKTOP STYLING */
.floating-card {
    position: relative;
    max-width: 650px;
    margin: 5vh 0 10vh 8vw;
    padding: 50px 70px 60px 70px;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Typography */
header {
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    line-height: 1.1;
}

.credentials {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0;
    font-weight: 500;
}

main {
    margin-bottom: 2.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #333;
}

p:last-child {
    margin-bottom: 0;
}

.tagline {
    color: #1a1a1a;
    font-size: 1.15rem;
    margin: 2rem 0;
    font-weight: 600;
}

.tagline em {
    font-style: italic;
}

/* Links */
a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

a:hover {
    color: #000;
    text-decoration: underline;
}

/* Contact section */
.contact {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 12px 30px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.contact-link:hover {
    background: #333;
    text-decoration: none;
}

.copyright {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    text-align: center;
}

/* Photo credit */
.photo-credit {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    color: #999;
    text-align: center;
}

.photo-credit a {
    color: #999;
}

.photo-credit a:hover {
    color: #666;
}

/* RESPONSIVE - TABLET */
@media (max-width: 1024px) {
    .floating-card {
        margin: 6vh 5vw;
        max-width: 90%;
    }
}

/* RESPONSIVE - MOBILE LANDSCAPE */
@media (max-width: 768px) {
    .floating-card {
        margin: 50vh 4vw 50vh;
        padding: 40px 35px;
        max-width: 92%;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .credentials {
        font-size: 0.65rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 1.05rem;
    }
}

/* RESPONSIVE - MOBILE PORTRAIT */
@media (max-width: 480px) {
    .floating-card {
        margin: 20vh 4vw 50vh;
        padding: 30px 25px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .credentials {
        font-size: 0.6rem;
    }
    
    p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .contact-link {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling for accessibility */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
