EduMentorAI / src /static /css /home.css
ziadtarek12's picture
Frontend Finished
a9366ba
Raw
History Blame Contribute Delete
10.5 kB
.hero-section {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #047857 100%);
min-height: 100vh;
display: grid;
place-items: center;
position: relative;
overflow: hidden;
color: white;
transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
animation: float 20s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
33% { transform: translateY(-10px) rotate(1deg); }
66% { transform: translateY(10px) rotate(-1deg); }
}
.hero-content {
position: relative;
z-index: 2;
text-align: center;
max-width: 800px;
margin: 0 auto;
padding: 2rem;
animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hero-title {
font-size: clamp(2.5rem, 5vw, 4rem);
font-weight: 900;
line-height: 1.1;
margin-bottom: 1.5rem;
background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-subtitle {
font-size: clamp(1rem, 2vw, 1.25rem);
font-weight: 400;
line-height: 1.6;
margin-bottom: 3rem;
opacity: 0.9;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.cta-buttons {
display: flex;
flex-direction: column;
gap: 1rem;
align-items: center;
}
@media (min-width: 768px) {
.cta-buttons {
flex-direction: row;
justify-content: center;
}
}
.btn-hero {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(20px);
border: 2px solid rgba(255, 255, 255, 0.2);
color: white;
border-radius: 50px;
font-weight: 600;
padding: 1rem 2.5rem;
font-size: 1.1rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
position: relative;
overflow: hidden;
}
.btn-hero::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: left 0.5s;
}
.btn-hero:hover::before {
left: 100%;
}
.btn-hero:hover {
transform: translateY(-3px);
box-shadow: 0 20px 40px rgba(0,0,0,0.2);
background: rgba(255, 255, 255, 0.25);
}
.btn-outline-hero {
background: transparent;
color: white;
border: 2px solid rgba(255, 255, 255, 0.5);
border-radius: 50px;
font-weight: 600;
padding: 1rem 2.5rem;
font-size: 1.1rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
}
.btn-outline-hero:hover {
background: rgba(255, 255, 255, 0.1);
border-color: white;
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.stats-section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 2rem;
margin-top: 4rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.stat-item {
text-align: center;
padding: 1.5rem;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(20px);
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.2);
animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}
.stat-item:nth-child(2) { animation-delay: 0.7s; }
.stat-item:nth-child(3) { animation-delay: 0.9s; }
@keyframes fadeInScale {
from {
opacity: 0;
transform: scale(0.8);
}
to {
opacity: 1;
transform: scale(1);
}
}
.stat-number {
font-size: 2.5rem;
font-weight: 800;
margin-bottom: 0.5rem;
display: block;
background: linear-gradient(135deg, #fbbf24, #f59e0b);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.stat-label {
font-size: 0.9rem;
opacity: 0.9;
font-weight: 500;
}
/* Features Section */
.features-section {
padding: 8rem 0;
background: var(--background-color);
position: relative;
}
.features-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.section-header {
text-align: center;
margin-bottom: 4rem;
}
.section-title {
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 800;
color: var(--text-primary);
margin-bottom: 1rem;
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.section-subtitle {
font-size: 1.25rem;
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto;
line-height: 1.6;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 4rem;
}
.feature-card {
background: var(--card-bg);
border-radius: 24px;
padding: 2.5rem;
box-shadow: var(--shadow);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid var(--border-color);
position: relative;
overflow: hidden;
animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }
.feature-card:nth-child(4) { animation-delay: 0.6s; }
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
transform: scaleX(0);
transition: transform 0.3s ease;
}
.feature-card:hover::before {
transform: scaleX(1);
}
.feature-card:hover {
transform: translateY(-8px);
box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.feature-icon {
width: 80px;
height: 80px;
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
border-radius: 20px;
display: grid;
place-items: center;
margin-bottom: 1.5rem;
color: white;
font-size: 2rem;
box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}
.feature-title {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 1rem;
}
.feature-description {
color: var(--text-secondary);
line-height: 1.7;
margin: 0;
}
/* How It Works */
.how-it-works {
padding: 8rem 0;
background: var(--background-light);
}
.steps-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 3rem;
max-width: 1000px;
margin: 0 auto;
}
.step-item {
text-align: center;
position: relative;
}
.step-number {
width: 80px;
height: 80px;
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
color: white;
border-radius: 50%;
display: grid;
place-items: center;
font-size: 2rem;
font-weight: 800;
margin: 0 auto 2rem;
box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
position: relative;
z-index: 2;
}
.step-title {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 1rem;
}
.step-description {
color: var(--text-secondary);
line-height: 1.7;
max-width: 300px;
margin: 0 auto;
}
/* CTA Section */
.cta-section {
padding: 8rem 0;
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
color: white;
text-align: center;
position: relative;
overflow: hidden;
}
.cta-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
opacity: 0.1;
}
.cta-content {
position: relative;
z-index: 2;
max-width: 600px;
margin: 0 auto;
}
.cta-title {
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 800;
margin-bottom: 1.5rem;
line-height: 1.2;
}
.cta-subtitle {
font-size: 1.25rem;
margin-bottom: 3rem;
opacity: 0.9;
line-height: 1.6;
}
.btn-cta {
background: white;
color: var(--primary-color);
border: none;
border-radius: 50px;
font-weight: 700;
padding: 1.25rem 3rem;
font-size: 1.2rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
position: relative;
overflow: hidden;
}
.btn-cta:hover {
transform: translateY(-3px);
box-shadow: 0 20px 40px rgba(0,0,0,0.3);
color: var(--primary-dark);
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-section {
padding: 2rem 1rem;
}
.features-grid {
grid-template-columns: 1fr;
}
.steps-container {
grid-template-columns: 1fr;
gap: 2rem;
}
.stats-section {
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
}
/* Dark mode adjustments */
[data-theme="dark"] .hero-section {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}
[data-theme="dark"] .btn-hero,
[data-theme="dark"] .btn-outline-hero {
backdrop-filter: blur(20px);
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .stat-item {
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.1);
}
.btn-cta:hover{
border-color: var(--primary-color);
color: var(--primary-color);
background: white;
}