:root {
    /* "Professional Light" Theme */
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --accent: #10b981;
    --accent-secondary: #d97706;
    --border-color: #e5e7eb;

    --radius: 20px;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Mappings for requested Hackathon CSS */
    --color-border: var(--border-color);
    --color-text: var(--text-main);
    --color-text-muted: var(--text-muted);
    --color-accent: var(--accent);
    --color-accent-gold: var(--accent-secondary);
    --transition: all 0.3s ease;
}

/* Hackathon Specific Styles */
.hack-section {
    border-left: 2px solid var(--color-border);
    padding-left: 12px;
    margin-bottom: 24px;
}

.hack-entry {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Adjusted from white/0.05 for light mode */
}

.hack-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.hack-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 4px;
}

.hack-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 4px 0 8px 0;
    line-height: 1.4;
}

.hack-link {
    font-size: 0.8rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.hack-link:hover {
    color: var(--color-accent-gold);
    text-decoration: underline;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 40px;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Language Hiding Logic */
.lang-en,
.lang-es,
.lang-pt {
    display: none;
}

body.show-en .lang-en {
    display: inline;
}

body.show-es .lang-es {
    display: inline;
}

body.show-pt .lang-pt {
    display: inline;
}

/* Block level support */
body.show-en div.lang-en,
body.show-en p.lang-en,
body.show-en span.lang-en-block {
    display: block;
}

body.show-es div.lang-es,
body.show-es p.lang-es,
body.show-es span.lang-es-block {
    display: block;
}

body.show-pt div.lang-pt,
body.show-pt p.lang-pt,
body.show-pt span.lang-pt-block {
    display: block;
}

/* Inline support tweaks */
span.lang-en,
span.lang-es,
span.lang-pt {
    display: none;
}

body.show-en span.lang-en {
    display: inline;
}

body.show-es span.lang-es {
    display: inline;
}

body.show-pt span.lang-pt {
    display: inline;
}


/* Layout Grid */
.bento-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 60px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* --- Left Column: Intro --- */
.intro-column {
    flex: 1 1 350px;
    max-width: 420px;
    position: sticky;
    top: 40px;
}

.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.logo-icon {
    font-size: 1.8rem;
    /* color: var(--accent); removed for emoji */
}

.lang-switch {
    background: #f3f4f6;
    border-radius: 20px;
    padding: 4px;
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.intro-content .greeting {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
}

.intro-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #111827;
    letter-spacing: -0.03em;
}

/* Updated Profile Image */
.profile-main-img {
    width: 100%;
    max-width: 320px;
    /* Larger max width */
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 30px;
    object-fit: cover;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block;
    /* Centering logic if container is wider */
    margin-left: 0;
    margin-right: auto;
}

.intro-content .role {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 400;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.quote-box {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin-bottom: 30px;
    font-style: italic;
    color: #374151;
    font-weight: 500;
}

.bio-text {
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.social-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.social-item {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.social-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #111827;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* --- Right Column: Grid --- */
.bento-grid {
    flex: 2 1 600px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
    gap: 24px;
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Dimensions & Spans */
.col-1 {
    grid-column: span 1;
}

.col-2 {
    grid-column: span 2;
}

.row-1 {
    grid-row: span 1;
}

.row-2 {
    grid-row: span 2;
}

.card-journey {
    grid-row: span 2;
}

.card-hackathon {
    grid-row: span 2;
}

/* Card Internals */
.card-header-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    transition: color 0.3s;
}

.card:hover .card-header-icon {
    color: var(--accent);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.link-item:hover {
    background: #f0fdf4;
    color: var(--accent);
}

/* Experience Timeline */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-entry {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-name {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}

.company-name {
    font-weight: 500;
    color: var(--accent);
    font-size: 0.9rem;
}

.duration {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.desc {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Hackathons */
.hack-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hack-entry {
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
}

.hack-win {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: block;
}

.hack-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    display: block;
    font-size: 0.9rem;
}

.hack-desc {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 8px;
    display: block;
}

/* --- Carousels --- */
.carousel-card {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Ensure starts from left */
    background: #000;
}

.carousel-track {
    display: flex;
    width: max-content;
    /* Critical for gapless seamless loop */
    animation: scroll 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-img {
    width: 200px;
    height: 240px;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.3333%);
    }

    /* Move exactly 1/3 since we have 3 sets */
}

/* AI Carousel */
.ai-carousel-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.card-ai-carousel {
    background: #111;
    height: 220px;
    padding: 0;
}

/* Spatial Preview Cards */
.spatial-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.spatial-preview-card {
    display: flex;
    align-items: flex-end;
    /* Text at bottom */
    width: 100%;
    height: 120px;
    /* Short wide card */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.spatial-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Gradient Overlay for Text Readability */
.spatial-preview-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.spatial-card-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px;
    width: 100%;
}

.spatial-icon {
    margin-right: 8px;
    color: var(--accent);
}

/* Footer */
.footer-text {
    grid-column: span 2;
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.spatial-link {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.spatial-link:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-container {
        flex-direction: column;
        align-items: center;
    }

    .intro-column {
        position: static;
        text-align: center;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-main-img {
        width: 100%;
        max-width: 280px;
        height: auto;
        border-radius: 16px;
        display: block;
        margin: 16px auto;
    }

    .brand-header {
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    .social-grid {
        justify-content: center;
    }

    .quote-box {
        border-left: none;
        border-top: 3px solid var(--accent);
        padding-top: 10px;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .profile-main-img {
        max-width: 200px;
        /* User requested fix */
    }

    .col-2 {
        grid-column: span 1;
    }

    /* Top Carousel - Mobile Fix */
    .carousel-img {
        width: 140px;
        height: 180px;
        object-fit: cover;
    }

    /* Bottom Carousel - Mobile Fix */
    .ai-carousel-img {
        width: 120px;
        height: 120px;
    }

    .card-ai-carousel {
        height: 140px;
    }
}