/* ===========================================
   Portfolio - Desenvolvimento Web 1
   Design: Dark mode minimalista e profissional
   =========================================== */

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

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.5);
    --bg-card-hover: rgba(51, 65, 85, 0.5);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #38bdf8;
    --accent-secondary: #22d3ee;
    --border: rgba(148, 163, 184, 0.1);
    --glow: rgba(56, 189, 248, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Container Layout */
.container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .container {
        flex-direction: row;
        gap: 48px;
        padding: 96px 48px;
        min-height: 100vh;
    }
}

/* Header / Sidebar */
.header {
    position: relative;
}

@media (min-width: 1024px) {
    .header {
        position: sticky;
        top: 96px;
        flex: 0 0 400px;
        max-height: calc(100vh - 192px);
    }
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-link {
    flex-shrink: 0;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.profile-link:hover {
    transform: scale(1.05);
}

.profile-image {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.role {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.01em;
}

/* Bio */
.bio {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.bio strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Navigation */
.nav-links {
    display: none;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.nav-indicator {
    width: 32px;
    height: 1px;
    background-color: var(--text-muted);
    transition: all 0.3s ease;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    width: 64px;
    background-color: var(--text-primary);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-link {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

@media (min-width: 1024px) {
    .main-content {
        gap: 96px;
        padding-top: 0;
    }
}

/* Sections */
.section {
    scroll-margin-top: 96px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.section-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.section-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Project Card */
.project-card {
    display: block;
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateX(4px);
}

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

.project-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.project-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 8px;
    transition: transform 0.3s ease;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.project-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.project-card:hover .project-name {
    color: var(--accent);
}

.project-arrow {
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.project-arrow svg {
    width: 16px;
    height: 16px;
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

.project-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.project-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.skill-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Footer */
.footer {
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-text strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-course {
    font-size: 12px;
    color: var(--text-muted);
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.15s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(4) { animation-delay: 0.25s; }
.project-card:nth-child(5) { animation-delay: 0.3s; }
.project-card:nth-child(6) { animation-delay: 0.35s; }
.project-card:nth-child(7) { animation-delay: 0.4s; }
.project-card:nth-child(8) { animation-delay: 0.45s; }
.project-card:nth-child(9) { animation-delay: 0.5s; }
.project-card:nth-child(10) { animation-delay: 0.55s; }

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding: 32px 16px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .profile-image {
        width: 56px;
        height: 56px;
    }
    
    .project-card {
        padding: 16px;
    }
    
    .project-icon {
        width: 40px;
        height: 40px;
    }
    
    .project-tags {
        display: none;
    }
}
