-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
131 lines (112 loc) · 2.81 KB
/
Copy pathstyle.css
File metadata and controls
131 lines (112 loc) · 2.81 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
/* --- Global Reset & Variables --- */
:root {
--primary-color: #00ffa2;
--dark-color: #333;
--light-color: #f4f4f4;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html {
scroll-behavior: smooth;
}
body {
line-height: 1.6;
color: var(--dark-color);
}
/* --- Typography & Utilities --- */
h1, h2, h3 { margin-bottom: 15px; }
h2 { text-align: center; font-size: 2.5rem; margin-bottom: 30px; }
a { text-decoration: none; color: inherit; }
section { padding: 80px 20px; }
.bg-light { background-color: var(--light-color); }
.highlight { color: var(--primary-color); }
/* --- Navigation --- */
header {
background: #fff;
color: var(--dark-color);
padding: 20px 40px;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: background 0.3s ease;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
}
.nav-links {
list-style: none;
display: flex;
}
.nav-links li {
padding: 0 15px;
}
.nav-links a:hover {
color: var(--primary-color);
}
/* --- Hero Section --- */
.hero {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1778090887585-b27fae5b6f03?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
color: #fff;
}
.hero h1 { font-size: 4rem; }
.typing-text { font-size: 1.5rem; margin-bottom: 20px; }
.btn {
display: inline-block;
padding: 10px 20px;
background: var(--primary-color);
color: #fff;
border-radius: 5px;
transition: background 0.3s;
}
.btn:hover { background: #0056b3; }
/* --- About Section --- */
#about {
text-align: center;
max-width: 800px;
margin: auto;
}
/* --- Projects Section (CSS Grid) --- */
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
max-width: 1100px;
margin: auto;
}
.card {
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.card:hover { transform: translateY(-10px); }
/* --- Contact & Footer --- */
#contact { text-align: center; }
footer {
text-align: center;
padding: 20px;
background: var(--dark-color);
color: #fff;
}
/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
.nav-links { display: none; /* In a real project, you'd add a hamburger menu here */ }
header { justify-content: center; }
.hero h1 { font-size: 2.5rem; }
}