railwayka-landing/dist/style.css

444 lines
8.1 KiB
CSS

/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-dark: #0a0e17;
--bg-card: #1a1f2e;
--bg-card-hover: #252a3a;
--text-primary: #e0e6ed;
--text-secondary: #9ca3af;
--accent: #3b82f6;
--accent-hover: #2563eb;
--rust: #f74c00;
--border: #2d3748;
--success: #10b981;
--planned: #6366f1;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
background: var(--bg-dark);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
}
/* Loading screen */
#loading {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--bg-dark);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.loader {
font-size: 1.2rem;
color: var(--text-secondary);
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
.error {
padding: 2rem;
text-align: center;
color: var(--rust);
}
/* Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}
.hero .container {
position: relative;
z-index: 1;
}
.hero-title {
font-size: clamp(3rem, 8vw, 6rem);
font-weight: 700;
margin-bottom: 1rem;
background: linear-gradient(135deg, var(--accent) 0%, var(--planned) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-subtitle {
font-size: clamp(1.2rem, 3vw, 1.5rem);
color: var(--text-secondary);
margin-bottom: 2rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.hero-badge {
display: inline-block;
padding: 0.75rem 1.5rem;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 2rem;
font-size: 1rem;
color: var(--text-primary);
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
/* Section Styles */
section {
padding: 5rem 0;
}
.section-title {
font-size: 2.5rem;
margin-bottom: 3rem;
text-align: center;
color: var(--text-primary);
}
/* Services Section */
.services {
background: var(--bg-dark);
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
.service-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 0.75rem;
padding: 1.5rem;
transition: all 0.3s ease;
text-decoration: none;
color: inherit;
display: block;
overflow: hidden;
word-wrap: break-word;
}
.service-card:hover {
background: var(--bg-card-hover);
border-color: var(--accent);
transform: translateY(-4px);
box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}
.service-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.75rem;
gap: 0.75rem;
}
.service-card h3 {
font-size: 1.25rem;
color: var(--text-primary);
flex: 1;
word-break: break-word;
min-width: 0;
}
.status-badge {
font-size: 1.5rem;
flex-shrink: 0;
margin-left: 0.5rem;
}
.service-description {
color: var(--text-secondary);
font-size: 0.95rem;
line-height: 1.6;
word-break: break-word;
overflow-wrap: break-word;
}
/* Tech Section */
.tech {
background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}
.tech-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.tech-item {
text-align: center;
padding: 2rem 1rem;
}
.tech-item h3 {
font-size: 1.5rem;
margin-bottom: 0.75rem;
color: var(--accent);
}
.tech-item p {
color: var(--text-secondary);
font-size: 0.95rem;
}
/* Footer */
.footer {
background: var(--bg-card);
border-top: 1px solid var(--border);
padding: 3rem 0;
text-align: center;
}
.footer p {
color: var(--text-secondary);
margin-bottom: 1.5rem;
}
.rust-love {
color: var(--rust);
font-weight: 600;
}
.footer-links {
display: flex;
justify-content: center;
gap: 2rem;
flex-wrap: wrap;
}
.footer-links a {
color: var(--accent);
text-decoration: none;
transition: color 0.3s ease;
font-size: 0.95rem;
}
.footer-links a:hover {
color: var(--accent-hover);
text-decoration: underline;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.container {
padding: 0 1.5rem;
}
section {
padding: 3rem 0;
}
.services-grid,
.tech-grid {
grid-template-columns: 1fr;
}
.hero {
min-height: 80vh;
}
.footer-links {
flex-direction: column;
gap: 1rem;
}
}
/* Smooth scrolling */
html {
scroll-behavior: smooth;
}
/* Selection color */
::selection {
background: var(--accent);
color: white;
}
::-moz-selection {
background: var(--accent);
color: white;
}
/* Scroll-triggered animations */
[data-animate] {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate].animate-in {
opacity: 1;
transform: translateY(0);
}
/* Parallax effect on hero */
.hero::before {
animation: parallax-float 20s ease-in-out infinite;
}
@keyframes parallax-float {
0%, 100% { transform: translateY(0) scale(1); }
50% { transform: translateY(-20px) scale(1.05); }
}
/* Animated gradient text */
.hero-title {
background-size: 200% auto;
animation: gradient-shift 3s ease-in-out infinite;
}
@keyframes gradient-shift {
0%, 100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
/* Hover micro-interactions */
.service-card {
transform-origin: center;
will-change: transform;
}
.service-card:hover {
animation: subtle-bounce 0.6s ease;
}
@keyframes subtle-bounce {
0%, 100% { transform: translateY(-4px); }
50% { transform: translateY(-8px); }
}
.tech-item {
transition: all 0.3s ease;
}
.tech-item:hover {
transform: scale(1.05);
}
.tech-item:hover h3 {
animation: pulse-glow 1.5s ease-in-out infinite;
}
@keyframes pulse-glow {
0%, 100% { opacity: 1; }
50% { opacity: 0.8; text-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
}
/* Footer links animation */
.footer-links a {
position: relative;
overflow: hidden;
}
.footer-links a::before {
content: '';
position: absolute;
bottom: 0;
left: -100%;
width: 100%;
height: 2px;
background: var(--accent);
transition: left 0.3s ease;
}
.footer-links a:hover::before {
left: 0;
}
/* Hero badge pulse */
.hero-badge {
animation: float 3s ease-in-out infinite, glow-pulse 2s ease-in-out infinite;
}
@keyframes glow-pulse {
0%, 100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.2); }
50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
}
/* Status badge animations */
.status-badge {
animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
/* Section title entrance */
.section-title {
animation: slide-in-top 0.8s ease-out;
}
@keyframes slide-in-top {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}