body { font-family: 'Arial', sans-serif; background-color: #f0f4f8; margin: 0; padding: 0; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } .main-content { background-color: white; border-radius: 10px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); padding: 30px; margin-top: 20px; } h1 { color: #333; text-align: center; margin-bottom: 30px; } .filter-buttons { display: flex; justify-content: center; margin-bottom: 30px; } .filter-btn { background-color: #e0e0e0; border: none; padding: 10px 20px; margin: 0 10px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } .filter-btn.active { background-color: #4CAF50; color: white; } .homework-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; } .homework-item { background-color: #ffffff; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); padding: 20px; transition: transform 0.3s; } .homework-item:hover { transform: translateY(-5px); } .homework-item h3 { color: #333; margin-top: 0; } .homework-item p { color: #666; margin: 10px 0; } .btn { display: inline-block; background-color: #4CAF50; color: white; padding: 10px 15px; border-radius: 5px; text-decoration: none; transition: background-color 0.3s; } .btn:hover { background-color: #45a049; } .completed { border-left: 5px solid #4CAF50; } @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap'); :root { --primary-color: #4e54c8; --secondary-color: #8f94fb; --accent-color: #ff6b6b; --text-color: #333; --bg-color: #f9f9f9; } body { font-family: 'Poppins', sans-serif; margin: 0; padding: 0; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; } .container { max-width: 1340px; margin: 0 auto; padding: 0 20px; } header { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .header-content { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 28px; font-weight: 700; color: #fff; text-shadow: 2px 2px 4px rgba(0,0,0,0.1); } .search-bar { flex-grow: 1; margin: 0 20px; position: relative; } .search-bar input { width: 100%; padding: 12px 20px; border: none; border-radius: 30px; font-size: 16px; background-color: rgba(255,255,255,0.2); color: #fff; transition: all 0.3s ease; } .search-bar input::placeholder { color: rgba(255,255,255,0.7); } .search-bar input:focus { background-color: rgba(255,255,255,0.3); outline: none; } .ai-tools { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); } .ai-tools i { font-size: 20px; margin-left: 15px; cursor: pointer; color: #fff; transition: all 0.3s ease; } .ai-tools i:hover { color: var(--accent-color); transform: scale(1.1); } .user-actions { display: flex; align-items: center; } .points-display { font-size: 18px; font-weight: bold; color: #fff; margin-right: 20px; background-color: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 20px; } .profile-icon { width: 40px; height: 40px; border-radius: 50%; background-color: var(--accent-color); display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; cursor: pointer; transition: all 0.3s ease; } .profile-icon:hover { transform: scale(1.1); } .nav-bar { background-color: #fff; padding: 10px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); } .nav-bar ul { list-style-type: none; margin: 0; padding: 0; display: flex; justify-content: center; } .nav-bar li { margin: 0 15px; } .nav-bar a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: all 0.3s ease; } .nav-bar a:hover { color: var(--primary-color); } .hero { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); padding: 100px 0; text-align: center; color: #fff; position: relative; overflow: hidden; } .hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('https://source.unsplash.com/random/1600x900?education') no-repeat center center; background-size: cover; opacity: 0.1; z-index: 0; } .hero-content { position: relative; z-index: 1; } .hero h1 { font-size: 48px; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); } .hero p { font-size: 20px; margin-bottom: 30px; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); } .btn { display: inline-block; background-color: var(--accent-color); color: #fff; padding: 12px 30px; text-decoration: none; font-weight: 600; border-radius: 30px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2); } .categories, .features, .learning-section { padding: 60px 0; background-color: #fff; margin: 40px 0; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .section-title { font-size: 32px; text-align: center; margin-bottom: 40px; color: var(--primary-color); } .category-list, .feature-grid, .learning-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; } .category-item, .feature-card, .learning-item { background-color: #fff; border-radius: 10px; padding: 20px; text-align: center; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .category-item:hover, .feature-card:hover, .learning-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); } .feature-card img, .learning-item img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; } .feature-card h3, .learning-title { font-size: 20px; margin: 10px 0; color: var(--primary-color); } .feature-card p, .learning-subtitle { font-size: 14px; color: #666; margin-bottom: 15px; } footer { background-color: #333; color: #fff; padding: 40px 0; } .footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; } .footer-section { flex: 1; margin-right: 20px; } .footer-section h4 { font-size: 18px; margin-bottom: 15px; color: var(--accent-color); } .footer-section ul { list-style: none; padding: 0; } .footer-section ul li { margin-bottom: 10px; } .footer-section ul li a { color: #ccc; text-decoration: none; transition: color 0.3s ease; } .footer-section ul li a:hover { color: #fff; } .social-icons { display: flex; gap: 15px; } .social-icon { color: #fff; font-size: 24px; transition: all 0.3s ease; } .social-icon:hover { transform: scale(1.2); color: var(--accent-color); } .copyright { margin-top: 30px; text-align: center; color: #ccc; } /* Animations */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideIn { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .fade-in { animation: fadeIn 1s ease-out; } .slide-in { animation: slideIn 0.5s ease-out; }