File size: 3,094 Bytes
fae09d4
 
 
 
047f948
fae09d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
047f948
 
fae09d4
 
047f948
 
fae09d4
 
047f948
 
fae09d4
 
 
047f948
 
fae09d4
 
 
 
 
047f948
fae09d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/* Importing fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* Loading Animation */
#loading {
    background: #000;
    transition: opacity 0.5s, visibility 0.5s;
}

#loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.pit-stop-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
}

.tire {
    width: 20px;
    height: 20px;
    margin: 0 5px;
    border-radius: 50%;
    background: #ef4444;
    animation: pitStopBounce 1.2s infinite ease-in-out both;
}

.tire:nth-child(1) { animation-delay: -0.45s; }
.tire:nth-child(2) { animation-delay: -0.3s; }
.tire:nth-child(3) { animation-delay: -0.15s; }

@keyframes pitStopBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Parallax Effect */
.parallax-container {
    perspective: 1px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.parallax-layer[data-depth] {
    transform: translateZ(-1px) scale(2);
}

.speed-lines::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(239, 68, 68, 0.1) 2px,
        rgba(239, 68, 68, 0.1) 4px
    );
    animation: speedLines 0.5s linear infinite;
}

@keyframes speedLines {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

/* Team Cards */
.team-card {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    transition: transform 0.5s ease;
}

/* Driver Slider */
.driver-track {
    transition: transform 0.5s ease;
}

/* Race Timeline */
.race-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.race-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Standings Table */
.standings-table tr {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.standings-table tr:nth-child(1) { transition-delay: 0.1s; }
.standings-table tr:nth-child(2) { transition-delay: 0.2s; }
.standings-table tr:nth-child(3) { transition-delay: 0.3s; }
.standings-table tr:nth-child(4) { transition-delay: 0.4s; }
.standings-table tr:nth-child(5) { transition-delay: 0.5s; }

.standings-table.visible tr {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .driver-slide {
        width: 100% !important;
    }
    
    .race-item {
        padding-left: 2rem;
    }
    
    .race-item::before {
        left: 0.5rem;
    }
}