/* 
   Estúdio Kadu - Design System & Custom CSS 
   Font-families: Feature Deck (Editorial Serif) & Manrope (Modern Sans-Serif)
   Aesthetic: Textured Grainy Gradients, Bento Grid, Modern Luxury Minimalist
*/

/* 1. TYPOGRAPHY - Custom Feature Deck & Fallbacks */
@font-face {
    font-family: 'Feature Deck';
    src: url('fonts/FeatureDeck-Medium.woff2') format('woff2'),
         url('fonts/FeatureDeck-Medium.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Feature Deck';
    src: url('fonts/FeatureDeck-MediumItalic.woff2') format('woff2'),
         url('fonts/FeatureDeck-MediumItalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --font-base: 'Manrope', sans-serif;
    --font-serif: 'Feature Deck', 'Playfair Display', Georgia, serif;
    
    /* Elegant Color Palette */
    --bg-base: #F5F2EA;          /* Off-white warm background */
    --text-primary: #121212;     /* Carbon Black */
    --text-secondary: #5C5852;   /* Warm charcoal gray */
    --accent: #8E7D6A;           /* Muted bronze-gold */
    --accent-light: #ECE6DB;     
    --accent-hover: #756554;
    --border: rgba(18, 18, 18, 0.08); /* Clean modern thin borders */
    --white: #FFFFFF;
    
    /* Animation Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    
    /* Bento Grid Settings */
    --bento-gap: 28px;
    --bento-radius: 28px;
    
    --header-height: 80px;
    --container-max-width: 1240px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. BODY BACKGROUND - Grainy Textured Mesh Gradient (Zeus Jones Inspired) */
body {
    font-family: var(--font-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(206, 182, 230, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(246, 219, 163, 0.35) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(185, 218, 235, 0.25) 0px, transparent 60%),
        radial-gradient(at 0% 100%, rgba(235, 187, 203, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(200, 230, 208, 0.2) 0px, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* SVG Generated Grain Texture Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.055;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography Utility Classes */
.serif-font {
    font-family: var(--font-serif);
    font-weight: 400;
}

.italic {
    font-style: italic;
}

h1, h2, h3, h4 {
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.text-highlight {
    color: var(--accent);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 28px;
}

/* Buttons and CTAs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    font-family: var(--font-base);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 40px; /* Rounded pill buttons match Zeus Jones style */
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-base);
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(142, 125, 106, 0.15);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-base);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(18, 18, 18, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: var(--text-primary);
    color: var(--bg-base);
}

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-outline-white:hover {
    border-color: var(--white);
    background-color: var(--white);
    color: var(--text-primary);
}

.btn-large {
    padding: 18px 40px;
    font-size: 0.95rem;
}

/* Navigation Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(245, 242, 234, 0.7); /* glassmorphic warm background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scroll-down {
    transform: translateY(-100%);
}

.main-header.scroll-up {
    transform: translateY(0);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
    transition: var(--transition-fast);
}

.logo-img:hover {
    opacity: 0.85;
}

.nav-list {
    display: flex;
    gap: 48px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Menu Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

.menu-cta-mobile {
    display: none;
}

/* Hero Section (Editorial Title Mix) */
.hero-section {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 920px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2.4rem, 6.2vw, 4.8rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 48px;
    max-width: 680px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Section Common Styling */
.section-header {
    margin-bottom: 70px;
    max-width: 700px;
}

.section-header.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Projects Section & Bento Grid (8 Projects) */
.projects-section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bento-gap);
    grid-auto-flow: dense;
}

.bento-item {
    grid-column: span 1;
}

.bento-wide {
    grid-column: span 2;
}

.bento-full {
    grid-column: span 3;
}

.project-card {
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border-radius: var(--bento-radius);
    overflow: hidden;
    background-color: var(--accent-light);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.project-card:hover {
    box-shadow: 0 20px 40px rgba(18, 18, 18, 0.04);
    transform: translateY(-4px);
    border-color: rgba(18, 18, 18, 0.15);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.bento-wide .project-image-wrapper {
    aspect-ratio: 1.6 / 1; /* Horizontal rectangle */
}

.bento-full .project-image-wrapper {
    aspect-ratio: 3 / 1.25; /* Panoramic full width banner */
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: var(--transition-fast);
    z-index: 2;
}

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

.project-info {
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    border: 1px solid var(--text-primary);
    border-radius: 40px;
    padding: 6px 14px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.project-card:hover .project-category {
    background-color: var(--text-primary);
    color: var(--bg-base);
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    align-self: flex-start;
    transition: var(--transition-fast);
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

.project-card:hover .project-title::after {
    width: 100%;
}

/* Services Section */
.services-section {
    padding: 140px 0;
}

.grid-services-layout {
    display: grid;
    grid-template-columns: 4.8fr 7.2fr;
    gap: 70px;
}

.services-intro {
    position: sticky;
    top: 130px;
    height: fit-content;
}

.services-intro-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.6;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    padding: 44px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.service-item:first-child {
    padding-top: 0;
}

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

.service-number {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--accent);
    opacity: 0.4;
    width: 70px;
    flex-shrink: 0;
}

.service-details {
    flex-grow: 1;
}

.service-name {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.6;
}

.service-item:hover {
    transform: translateX(12px);
}

.service-item:hover .service-number {
    opacity: 1;
}

.service-item:hover .service-name {
    color: var(--accent);
}

/* Creative Process Section */
.process-section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-timeline {
    max-width: 920px;
    margin: 60px auto 0 auto;
    position: relative;
}

.process-step {
    display: flex;
    margin-bottom: 60px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 44px;
    width: 32px;
    flex-shrink: 0;
}

.step-dot {
    width: 14px;
    height: 14px;
    background-color: var(--accent);
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 6px var(--accent-light);
}

.step-line {
    width: 1px;
    background-color: var(--border);
    flex-grow: 1;
    margin-top: 12px;
    min-height: 90px;
}

.step-content {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    flex-grow: 1;
    transition: var(--transition-smooth);
}

.step-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(18, 18, 18, 0.03);
    border-color: var(--accent);
}

.step-num {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.step-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   DYNAMIC PROJECT DETAIL PAGE STYLES (projeto.html)
   ========================================================================== */
.project-detail-main {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 100px;
}

/* Back Button styling */
.project-detail-nav {
    margin-bottom: 30px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.btn-back:hover {
    color: var(--text-primary);
}

.back-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.btn-back:hover .back-icon {
    transform: translateX(-4px);
}

/* Detail Hero Section */
.project-detail-hero {
    margin-bottom: 60px;
}

.project-detail-category {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.project-detail-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.project-detail-cover-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* Panoramic 16:9 for large cover */
    border-radius: var(--bento-radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.project-detail-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3 Creative Columns (Conceito, Desenvolvimento, Entrega) */
.project-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 0;
    margin-bottom: 60px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-column {
    display: flex;
    flex-direction: column;
}

.column-num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 15px;
    opacity: 0.45;
}

.column-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.column-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Gallery details */
.project-detail-gallery-section {
    margin-bottom: 80px;
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.project-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.gallery-img-wrapper {
    border-radius: 0;
    overflow: visible;
    border: none;
    width: 100%;
}

.gallery-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}
.gallery-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--text-primary);
}

.gallery-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* CTA in individual page */
.project-page-cta {
    margin-bottom: 100px;
}

.project-page-cta-box {
    background-color: var(--text-primary);
    color: var(--bg-base);
    padding: 70px;
    border-radius: var(--bento-radius);
    text-align: center;
    border: 1px solid var(--border);
}

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.25;
}

.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-page-cta-box .btn-secondary {
    border-color: rgba(245, 242, 234, 0.25);
    color: var(--bg-base);
}

.project-page-cta-box .btn-secondary:hover {
    background-color: var(--bg-base);
    color: var(--text-primary);
    border-color: var(--bg-base);
}

/* Horizontal Slider (Other Projects) */
.other-projects-section {
    padding-top: 80px;
    border-top: 1px solid var(--border);
}

.other-projects-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.other-projects-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.slider-outer {
    width: 100%;
    overflow: hidden;
}

.slider-inner {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox hide */
    padding: 10px 0;
}

.slider-inner::-webkit-scrollbar {
    display: none; /* Chrome Safari hide */
}

.slider-card {
    flex: 0 0 calc(33.333% - 16px); /* 3 cards visible desktop */
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.slider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(18, 18, 18, 0.04);
    border-color: rgba(18, 18, 18, 0.15);
}

.slider-card-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.slider-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.slider-card:hover .slider-card-img-wrapper img {
    transform: scale(1.04);
}

.slider-card-info {
    padding: 24px;
}

.slider-card-category {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.slider-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Slider navigation arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--bg-base);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(18, 18, 18, 0.05);
    transition: var(--transition-fast);
}

.slider-arrow:hover {
    background-color: var(--text-primary);
    color: var(--bg-base);
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

.prev-arrow {
    left: -26px;
}

.next-arrow {
    right: -26px;
}

/* Footer and contact details */
.main-footer {
    background-color: var(--text-primary);
    color: var(--bg-base);
    padding: 120px 0 40px 0;
}

.footer-cta-wrapper {
    max-width: 900px;
    margin: 0 auto 90px auto;
    text-align: center;
}

.footer-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 28px;
}

.footer-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 48px;
}

.footer-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-actions .btn-secondary {
    border-color: rgba(245, 242, 234, 0.3);
    color: var(--bg-base);
}

.footer-actions .btn-secondary:hover {
    background-color: var(--bg-base);
    color: var(--text-primary);
    border-color: var(--bg-base);
}

.footer-actions .btn-primary:hover {
    background-color: var(--accent);
    color: var(--white);
}

.footer-email {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-light);
    border-bottom: 1px solid rgba(245, 242, 234, 0.2);
    padding-bottom: 4px;
    display: block;
    margin-top: 15px;
    width: 100%;
}

.footer-email:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: rgba(245, 242, 234, 0.08);
    margin-bottom: 40px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand-signature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-seal {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-slogan {
    font-family: var(--font-base);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bg-base);
}

.footer-right-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(245, 242, 234, 0.4);
}

.footer-socials {
    display: flex;
    gap: 32px;
}

.social-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(245, 242, 234, 0.5);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .footer-right-info {
        align-items: flex-start;
    }
}

.social-link:hover {
    color: var(--bg-base);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

/* Large Tablets & Medium screens */
@media screen and (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .bento-full {
        grid-column: span 2;
    }
    
    .bento-full .project-image-wrapper {
        aspect-ratio: 1.6 / 1;
    }
    
    .grid-services-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .services-intro {
        position: relative;
        top: 0;
    }
    
    /* Project details page updates */
    .project-detail-info-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .slider-card {
        flex: 0 0 calc(50% - 12px); /* 2 items visible on tablet */
    }
}

/* Mobile Devices & Small Tablets */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
        --bento-gap: 20px;
        --bento-radius: 24px;
    }
    
    .main-header {
        background-color: var(--bg-base);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-base);
        padding: 44px 28px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 32px;
    }
    
    .nav-link {
        font-family: var(--font-serif);
        font-size: 2rem;
        font-weight: 400;
        color: var(--text-primary);
    }
    
    .menu-cta-mobile {
        display: block;
        width: 100%;
    }
    
    .menu-cta-mobile .btn {
        width: 100%;
        padding: 16px;
    }
    
    .btn-header-cta {
        display: none;
    }
    
    /* Hamburger Active Animations */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero Modifications */
    .hero-section {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 80px;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    /* Bento Grid mobile resets */
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-wide, .bento-full {
        grid-column: span 1;
    }
    
    .bento-wide .project-image-wrapper, 
    .bento-full .project-image-wrapper {
        aspect-ratio: 1 / 1; /* Uniform squares on mobile */
    }
    
    /* Process timeline mobile tweaks */
    .step-marker {
        margin-right: 20px;
    }
    
    .step-content {
        padding: 24px;
    }
    
    /* Project details mobile resets */
    .project-detail-hero {
        margin-bottom: 40px;
    }
    
    .project-detail-cover-wrapper {
        aspect-ratio: 4 / 3;
    }
    
    .project-page-cta-box {
        padding: 44px 20px;
    }
    
    /* Slider mobile resets */
    .slider-card {
        flex: 0 0 100%; /* 1 item visible on mobile */
    }
    
    .prev-arrow {
        left: -12px;
    }
    
    .next-arrow {
        right: -12px;
    }
    
    .slider-arrow {
        width: 44px;
        height: 44px;
    }
    
    /* Footer & actions */
    .footer-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .footer-actions .btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .footer-socials {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   ABOUT ME PAGE STYLES (sobre.html)
   ========================================================================== */
.about-main {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-photo-wrapper {
    border-radius: var(--bento-radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1 / 1.25;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.about-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 24px;
}

.about-intro-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.about-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Stats Section (Matches Zeus Jones/Editorial look) */
.about-stats-section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 80px;
}

.stats-header-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 40px;
    opacity: 0.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-column {
    border-left: 1px solid var(--text-primary); /* Left border divider */
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stat-num {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

/* Process Section in About Page */
.about-process-section {
    padding-top: 20px;
}

.about-process-grid {
    display: grid;
    grid-template-columns: 7.2fr 4.8fr;
    gap: 60px;
    align-items: center;
}

.about-process-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.about-process-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-process-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.about-process-image-wrapper {
    border-radius: var(--bento-radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1 / 1;
}

.about-process-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsiveness for About Page */
@media screen and (max-width: 1024px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-photo-wrapper {
        aspect-ratio: 1.6 / 1; /* Horizontal rectangular for tablet */
    }
    
    .about-process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-process-image-wrapper {
        aspect-ratio: 1.6 / 1;
    }
}

@media screen and (max-width: 768px) {
    .about-main {
        padding-top: calc(var(--header-height) + 30px);
        padding-bottom: 60px;
    }
    
    .about-photo-wrapper, .about-process-image-wrapper {
        aspect-ratio: 1.2 / 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-column {
        padding-left: 20px;
    }
    
    .stat-num {
        font-size: 4rem;
    }
    
    .about-stats-section {
        padding: 40px 0;
        margin-bottom: 60px;
    }
}

/* Scroll-Linked Horizontal Timeline (Capsule Bar Design) */
.about-process-section {
    margin-top: 100px;
    padding-bottom: 0;
}

.process-scroll-container {
    height: 250vh; /* space to scroll through the timeline */
    position: relative;
}

.process-sticky-wrapper {
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.process-section-header {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 24px;
    width: 100%;
    margin-bottom: 50px;
    z-index: 10;
}

.process-bento-image-card {
    background-color: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: block;
    padding: 0;
    height: 360px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(18, 18, 18, 0.02);
}

.process-bento-image-card .about-process-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.process-bento-text-card {
    background-color: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 360px;
    box-shadow: 0 10px 30px rgba(18, 18, 18, 0.02);
}

.process-bento-text-card .about-tag {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 12px;
}

.process-bento-text-card .about-process-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.process-bento-text-card .about-process-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.timeline-scroll-area {
    width: 100%;
    position: relative;
}

.timeline-horizontal-track {
    display: flex;
    position: relative;
    padding-left: 10%;
    will-change: transform;
}

.timeline-bar-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-right: 25vw;
}

.capsules-row {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.capsule-block {
    position: relative;
    height: 36px;
    width: 180px; /* capsule length */
    background-color: rgba(18, 18, 18, 0.05);
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.capsule-fill {
    height: 100%;
    width: 0%; /* Dynamic fill */
    border-radius: 18px;
    transition: width 0.05s ease-out;
}

.milestone-divider {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px; /* spacing between capsules */
    flex-shrink: 0;
}

.milestone-top {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 6px;
    opacity: 0.5;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.milestone-line {
    width: 2px;
    height: 44px;
    background-color: var(--text-secondary);
    opacity: 0.2;
    position: relative;
    transition: background-color var(--transition-fast), opacity var(--transition-fast);
}

.milestone-line::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-secondary);
    opacity: 0.4;
    transition: border-top-color var(--transition-fast), opacity var(--transition-fast);
}

.milestone-badge {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    background-color: rgba(18, 18, 18, 0.04);
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: 6px;
    white-space: nowrap;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

/* Active milestone state */
.milestone-divider.active .milestone-top {
    color: var(--accent);
    opacity: 1;
}

.milestone-divider.active .milestone-line {
    background-color: var(--accent);
    opacity: 1;
}

.milestone-divider.active .milestone-line::before {
    border-top-color: var(--accent);
    opacity: 1;
}

.milestone-divider.active .milestone-badge {
    color: var(--bg-base);
    background-color: var(--text-primary);
}

/* Timeline Cards spacing and alignment */
.timeline-cards-row {
    display: flex;
    position: relative;
    margin-top: 36px;
    padding-left: 120px; /* Align Card 1 with Divider 1 center: (Capsule 1 (180px) + half Divider 1 (60px) = 240px. Card 1 center is at 240px. With card width 240px, left starts at 240 - 120 = 120px) */
    gap: 60px; /* spacing between cards */
}

.timeline-card-node {
    width: 240px;
    flex-shrink: 0;
    text-align: center;
    opacity: 0.4;
    transform: translateY(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.timeline-card-node.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-card-node .node-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-card-node .node-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive configurations */
@media screen and (max-width: 1024px) {
    .process-scroll-container {
        height: auto !important;
    }
    
    .process-sticky-wrapper {
        position: relative !important;
        top: 0 !important;
        height: auto !important;
        padding: 40px 0 !important;
        overflow-x: auto !important;
        display: block !important;
    }
    
    .process-section-header {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 40px !important;
    }
    
    .process-bento-image-card {
        height: 180px !important;
        padding: 20px !important;
    }
    
    .process-bento-image-card .about-process-img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .process-bento-text-card {
        height: auto !important;
        padding: 30px 20px !important;
    }
    
    .process-bento-text-card .about-process-title {
        font-size: 1.8rem !important;
    }
    
    .timeline-horizontal-track {
        padding-left: 20px !important;
        transform: none !important;
    }
    
    .timeline-bar-wrapper {
        padding-right: 40px !important;
    }
}

/* ==========================================================================
   BLOG FEED & ARTICLE READER MODULE
   ========================================================================== */

.blog-main {
    padding: 120px 0 140px;
}
.blog-header-section {
    max-width: 700px;
    margin-bottom: 60px;
}
.blog-main-title {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 15px 0 20px;
}
.blog-main-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 60px 0;
}
.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--bento-radius);
    overflow: hidden;
    background-color: var(--accent-light);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.blog-card:hover {
    box-shadow: 0 20px 40px rgba(18, 18, 18, 0.04);
    transform: translateY(-4px);
    border-color: rgba(18, 18, 18, 0.15);
}
.blog-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}
.blog-card-featured .blog-card-img-wrapper {
    height: 100%;
}
.blog-card-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}
.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}
.blog-card-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.blog-card-category {
    font-weight: 800;
    color: var(--accent);
}
.blog-card-title {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 12px;
}
.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}
.blog-card-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* Article Reader */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    z-index: 10000;
}
.reading-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent);
    transition: width 0.1s ease-out;
}
.article-reader-main {
    padding: 120px 0 140px;
}
.container-medium {
    max-width: 800px;
}
.article-reader-header {
    margin-bottom: 40px;
    text-align: center;
}
.article-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-category-badge {
    font-weight: 800;
    color: var(--accent);
}
.article-reader-title {
    font-size: 3rem;
    line-height: 1.15;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 20px;
}
.article-reader-cover-wrapper {
    width: 100%;
    border-radius: var(--bento-radius);
    overflow: hidden;
    margin-bottom: 60px;
    border: 1px solid var(--border);
}
.article-reader-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.article-reader-body {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-primary);
}
.article-reader-body p {
    margin-bottom: 24px;
}
.article-reader-body strong {
    font-weight: 700;
}
.article-reader-body blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.5;
    border-left: 3px solid var(--accent);
    padding-left: 28px;
    margin: 40px 0;
    color: var(--text-secondary);
}
.article-image-box {
    margin: 48px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.article-inline-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
}
.image-caption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}
.article-reader-footer-actions {
    margin-top: 60px;
}
.article-footer-divider {
    border: 0;
    height: 1px;
    background-color: var(--border);
    margin-bottom: 40px;
}

/* Responsive overrides for Blog */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-card-featured {
        grid-column: span 2;
    }
}
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-card-featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    .blog-main-title {
        font-size: 2.2rem;
    }
    .article-reader-title {
        font-size: 2rem;
    }
    .article-reader-cover-wrapper {
        margin-bottom: 30px;
    }
    .article-reader-body blockquote {
        font-size: 1.25rem;
        padding-left: 18px;
        margin: 30px 0;
    }
}

