improve code: :root { /* Colors / --primary-color: #2980b9; --secondary-color: #1abc9c;…
- User
improve code: :root { /* Colors */ --primary-color: #2980b9; --secondary-color: #1abc9c; --accent-color: #e74c3c; --background-color: #f4f4f4; --text-color: #333; --header-bg-color: rgba(255, 255, 255, 0.9); --heading-color: #2c3e50;
/* Typography */ --font-family: 'Montserrat', sans-serif; --line-height: 1.6;
/* Layout */ --max-width: 1200px; --border-radius: 8px;
/* Effects */ --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); --transition-duration: 0.3s; }
.app-body { font-family: var(--font-family); margin: 0 auto; padding: 0; color: var(--text-color); background-color: var(--background-color); line-height: var(--line-height); overflow-x: hidden; max-width: var(--max-width); }
/* ... */
/* Hero Section Styles */ .hero { background-image: url('path/to/your/background-image.jpg'); background-size: cover; background-position: center center; background-repeat: no-repeat; color: white; text-align: center; padding: 150px 30px; position: relative; overflow: hidden; height: auto;
&::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)); border-radius: var(--border-radius); z-index: 1; transition: opacity var(--transition-duration); } }
/* ... */
/* Animated Gradient Background */ .animated-gradient { position: relative; overflow: hidden; height: 300px;
&::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, var(--accent-color), var(--secondary-color)); z-index: 1; animation: gradientMove 10s linear infinite; } }
@keyframes gradientMove { from { background-position: 0 0; } to { background-position: 100% 0; } }
- Assistant