/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Libre Baskerville', serif;
    line-height: 1.6;
    color: #2d2d2d;
    background-color: #f9ece6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Color Palette */
:root {
    --primary: #a66f7d; /* Dusty rose */
    --secondary: #f4a261; /* Warm orange */
    --hover: #e76f51; /* Darker orange */
    --accent: #d4af37; /* Gold accent */
    --text-light: #666;
    --text-dark: #2d2d2d;
}

/* About Section */
.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 2rem) 2rem 4rem; /* Clears header + extra space */
    background-color: #f9ece6;
    min-height: 100vh;
}

.about h1 {
    color: var(--primary);
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    animation: slideIn 1s ease-in-out;
}

.about h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.profile-img-wrapper {
    text-align: center;
    position: sticky;
    top: calc(var(--header-height) + 1rem); /* Adjusted to clear header */
    z-index: 10;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    border: 4px solid var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1.2s ease-in-out;
}

.profile-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.about-text {
    max-width: 800px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1.4s ease-in-out;
}

.about-text p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text em {
    color: var(--primary);
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about {
        padding: calc(var(--header-height) + 1rem) 1rem 2rem;
    }

    .about h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .about h1::after {
        width: 80px;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-img-wrapper {
        position: static;
    }

    .profile-img {
        max-width: 250px;
    }

    .about-text {
        padding: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }

    .profile-img-wrapper {
        flex: 0 0 300px;
    }

    .about-text {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .about h1 {
        font-size: 1.8rem;
    }

    .about h1::after {
        width: 60px;
    }

    .profile-img {
        max-width: 200px;
    }

    .about-text {
        padding: 1rem;
    }

    .about-text p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
}