/* ==========================================
   MERCHANTHOOD - PORTFOLIO ARTUR NEVES
   Stylesheet Principal
   ========================================== */

/* ==========================================
   RESET E BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   LAYOUT PRINCIPAL - GRID DE 2 COLUNAS
   ========================================== */
.container {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

/* ==========================================
   SIDEBAR - COLUNA ESQUERDA (PERFIL)
   ========================================== */
.sidebar {
    background: white;
    padding: 60px 40px;
    border-right: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: block;
    object-fit: cover;
    border: 4px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.name {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
}

.attributes {
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.attribute-item {
    display: inline;
}

.attribute-item:not(:last-child)::after {
    content: " | ";
    color: #999;
}

/* ==========================================
   WELCOME SECTION
   ========================================== */
.welcome {
    margin-top: 32px;
}

.welcome h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.welcome p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.welcome ul {
    margin: 12px 0 12px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.welcome li {
    margin-bottom: 8px;
}

.welcome strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* ==========================================
   SOCIAL LINKS
   ========================================== */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
}

.social-links a:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================
   CONTENT - COLUNA DIREITA (PROJETOS)
   ========================================== */
.content {
    padding: 60px;
    overflow-y: auto;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
}

/* ==========================================
   CAROUSEL DE PROJETOS
   ========================================== */
.carousel-container {
    position: relative;
    margin-bottom: 40px;
}

.carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

/* Scrollbar customizada */
.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.carousel::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ==========================================
   PROJECT CARDS
   ========================================== */
.project-card {
    min-width: 400px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.project-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: #1a1a1a;
}

.project-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag {
    background: #f0f0f0;
    color: #555;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #764ba2;
    gap: 12px;
}

/* ==========================================
   CAROUSEL NAVIGATION BUTTONS
   ========================================== */
.carousel-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #555;
}

.nav-btn:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.nav-btn:active {
    transform: scale(0.95);
}

/* ==========================================
   MODAL
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #333;
    transform: rotate(90deg);
}

.modal-iframe {
    width: 100%;
    height: 100%;
    min-height: 80vh;
    border: none;
    border-radius: 16px;
    display: block;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablets e telas médias */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .content {
        padding: 40px 24px;
    }

    .project-card {
        min-width: 320px;
    }
}

/* Smartphones */
@media (max-width: 640px) {
    .sidebar {
        padding: 40px 24px;
    }

    .name {
        font-size: 24px;
    }

    .attributes {
        font-size: 12px;
    }

    .project-card {
        min-width: 280px;
    }

    .content {
        padding: 32px 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .modal.active {
        padding: 20px;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-iframe {
        min-height: 70vh;
    }
}

/* Telas muito pequenas */
@media (max-width: 375px) {
    .project-card {
        min-width: 260px;
        padding: 24px;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }
}

/* ==========================================
   ACESSIBILIDADE
   ========================================== */

/* Foco visível para navegação por teclado */
a:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Reduzir movimento para quem prefere */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   UTILIDADES
   ========================================== */

/* Classe para esconder visualmente mas manter acessível */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}