-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
94 lines (81 loc) · 1.33 KB
/
Copy pathstyle.css
File metadata and controls
94 lines (81 loc) · 1.33 KB
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
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
}
body {
font-family: 'Segoe UI', sans-serif;
}
section {
padding: 100px 20px;
min-height: 100vh;
}
/* Navbar styles */
nav {
position: fixed;
width: 100%;
top: 0;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
backdrop-filter: blur(10px);
background-color: rgba(255, 255, 255, 0.1);
transition: 0.3s ease;
z-index: 999;
}
nav.scrolled {
background-color: green;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: #fff;
}
/* Nav Links */
nav ul {
list-style: none;
display: flex;
gap: 1.5rem;
}
nav ul li a {
color: #ffffff;
text-decoration: none;
font-weight: 500;
position: relative;
transition: 0.3s ease;
}
/* Underline animation */
nav ul li a::after {
content: "";
position: absolute;
left: 0;
bottom: -5px;
width: 0;
height: 2px;
background: #00ffff;
transition: 0.4s ease;
}
nav ul li a:hover::after {
width: 100%;
}
nav ul li a:hover {
color: #00ffff;
}
/* Hamburger */
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
}
.hamburger span {
height: 3px;
width: 25px;
background: white;
margin: 4px 0;
transition: all 0.3s ease;
}
/* Responsive*