Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
115 lines (103 loc) · 2.06 KB
/
Copy pathstyle.css
File metadata and controls
115 lines (103 loc) · 2.06 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/* Fade-in sections */
html{
scroll-behavior: smooth;
}
.fade-in {
opacity: 0;
transform: translateY(30px);
transition: all 1s ease-out;
}
.fade-in.visible {
opacity: 1;
transform: translateY(0);
}
/* Navbar links underline animation */
.nav-link {
position: relative;
}
.nav-link::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: #c49b66; /* gold */
transition: width 0.3s ease;
}
.nav-link:hover::after {
width: 100%;
}
/* Animated gradient background */
section {
background-size: 200% 200%;
animation: gradientBG 20s ease infinite;
}
@keyframes gradientBG {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* Lightbox cursor */
#lightbox img {
cursor: pointer;
}
/* Navy accent animated scroll button */
.scroll-btn {
position: fixed;
width: 64px;
height: 64px;
border: 4px solid transparent;
border-radius: 12px;
background-color: #0b1e3b; /* navy background */
color: #ffbf00; /* amber text/icon */
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
overflow: hidden;
box-shadow: 0 0 0 2px #ffbf00;
transition: all 0.5s ease-in-out;
z-index: 50;
}
.scroll-btn:hover {
background-color: #050A20; /* darker navy on hover */
box-shadow: 0 0 0 12px transparent, 0 0 15px #ffbf00; /* amber glow */
border-radius: 16px;
}
.scroll-btn:active {
transform: scale(0.95);
}
/* Circle effect inside button */
.scroll-btn .circle {
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
background-color: #ffbf00;
border-radius: 50%;
opacity: 0;
transform: translate(-50%, -50%);
transition: all 0.5s ease-in-out;
}
.scroll-btn:hover .circle {
width: 220px;
height: 220px;
opacity: 0.1;
}
/* Arrow inside button */
.scroll-btn .arrow {
font-size: 24px;
z-index: 10;
transition: all 0.5s ease-in-out;
}
.scroll-btn.up {
bottom: 80px;
right: 32px;
}
.scroll-btn.down {
bottom: 16px;
right: 50%;
transform: translateX(50%);
}