/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 25%, #f0e8f5 50%, #e8f5f0 75%, #f5f0e8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Background Decoration */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Treble Clef */
.treble-clef {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 200px;
    height: 400px;
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

/* Music Notes */
.music-note-1 {
    position: absolute;
    top: 15%;
    right: 8%;
    width: 80px;
    height: 120px;
    opacity: 0.5;
    animation: float 15s ease-in-out infinite 2s;
}

.music-note-2 {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 80px;
    height: 120px;
    opacity: 0.5;
    animation: float 18s ease-in-out infinite 4s;
}

/* Decorative Lines */
.decorative-line-1 {
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.3), transparent);
}

.decorative-line-2 {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.25), transparent);
}

.decorative-line-3 {
    position: absolute;
    top: 75%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(69, 183, 209, 0.3), transparent);
}

.decorative-line-4 {
    position: absolute;
    top: 0;
    left: 30%;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(78, 205, 196, 0.2), transparent);
}

.decorative-line-5 {
    position: absolute;
    top: 0;
    right: 30%;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 107, 0.2), transparent);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 60px;
}

/* Language Toggle Button */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.language-toggle:hover {
    border-color: #4ECDC4;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.language-toggle:active {
    transform: translateY(0);
}

.language-toggle span {
    transition: all 0.3s ease;
    opacity: 0.5;
}

.language-toggle span.active {
    opacity: 1;
    color: #4ECDC4;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #2c3e50;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.decorative-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4ECDC4, #FF6B6B, #45B7D1, transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* App Grid */
.app-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* App Card */
.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 280px;
    height: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.08), 0 2px 10px rgba(255, 107, 107, 0.05);
    transition: all 0.3s ease;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ECDC4, #45B7D1, #96CEB4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(78, 205, 196, 0.15), 0 4px 15px rgba(255, 107, 107, 0.1);
}

.app-card:hover::before {
    opacity: 1;
}

.app-card:active {
    transform: translateY(-4px);
}

.app-card.placeholder {
    pointer-events: none;
    opacity: 0.6;
}

/* App Icon */
.app-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1);
}

.app-icon svg {
    width: 100%;
    height: 100%;
}

/* App Title */
.app-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #34495e;
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
}

.app-card.placeholder .app-title {
    color: #95a5a6;
    font-style: italic;
}

/* Footer */
footer {
    margin-top: auto;
}

.footer-text {
    font-size: 0.9rem;
    color: #95a5a6;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .app-grid {
        gap: 20px;
    }
    
    .app-card {
        width: 240px;
        height: 280px;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
    }
    
    .app-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 20px;
    }
    
    .app-grid {
        gap: 15px;
    }
    
    .app-card {
        width: 200px;
        height: 240px;
        padding: 20px;
    }
    
    .app-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .app-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .language-toggle {
        top: 8px;
        right: 8px;
        padding: 5px 10px;
        font-size: 18px;
    }
    
    .app-grid {
        flex-direction: column;
    }
    
    .app-card {
        width: 100%;
        max-width: 280px;
        height: 200px;
    }
}

/* Touch-friendly for smartboards */
@media (hover: none) {
    .app-card {
        transition: background-color 0.2s ease;
    }
    
    .app-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .app-card:active {
        background-color: #f8f9fa;
        transform: scale(0.98);
    }
}
