learnix / src /app /components /styles /HeroSection.css
shashidharak99's picture
Upload files
7d51e81 verified
/* Enhanced Hero Section Styles */
.learnix-hero-main {
background-color: white;
position: relative;
padding: 90px 20px 70px;
min-height: 85vh;
display: flex;
align-items: center;
overflow: hidden;
border-bottom: 1px solid #e5e7eb;
}
.learnix-hero-container {
max-width: 1200px;
margin: 0 auto;
position: relative;
width: 100%;
}
/* Floating Background Icons */
.learnix-floating-icons {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.learnix-float-icon {
position: absolute;
color: #87ceeb;
opacity: 0.1;
font-size: 4rem;
animation: learnixFloatAnimation 8s ease-in-out infinite;
}
.learnix-float-1 {
top: 10%;
left: 10%;
animation-delay: 0s;
}
.learnix-float-2 {
top: 20%;
right: 15%;
animation-delay: 2s;
}
.learnix-float-3 {
bottom: 30%;
left: 15%;
animation-delay: 4s;
}
.learnix-float-4 {
bottom: 15%;
right: 10%;
animation-delay: 6s;
}
/* Main Content Container */
.learnix-hero-content {
text-align: left;
position: relative;
z-index: 2;
opacity: 1;
transform: none;
transition: none;
}
.learnix-hero-layout {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 36px;
align-items: center;
margin-bottom: 24px;
}
.learnix-hero-left {
min-width: 0;
}
.learnix-hero-right {
min-width: 0;
}
/* Title Styling */
.learnix-title-wrapper {
margin-bottom: 30px;
}
.learnix-main-title {
font-size: 3.5rem;
font-weight: 800;
color: #1f2937;
margin: 0;
line-height: 1.2;
letter-spacing: -0.02em;
}
.learnix-brand-text {
color: #2563eb;
position: relative;
display: inline-block;
animation: none;
}
.learnix-brand-underline {
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 4px;
background-color: #fbbf24;
border-radius: 2px;
animation: none;
}
/* Subtitle */
.learnix-hero-subtitle {
font-size: 1.3rem;
color: #4b5563;
margin-bottom: 40px;
max-width: 600px;
line-height: 1.6;
font-weight: 400;
}
.learnix-hero-points {
list-style: none;
padding: 0;
margin: 0 0 24px;
display: grid;
gap: 12px;
max-width: 650px;
}
.learnix-hero-points li {
display: flex;
align-items: flex-start;
gap: 10px;
color: #374151;
font-weight: 600;
line-height: 1.6;
}
.learnix-point-icon {
color: #2563eb;
margin-top: 3px;
flex-shrink: 0;
}
.learnix-hero-ctas {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
margin-bottom: 16px;
}
.learnix-cta-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
padding: 14px 18px;
border-radius: 12px;
font-weight: 700;
border: 2px solid #2563eb;
color: #2563eb;
background: transparent;
}
.learnix-cta-secondary:hover {
background: rgba(37, 99, 235, 0.08);
}
.learnix-adsense-note {
display: flex;
align-items: flex-start;
gap: 10px;
color: #6b7280;
font-size: 0.95rem;
font-weight: 600;
max-width: 720px;
}
.learnix-adsense-icon {
color: #fbbf24;
margin-top: 3px;
flex-shrink: 0;
}
.learnix-adsense-note a {
color: #2563eb;
text-decoration: none;
}
.learnix-adsense-note a:hover {
text-decoration: underline;
}
/* Feature Cards Grid */
.learnix-feature-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
max-width: 500px;
margin: 0 auto 50px;
}
/* Navigation Card Grid */
.learnix-nav-card-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 16px;
max-width: 1100px;
margin: 0 auto 40px;
padding: 0 10px;
}
.learnix-nav-card {
flex: 1 1 160px;
max-width: 190px;
background: #f3f4f6;
border: 2px solid #e5e7eb;
border-radius: 18px;
padding: 28px 18px;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
text-decoration: none;
color: #1f2937;
font-weight: 600;
font-size: 1.1rem;
box-shadow: 0 2px 8px rgba(59,130,246,0.04);
transition: all 0.3s ease;
position: relative;
cursor: pointer;
}
.learnix-nav-card:hover {
border-color: #2563eb;
background: #e0e7ff;
color: #2563eb;
box-shadow: 0 8px 24px rgba(37,99,235,0.08);
transform: none;
}
.learnix-nav-card-icon {
font-size: 1.85rem;
color: #2563eb;
transition: color 0.3s;
}
.learnix-nav-card:hover .learnix-nav-card-icon {
color: #fbbf24;
}
.learnix-nav-card-highlight {
border-color: #fbbf24;
background: linear-gradient(90deg, #fef9c3 60%, #e0e7ff 100%);
color: #b45309;
box-shadow: 0 8px 32px rgba(251,191,36,0.12);
position: relative;
}
.learnix-nav-card-highlight::after {
content: "Most Helpful";
position: absolute;
top: 12px;
right: 18px;
background: #fbbf24;
color: #fff;
font-size: 0.8rem;
font-weight: 700;
padding: 2px 10px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(251,191,36,0.08);
}
.learnix-feature-card {
background-color: white;
border: 2px solid #e5e7eb;
border-radius: 16px;
padding: 20px 15px;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
cursor: default;
position: relative;
overflow: hidden;
}
.learnix-feature-card:hover {
border-color: #3b82f6;
box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}
.learnix-feature-icon {
font-size: 1.5rem;
color: #2563eb;
transition: all 0.3s ease;
}
.learnix-feature-card:hover .learnix-feature-icon {
color: #fbbf24;
transform: none;
}
.learnix-feature-card span {
font-size: 0.9rem;
font-weight: 600;
color: #374151;
}
/* Status Section */
.learnix-status-section {
margin-top: 40px;
}
.learnix-welcome-card {
background-color: #f0f9ff;
border: 2px solid #bfdbfe;
border-radius: 16px;
padding: 25px;
display: inline-flex;
align-items: center;
gap: 15px;
position: relative;
animation: none;
}
.learnix-success-indicator {
width: 12px;
height: 12px;
background-color: #10b981;
border-radius: 50%;
flex-shrink: 0;
animation: none;
}
.learnix-status-text {
color: #1e40af;
font-weight: 600;
margin: 0;
font-size: 1.1rem;
}
.learnix-login-prompt {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
animation: none;
}
.learnix-prompt-text {
color: #6b7280;
font-size: 1.1rem;
margin: 0;
}
/* What's New Section */
.learnix-whats-new-section {
margin-top: 60px;
padding: 40px 30px;
background: white;
border-radius: 20px;
border: 2px solid #e5e7eb;
box-shadow: 0 10px 40px rgba(87, 206, 235, 0.08);
max-width: 800px;
margin-left: auto;
margin-right: auto;
animation: none;
}
.learnix-whats-new-header {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin-bottom: 30px;
}
.learnix-whats-new-icon {
font-size: 2rem;
color: #57ceeb;
animation: none;
}
.learnix-whats-new-title {
font-size: 1.8rem;
font-weight: 800;
background: linear-gradient(135deg, #57ceeb 0%, #fbbf24 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin: 0;
letter-spacing: -0.5px;
}
.learnix-updates-container {
display: flex;
flex-direction: column;
gap: 12px;
}
.learnix-update-card {
background: linear-gradient(135deg, #f0f9ff 0%, #fef9c3 100%);
border: 2px solid #57ceeb;
border-radius: 14px;
overflow: hidden;
transition: all 0.3s ease;
}
.learnix-update-card:hover {
border-color: #fbbf24;
box-shadow: 0 8px 24px rgba(87, 206, 235, 0.15);
transform: none;
}
.learnix-update-toggle {
width: 100%;
padding: 18px 20px;
background: transparent;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
transition: all 0.2s ease;
font-family: inherit;
}
.learnix-update-toggle:hover {
background: rgba(87, 206, 235, 0.05);
}
.learnix-update-title-text {
font-size: 1.1rem;
font-weight: 700;
color: #1f2937;
text-align: left;
flex: 1;
transition: color 0.2s ease;
}
.learnix-update-toggle:hover .learnix-update-title-text {
color: #57ceeb;
}
.learnix-update-chevron {
font-size: 1.3rem;
color: #57ceeb;
flex-shrink: 0;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
transform-origin: center;
}
.learnix-update-chevron-open {
transform: rotate(180deg);
color: #fbbf24;
}
.learnix-update-content {
padding: 0 20px 20px 20px;
animation: learnixContentExpand 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
max-height: 300px;
overflow: hidden;
}
.learnix-update-content p {
margin: 0;
color: #4b5563;
font-size: 0.95rem;
line-height: 1.6;
font-weight: 500;
}
.learnix-update-expanded {
background: linear-gradient(135deg, #e0f7ff 0%, #fffacd 100%);
border-color: #fbbf24;
box-shadow: 0 12px 32px rgba(87, 206, 235, 0.2);
}
.learnix-cta-button {
display: inline-flex;
align-items: center;
gap: 8px;
background-color: #2563eb;
color: white;
text-decoration: none;
padding: 14px 28px;
border-radius: 12px;
font-weight: 700;
font-size: 1rem;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
border: 2px solid #2563eb;
}
.learnix-cta-button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background-color: #fbbf24;
transition: left 0.3s ease;
z-index: -1;
}
.learnix-cta-button:hover::before {
left: 0;
}
.learnix-cta-button:hover {
color: #1f2937;
border-color: #fbbf24;
box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}
.learnix-button-icon {
transition: transform 0.3s ease;
}
.learnix-cta-button:hover .learnix-button-icon {
transform: none;
}
/* Decorative Dots */
.learnix-decoration-dots {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
pointer-events: none;
z-index: 0;
}
.learnix-dot {
position: absolute;
width: 8px;
height: 8px;
background-color: #3b82f6;
border-radius: 50%;
opacity: 0.2;
animation: learnixDotFloat 6s ease-in-out infinite;
}
.learnix-dot-1 {
top: 15%;
left: 5%;
animation-delay: 0s;
}
.learnix-dot-2 {
top: 25%;
right: 8%;
animation-delay: 1s;
}
.learnix-dot-3 {
bottom: 35%;
left: 8%;
animation-delay: 2s;
}
.learnix-dot-4 {
bottom: 20%;
right: 5%;
animation-delay: 3s;
}
.learnix-dot-5 {
top: 50%;
left: 3%;
animation-delay: 4s;
}
.learnix-dot-6 {
top: 60%;
right: 3%;
animation-delay: 5s;
}
/* Keyframe Animations */
@keyframes learnixFloatAnimation {
0%, 100% { transform: translateY(0px) rotate(0deg); }
25% { transform: translateY(-10px) rotate(5deg); }
50% { transform: translateY(0px) rotate(0deg); }
75% { transform: translateY(10px) rotate(-5deg); }
}
@keyframes learnixBrandPulse {
0%, 100% { color: #2563eb; }
50% { color: #1d4ed8; }
}
@keyframes learnixUnderlineGrow {
0% { width: 0; }
100% { width: 100%; }
}
@keyframes learnixWelcomeSlide {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0); }
}
@keyframes learnixPromptSlide {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0); }
}
@keyframes learnixSuccessPulse {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.2); opacity: 0.8; }
}
@keyframes learnixDotFloat {
0%, 100% { transform: translateY(0px); opacity: 0.2; }
50% { transform: translateY(-15px); opacity: 0.4; }
}
/* Responsive Design */
@media (max-width: 1024px) {
.learnix-main-title {
font-size: 3rem;
}
.learnix-hero-subtitle {
font-size: 1.2rem;
}
.learnix-feature-grid {
max-width: 450px;
gap: 15px;
}
.learnix-whats-new-section {
padding: 30px 25px;
max-width: 700px;
}
.learnix-whats-new-title {
font-size: 1.6rem;
}
}
@media (max-width: 768px) {
.learnix-nav-card-grid {
gap: 10px;
padding: 0;
margin-bottom: 28px;
}
.learnix-nav-card {
flex: 0 1 calc(25% - 10px);
max-width: none;
padding: 14px 8px;
border-radius: 14px;
font-size: 0.9rem;
gap: 8px;
}
.learnix-nav-card-icon {
font-size: 1.25rem;
}
.learnix-hero-content {
text-align: center;
}
.learnix-hero-layout {
grid-template-columns: 1fr;
gap: 22px;
}
.learnix-hero-points {
justify-items: center;
}
.learnix-hero-points li {
text-align: left;
max-width: 520px;
}
.learnix-hero-ctas {
justify-content: center;
}
.learnix-adsense-note {
justify-content: center;
}
.learnix-hero-main {
padding: 80px 20px 60px;
min-height: 80vh;
}
.learnix-main-title {
font-size: 2.5rem;
}
.learnix-hero-subtitle {
font-size: 1.1rem;
margin-bottom: 30px;
}
.learnix-feature-grid {
grid-template-columns: 1fr;
max-width: 280px;
gap: 15px;
margin-bottom: 40px;
}
.learnix-feature-card {
padding: 18px 15px;
}
.learnix-login-prompt {
gap: 15px;
}
.learnix-prompt-text {
text-align: center;
font-size: 1rem;
}
.learnix-cta-button {
padding: 12px 24px;
font-size: 0.95rem;
}
.learnix-cta-secondary {
padding: 12px 18px;
font-size: 0.95rem;
}
.learnix-nav-card-icon {
font-size: 2rem;
}
.learnix-point-icon {
font-size: 1.05rem;
}
.learnix-float-icon {
font-size: 3rem;
}
.learnix-whats-new-section {
padding: 25px 15px;
margin: 40px 0;
max-width: 100%;
}
.learnix-whats-new-title {
font-size: 1.4rem;
}
.learnix-update-toggle {
padding: 14px 15px;
}
.learnix-update-title-text {
font-size: 1rem;
}
.learnix-update-content {
padding: 0 15px 15px 15px;
}
.learnix-update-content p {
font-size: 0.9rem;
}
}
@media (max-width: 480px) {
.learnix-nav-card-grid {
gap: 8px;
}
.learnix-nav-card {
flex: 0 1 calc(25% - 8px);
padding: 12px 6px;
font-size: 0.85rem;
}
.learnix-nav-card-icon {
font-size: 1.1rem;
}
.learnix-hero-main {
padding: 60px 15px 50px;
}
.learnix-main-title {
font-size: 2.2rem;
line-height: 1.3;
}
.learnix-hero-subtitle {
font-size: 1rem;
}
.learnix-feature-card {
padding: 15px 12px;
}
.learnix-feature-icon {
font-size: 1.3rem;
}
.learnix-feature-card span {
font-size: 0.85rem;
}
.learnix-welcome-card {
padding: 20px;
margin: 0 10px;
}
.learnix-status-text {
font-size: 1rem;
}
.learnix-cta-button {
padding: 10px 20px;
font-size: 0.9rem;
}
.learnix-cta-secondary {
padding: 10px 16px;
font-size: 0.9rem;
}
.learnix-point-icon {
font-size: 1rem;
}
.learnix-whats-new-section {
padding: 20px 12px;
margin: 30px 0;
border-radius: 12px;
}
.learnix-whats-new-header {
gap: 8px;
margin-bottom: 20px;
}
.learnix-whats-new-icon {
font-size: 1.5rem;
}
.learnix-whats-new-title {
font-size: 1.2rem;
}
.learnix-updates-container {
gap: 8px;
}
.learnix-update-card {
border-radius: 10px;
}
.learnix-update-toggle {
padding: 12px 12px;
}
.learnix-update-title-text {
font-size: 0.95rem;
}
.learnix-update-chevron {
font-size: 1.1rem;
}
.learnix-update-content {
padding: 0 12px 12px 12px;
}
.learnix-update-content p {
font-size: 0.85rem;
}
}