-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
191 lines (159 loc) · 5.9 KB
/
style.css
File metadata and controls
191 lines (159 loc) · 5.9 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/* Global Styles */
* {
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body { background: #080808; color: #fff; }
/* Header */
#header {
width: 100%;
background-image: url(images/blackbackground.png);
background-size: cover;
background-position: center;
padding: 100px 0;
}
.container { padding: 10px 10%; }
.header-text { text-align: center; padding: 20px 0; }
.header-text h1 { font-size: 48px; margin-bottom: 10px; }
.header-text p { font-size: 24px; margin-bottom: 0; }
/* Header quick links (LinkedIn + Resume) */
.header-links {
display: flex;
justify-content: center;
gap: 12px;
margin-top: 10px;
}
.icon-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 44px; height: 44px;
border-radius: 999px;
border: 1px solid #ffffff33;
background: #111; color: #fff;
text-decoration: none;
transition: transform .15s ease, background .3s ease, border-color .3s ease;
}
.icon-btn i { font-size: 20px; line-height: 1; }
.icon-btn:hover, .icon-btn:focus-visible {
background: #ff004f; border-color: #ff004f; transform: translateY(-1px); outline: none;
}
/* Navigation */
nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
nav ul li { display: inline-block; list-style: none; margin: 10px 20px; }
nav ul li a { color: #fff; text-decoration: none; font-size: 18px; position: relative; }
nav ul li a::after {
content: ''; width: 0; height: 3px; background: #ff004f;
position: absolute; left: 0; bottom: -6px; transition: 0.5s;
}
nav ul li a:hover::after { width: 100%; }
/* Hide the open/close icons on desktop, show on mobile */
.nav-open, .nav-close { display: none; }
/* About Section */
#about { padding: 20px 0; color: #ababab; }
.row { display: flex; justify-content: space-between; flex-wrap: wrap; }
.about-col-2 { flex-basis: 100%; }
.sub-title { font-size: 60px; font-weight: 600; color: #fff; }
.tab-titles { display: flex; margin: 20px 0 40px; }
.tab-links { margin-right: 50px; font-size: 18px; font-weight: 500; cursor: pointer; position: relative; }
.tab-links::after {
content: ''; width: 0; height: 3px; background: #ff004f;
position: absolute; left: 0; bottom: -8px; transition: 0.5s;
}
.tab-links.active-link::after { width: 50%; }
.tab-contents ul li { list-style: none; margin: 10px 0; }
.tab-contents ul li span { color: #b54769; font-size: 14px; }
.tab-contents { display: none; }
.tab-contents.active-tab { display: block; }
/* Portfolio Section */
#portfolio { padding: 50px 0; }
.work {
display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 40px;
}
.work img, .work video {
width: 100%; max-width: 300px;
border-radius: 10px; display: block; margin-right: 20px;
}
.work div { flex: 1; }
/* Align Knomedic text with top row of photos */
#knomedic { align-items: flex-start; }
.work h3 { margin: 0 0 10px 0; color: #ff004f; }
.work p { color: #ababab; }
/* 2x2 image grid for Knowmedic, text to the right */
.gallery-4 {
display: grid; grid-template-columns: repeat(2, 1fr);
gap: 12px; margin-right: 24px; width: 100%; max-width: 420px;
}
.work .gallery-4 img {
max-width: none; margin-right: 0; width: 100%; height: auto;
border-radius: 10px; cursor: zoom-in;
}
/* Knowmedic subsection styling */
.knomedic-text { min-width: 280px; }
.knomedic-text h4 { margin: 18px 0 8px 0; font-size: 20px; color: #fff; }
.km-section { margin-bottom: 8px; }
.knomedic-text ul { margin-left: 1.25rem; color: #ababab; line-height: 1.6; list-style: disc; }
.knomedic-text li { margin: 6px 0; }
/* Buttons */
.btn {
display: block; margin: 50px auto; width: fit-content;
border: 1px solid #ff004f; padding: 14px 50px; border-radius: 6px;
text-decoration: none; color: #fff; transition: background 0.5s;
}
.btn:hover { background: #ff004f; }
/* -------- Image Modal (fullscreen-style, contained fit) -------- */
#img-modal[aria-hidden="true"] { display: none; }
#img-modal {
position: fixed; inset: 0; background: rgba(0,0,0,0.93);
display: grid; place-items: center; z-index: 9999; padding: 16px;
}
#img-modal .img-stage {
width: min(96vw, 1400px); height: min(96vh, 96vh);
display: flex; align-items: center; justify-content: center;
}
#img-modal img {
width: 100%; height: 100%; object-fit: contain; border-radius: 10px;
}
#img-modal:fullscreen .img-stage, /* Safari/WebKit */
#img-modal:-webkit-full-screen .img-stage {
width: 100vw; height: 100vh;
}
.modal-btn {
position: absolute; top: 16px;
background: rgba(0,0,0,0.6); border: 1px solid #ffffff55;
color: #fff; padding: 10px 12px; border-radius: 10px;
cursor: pointer; font-size: 18px; line-height: 1;
}
.modal-btn.close { right: 16px; }
.modal-btn.fs { right: 56px; }
/* ---------- Small screens ---------- */
@media only screen and (max-width: 600px) {
/* mobile header image override (same background) */
#header { background-image: url(images/blackbackground.png); }
.header-text { margin-top: 100%; font-size: 16px; }
.header-text h1 { font-size: 30px; }
/* show the open/close icons on mobile */
.nav-open, .nav-close { display: block; font-size: 25px; }
nav ul {
background: #ff004f;
position: fixed; top: 0; right: -200px;
width: 200px; height: 100vh; padding-top: 50px;
z-index: 2; transition: right 0.5s;
}
nav ul li { display: block; margin: 25px; }
/* position the X icon inside the slide-out menu */
nav ul .nav-close { position: absolute; top: 25px; left: 25px; cursor: pointer; }
.sub-title { font-size: 40px; }
.about-col-2 { flex-basis: 100%; font-size: 14px; }
.tab-links { font-size: 16px; margin-right: 20px; }
.work { flex-direction: column; } /* text under media on small screens */
.work img, .work video { margin-right: 0; margin-bottom: 20px; }
.gallery-4 {
margin-right: 0; margin-bottom: 20px;
grid-template-columns: repeat(2, 1fr); max-width: none;
}
.modal-btn { font-size: 20px; padding: 12px 14px; }
}