:root {
    --purple-bg: #6C2BAB;
    --text-dark: #111111;
    --text-light: #FFFFFF;
    --gray-text: #666666;
    --font-main: 'Rubik', sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1000px;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-label {
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: var(--gray-text);
    font-weight: 500;
}

.white-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Responsive Text Utilities */
.text-nowrap-desktop {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .text-nowrap-desktop {
        white-space: normal;
    }
}

/* Header */
.site-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo a {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

/* Mission Section */
.mission-section {
    padding: 1rem 0 6rem;
    text-align: center;
}

.mission-image {
    position: relative;
    width: 100%;
    /* Maintain aspect ratio space - 1536x1024 is 3:2 */
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
    /* Hardware acceleration hint */
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.mission-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mission-content p {
    font-size: 1rem;
    color: var(--gray-text);
    max-width: 805px;
    /* Matches the width of the H1 text */
    margin: 0 auto;
}

/* Experience Section */
.experience-section {
    background-color: var(--purple-bg);
    color: var(--text-light);
    padding: 6rem 0;
}

.experience-layout {
    display: flex;
    gap: 4rem;
}

.experience-sidebar {
    flex: 0 0 200px;
    /* Fixed width for sidebar */
}

.experience-content {
    flex: 1;
}

.experience-content p {
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.8;
}

.experience-content strong {
    font-weight: 500;
    color: #fff;
    opacity: 1;
}

.linkedin-btn {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: 138px;
    text-align: left;
}

.linkedin-btn:hover {
    background-color: #fff;
    color: var(--purple-bg);
    opacity: 1;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Connect Section */
.connect-section {
    padding: 6rem 0;
}

.split-layout {
    display: flex;
    gap: 4rem;
    align-items: stretch;
    /* Make columns equal height */
}

.text-column {
    flex: 1;
}

.image-column {
    flex: 1;
    display: flex;
    /* Allow child map to fill height */
}

/* Map specific styles */
#map {
    width: 100%;
    height: 100%;
    /* Fill the image-column height */
    min-height: 400px;
    /* Minimum height fallback */
}

.image-column img {
    width: 100%;
    border-radius: 4px;
    /* Minimal radius like map widgets often have */
}

.content-block h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-block p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem 0;
    font-size: 0.9rem;
    color: var(--gray-text);
    border-top: 1px solid #eee;
}

.footer-icon {
    margin-bottom: 2rem;
    text-align: center;
}

.footer-icon-img {
    width: 120px;
    height: auto;
    display: inline-block;
    filter: url('#purple-duotone');
}

.site-footer h3 {
    color: var(--purple-bg);
}

.locations {
    font-size: 0.8rem;
    /* remove specific color so it inherits or matches body/footer */
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .mission-content h1 {
        font-size: 2rem;
    }

    .split-layout,
    .experience-layout {
        flex-direction: column;
    }

    .experience-sidebar {
        margin-bottom: 2rem;
        flex: auto;
    }

    #map {
        height: auto;
        aspect-ratio: 1 / 1;
        /* Square on mobile */
        min-height: auto;
    }

    /* Mobile Compactness */
    .mission-content p,
    .experience-content p,
    .content-block p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .section-label {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .experience-section,
    .connect-section {
        padding: 4rem 0;
    }
}