Skip to content

Commit 18332ea

Browse files
authored
Update global.css
Signed-off-by: Aitor Alien <[email protected]>
1 parent 19286ab commit 18332ea

File tree

1 file changed

+84
-64
lines changed

1 file changed

+84
-64
lines changed

src/global.css

Lines changed: 84 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ html, body {
88
color: #F0D882; /* Dorado claro */
99
overflow-x: hidden;
1010
font-family: 'Exo', sans-serif;
11+
scroll-behavior: smooth;
1112
}
1213

1314
#root {
@@ -22,72 +23,62 @@ main {
2223
padding-top: 8rem;
2324
}
2425

25-
/* ===== Text Glow Utilities ===== */
26+
/* ===== Utility Classes ===== */
2627
.text-glow {
27-
text-shadow: 0 0 10px rgba(255, 215, 0, 0.6),
28-
0 0 20px rgba(255, 215, 0, 0.4);
28+
text-shadow:
29+
0 0 8px rgba(240, 216, 130, 0.8),
30+
0 0 16px rgba(240, 216, 130, 0.4),
31+
0 0 24px rgba(240, 216, 130, 0.2);
2932
}
3033

3134
.readable-glow {
32-
text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
35+
text-shadow:
36+
0 2px 6px hsl(240, 33%, 5% / 0.85),
37+
0 0 24px hsl(240, 33%, 5% / 0.65);
3338
}
3439

35-
/* ===== Card Styling ===== */
36-
.card-border {
37-
border: 1px solid rgba(255, 215, 0, 0.2);
38-
border-radius: 10px;
39-
background-color: rgba(17, 17, 25, 0.65);
40-
transition: all 0.3s ease;
41-
position: relative;
42-
z-index: 1;
43-
}
44-
.card-border:hover {
45-
border-color: rgba(255, 215, 0, 0.4);
46-
box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
47-
}
48-
49-
/* ===== Background Stars ===== */
50-
.bg-stars {
51-
background: black url('/lovable-uploads/stars-bg.png') repeat;
52-
animation: moveStars 300s linear infinite;
53-
}
54-
55-
@keyframes moveStars {
56-
from { background-position: 0 0; }
57-
to { background-position: -10000px 5000px; }
40+
.gold-glow {
41+
filter: drop-shadow(0 0 10px rgba(240, 216, 130, 0.6))
42+
drop-shadow(0 0 20px rgba(240, 216, 130, 0.3));
5843
}
5944

60-
/* ===== Radial Glow Overlay ===== */
61-
.bg-glow-radial {
62-
background: radial-gradient(circle at center, rgba(255,255,255,0.12) 0%, transparent 70%);
63-
opacity: 0.4;
45+
.green-glow {
46+
filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.6))
47+
drop-shadow(0 0 20px rgba(34, 197, 94, 0.3));
6448
}
6549

66-
/* ===== Star Wars Crawl ===== */
50+
/* ===== Star Wars Crawl Effect ===== */
6751
.star-wars-crawl {
68-
perspective: 400px;
69-
height: 300px;
52+
perspective: 500px;
7053
overflow: hidden;
71-
position: relative;
54+
display: flex;
55+
justify-content: center;
56+
align-items: center;
57+
max-width: 100%;
7258
}
7359

7460
.star-wars-content {
75-
transform-origin: 50% 100%;
76-
transform: rotateX(20deg);
77-
line-height: 1.6;
61+
transform: rotateX(15deg);
62+
transform-origin: center top;
63+
animation: star-wars-float 60s linear infinite;
64+
width: 100%;
7865
max-width: 700px;
79-
margin: 0 auto;
66+
line-height: 1.6;
8067
color: #32cd32; /* Alien green */
8168
text-shadow: 0 0 8px rgba(0,0,0,0.9);
82-
font-weight: 600;
83-
font-size: clamp(1rem, 1.8vw, 1.25rem);
69+
}
70+
71+
@keyframes star-wars-float {
72+
0% { transform: rotateX(15deg) translateY(100%); }
73+
100% { transform: rotateX(15deg) translateY(-120%); }
8474
}
8575

