|
16 | 16 | .container{
|
17 | 17 | display: flex;
|
18 | 18 | }
|
19 |
| - |
20 |
| - |
21 |
| - |
22 |
| -.sidebar{ |
| 19 | +.sidebar { |
23 | 20 | background-color: black;
|
24 |
| - /* border: 2px solid white ; */ |
25 |
| - height: 250vh; |
| 21 | + height: 100vh; |
26 | 22 | font-family: "Oxanium", sans-serif;
|
27 |
| - /* padding: 10px 20px; */ |
28 | 23 | transition: transform 0.3s ease-in;
|
29 | 24 | position: absolute;
|
30 | 25 | width: 250px;
|
31 | 26 | }
|
32 | 27 |
|
33 |
| -.sidebar nav{ |
34 |
| - padding: 80px 30px ; |
| 28 | +.sidebar nav { |
| 29 | + padding: 80px 30px; |
35 | 30 | height: auto;
|
36 | 31 | }
|
37 |
| -.sidebar nav li{ |
| 32 | + |
| 33 | +.sidebar nav li { |
38 | 34 | list-style: none;
|
39 |
| - padding: 15px 20px ; |
| 35 | + padding: 15px 20px; |
40 | 36 | margin-bottom: 30px;
|
41 | 37 | border-radius: 10px;
|
42 | 38 | background-color: #339AF0;
|
43 | 39 | cursor: pointer;
|
44 | 40 | box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); /* Shadow effect */
|
45 |
| - transition: box-shadow 0.3s ease-in-out; /* Smooth transition */ |
| 41 | + transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease-in-out; |
| 42 | +} |
46 | 43 |
|
| 44 | +/* Zoom and color change on hover */ |
| 45 | +.sidebar nav li:hover { |
| 46 | + transform: scale(1.1); /* Slight zoom */ |
| 47 | + background-color: #1d7bdc; /* Darker blue */ |
| 48 | + box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow for depth */ |
47 | 49 | }
|
48 |
| -.sidebar nav li a{ |
| 50 | + |
| 51 | +.sidebar nav li a { |
49 | 52 | text-decoration: none;
|
50 | 53 | color: white;
|
51 | 54 | font-family: "Oxanium", sans-serif;
|
|
54 | 57 | display: flex;
|
55 | 58 | align-items: center;
|
56 | 59 | gap: 8px;
|
| 60 | + transition: color 0.3s ease-in-out; |
| 61 | +} |
57 | 62 |
|
| 63 | +/* Text color change on hover */ |
| 64 | +.sidebar nav li:hover a { |
| 65 | + color: #f1f1f1; /* Slightly lighter white for better contrast */ |
58 | 66 | }
|
59 | 67 |
|
60 | 68 |
|
|
127 | 135 | font-size: 15px;
|
128 | 136 | width: 110px;
|
129 | 137 | }
|
130 |
| -.devPic{ |
131 |
| - /* border: 1px solid; */ |
| 138 | +.devPic { |
132 | 139 | width: 30vw;
|
133 | 140 | display: flex;
|
134 | 141 | align-items: center;
|
| 142 | + justify-content: center; |
| 143 | + perspective: 1000px; /* Adds depth for the 3D effect */ |
135 | 144 | }
|
136 |
| -.devPic img{ |
137 |
| - /* border: 1px solid; */ |
| 145 | + |
| 146 | +.devPic img { |
138 | 147 | width: 30vw;
|
| 148 | + transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out; |
| 149 | + transform-style: preserve-3d; |
| 150 | + border-radius: 10px; |
| 151 | +} |
| 152 | + |
| 153 | +/* 3D Tilt & Shadow Effect on Hover */ |
| 154 | +.devPic img:hover { |
| 155 | + transform: rotateY(15deg) rotateX(5deg) scale(1.05); /* Slight tilt and zoom */ |
| 156 | + box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* Shadow for depth */ |
| 157 | +} |
| 158 | + |
| 159 | + |
| 160 | +/* Social icons container */ |
| 161 | +.social-icons { |
| 162 | + display: flex; |
| 163 | + gap: 25px; /* Space between icons */ |
| 164 | + justify-content: flex-start; /* Align to start */ |
| 165 | + margin-top: 20px; |
| 166 | +} |
| 167 | + |
| 168 | +/* Responsive design for smaller screens */ |
| 169 | +@media (max-width: 745px) { |
| 170 | + .social-icons { |
| 171 | + display: flex; |
| 172 | + gap: 15px; /* Space between icons */ |
| 173 | + justify-content: center; /* Center align */ |
| 174 | + margin-top: 20px; |
| 175 | + } |
| 176 | +} |
| 177 | + |
| 178 | +/* Social icons default state */ |
| 179 | +.social-icons a { |
| 180 | + color: #0e0e0e; |
| 181 | + font-size: 30px; |
| 182 | + text-decoration: none; |
| 183 | + transition: transform 0.3s ease-in-out, color 0.3s ease-in-out; |
| 184 | + display: inline-block; |
| 185 | +} |
139 | 186 |
|
| 187 | +/* Pop-up and enlarge effect on hover */ |
| 188 | +.social-icons a:hover { |
| 189 | + color: #339AF0; |
| 190 | + transform: scale(1.3); |
140 | 191 | }
|
141 | 192 |
|
142 | 193 |
|
|
0 commit comments