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

body {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7f9 0%, #e8ebed 50%, #d8dce0 100%);
    background-attachment: fixed;
    color: #2d3640;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(70, 85, 100, 0.02) 2px,
            rgba(70, 85, 100, 0.02) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(70, 85, 100, 0.02) 2px,
            rgba(70, 85, 100, 0.02) 4px
        );
    pointer-events: none;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(70, 85, 100, 0.12);
    border-bottom: 1px solid rgba(120, 135, 150, 0.2);
    backdrop-filter: blur(10px);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.name-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.name {
    font-size: 1.6rem;
    font-weight: 500;
    color: #3d4852;
    text-shadow: 1px 1px 2px rgba(70, 85, 100, 0.1);
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
}

.name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #8a95a0, transparent);
    opacity: 0.6;
}

.tagline {
    font-size: 0.95rem;
    font-weight: 400;
    color: #64717e;
    font-style: italic;
    text-shadow: 0.5px 0.5px 1px rgba(70, 85, 100, 0.1);
}

.contact-info {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5661;
    text-shadow: 0.5px 0.5px 1px rgba(70, 85, 100, 0.08);
}

.separator {
    color: #a0aab5;
}

.phone,
.email,
.location,
.scheduler {
    color: #64717e;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.phone:hover,
.email:hover,
.location:hover,
.scheduler:hover {
    color: #3d4852;
    transform: translateY(-1px);
}

.phone::after,
.email::after,
.location::after,
.scheduler::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #64717e;
    transition: width 0.3s ease;
}

.phone:hover::after,
.email:hover::after,
.location:hover::after,
.scheduler:hover::after {
    width: 100%;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    width: 100%;
}

.intro-section {
    display: flex;
    gap: 50px;
    align-items: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.headshot-container {
    flex-shrink: 0;
    margin-top: 0;
    align-self: flex-start;
    position: relative;
}

.headshot-placeholder {
    width: 200px;
    height: 250px;
    background-color: #d3d3d3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.headshot {
    width: 200px;
    height: auto;
    display: block;
    border: 3px solid #8a95a0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(70, 85, 100, 0.25);
    transition: all 0.4s ease;
    position: relative;
}

.headshot:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(70, 85, 100, 0.35);
}

.intro-text {
    flex: 1;
    max-width: 850px;
    line-height: 2;
    font-size: 1.15rem;
    color: #2d3640;
    text-shadow: 0.5px 0.5px 1px rgba(70, 85, 100, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    hyphens: none;
    position: relative;
    padding-bottom: 50px;
}

.intro-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, #b0bac3 20%, #8a95a0 50%, #b0bac3 80%, transparent);
    box-shadow:
        0 1px 2px rgba(70, 85, 100, 0.2),
        0 0 8px rgba(138, 149, 160, 0.4);
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.intro-text p {
    font-weight: 450;
    margin-bottom: 1.5em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.intro-text p:first-child {
    margin-top: 0;
}

.intro-text p:last-child {
    margin-bottom: 0;
    margin-top: auto;
}

/* List item fade-in animation */
.intro-text ul {
    list-style-position: outside;
    padding-left: 20px;
    margin-bottom: 1.5em;
}

.intro-text ul li {
    font-weight: 450;
    margin-bottom: 1em;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Drop Cap Styling */
.first-paragraph::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.85;
    font-weight: 700;
    margin-right: 12px;
    margin-top: 8px;
    color: #8a95a0;
    text-shadow: 2px 2px 4px rgba(70, 85, 100, 0.2);
    font-family: 'Raleway', serif;
}

/* Footer Styles */
.footer {
    background: linear-gradient(to top, #dfe4e9, #f0f2f5);
    padding: 15px 20px;
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(70, 85, 100, 0.12);
    border-top: 1px solid rgba(120, 135, 150, 0.25);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5661;
    text-shadow: 0.5px 0.5px 1px rgba(70, 85, 100, 0.1);
}

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

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .name-section {
        width: 100%;
    }

    .name {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 0.9rem;
        width: 100%;
    }

    .intro-section {
        flex-direction: column;
        align-items: center;
    }

    .headshot-container {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 0;
    }

    .headshot-placeholder {
        width: 100%;
        max-width: 200px;
    }

    .headshot {
        width: 100%;
        max-width: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
    }

    .separator {
        display: none;
    }
}

/* Scroll-triggered fade-in animations */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for list items */
.fade-in-element.delay-1 {
    transition-delay: 0.1s;
}

.fade-in-element.delay-2 {
    transition-delay: 0.2s;
}

.fade-in-element.delay-3 {
    transition-delay: 0.3s;
}

.fade-in-element.delay-4 {
    transition-delay: 0.4s;
}

.fade-in-element.delay-5 {
    transition-delay: 0.5s;
}

.fade-in-element.delay-6 {
    transition-delay: 0.6s;
}

.fade-in-element.delay-7 {
    transition-delay: 0.7s;
}

.fade-in-element.delay-8 {
    transition-delay: 0.8s;
}

/* Slide from left animation for list items */
.fade-in-slide {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-slide.visible {
    opacity: 1;
    transform: translateX(0);
}
