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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f1e;
    min-height: 100vh;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    padding: 30px 0;
    border-bottom: 1px solid #2a2a4a;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 3em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.tagline {
    font-size: 1.2em;
    color: #8892b0;
    margin-bottom: 30px;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #4cc9f0;
}

.stat-label {
    font-size: 0.9em;
    color: #8892b0;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5em;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.section-title p {
    color: #8892b0;
    font-size: 1.1em;
}

/* Language Cards Grid */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.language-card {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #2a2a4a;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.language-card:hover::before {
    transform: scaleX(1);
}

.language-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #4cc9f0;
}

.language-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.language-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    border-radius: 15px;
    position: relative;
}

.python-icon {
    background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
}

.javascript-icon {
    background: linear-gradient(135deg, #f7df1e 0%, #323330 100%);
}

.java-icon {
    background: linear-gradient(135deg, #007396 0%, #f89820 100%);
}

.language-info h3 {
    font-size: 1.8em;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.difficulty {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.difficulty.facil {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.difficulty.medio {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.language-description {
    color: #8892b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.start-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.start-button:hover::before {
    width: 300px;
    height: 300px;
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Features Section */
.features-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 50px;
    margin-top: 60px;
    border: 1px solid #2a2a4a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: #4cc9f0;
}

.feature-item h4 {
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.feature-item p {
    color: #8892b0;
    font-size: 0.95em;
}

/* Footer */
.footer {
    background: #0a0a1a;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #2a2a4a;
    margin-top: 80px;
}

.footer p {
    color: #8892b0;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5em;
    }
    
    .languages-grid {
        grid-template-columns: 1fr;
    }
    
    .features-section {
        padding: 30px 20px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

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