-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
138 lines (119 loc) · 2.49 KB
/
style.css
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
/* Global Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #000;
color: #fff;
font-family: Arial, sans-serif;
}
/* Header */
header {
display: flex;
justify-content: space-between;
padding: 20px 40px;
}
nav a {
color: #fff;
text-decoration: none;
margin: 0 15px;
font-weight: bold;
transition: color 0.3s ease;
}
nav a:hover {
color: #ff3b3b;
}
/* Hero Section */
.hero {
position: relative;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
overflow: hidden;
}
/* Background Text */
.background-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 5.5rem; /* Slightly smaller font */
font-weight: bold;
color: #ffffff;
text-align: center;
line-height: 1.2;
z-index: 3;
pointer-events: none;
white-space: nowrap;
}
/* Image Container */
.hero-images {
display: flex;
gap: 30px; /* Consistent spacing between images */
z-index: 1;
}
.image-container {
position: relative;
overflow: hidden;
width: 250px;
height: 250px;
cursor: pointer;
transition: transform 0.3s ease, filter 0.3s ease;
}
/* Tilt adjustments */
.hero-images .image-container:nth-child(1) {
transform: rotate(-8deg); /* Tilt first image to the left */
}
.hero-images .image-container:nth-child(2) {
transform: rotate(0); /* No tilt for the second image */
}
.hero-images .image-container:nth-child(3) {
transform: rotate(8deg); /* Tilt third image to the right */
}
/* Fit images within container */
.image-container img {
width: 100%;
height: 100%;
object-fit: contain; /* Ensures images fit without zooming */
}
.image-container:hover img {
transform: scale(1.05);
filter: brightness(120%) saturate(150%);
}
.hero-images:hover .image-container:not(:hover) img {
filter: grayscale(100%) opacity(0.3); /* Vector-like effect on non-hovered images */
}
/* Overlay text */
.overlay-text {
position: absolute;
bottom: 20px;
left: 20px;
color: rgb(255, 16, 240);
font-size: 1.5rem;
font-weight: bold;
opacity: 0;
transition: opacity 0.3s ease;
}
.image-container:hover .overlay-text {
opacity: 1;
}
/* Dim background text on image hover */
.hero-images:hover ~ .background-text {
color: rgba(255, 255, 255, 0.3);
}
/* Language Toggle */
.lang-toggle {
background: none;
border: none;
color: #fff;
font-weight: bold;
cursor: pointer;
transition: color 0.3s ease;
}
.lang-toggle:hover {
color: #ff3b3b;
}