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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Layout Container */
.container {
    display: flex;
    min-height: 100vh;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.sidebar {
    width: 350px;
    min-height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Control Buttons */
.control-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.control-buttons button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--button-bg);
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-buttons button:hover {
    background: var(--button-hover-bg);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--primary-text);
}

/* Profile Section */
.profile-section {
    text-align: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

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

.profile-section h1 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

#profile-description p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Tech Stack */
.tech-stack {
    text-align: center;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.tech-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
    filter: var(--icon-filter);
}

.tech-icon:hover {
    transform: scale(1.2);
}

/* Social Section */
.social-section {
    text-align: center;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-icons a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--primary-text);
    transform: translateX(5px);
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 350px;
    min-height: 100vh;
    background: var(--main-bg);
}

/* Navigation */
.navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-tabs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 0.8rem 1.5rem;
    background: var(--tab-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.nav-tab:hover {
    background: var(--tab-hover-bg);
    transform: translateY(-2px);
}

.nav-tab.active {
    background: var(--primary-color);
    color: var(--primary-text);
    border-color: var(--primary-color);
}

/* Content Container */
.content-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content Styling */
.tab-content h2 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.tab-content h3 {
    color: var(--heading-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.tab-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
}

.tab-content li {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.tab-content li:hover {
    transform: translateX(5px);
}

.tab-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.tab-content a:hover {
    text-decoration: underline;
}

/* Metrics Cards */
.resultados-metricas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.metric {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.metric h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.metric strong {
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .sidebar {
        width: 300px;
    }
    
    .main-content {
        margin-left: 300px;
    }
    
    .content-container {
        padding: 1.5rem;
    }
    
    .navbar {
        padding: 1rem 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-tabs {
        gap: 0.5rem;
    }
    
    .nav-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .tab-content h2 {
        font-size: 1.5rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-section h1 {
        font-size: 1.5rem;
    }
    
    .sidebar-content {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .control-buttons button {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .tech-icons {
        gap: 0.8rem;
    }
    
    .tech-icon {
        width: 35px;
        height: 35px;
    }
    
    .resultados-metricas {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric {
        padding: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .nav-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .content-container {
        padding: 0.8rem;
    }
    
    .tab-content h2 {
        font-size: 1.3rem;
    }
    
    .profile-section h1 {
        font-size: 1.3rem;
    }
    
    .sidebar-content {
        padding: 1rem 0.8rem;
    }
    
    .tech-icon {
        width: 30px;
        height: 30px;
    }
    
    .metric {
        padding: 1rem;
    }
    
    .metric h3 {
        font-size: 1.1rem;
    }
}

/* Dark/Light theme will be handled in separate theme files */
