:root {
    --bg-desktop: #dee8f4;      
    --card-bg: #FFFFFF;         
    --text-dark: #333333;       
    --text-light: #555555;      
    --ca-blue: #0056A4;         
    --powder-blue: #dee8f4;     
    
    --radius-container: 12px;   
    --radius-button: 6px;       
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-desktop);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.desktop-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding: 2rem 1rem;
}

.mobile-card {
    width: 100%;
    max-width: 600px;
    background-color: var(--card-bg);
    border-radius: var(--radius-container);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    height: auto;
    min-height: 850px;
    overflow: hidden; 
}

@media (max-width: 540px) {
    .desktop-wrapper { padding: 0; }
    .mobile-card {
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Increased Hero Image Height to push the name downward */
.hero-image {
    position: sticky;
    top: 0;
    width: 100%;
    height: 75vh; /* Takes up almost the entire screen */
    min-height: 550px;
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: opacity 0.1s ease-out;
}

/* Extended gradient overlay for a smoother fade into the white section */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px; 
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--card-bg) 100%);
}

/* Bouncing Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dark);
    font-size: 1.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

.content-panel {
    position: relative;
    z-index: 2;
    background-color: var(--card-bg);
    margin-top: 0; 
    padding: 1rem 2.5rem 3rem 2.5rem; /* Reduced top padding slightly since the fade covers the transition */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    margin-left: 0.15em; 
}

.divider {
    width: 50px;
    height: 1px;
    background-color: var(--text-dark);
    margin: 0 auto 0.8rem;
}

.profile-title {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.firm-name {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-dark); /* Changed to fit the monochrome vibe */
    opacity: 0.85; /* Softens it to act as a nice subtitle */
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

/* Action Buttons */
.links-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.action-button {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-button); 
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Used the #dee8f4 color as a subtle circular background for the icons */
.button-icon {
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--powder-blue); /* #dee8f4 */
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-text {
    flex-grow: 1;
    text-align: center;
    margin-right: 38px; /* Balanced perfectly with the 38px icon width */
}

.arrow-icon {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.action-button:hover .arrow-icon {
    opacity: 1;
}

/* Highlighted Button */
.action-button.highlight {
    background-color: var(--powder-blue); 
    color: var(--text-dark); 
    border-color: #c4d6ea;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.action-button.highlight:hover {
    background-color: #c4d6ea;
    transform: translateY(-2px);
}

.action-button.highlight .button-icon {
    background-color: #ffffff; /* Contrast for the highlight button icon */
}

/* Social Icons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--powder-blue);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #c4d6ea;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* Restored Entry Animations */
.animate-item {
    opacity: 0;
    animation: slideUpFade 0.6s ease-out forwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

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