11
11
}
12
12
13
13
body {
14
- background-color : var ( --dark-gray );
14
+ /* Remove background-color from body */
15
15
color : var (--light-gray );
16
16
font-family : 'Arial' , sans-serif;
17
17
margin : 0 ;
18
18
padding : 0 ;
19
- transition : margin-right 0.3s ease;
20
19
}
21
20
22
- h1 , h2 , h3 {
23
- color : var (--white );
24
- font-family : 'Poppins' , sans-serif;
21
+ # app {
22
+ background-color : var (--dark-gray );
23
+ min-height : 100vh ;
24
+ display : flex; /* Use flexbox for layout */
25
25
}
26
26
27
+ /* Navbar styles (restored) */
27
28
nav {
28
29
background-color : rgba (44 , 44 , 44 , 0.85 );
29
30
position : fixed;
30
- top : 50% ; /* Move the top edge to the middle of the screen */
31
+ top : 50% ; /* Original vertical centering */
31
32
right : 0 ;
32
- transform : translateY (-50% ); /* Shift the navbar up by half its height to center it */
33
- border-radius : 9999px ;
34
- height : 300px ;
35
- width : 100 % ;
33
+ transform : translateY (-50% ); /* Original vertical centering */
34
+ border-radius : 9999px ; /* Original rounded corners */
35
+ height : 300px ; /* Original height */
36
+ width : 60 px ; /* Closed state width */
36
37
z-index : 100 ;
37
38
transition : width 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
38
- box-shadow : 0 4px 6px rgba (0 , 0 , 0 , 0.3 ); /* Add drop shadow */
39
- border : 2px solid white; /* Add white stroke */
39
+ box-shadow : 0 4px 6px rgba (0 , 0 , 0 , 0.3 );
40
+ border : 2px solid white;
40
41
}
41
42
42
- /* Apply frosted glass effect when the navbar is minimized */
43
- nav .backdrop-filter-blur {
44
- backdrop-filter : blur (5px ); /* Adjust the blur value as needed */
45
- -webkit-backdrop-filter : blur (5px ); /* For Safari */
43
+ /* Apply frosted glass effect when the navbar is open */
44
+ nav .nav-open { /* Use the correct class for open state */
45
+ backdrop-filter : blur (5px );
46
+ -webkit-backdrop-filter : blur (5px );
46
47
background-color : rgba (44 , 44 , 44 , 0.5 ); /* Adjust background opacity */
47
48
}
48
49
@@ -51,164 +52,144 @@ nav ul {
51
52
padding : 0 ;
52
53
margin : 0 ;
53
54
display : flex;
55
+ flex-direction : column; /* Vertical menu */
56
+ align-items : center;
57
+ height : 100% ;
54
58
justify-content : space-around;
55
59
}
56
60
57
- /* Text depth */
58
- nav ul li a . text-shadow-lg {
59
- text-shadow : 2 px 2 px 4 px rgba ( 0 , 0 , 0 , 0.5 ) ;
61
+ nav li {
62
+ width : 100 % ;
63
+ text-align : center ;
60
64
}
61
65
62
66
nav li a {
63
67
color : var (--light-gray );
64
68
text-decoration : none;
65
- padding : 1 rem ;
69
+ padding : 10 px ;
66
70
display : block;
67
- transition : color 0.3s ease;
68
- transition : transform 0.2s ease;
69
- font-family : 'Poppins' , sans-serif; /* Apply Poppins font */
71
+ transition : color 0.3s ease, transform 0.2s ease;
72
+ font-family : 'Poppins' , sans-serif;
70
73
font-weight : 700 ;
74
+ white-space : nowrap; /* Prevent text wrapping */
71
75
}
72
76
73
77
nav li a : hover {
74
78
color : var (--electric-cyan );
75
- transform : scale (1.20 );
79
+ transform : scale (1.1 );
76
80
text-decoration : none;
77
81
}
78
82
79
- # about {
80
- padding : 4rem ;
83
+ /* Navbar open state */
84
+ nav .nav-open {
85
+ width : 200px ; /* Open state width */
86
+ background-color : rgba (44 , 44 , 44 , 0.95 ); /* Slightly more opaque when open */
81
87
}
82
88
83
- # portfolio {
84
- padding : 4 rem ;
85
- background-color : var ( --charcoal );
89
+ /* Text depth */
90
+ nav ul li a . text-shadow-lg {
91
+ text-shadow : 2 px 2 px 4 px rgba ( 0 , 0 , 0 , 0.5 );
86
92
}
87
93
88
- .project-card {
89
- background-color : var (--dark-gray );
90
- padding : 2rem ;
91
- margin-bottom : 2rem ;
92
- border-radius : 5px ;
93
- transition : transform 0.3s ease, box-shadow 0.3s ease;
94
+ /* Main content shifting */
95
+ .content-shifted {
96
+ margin-right : 60px ; /* Match closed navbar width */
97
+ transition : margin-right 0.3s ease;
98
+ flex-grow : 1 ; /* Allow main content to fill available space */
94
99
}
95
100
96
- .project-card : hover {
97
- transform : translateY (-5px );
98
- box-shadow : 0 4px 8px rgba (0 , 0 , 0 , 0.5 );
101
+ .content-shifted-open {
102
+ margin-right : 200px ; /* Match open navbar width */
103
+ transition : margin-right 0.3s ease;
104
+ flex-grow : 1 ;
99
105
}
100
106
101
- .project-card h3 {
102
- margin-bottom : 1rem ;
107
+ /* Two-column layout */
108
+ .two-column-container {
109
+ display : flex;
110
+ gap : 20px ;
111
+ padding : 20px ;
112
+ align-items : flex-start;
103
113
}
104
114
105
- .project-card button {
106
- background-color : var (--electric-cyan );
107
- color : var (--white );
108
- border : none;
109
- padding : 0.5rem 1rem ;
110
- margin-right : 1rem ;
111
- font-size : 1rem ;
112
- cursor : pointer;
113
- transition : background-color 0.3s ease
114
- }
115
+ /* ... other section styles (Projects, Contact, etc.) ... */
115
116
116
- .project-card button : nth-child (3 ) {
117
- background-color : var (--lime-green );
118
- }
117
+ /* Responsive adjustments */
118
+ @media (max-width : 768px ) { /* Adjust breakpoint as needed */
119
+ .content-shifted {
120
+ margin-right : 0 ; /* No margin when navbar is hidden */
121
+ }
119
122
120
- . project-card button : hover {
121
- background-color : var ( --lime-green );
122
- }
123
+ . content-shifted-open {
124
+ margin-right : 0 ; /* No margin when navbar is hidden */
125
+ }
123
126
124
- # skills {
125
- padding : 4 rem ;
126
- }
127
+ . two-column-container {
128
+ flex-direction : column ;
129
+ }
127
130
128
- .skill-category {
129
- margin-bottom : 2rem ;
130
- }
131
+ nav {
132
+ width : 100% ; /* Full width when closed on mobile */
133
+ height : auto; /* Auto height when closed */
134
+ bottom : 0 ; /* Position at the bottom on mobile */
135
+ top : auto; /* Reset top positioning */
136
+ transform : none;
137
+ border-radius : 0 ;
138
+ }
131
139
132
- # contact {
133
- padding : 4rem ;
134
- background-color : var (--charcoal );
135
- text-align : center;
136
- }
140
+ nav ul {
141
+ flex-direction : row; /* Horizontal menu on mobile */
142
+ justify-content : space-around;
143
+ }
137
144
138
- # contact form {
139
- max-width : 500px ;
140
- margin : 0 auto;
141
- }
145
+ nav li {
146
+ margin-bottom : 0 ; /* Reset margin for horizontal layout */
147
+ }
142
148
143
- # contact input ,
144
- # contact textarea {
145
- background-color : var (--dark-gray );
146
- color : var (--light-gray );
147
- border : none;
148
- padding : 1rem ;
149
- margin-bottom : 1rem ;
150
- width : 100% ;
151
- border-radius : 5px ;
149
+ nav .nav-open {
150
+ width : 100% ; /* Full width when open on mobile */
151
+ height : auto;
152
+ bottom : auto;
153
+ top : 0 ; /* Position at top when open */
154
+ }
152
155
}
153
156
154
- # contact button {
155
- background-color : var (--electric-cyan );
156
- color : var (--white );
157
- border : none;
158
- padding : 1rem 2rem ;
159
- font-size : 1.2rem ;
160
- cursor : pointer;
161
- transition : background-color 0.3s ease;
157
+ /* Hero Section Styles */
158
+ .hero {
159
+ text-align : left;
160
+ margin-bottom : 2rem ;
162
161
}
163
162
164
- # contact button : hover {
165
- background-color : var (--lime-green );
163
+ .hero h1 {
164
+ font-size : 3rem ; /* Adjust as needed */
165
+ font-weight : bold;
166
+ color : var (--white );
167
+ margin-bottom : 0.5rem ;
166
168
}
167
169
168
- footer {
169
- background-color : var (--dark-gray );
170
- padding : 1rem ;
171
- text-align : center;
170
+ .hero h2 {
171
+ font-size : 1.5rem ; /* Adjust as needed */
172
+ font-weight : bold;
173
+ color : var (--white );
174
+ margin-bottom : 1rem ;
172
175
}
173
176
174
- .two-column-container {
175
- display : grid;
176
- grid-template-columns : 1fr 1fr ;
177
- gap : 20px ;
178
- padding : 20px ;
179
- align-items : flex-start;
180
- min-height : auto;
181
- margin-top : 100px ;
177
+ .hero .h-1 { /* Target the specific line */
178
+ height : 2px ; /* Adjust as needed */
179
+ background-color : var (--electric-cyan );
180
+ width : 25% ;
181
+ margin-bottom : 1rem ;
182
182
}
183
183
184
- .hero {
185
- text-align : left;
186
- margin-bottom : 2rem ;
187
- }
188
184
.hero p {
189
185
margin-top : 1rem ;
190
186
font-size : 1.125rem ;
191
- color : # d1d5db ;
192
- /* Add your custom styles */
193
- font-family : 'Arial' , sans-serif; /* Change font family */
187
+ color : var (--light-gray );
188
+ font-family : 'Arial' , sans-serif;
194
189
}
195
190
191
+ /* Intro Section Styles */
196
192
.intro {
197
193
text-align : left;
198
194
margin-top : 40px ;
199
- }
200
-
201
- @media (max-width : 600px ) {
202
- .content-shifted {
203
- margin-right : 40px ; /* Adjust based on closed navbar width on small screens */
204
- }
205
- .content-shifted-open {
206
- margin-right : 90px ;
207
- }
208
- }
209
- .content-shifted {
210
- margin-right : 100px ;
211
- }
212
- .content-shifted-open {
213
- margin-right : 100px ;
214
195
}
0 commit comments