/* Reset e Variáveis */
:root {
    --primary: #273872;
    --primary-light: #91C3DA;
    --primary-dark: #1a2650;
    --secondary: #333333;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --bg-white: #ffffff;
    --bg-off-white: #fafafa;
    --bg-light: #f5f5f5;
    --surface: #ffffff;
    --surface-light: #f9f9f9;
    
    --text: #1a1a1a;
    --text-muted: #666666;
    --text-dimmed: #999999;
    
    --border: #e0e0e0;
    --border-dark: #273872;
    
    --gradient-1: linear-gradient(135deg, #273872 0%, #91C3DA 100%);
    --gradient-2: linear-gradient(135deg, #91C3DA 0%, #273872 100%);
    --gradient-3: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    
    --spacing: 1rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(39, 56, 114, 0.06);
    --shadow-md: 0 4px 16px rgba(39, 56, 114, 0.08);
    --shadow-lg: 0 8px 32px rgba(39, 56, 114, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-md) 0;
}

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

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

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

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

.nav {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--border-dark);
    transition: var(--transition);
}

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

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

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: var(--bg-off-white);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.gradient-text {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight {
    position: relative;
    display: inline-block;
    color: var(--primary);
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-light);
    opacity: 0.4;
    z-index: -1;
}

.underline-accent {
    position: relative;
    display: inline-block;
}

.underline-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 2rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 56, 114, 0.3);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing);
    color: var(--primary);
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--gradient-1);
    margin: 0 auto var(--spacing);
    border-radius: 2px;
}

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

/* Sobre Section */
.sobre {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.sobre-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.sobre-card {
    background: var(--bg-off-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.sobre-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.sobre-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 100%);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.sobre-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing);
    color: var(--text);
}

.sobre-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Stack Section */
.stack {
    padding: var(--spacing-xl) 0;
    background: var(--bg-off-white);
}

.stack-content {
    text-align: center;
}

.stack-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing);
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.stack-item {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--border);
}

.stack-item:hover {
    background: var(--bg-white);
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
}

/* Aplicações Section */
.aplicacoes {
    padding: var(--spacing-xl) 0 calc(var(--spacing-xl) * 2);
    background: var(--bg-white);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.app-card {
    background: var(--bg-off-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.app-preview {
    position: relative;
    height: 220px;
    background: var(--bg-light);
    overflow: hidden;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.1);
}

.app-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.btn-app {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: var(--transition);
}

.btn-app:hover {
    background: var(--primary);
    color: var(--bg-white);
    transform: scale(1.05);
}

.btn-app.disabled {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-app.disabled:hover {
    transform: none;
    background: transparent;
    color: var(--text-muted);
}

.app-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing);
}

.app-title {
    font-size: 1.5rem;
    color: var(--text);
}

.app-badge {
    padding: 0.25rem 0.75rem;
    background: transparent;
    color: var(--success);
    border: 1px solid var(--success);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-badge.development {
    color: var(--warning);
    border-color: var(--warning);
}

.app-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.tag {
    padding: 0.4rem 0.8rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--success);
    font-size: 0.8rem;
}

/* App Card Add */
.app-card-add {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--bg-white);
    border: 2px dashed var(--border);
    cursor: pointer;
}

.app-card-add:hover {
    background: var(--bg-off-white);
    border-color: var(--primary-light);
}

.add-content {
    text-align: center;
    color: var(--text-muted);
}

.add-content i {
    font-size: 4rem;
    margin-bottom: var(--spacing);
    opacity: 0.3;
}

.add-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

/* Contato Section */
.contato {
    padding: var(--spacing-xl) 0;
    background: var(--bg-off-white);
}

.contato-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contato-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.social-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-white);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(39, 56, 114, 0.3);
}

/* Footer */
.footer {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.footer i {
    color: var(--danger);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        gap: var(--spacing);
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Password Modal */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.password-modal.show {
    display: flex;
}

.password-modal-content {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.password-modal-close:hover {
    background: var(--bg-off-white);
    color: var(--text);
}

.password-modal-content h2 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
}

.password-modal-content p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.password-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: var(--spacing-md);
}

.password-input:focus {
    outline: none;
    border-color: var(--primary);
}

.password-buttons {
    display: flex;
    gap: var(--spacing);
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid;
}

.btn-cancel {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-cancel:hover {
    background: var(--bg-off-white);
    border-color: var(--text-muted);
}

.btn-submit {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
}

.btn-submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 56, 114, 0.3);
}

.password-error {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: var(--spacing);
    text-align: center;
    min-height: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.sobre-card,
.app-card {
    animation: fadeInUp 0.8s ease-out;
}
