/* Base styling & Custom variables */
:root {
    --bg-dark: #0a0814;
    --bg-card: rgba(18, 14, 36, 0.6);
    --text-primary: #f3f1f8;
    --text-secondary: #a5a1b8;
    --primary: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.4);
    --accent: #ff007f;
    --accent-glow: rgba(255, 0, 127, 0.3);
    --border: rgba(138, 43, 226, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Glassmorphic Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 8, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(10, 8, 20, 0) 70%);
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(255, 0, 127, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 0, 127, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    max-width: 900px;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6b21a8);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Sections Global */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Console Section */
.console-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0a1a 100%);
}

.console-window {
    background: rgba(14, 11, 26, 0.85);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
    max-width: 800px;
    margin: 0 auto;
}

.console-bar {
    background: rgba(10, 8, 20, 0.9);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.console-dots {
    display: flex;
    gap: 6px;
    margin-right: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.console-title {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.console-body {
    padding: 1.5rem;
    height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
    color: #00ffcc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    word-break: break-all;
}

.message.system { color: #8a2be2; }
.message.user { color: #ff007f; }
.message.ai { color: #f3f1f8; }

.timestamp {
    color: rgba(255, 255, 255, 0.3);
    margin-right: 5px;
}

.console-footer {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 8, 20, 0.9);
}

#console-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.2rem;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.95rem;
    outline: none;
}

.btn-send {
    background: transparent;
    border: none;
    color: var(--primary);
    padding: 0 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-send:hover {
    color: var(--accent);
}

/* Projects Section */
.projects-section {
    padding: 8rem 0;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 127, 0.4);
    box-shadow: 0 10px 25px rgba(255, 0, 127, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0;
    text-align: center;
    background: #06050c;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero {
        padding: 8rem 0 5rem;
    }
    .nav {
        display: none; /* Simplificado para móvil */
    }
}
