/* ==========================================================================
   Sivaldo Leite Correia — Potter & Ceramic Researcher
   Refactored from React+Tailwind to pure CSS
   Fonts: Lora (serif) + Inter (sans-serif)
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2A1F17;
    background-color: #FFFFFF;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #EDE4DA;
}

h1,
h2,
h3,
h4 {
    font-family: 'Lora', serif;
}

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

a:hover {
    color: #8B6B4A;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Serif body text (used in content sections) */
.serif-body {
    font-family: 'Lora', serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #3B2F24;
}

.serif-body p {
    margin-bottom: 1.5rem;
}

.serif-body p:last-child {
    margin-bottom: 0;
}

.serif-body-large {
    font-size: 1.35rem;
    color: #2A1F17;
    line-height: 1.65;
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #D6CBC0;
}

.nav-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.nav-name {
    font-family: 'Lora', serif;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6B5D51;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    background: none;
    border: none;
    color: #2A1F17;
    padding: 0;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #6B5D51;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    color: #2A1F17;
}

.hamburger-icon {
    display: block;
}

.hamburger-close {
    display: none;
}

.hamburger.open .hamburger-open {
    display: none;
}

.hamburger.open .hamburger-close {
    display: block;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    overflow: hidden;
    max-height: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #D6CBC0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

.mobile-menu-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    background: none;
    border: none;
    color: #2A1F17;
    padding: 0;
}

.mobile-link-icon {
    color: #9C8E80;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: 8rem 1.5rem 5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFCFA 100%);
}

.hero-container {
    max-width: 1024px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #9C8E80;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-title-accent {
    font-style: italic;
    font-weight: 300;
    color: #8B6B4A;
}

.hero-intro {
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background-color: #2A1F17;
    color: white;
}

.btn-primary:hover {
    background-color: #3B2F24;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid #2A1F17;
    color: #2A1F17;
}

.btn-outline:hover {
    background-color: #F5F0EB;
    color: #2A1F17;
}

/* Portrait */
.hero-portrait {
    position: relative;
}

.portrait-frame {
    aspect-ratio: 4 / 5;
    background-color: #F3EDE6;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D6CBC0;
    box-shadow: 0 25px 50px -12px rgba(42, 31, 23, 0.2);
    position: relative;
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.portrait-frame:hover .portrait-img {
    transform: scale(1.05);
}

.portrait-inner-border {
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    pointer-events: none;
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px -10px rgba(42, 31, 23, 0.18);
    border: 1px solid #D6CBC0;
    max-width: 200px;
}

.badge-title {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #2A1F17;
    margin-bottom: 0.5rem;
}

.badge-text {
    font-size: 11px;
    color: #6B5D51;
    line-height: 1.5;
    font-style: italic;
}

/* ==========================================================================
   Introduction Continued
   ========================================================================== */

.intro-continued {
    padding: 6rem 1.5rem;
    border-top: 1px solid #D6CBC0;
    border-bottom: 1px solid #D6CBC0;
    background: #FFFFFF;
}

.intro-continued-container {
    max-width: 768px;
    margin: 0 auto;
}

.intro-continued .serif-body-large p:last-child {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #6B5D51;
    padding-top: 2rem;
    font-style: normal;
}

.intro-continued .serif-body-large a {
    color: #8B6B4A;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #C4AD96;
}

/* ==========================================================================
   Content Sections (shared)
   ========================================================================== */

.section {
    padding: 6rem 1.5rem;
}

.section-alt {
    background-color: #F9F8F6;
}

.section-container {
    max-width: 1024px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-icon {
    color: #8B7355;
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: #6B5D51;
}

.section-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, #D6CBC0 0%, #C4AD96 50%, #D6CBC0 100%);
}

/* ==========================================================================
   Academic Section
   ========================================================================== */

.academic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.academic-text p:last-child {
    margin-bottom: 0;
}

/* Cards */
.card {
    padding: 1.5rem;
    background: #FFFFFF;
    border: 1px solid #D6CBC0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card+.card {
    margin-top: 2rem;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.institution-list {
    list-style: none;
    padding: 0;
}

.institution-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.institution-item+.institution-item {
    margin-top: 0.5rem;
}

.institution-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.institution-location {
    color: #6B5D51;
    font-size: 0.75rem;
}

/* Tags */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background-color: #F5F0EB;
    color: #6B5D51;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 9999px;
}

/* Publications */
.publications {
    margin-top: 5rem;
    padding: 2rem;
    border: 1px solid #D6CBC0;
    border-radius: 1rem;
    background: rgba(250, 247, 242, 0.5);
}

.publications-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #6B5D51;
    margin-bottom: 1.5rem;
}

