-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
198 lines (173 loc) · 8.96 KB
/
Copy pathstyle.css
File metadata and controls
198 lines (173 loc) · 8.96 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
192
193
194
195
196
197
198
/* style.css — development (readable) styles for Boahene Prince portfolio */
:root{
/* Dark theme (default) */
--bg:#0f1720; /* charcoal */
--card:#111827;
--muted:#94a3b8;
--accent:#06b6d4; /* electric blue / turquoise */
--glass: rgba(255,255,255,0.02);
--text-primary: #e6eef6;
--text-secondary: #94a3b8;
--radius:12px;
--max-width:1100px;
--ff: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}
/* Light theme */
:root[data-theme="light"] {
--bg: #ffffff;
--card: #f8fafc;
--muted: #64748b;
--accent: #0891b2;
--glass: rgba(0,0,0,0.02);
--text-primary: #0f172a;
--text-secondary: #475569;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
margin:0;
font-family:var(--ff);
background:var(--bg);
color:var(--text-primary);
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
line-height:1.5;
transition: background-color 0.3s ease, color 0.3s ease;
}
.container{
max-width:var(--max-width);
margin:0 auto;
padding:2rem 1rem;
}
/* Header / Nav */
.site-header{
position:sticky;
top:0;
z-index:50;
backdrop-filter: blur(6px);
background: linear-gradient(180deg, rgba(15,23,32,0.6), rgba(15,23,32,0.35));
border-bottom:1px solid rgba(255,255,255,0.03);
}
.nav-container{display:flex;align-items:center;justify-content:space-between}
.logo{color:var(--text-primary);text-decoration:none;font-weight:700;letter-spacing:0.2px}
.nav{display:block}
.nav-list{display:flex;gap:1rem;list-style:none;margin:0;padding:0}
.nav-link{color:var(--muted);text-decoration:none;padding:0.6rem 0.4rem;border-radius:6px;transition:all .18s ease}
.nav-link:hover{color:var(--text-primary);background:var(--glass)}
.nav-link.active{color:var(--text-primary);box-shadow:inset 0 -2px 0 var(--accent)}
.nav-toggle{display:none;background:none;border:0;color:inherit}
.nav-toggle .hamburger{width:24px;height:2px;background:var(--muted);display:block;position:relative}
.nav-toggle .hamburger::before,.nav-toggle .hamburger::after{content:'';position:absolute;left:0;right:0;height:2px;background:var(--muted);transition:transform .25s ease,top .25s ease, opacity .25s}
.nav-toggle .hamburger::before{top:-7px}
.nav-toggle .hamburger::after{top:7px}
.nav-toggle.open .hamburger{background:transparent}
.nav-toggle.open .hamburger::before{transform:rotate(45deg);top:0;background:#fff}
.nav-toggle.open .hamburger::after{transform:rotate(-45deg);top:0;background:#fff}
/* Theme Toggle */
.theme-toggle {
background: var(--glass);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 50%;
width: 42px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
color: var(--muted);
cursor: pointer;
transition: all 0.3s ease;
margin-right: 0.5rem;
}
.theme-toggle:hover {
background: var(--accent);
color: white;
transform: scale(1.05);
}
:root[data-theme="light"] .theme-toggle {
border: 1px solid rgba(0,0,0,0.1);
}
/* Hero */
.hero{min-height:100vh;display:flex;align-items:center}
.hero-inner{display:grid;grid-template-columns:1fr 380px;gap:2rem;align-items:center}
.hero-content h1{font-size:clamp(2rem,4vw,3rem);margin:0}
.tagline{color:var(--accent);font-weight:600;margin:0.25rem 0 1rem}
.hero-lead{color:var(--muted);max-width:60ch}
.hero-cta{margin-top:1.25rem;display:flex;gap:0.75rem}
.btn{display:inline-flex;align-items:center;gap:0.5rem;padding:0.7rem 1rem;border-radius:10px;text-decoration:none;border:1px solid transparent;cursor:pointer}
.btn.primary{background:linear-gradient(90deg,var(--accent),#06a6c2);color:#042027;font-weight:600}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.06);color:#fff}
.hero-illustration{display:flex;align-items:center;justify-content:center}
.shape{width:160px;height:160px;border-radius:18px;filter:blur(28px);opacity:.9}
.shape-1{background:linear-gradient(135deg,#06b6d4, #0ff6d2);transform:translateY(-20px)}
.shape-2{background:linear-gradient(135deg,#7dd3fc,#7c3aed);width:120px;height:120px;margin-top:40px}
/* Sections */
.section{padding:6rem 0}
.section h2{margin-top:0;font-size:1.6rem}
.muted{color:var(--muted)}
/* About */
.skills{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem;padding:0;list-style:none}
.skills li{background:linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));padding:.4rem .6rem;border-radius:8px;color:var(--muted);font-weight:600}
/* Services */
.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem;margin-top:1.5rem}
.service-card{background:var(--card);padding:1.2rem;border-radius:12px;box-shadow:0 6px 18px rgba(2,6,23,0.6);transition:transform .22s ease, box-shadow .22s ease}
.service-card:hover{transform:translateY(-6px);box-shadow:0 12px 30px rgba(2,6,23,0.8)}
.card-icon{width:54px;height:54px;border-radius:10px;background:linear-gradient(135deg,var(--accent),#06a6c2);display:flex;align-items:center;justify-content:center;font-size:1.25rem;color:#002e2f;margin-bottom:.6rem}
/* Certifications */
.certifications-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.25rem;margin-top:1.5rem}
.cert-card{background:var(--card);padding:1.5rem;border-radius:12px;box-shadow:0 6px 18px rgba(2,6,23,0.6);transition:transform .22s ease, box-shadow .22s ease;display:flex;align-items:flex-start;gap:1rem}
.cert-card:hover{transform:translateY(-6px);box-shadow:0 12px 30px rgba(2,6,23,0.8)}
.cert-icon{width:54px;height:54px;border-radius:10px;background:linear-gradient(135deg,var(--accent),#06a6c2);display:flex;align-items:center;justify-content:center;font-size:1.25rem;color:#002e2f;flex-shrink:0}
.cert-info{flex:1}
.cert-info h3{margin:0 0 0.5rem;font-size:1.1rem}
.cert-issuer{color:var(--muted);font-size:0.9rem;margin:0.25rem 0}
.cert-date{color:var(--muted);font-size:0.85rem;margin:0.25rem 0 1rem}
.cert-link{display:inline-flex;align-items:center;gap:0.5rem;color:var(--accent);text-decoration:none;font-weight:600;font-size:0.9rem;padding:0.5rem 0.75rem;border:1px solid var(--accent);border-radius:6px;transition:all .22s ease}
.cert-link:hover{background:var(--accent);color:#002e2f}
/* Projects Grid */
.projects-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem;margin-top:1.25rem}
.project-card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.project-media{height:180px;display:flex;align-items:center;justify-content:center;padding:1rem;color:#042027;font-weight:700}
.project-media img{width:100%;height:100%;object-fit:cover;display:block}
.project-info{padding:1rem}
.project-desc{color:var(--muted);margin:.5rem 0}
.project-link{color:var(--accent);text-decoration:none;font-weight:600}
.project-card:hover .project-media{transform:scale(1.03)}
/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 320px;gap:2rem;align-items:start}
.contact-card{background:var(--card);padding:1.25rem;border-radius:12px}
.contact-form label{display:block;margin-top:0.75rem;font-size:.9rem;color:var(--muted)}
.contact-form input,.contact-form textarea{width:100%;padding:.6rem;border-radius:8px;border:1px solid rgba(255,255,255,0.03);background:transparent;color:inherit;margin-top:.35rem}
.social{list-style:none;padding:0;margin:1rem 0 0}
.social li a{display:inline-flex;align-items:center;gap:.6rem;color:var(--muted);text-decoration:none;padding:.4rem .2rem;border-radius:8px}
.social li a:hover{color:#fff}
/* Footer */
.site-footer{border-top:1px solid rgba(255,255,255,0.03);padding:1.25rem 0;margin-top:2rem}
.footer-inner{display:flex;justify-content:space-between;align-items:center}
/* Responsive */
@media (max-width:1000px){
.hero-inner{grid-template-columns:1fr 1fr}
.container{padding:1.5rem}
}
@media (max-width:800px){
.services-grid{grid-template-columns:1fr}
.certifications-grid{grid-template-columns:1fr}
.projects-grid{grid-template-columns:1fr}
.contact-grid{grid-template-columns:1fr}
.hero-inner{grid-template-columns:1fr}
.hero-illustration{display:none}
}
@media (max-width:640px){
.nav-list{position:fixed;top:64px;right:0;background:linear-gradient(180deg, rgba(15,23,32,0.98), rgba(15,23,32,0.96));width:220px;height:calc(100% - 64px);flex-direction:column;padding:1rem;transform:translateX(105%);transition:transform .25s ease}
.nav-list.open{transform:translateX(0)}
.nav-toggle{display:block}
.nav{display:block}
.nav-link{padding:0.9rem 0.7rem}
.theme-toggle{width: 38px; height: 38px; margin-right: 0.75rem;}
}
/* small helpers */
.muted{opacity:.9}
/* small animation */
@keyframes floaty{0%{transform:translateY(0)}50%{transform:translateY(-6px)}100%{transform:translateY(0)}}
.shape-1{animation:floaty 6s ease-in-out infinite}
/* Accessibility focus */
a:focus, button:focus, input:focus, textarea:focus{outline:2px dashed rgba(6,182,212,0.35);outline-offset:3px}