railwayka-landing/dist/style.css

323 lines
6.9 KiB
CSS

/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-dark: #0a0e17;
--bg-card: rgba(26, 31, 46, 0.8); /* More transparent for glass effect */
--bg-card-hover: rgba(37, 42, 58, 0.9);
--text-primary: #e0e6ed;
--text-secondary: #9ca3af;
--accent: #3b82f6;
--accent-hover: #2563eb;
--rust: #f74c00;
--border: rgba(45, 55, 72, 0.5);
--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;
}
/* Particle canvas background */
#particle-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
}
/* 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;
position: relative;
overflow: hidden;
z-index: 1;
}
.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;
filter: drop-shadow(0 0 2em rgba(59, 130, 246, 0.3));
}
.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: rgba(26, 31, 46, 0.6);
backdrop-filter: blur(10px);
border: 1px solid var(--border);
border-radius: 2rem;
font-size: 1rem;
color: var(--text-primary);
animation: float 3s ease-in-out infinite;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
/* Section Styles */
section {
padding: 5rem 0;
position: relative;
z-index: 1;
}
.section-title {
font-size: 2.5rem;
margin-bottom: 3rem;
text-align: center;
color: var(--text-primary);
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
/* Services Section */
.services {
/* Transparent to let particles show through slightly or keep dark */
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 2rem;
perspective: 1000px; /* Global perspective for grid items entrance */
}
/* 3D Card System */
.service-card-wrapper {
/* This is the element that receives mouse events and defines the space */
position: relative;
height: 100%;
min-height: 200px;
text-decoration: none;
color: inherit;
display: block;
perspective: 1500px; /* Perspective for the 3D tilt */
cursor: pointer;
}
.service-card-content {
position: relative;
height: 100%;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 1rem;
padding: 2rem;
/* Glassmorphism */
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
/* 3D Transform settings */
transform-style: preserve-3d;
transform: rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
/* Smooth return when mouse leaves */
transition: transform 0.1s cubic-bezier(0.2, 0.4, 0.6, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card-wrapper:hover .service-card-content {
border-color: var(--accent);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.4),
0 0 20px rgba(59, 130, 246, 0.2),
inset 0 0 0 1px rgba(59, 130, 246, 0.5);
}
/* Glare Effect */
.card-glare {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 1rem;
background: radial-gradient(
circle at var(--glare-x, 50%) var(--glare-y, 50%),
rgba(255, 255, 255, 0.15) 0%,
transparent 60%
);
opacity: var(--glare-opacity, 0);
pointer-events: none;
transition: opacity 0.3s ease;
mix-blend-mode: overlay;
z-index: 10;
}
/* Floating Content inside Card */
.service-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 1rem;
gap: 0.75rem;
transform: translateZ(25px); /* Pop out */
transform-style: preserve-3d;
}
.service-card-content h3 {
font-size: 1.5rem;
color: var(--text-primary);
font-weight: 700;
flex: 1;
}
.status-badge {
font-size: 1.2rem;
transform: translateZ(35px); /* Pop out more */
filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.service-description {
color: var(--text-secondary);
font-size: 1rem;
line-height: 1.6;
transform: translateZ(15px); /* Pop out slightly */
}
/* Tech Section */
.tech {
background: linear-gradient(180deg, rgba(10, 14, 23, 0) 0%, var(--bg-dark) 100%);
position: relative;
}
.tech-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.tech-item {
text-align: center;
padding: 2rem 1rem;
background: rgba(255, 255, 255, 0.03);
border-radius: 1rem;
transition: all 0.3s ease;
border: 1px solid transparent;
}
.tech-item:hover {
transform: translateY(-5px) scale(1.02);
background: rgba(255, 255, 255, 0.05);
border-color: var(--border);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.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;
position: relative;
z-index: 2;
}
.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;
}
.hero-title {
font-size: 3rem;
}
}
/* Scroll Animations */
[data-animate] {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-animate].animate-in {
opacity: 1;
transform: translateY(0);
}