ishingiro / chatbot /landing.css
IZERE HIRWA Roger
ishingiro
c024705
/* AIMHSA Landing Page Styles */
:root {
--primary: #7c3aed;
--primary-light: #a855f7;
--primary-dark: #5b21b6;
--secondary: #f59e0b;
--accent: #10b981;
--accent-light: #34d399;
--background: #0f172a;
--surface: #1e293b;
--card: #334155;
--card-hover: #3b4758;
--text: #f8fafc;
--text-secondary: #cbd5e1;
--text-muted: #94a3b8;
--border: #334155;
--border-light: #475569;
--border-focus: #6366f1;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
--gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #10b981 100%);
--gradient-radial: radial-gradient(circle at 30% 40%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
--blur: blur(10px);
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Utility Classes */
.glass-effect {
backdrop-filter: var(--blur);
-webkit-backdrop-filter: var(--blur);
}
.gradient-border {
position: relative;
background: var(--gradient);
padding: 2px;
border-radius: inherit;
}
.gradient-border::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--surface);
border-radius: inherit;
margin: 1px;
}
.loading-spinner {
width: 20px;
height: 20px;
border: 2px solid var(--border);
border-top: 2px solid var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.fade-in {
animation: fadeIn 0.6s ease-out;
}
.slide-up {
animation: slideInUp 0.6s ease-out;
}
.bounce-in {
animation: bounceIn 0.6s ease-out;
}
@keyframes bounceIn {
0% {
opacity: 0;
transform: scale(0.3);
}
50% {
opacity: 1;
transform: scale(1.05);
}
70% {
transform: scale(0.9);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.pulse-glow {
animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
0%, 100% {
box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}
50% {
box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
}
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--background);
color: var(--text);
line-height: 1.6;
overflow-x: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Navigation */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(15, 23, 42, 0.95);
backdrop-filter: var(--blur);
-webkit-backdrop-filter: var(--blur);
border-bottom: 1px solid var(--border);
z-index: 1000;
transition: var(--transition);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.navbar.scrolled {
background: rgba(15, 23, 42, 0.98);
box-shadow: var(--shadow);
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.nav-logo {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
transition: var(--transition-fast);
cursor: pointer;
}
.nav-logo:hover {
transform: scale(1.05);
}
.nav-logo i {
font-size: 1.8rem;
transition: var(--transition-fast);
}
.nav-logo:hover i {
transform: rotate(10deg);
}
.nav-links {
display: flex;
gap: 2rem;
align-items: center;
}
.nav-links a {
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
transition: var(--transition-fast);
position: relative;
padding: 0.5rem 0;
}
.nav-links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: var(--gradient);
transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a:focus::after {
width: 100%;
}
.nav-links a:hover,
.nav-links a:focus {
color: var(--text);
transform: translateY(-1px);
}
.nav-cta {
background: var(--gradient);
color: white !important;
padding: 0.75rem 1.5rem;
border-radius: 50px;
font-weight: 600;
transition: var(--transition);
box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
border: none;
cursor: pointer;
position: relative;
overflow: hidden;
}
.nav-cta::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: var(--transition);
}
.nav-cta:hover::before {
left: 100%;
}
.nav-cta:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}
.nav-cta:active {
transform: translateY(0);
}
/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
position: relative;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--gradient-radial);
pointer-events: none;
}
.hero-background {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0.1;
}
.hero-pattern {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
radial-gradient(circle at 25% 25%, var(--primary) 2px, transparent 2px),
radial-gradient(circle at 75% 75%, var(--accent) 2px, transparent 2px),
radial-gradient(circle at 50% 50%, var(--secondary) 1px, transparent 1px);
background-size: 50px 50px, 30px 30px, 80px 80px;
animation: float 20s ease-in-out infinite;
opacity: 0.6;
}
@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
33% { transform: translateY(-20px) rotate(1deg); }
66% { transform: translateY(-10px) rotate(-1deg); }
}
/* Floating elements */
.hero-float-1,
.hero-float-2,
.hero-float-3 {
position: absolute;
border-radius: 50%;
background: var(--gradient);
opacity: 0.1;
animation: float-random 15s ease-in-out infinite;
}
.hero-float-1 {
width: 200px;
height: 200px;
top: 10%;
left: 10%;
animation-delay: 0s;
}
.hero-float-2 {
width: 150px;
height: 150px;
top: 60%;
right: 15%;
animation-delay: 5s;
}
.hero-float-3 {
width: 100px;
height: 100px;
bottom: 20%;
left: 20%;
animation-delay: 10s;
}
@keyframes float-random {
0%, 100% {
transform: translateY(0px) translateX(0px) scale(1);
}
25% {
transform: translateY(-30px) translateX(20px) scale(1.1);
}
50% {
transform: translateY(-15px) translateX(-15px) scale(0.9);
}
75% {
transform: translateY(-40px) translateX(10px) scale(1.05);
}
}
.hero-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
position: relative;
z-index: 2;
}
.hero-text {
animation: slideInLeft 1s ease-out;
animation-fill-mode: both;
}
@keyframes slideInLeft {
from {
opacity: 0;
transform: translateX(-50px) scale(0.95);
}
to {
opacity: 1;
transform: translateX(0) scale(1);
}
}
.hero-title {
font-size: clamp(2.5rem, 5vw, 3.5rem);
font-weight: 800;
line-height: 1.1;
margin-bottom: 1.5rem;
letter-spacing: -0.02em;
}
.hero-title span {
display: block;
}
.gradient-text {
background: var(--gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: gradient-shift 3s ease-in-out infinite;
}
@keyframes gradient-shift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.highlight {
color: var(--accent);
position: relative;
}
.highlight::after {
content: '';
position: absolute;
bottom: 2px;
left: 0;
right: 0;
height: 3px;
background: var(--accent);
border-radius: 2px;
opacity: 0.6;
}
.hero-description {
font-size: clamp(1rem, 2vw, 1.25rem);
color: var(--text-secondary);
margin-bottom: 2rem;
max-width: 500px;
line-height: 1.6;
}
.hero-stats {
display: flex;
gap: 2rem;
margin-bottom: 2.5rem;
animation: fadeInUp 1s ease-out 0.3s both;
}
.stat {
text-align: center;
padding: 1rem;
background: rgba(255, 255, 255, 0.02);
border-radius: 12px;
border: 1px solid var(--border);
transition: var(--transition);
backdrop-filter: blur(10px);
}
.stat:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
border-color: var(--primary);
}
.stat-number {
display: block;
font-size: clamp(1.5rem, 3vw, 2rem);
font-weight: 700;
color: var(--primary);
margin-bottom: 0.25rem;
transition: var(--transition-fast);
}
.stat:hover .stat-number {
color: var(--accent);
}
.stat-label {
font-size: 0.875rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 600;
}
.hero-actions {
display: flex;
gap: 1rem;
flex-wrap: wrap;
animation: fadeInUp 1s ease-out 0.5s both;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes ripple {
to {
transform: scale(4);
opacity: 0;
}
}
.ripple-effect {
pointer-events: none;
z-index: 1;
}
.btn-primary, .btn-secondary {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 1rem 2rem;
border-radius: 50px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
font-size: 1rem;
}
.btn-primary {
background: var(--gradient);
color: white;
box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}
.btn-secondary {
background: transparent;
color: var(--text);
border: 2px solid var(--border);
}
.btn-secondary:hover {
background: var(--surface);
border-color: var(--primary);
color: var(--primary);
}
/* Chat Preview */
.hero-visual {
animation: slideInRight 1s ease-out;
animation-fill-mode: both;
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(50px) scale(0.95);
}
to {
opacity: 1;
transform: translateX(0) scale(1);
}
}
.chat-preview {
background: var(--surface);
border-radius: 20px;
padding: 1.5rem;
box-shadow: var(--shadow-lg);
border: 1px solid var(--border);
max-width: 400px;
margin: 0 auto;
position: relative;
overflow: hidden;
transition: var(--transition);
}
.chat-preview::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: var(--gradient);
border-radius: 20px 20px 0 0;
}
.chat-preview:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-xl);
border-color: var(--primary);
}
.chat-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border);
}
.chat-avatar {
width: 50px;
height: 50px;
background: var(--gradient);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
color: white;
}
.chat-info {
flex: 1;
}
.chat-name {
display: block;
font-weight: 600;
color: var(--text);
margin-bottom: 0.25rem;
}
.chat-status {
font-size: 0.875rem;
color: var(--accent);
}
.chat-messages {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 1rem;
}
.message {
max-width: 80%;
animation: messageSlide 0.5s ease-out;
}
@keyframes messageSlide {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.bot-message {
align-self: flex-start;
}
.user-message {
align-self: flex-end;
}
.message-content {
padding: 1rem 1.25rem;
border-radius: 18px;
font-size: 0.875rem;
line-height: 1.5;
}
.bot-message .message-content {
background: var(--card);
color: var(--text);
border-bottom-left-radius: 6px;
}
.user-message .message-content {
background: var(--primary);
color: white;
border-bottom-right-radius: 6px;
}
.typing-indicator {
display: flex;
gap: 0.25rem;
padding: 1rem 1.25rem;
background: var(--card);
border-radius: 18px;
border-bottom-left-radius: 6px;
max-width: 60px;
}
.typing-indicator span {
width: 8px;
height: 8px;
background: var(--text-muted);
border-radius: 50%;
animation: typing 1.5s infinite;
}
.typing-indicator span:nth-child(2) {
animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes typing {
0%, 60%, 100% {
transform: translateY(0);
opacity: 0.5;
}
30% {
transform: translateY(-10px);
opacity: 1;
}
}
/* Features Section */
.features {
padding: 6rem 0;
background: var(--background);
position: relative;
}
.features::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--gradient-radial);
opacity: 0.3;
pointer-events: none;
}
.section-header {
text-align: center;
margin-bottom: 4rem;
position: relative;
z-index: 1;
}
.section-header h2 {
font-size: clamp(2rem, 4vw, 2.5rem);
font-weight: 700;
color: var(--text);
margin-bottom: 1rem;
background: var(--gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.section-header p {
font-size: clamp(1rem, 2vw, 1.25rem);
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
position: relative;
z-index: 1;
}
.feature-card {
background: var(--surface);
padding: 2.5rem;
border-radius: 20px;
border: 1px solid var(--border);
transition: var(--transition);
text-align: center;
position: relative;
overflow: hidden;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--gradient);
opacity: 0;
transition: var(--transition);
z-index: -1;
}
.feature-card:hover::before {
opacity: 0.05;
}
.feature-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: var(--shadow-xl);
border-color: var(--primary);
}
.feature-icon {
width: 80px;
height: 80px;
background: var(--gradient);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
font-size: 2rem;
color: white;
transition: var(--transition);
position: relative;
z-index: 1;
}
.feature-card:hover .feature-icon {
transform: scale(1.1) rotate(5deg);
box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}
.feature-card h3 {
font-size: 1.5rem;
font-weight: 600;
color: var(--text);
margin-bottom: 1rem;
position: relative;
z-index: 1;
}
.feature-card p {
color: var(--text-secondary);
line-height: 1.6;
position: relative;
z-index: 1;
}
/* About Section */
.about {
padding: 6rem 0;
background: var(--surface);
}
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}
.about-text h2 {
font-size: 2.5rem;
font-weight: 700;
color: var(--text);
margin-bottom: 1.5rem;
}
.about-intro {
font-size: 1.25rem;
color: var(--text-secondary);
margin-bottom: 2rem;
}
.about-features {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 2rem;
}
.about-feature {
display: flex;
align-items: center;
gap: 1rem;
color: var(--text-secondary);
}
.about-feature i {
color: var(--accent);
font-size: 1.25rem;
}
.about-description {
color: var(--text-secondary);
line-height: 1.6;
}
.stats-container {
display: flex;
flex-direction: column;
gap: 2rem;
}
.stat-item {
display: flex;
align-items: center;
gap: 1.5rem;
padding: 1.5rem;
background: var(--card);
border-radius: 12px;
border: 1px solid var(--border);
}
.stat-icon {
width: 60px;
height: 60px;
background: var(--gradient);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
color: white;
}
.stat-info {
flex: 1;
}
.stat-number {
display: block;
font-size: 2rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 0.25rem;
}
.stat-label {
font-size: 0.875rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Emergency Section */
.emergency {
padding: 4rem 0;
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
position: relative;
overflow: hidden;
}
.emergency::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 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
opacity: 0.1;
}
.emergency-content {
display: flex;
align-items: center;
gap: 2rem;
max-width: 1000px;
margin: 0 auto;
text-align: center;
position: relative;
z-index: 1;
}
.emergency-icon {
font-size: 3rem;
margin-bottom: 1rem;
animation: pulse 2s infinite;
}
.emergency-text h3 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 1rem;
}
.emergency-text p {
font-size: 1.125rem;
margin-bottom: 1.5rem;
opacity: 0.9;
}
.emergency-contacts {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-bottom: 2rem;
}
.contact-item {
font-size: 1.125rem;
font-weight: 600;
padding: 0.5rem;
background: rgba(255, 255, 255, 0.1);
border-radius: 8px;
backdrop-filter: blur(10px);
}
.emergency-actions {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.btn-emergency {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 1rem 1.5rem;
border-radius: 50px;
font-weight: 600;
text-decoration: none;
transition: var(--transition);
cursor: pointer;
border: none;
font-size: 1rem;
background: white;
color: #dc2626;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-emergency:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.btn-emergency.secondary {
background: rgba(255, 255, 255, 0.1);
color: white;
border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-emergency.secondary:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.5);
}
/* Community Section */
.community {
padding: 6rem 0;
background: var(--surface);
}
.community-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.community-card {
background: var(--card);
padding: 2.5rem;
border-radius: 20px;
border: 1px solid var(--border);
text-align: center;
transition: var(--transition);
position: relative;
overflow: hidden;
}
.community-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--gradient);
opacity: 0;
transition: var(--transition);
z-index: -1;
}
.community-card:hover::before {
opacity: 0.05;
}
.community-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: var(--shadow-xl);
border-color: var(--primary);
}
.community-icon {
width: 80px;
height: 80px;
background: var(--gradient);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
font-size: 2rem;
color: white;
transition: var(--transition);
}
.community-card:hover .community-icon {
transform: scale(1.1) rotate(5deg);
box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}
.community-card h3 {
font-size: 1.5rem;
font-weight: 600;
color: var(--text);
margin-bottom: 1rem;
}
.community-card p {
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: 1.5rem;
}
.community-stats {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
}
.community-stats span {
display: flex;
align-items: center;
gap: 0.25rem;
font-size: 0.875rem;
color: var(--text-muted);
background: rgba(124, 58, 237, 0.1);
padding: 0.25rem 0.75rem;
border-radius: 20px;
}
.community-cta {
text-align: center;
}
.community-note {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
color: var(--text-muted);
font-size: 0.875rem;
margin-top: 1rem;
}
/* Resources Section */
.resources {
padding: 6rem 0;
background: var(--background);
}
.resources-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.resource-card {
background: var(--surface);
padding: 2rem;
border-radius: 16px;
border: 1px solid var(--border);
transition: var(--transition);
text-align: center;
}
.resource-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
border-color: var(--primary);
}
.resource-icon {
width: 60px;
height: 60px;
background: var(--gradient);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
font-size: 1.5rem;
color: white;
}
.resource-card h3 {
font-size: 1.25rem;
font-weight: 600;
color: var(--text);
margin-bottom: 1rem;
}
.resource-card p {
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: 1.5rem;
}
.resource-link {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: var(--primary);
text-decoration: none;
font-weight: 500;
transition: var(--transition);
}
.resource-link:hover {
color: var(--primary-light);
transform: translateX(4px);
}
/* CTA Section */
.cta {
padding: 6rem 0;
background: var(--background);
text-align: center;
}
.cta-content h2 {
font-size: 2.5rem;
font-weight: 700;
color: var(--text);
margin-bottom: 1rem;
}
.cta-content p {
font-size: 1.25rem;
color: var(--text-secondary);
margin-bottom: 2.5rem;
}
.cta-actions {
display: flex;
gap: 1rem;
justify-content: center;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.btn-primary.large, .btn-secondary.large {
padding: 1.25rem 2.5rem;
font-size: 1.125rem;
}
.cta-note {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
color: var(--text-muted);
font-size: 0.875rem;
}
/* Footer */
.footer {
background: var(--surface);
padding: 3rem 0 1rem;
border-top: 1px solid var(--border);
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.footer-logo {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 1rem;
}
.footer-section h4 {
color: var(--text);
margin-bottom: 1rem;
font-weight: 600;
}
.footer-section ul {
list-style: none;
}
.footer-section ul li {
margin-bottom: 0.5rem;
}
.footer-section ul li a {
color: var(--text-secondary);
text-decoration: none;
transition: color 0.3s ease;
}
.footer-section ul li a:hover {
color: var(--primary);
}
.emergency-info p {
color: var(--text-secondary);
margin-bottom: 0.5rem;
}
.footer-bottom {
text-align: center;
padding-top: 2rem;
border-top: 1px solid var(--border);
color: var(--text-muted);
}
/* Loading Screen */
.loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--background);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
animation: fadeOut 0.5s ease-out 2s forwards;
}
.loading-content {
text-align: center;
color: var(--text);
}
.loading-logo {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-size: 2rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 2rem;
animation: bounceIn 0.8s ease-out;
}
.loading-logo i {
animation: heartbeat 1.5s ease-in-out infinite;
}
.loading-spinner {
width: 50px;
height: 50px;
border: 3px solid var(--border);
border-top: 3px solid var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 1.5rem;
}
.loading-text {
font-size: 1rem;
color: var(--text-secondary);
animation: fadeIn 0.8s ease-out 0.5s both;
}
@keyframes fadeOut {
to {
opacity: 0;
visibility: hidden;
}
}
@keyframes heartbeat {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
/* Particle Canvas */
.particle-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
/* Enhanced Animations */
.animate-in {
animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
animation-fill-mode: both;
}
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(50px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* Staggered animation delays */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
/* Enhanced Responsive Design */
@media (max-width: 1024px) {
.hero-content {
padding: 0 1rem;
}
.features-grid {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
.community-grid {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
}
@media (max-width: 768px) {
.navbar {
padding: 0;
}
.nav-container {
padding: 1rem;
}
.nav-logo {
font-size: 1.25rem;
}
.nav-links {
gap: 1rem;
}
.nav-links a {
font-size: 0.875rem;
padding: 0.5rem 0;
}
.nav-cta {
padding: 0.625rem 1rem;
font-size: 0.875rem;
}
.hero {
min-height: auto;
padding: 4rem 0 6rem;
}
.hero-content {
grid-template-columns: 1fr;
gap: 3rem;
text-align: center;
padding: 0 1rem;
}
.hero-title {
font-size: clamp(2rem, 8vw, 2.5rem);
margin-bottom: 1rem;
}
.hero-description {
font-size: 1rem;
margin-bottom: 1.5rem;
}
.hero-stats {
justify-content: center;
gap: 1.5rem;
}
.hero-actions {
justify-content: center;
flex-direction: column;
gap: 1rem;
}
.chat-preview {
max-width: 100%;
margin: 0 auto;
}
.section-header {
margin-bottom: 3rem;
}
.section-header h2 {
font-size: clamp(1.75rem, 5vw, 2.25rem);
}
.features-grid,
.community-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.feature-card,
.community-card {
padding: 2rem 1.5rem;
}
.about-content {
grid-template-columns: 1fr;
gap: 3rem;
}
.emergency-content {
flex-direction: column;
text-align: center;
gap: 1.5rem;
}
.emergency-actions {
flex-direction: column;
gap: 0.75rem;
width: 100%;
max-width: 300px;
margin: 0 auto;
}
.btn-emergency {
width: 100%;
}
.cta-content h2 {
font-size: 2rem;
}
.cta-actions {
flex-direction: column;
align-items: center;
gap: 1rem;
}
.footer-content {
grid-template-columns: 1fr;
text-align: center;
gap: 2rem;
}
.footer-section h4 {
margin-bottom: 1rem;
}
.particle-canvas {
display: none; /* Disable particles on mobile for performance */
}
}
@media (max-width: 640px) {
.hero-float-1,
.hero-float-2,
.hero-float-3 {
display: none; /* Hide floating elements on smaller screens */
}
.hero-pattern {
opacity: 0.3;
}
.nav-links {
display: none; /* Hide nav links on very small screens */
}
.nav-cta {
margin-left: auto;
}
}
@media (max-width: 480px) {
.container {
padding: 0 1rem;
}
.hero-title {
font-size: clamp(1.75rem, 8vw, 2rem);
line-height: 1.2;
}
.hero-description {
font-size: 0.95rem;
}
.hero-stats {
flex-direction: column;
gap: 1rem;
margin-bottom: 1.5rem;
}
.stat {
padding: 0.75rem;
}
.btn-primary, .btn-secondary {
padding: 0.875rem 1.5rem;
font-size: 0.875rem;
width: 100%;
max-width: 280px;
}
.chat-preview {
padding: 1rem;
}
.chat-messages {
gap: 0.75rem;
}
.message-content {
padding: 0.75rem 1rem;
font-size: 0.9rem;
}
.feature-card,
.community-card,
.resource-card {
padding: 1.5rem 1rem;
}
.feature-icon,
.community-icon,
.resource-icon {
width: 50px;
height: 50px;
font-size: 1.25rem;
}
.feature-card h3,
.community-card h3,
.resource-card h3 {
font-size: 1.125rem;
}
.stat-item {
flex-direction: column;
text-align: center;
gap: 0.75rem;
}
.stat-icon {
width: 50px;
height: 50px;
}
.emergency-icon {
font-size: 2.5rem;
}
.emergency-text h3 {
font-size: 1.75rem;
}
.emergency-contacts {
gap: 0.5rem;
}
.contact-item {
padding: 0.375rem;
font-size: 0.9rem;
}
.cta-content h2 {
font-size: 1.75rem;
}
.cta-note {
flex-direction: column;
gap: 0.5rem;
text-align: center;
}
.footer {
padding: 2rem 0 1rem;
}
.footer-content {
gap: 1.5rem;
}
}
/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
.btn-primary, .btn-secondary, .nav-cta {
min-height: 44px; /* iOS touch target minimum */
}
.feature-card, .community-card, .resource-card {
transition: transform 0.1s ease; /* Faster transitions on touch */
}
.feature-card:active, .community-card:active, .resource-card:active {
transform: scale(0.98);
}
}
/* High contrast mode support */
@media (prefers-contrast: high) {
:root {
--primary: #0066cc;
--text: #000000;
--background: #ffffff;
--surface: #f8f8f8;
--border: #000000;
}
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
.hero-pattern {
animation: none;
}
.hero-float-1,
.hero-float-2,
.hero-float-3 {
animation: none;
}
}