.publications-intro {
    font-size: 0.875rem;
    color: #6B5D51;
    font-style: italic;
    margin-bottom: 2rem;
}

.publications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.publication-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(214, 203, 192, 0.4);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #8B7355;
    flex-shrink: 0;
    margin-top: 0.55rem;
}

.publication-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.publication-paper {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #2A1F17;
    line-height: 1.4;
}

.publication-journal {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8B7355;
}

/* ==========================================================================
   Experience Section
   ========================================================================== */

.experience-grid {
    columns: 1;
    column-gap: 4rem;
}

/* ==========================================================================
   Video Block
   ========================================================================== */

.video-block {
    margin-top: 5rem;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-player {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: #2A1F17;
}

.video-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background: linear-gradient(135deg, #3B3229, #5A4A3A);
    transition: transform 1s ease;
}

.video-block:hover .video-bg {
    transform: scale(1.05);
}

.video-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-play-btn {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    color: white;
}

.video-play-btn svg {
    margin-left: 3px;
}

.video-block:hover .video-play-btn {
    transform: scale(1.1);
}

.video-label {
    margin-top: 1.5rem;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.video-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-caption-bar {
    width: 2px;
    height: 2rem;
    background: rgba(255, 255, 255, 0.3);
}

.video-caption-title {
    display: block;
    color: white;
    font-size: 0.875rem;
    font-family: 'Lora', serif;
}

.video-caption-status {
    display: block;
    color: rgba(250, 247, 242, 0.5);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-card {
    position: relative;
    aspect-ratio: 1;
    background: #FFFFFF;
    border: 1px solid #D6CBC0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: box-shadow 0.5s ease;
}

.gallery-card:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.gallery-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-card-bg--contain {
    object-fit: contain;
    padding: 1rem;
    background-color: #F5F0EB;
}

.gallery-card:hover .gallery-card-bg {
    transform: scale(1.1);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-title {
    color: white;
    font-size: 1.125rem;
    font-family: 'Lora', serif;
}

.gallery-card-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-card {
    background-color: #2A1F17;
    color: white;
    border-radius: 1.5rem;
    padding: 3rem;
    overflow: hidden;
    position: relative;
}

.contact-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(255, 245, 230, 0.08);
    border-radius: 50%;
    transform: translate(50%, -50%);
    filter: blur(48px);
}

.contact-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 672px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.contact-text {
    color: #B0A294;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-text p {
    margin: 0;
}

.contact-email-copy:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding-top: 1.5rem;
    max-width: 460px;
    margin: 0 auto;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    transition: background 0.2s ease;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 3rem 0;
    border-top: 1px solid #D6CBC0;
}

.footer-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-name {
    font-family: 'Lora', serif;
    font-size: 0.875rem;
    font-weight: 700;
}

.footer-url {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9C8E80;
}

.footer-inspiration {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #6B5D51;
}

.footer-inspiration a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #6B5D51;
    transition: color 0.2s ease;
}

.footer-inspiration a:hover {
    color: #2A1F17;
}

.footer-copy {
    font-size: 10px;
    color: #9C8E80;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ==========================================================================
   Responsive — Medium screens (≥ 768px)
   ========================================================================== */

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .academic-grid {
        grid-template-columns: 2fr 1fr;
    }

    .publications-grid {
        grid-template-columns: 1fr 1fr;
    }

    .experience-grid {
        columns: 2;
    }

    .contact-card {
        padding: 5rem;
    }

    .contact-title {
        font-size: 3rem;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .intro-continued .serif-body-large {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Responsive — Mobile (≤ 768px)
   ========================================================================== */

@media (max-width: 767px) {

    /* Show hamburger, hide desktop nav */
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    /* Hero adjustments */
    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Portrait on mobile */
    .floating-badge {
        right: 0;
        bottom: -1rem;
    }

    /* Sections */
    .section {
        padding: 4rem 1.5rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .gallery-card.active .gallery-card-overlay {
        opacity: 1;
    }

    /* Video */
    .video-block {
        margin-top: 3rem;
        border-radius: 1rem;
    }

    .video-caption {
        bottom: 1rem;
        left: 1rem;
    }

    /* Contact */
    .contact-card {
        padding: 2.5rem 1.5rem;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    body {
        font-size: 15px;
    }
}