8676
/* ===== Hero Title Glow ===== */
8777
.sw-title-glow {
88-
text-shadow: 0 0 20px rgba(255, 215, 0, 0.9),
89-
0 0 40px rgba(255, 215, 0, 0.6),
90-
0 0 60px rgba(255, 215, 0, 0.4);
78+
text-shadow:
79+
0 0 20px rgba(255, 215, 0, 0.9),
80+
0 0 40px rgba(255, 215, 0, 0.6),
81+
0 0 60px rgba(255, 215, 0, 0.4);
9182
}
9283

9384
/* ===== Logo Glow ===== */
@@ -96,36 +87,65 @@ main {
9687
drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
9788
}
9889

99-
/* ===== Preloader (optional) ===== */
100-
#preloader {
101-
position: fixed;
102-
top: 0; left: 0;
103-
width: 100%; height: 100%;
104-
background: #0C0C1D;
105-
display: flex;
106-
align-items: center;
107-
justify-content: center;
108-
z-index: 9999;
90+
/* ===== Card Border ===== */
91+
.card-border {
92+
position: relative;
93+
border-radius: 0.5rem;
94+
background: rgba(17, 17, 25, 0.7);
95+
backdrop-filter: blur(12px);
96+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
97+
}
98+
.card-border::before {
99+
content: '';
100+
position: absolute;
101+
inset: 0;
102+
border-radius: inherit;
103+
padding: 1.5px;
104+
background: linear-gradient(145deg, hsl(48, 83%, 72%), hsl(142, 67%, 45%));
105+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
106+
-webkit-mask-composite: xor;
107+
mask-composite: exclude;
108+
pointer-events: none;
109+
transition: opacity 0.3s ease;
110+
}
111+
.card-border:hover::before {
112+
background: linear-gradient(145deg, hsl(142, 67%, 45%), hsl(48, 83%, 72%));
113+
}
114+
115+
/* ===== Background & Stars ===== */
116+
.bg-stars {
117+
background: black url('/lovable-uploads/stars-bg.png') repeat;
118+
animation: moveStars 200s linear infinite;
109119
}
110120

111-
#preloader img {
112-
width: 120px;
113-
height: auto;
114-
animation: preloader-spin 2s linear infinite;
121+
@keyframes moveStars {
122+
from { background-position: 0 0; }
123+
to { background-position: -10000px 5000px; }
115124
}
116125

117-
@keyframes preloader-spin {
118-
0% { transform: rotate(0deg); }
119-
100% { transform: rotate(360deg); }
126+
.bg-glow-radial {
127+
background: radial-gradient(circle at center, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
128+
opacity: 0.4;
120129
}
121130

122131
/* ===== Responsive ===== */
123132
@media (max-width: 768px) {
124-
.star-wars-crawl { height: 200px; }
125-
.star-wars-content { font-size: 0.9rem; }
133+
.star-wars-content { transform: rotateX(10deg); }
126134
}
127135

128136
@media (max-width: 480px) {
129-
.star-wars-crawl { height: 160px; }
130137
.star-wars-content { font-size: 0.8rem; }
131138
}
139+
140+
/* ===== Nasalization font for titles/buttons ===== */
141+
.font-nasalization, .font-nasalization * {
142+
font-family: 'Nasalization', sans-serif !important;
143+
font-weight: 400;
144+
letter-spacing: 0.5px;
145+
}
146+
147+
/* Smooth transitions & accessibility */
148+
* {
149+
transition: color 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s, box-shadow 0.2s, transform 0.2s;
150+
}
151+
:focus-visible { outline: 2px solid hsl(48, 83%, 72%); outline-offset: 2px; }

0 commit comments

Comments
 (0)