|
26 | 26 | --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
27 | 27 | } |
28 | 28 |
|
29 | | -/* Header */ |
| 29 | +/* Header & Navigation */ |
30 | 30 | header { |
31 | | - background: var(--primary-color); |
| 31 | + background: transparent; |
32 | 32 | color: var(--text-light); |
33 | | - padding: 15px 20px; |
34 | 33 | position: sticky; |
35 | 34 | top: 0; |
36 | 35 | z-index: 1000; |
37 | | - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); |
38 | 36 | } |
39 | 37 |
|
40 | | -header nav ul li a img { |
41 | | - width: 30px; |
42 | | - height: 30px; |
43 | | - margin-right: 4px; |
44 | | - vertical-align: middle; |
| 38 | +.main-nav { |
| 39 | + background: rgba(30, 92, 143, 0.95); |
| 40 | + backdrop-filter: blur(10px); |
| 41 | + -webkit-backdrop-filter: blur(10px); |
| 42 | + border-bottom: 1px solid rgba(255, 255, 255, 0.1); |
| 43 | + box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); |
| 44 | + position: relative; |
| 45 | + display: flex; |
| 46 | + justify-content: center; |
| 47 | +} |
| 48 | + |
| 49 | +.nav-container { |
| 50 | + max-width: 1200px; |
| 51 | + margin: 0 auto; |
| 52 | + padding: 0 20px; |
45 | 53 | } |
46 | 54 |
|
47 | 55 | nav ul { |
48 | 56 | list-style: none; |
49 | | - padding: 0; |
| 57 | + padding: 10px 0; |
50 | 58 | margin: 0; |
51 | 59 | display: flex; |
52 | 60 | justify-content: center; |
| 61 | + gap: 10px; |
53 | 62 | } |
54 | 63 |
|
55 | 64 | nav ul li { |
56 | 65 | margin-right: 15px; |
57 | 66 | } |
58 | 67 |
|
59 | | -nav ul li a { |
| 68 | +.nav-link { |
60 | 69 | font-family: 'rampage-monoline', sans-serif; |
61 | 70 | font-size: 30px; |
62 | | - color: var(--accent-blue); |
| 71 | + color: #a9d3f5; |
63 | 72 | text-decoration: none; |
64 | | - padding: 5px 10px; |
65 | | - border-radius: 5px; |
66 | | - transition: background var(--transition-smooth), transform 0.2s ease; |
| 73 | + display: flex; |
| 74 | + align-items: center; |
| 75 | + position: relative; |
| 76 | + padding: 12px 20px; |
| 77 | + border-radius: 12px; |
| 78 | + background: rgba(255, 255, 255, 0.05); |
| 79 | + border: 1px solid rgba(255, 255, 255, 0.1); |
| 80 | + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
67 | 81 | } |
68 | 82 |
|
69 | | -nav ul li a:hover { |
70 | | - background: var(--primary-dark); |
71 | | - transform: scale(1.05); |
| 83 | +.nav-link:hover { |
| 84 | + background: rgba(255, 255, 255, 0.1); |
| 85 | + transform: translateY(-2px); |
| 86 | + border-color: var(--accent-color); |
| 87 | + box-shadow: 0 4px 15px rgba(231, 223, 105, 0.2); |
| 88 | +} |
| 89 | + |
| 90 | +.nav-link img { |
| 91 | + width: 30px; |
| 92 | + height: 30px; |
| 93 | + margin-right: 4px; |
| 94 | + vertical-align: middle; |
| 95 | + transition: transform 0.3s ease; |
| 96 | + filter: brightness(1.2); |
| 97 | +} |
| 98 | + |
| 99 | +.nav-link:hover img { |
| 100 | + transform: scale(1.1); |
| 101 | +} |
| 102 | + |
| 103 | +.nav-link span { |
| 104 | + position: relative; |
| 105 | + z-index: 1; |
| 106 | +} |
| 107 | + |
| 108 | +.nav-link::after { |
| 109 | + content: ''; |
| 110 | + position: absolute; |
| 111 | + bottom: -1px; |
| 112 | + left: 50%; |
| 113 | + width: 0; |
| 114 | + height: 2px; |
| 115 | + background: var(--accent-color); |
| 116 | + transition: all 0.3s ease; |
| 117 | + transform: translateX(-50%); |
| 118 | +} |
| 119 | + |
| 120 | +.nav-link:hover::after { |
| 121 | + width: 80%; |
| 122 | +} |
| 123 | + |
| 124 | +.nav-link.active { |
| 125 | + background: rgba(231, 223, 105, 0.15); |
| 126 | + border-color: var(--accent-color); |
| 127 | +} |
| 128 | + |
| 129 | +@media screen and (max-width: 768px) { |
| 130 | + .nav-container { |
| 131 | + padding: 0 10px; |
| 132 | + } |
| 133 | + |
| 134 | + nav ul { |
| 135 | + flex-wrap: wrap; |
| 136 | + justify-content: space-around; |
| 137 | + gap: 5px; |
| 138 | + } |
| 139 | + |
| 140 | + nav ul li { |
| 141 | + margin: 5px; |
| 142 | + } |
| 143 | + |
| 144 | + .nav-link { |
| 145 | + padding: 8px 12px; |
| 146 | + font-size: 24px; |
| 147 | + } |
| 148 | + |
| 149 | + .nav-link img { |
| 150 | + width: 20px; |
| 151 | + height: 20px; |
| 152 | + } |
| 153 | +} |
| 154 | + |
| 155 | +.nav-container::before, |
| 156 | +.nav-container::after { |
| 157 | + content: ''; |
| 158 | + position: absolute; |
| 159 | + top: 50%; |
| 160 | + transform: translateY(-50%); |
| 161 | + width: 15%; |
| 162 | + height: 40px; |
| 163 | + background: |
| 164 | + linear-gradient(30deg, #1a1a1a 12%, transparent 12.5%, transparent 87%, #1a1a1a 87.5%, #1a1a1a), |
| 165 | + linear-gradient(150deg, #1a1a1a 12%, transparent 12.5%, transparent 87%, #1a1a1a 87.5%, #1a1a1a), |
| 166 | + linear-gradient(30deg, #1a1a1a 12%, transparent 12.5%, transparent 87%, #1a1a1a 87.5%, #1a1a1a), |
| 167 | + linear-gradient(150deg, #1a1a1a 12%, transparent 12.5%, transparent 87%, #1a1a1a 87.5%, #1a1a1a); |
| 168 | + background-size: 20px 40px; |
| 169 | + opacity: 0.5; |
| 170 | +} |
| 171 | + |
| 172 | +.nav-container::before { |
| 173 | + left: 2%; |
| 174 | +} |
| 175 | + |
| 176 | +.nav-container::after { |
| 177 | + right: 2%; |
72 | 178 | } |
73 | 179 |
|
74 | 180 | /* Content Container */ |
|
0 commit comments