simran40 commited on
Commit
d166d51
·
verified ·
1 Parent(s): d891ba8

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +81 -186
style.css CHANGED
@@ -56,51 +56,87 @@ body{
56
  overflow-x:hidden;
57
  }
58
 
59
- /* ===== HERO (SPACE FIX + GLASS ANIMATED) ===== */
 
 
 
 
 
 
 
 
60
  .hero{
61
- min-height:90vh; /* 👈 space kam */
62
  display:flex;
63
  justify-content:center;
64
  align-items:center;
65
- padding:40px 20px;
66
  }
67
 
 
68
  .hero-inner{
 
69
  text-align:center;
70
- padding:50px 60px;
71
- border-radius:32px;
72
 
73
- background:linear-gradient(
74
- 120deg,
75
- rgba(255,255,255,0.75),
76
- rgba(255,255,255,0.55)
77
- );
 
 
 
 
 
78
 
79
- backdrop-filter: blur(32px) saturate(160%);
80
  border:1px solid rgba(255,255,255,0.95);
81
 
82
  box-shadow:
83
- 0 40px 120px rgba(99,102,241,0.25),
84
- inset 0 1px 0 rgba(255,255,255,0.9);
85
 
86
- animation: glassFloat 6s ease-in-out infinite;
87
  }
88
 
89
- /* subtle glass movement */
90
- @keyframes glassFloat{
91
  0%{ transform:translateY(0); }
92
- 50%{ transform:translateY(-12px); }
93
  100%{ transform:translateY(0); }
94
  }
95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  /* ===== NAME ===== */
97
  .hero-name{
98
- font-size:56px;
99
- margin-bottom:12px; /* 👈 spacing tight */
100
- background:linear-gradient(90deg,
101
- var(--accent1),
102
- var(--accent2),
103
- var(--accent3)
 
104
  );
105
  -webkit-background-clip:text;
106
  -webkit-text-fill-color:transparent;
@@ -108,195 +144,54 @@ body{
108
 
109
  /* ===== SUBTITLE ===== */
110
  .hero-sub{
111
- font-size:16px;
112
  font-weight:500;
113
- color:#4338ca;
114
- margin-bottom:22px;
115
  }
116
 
117
  /* ===== TEXT ===== */
118
  .hero-text{
119
  max-width:620px;
120
- margin:0 auto 30px;
121
  font-size:16px;
122
  line-height:1.9;
123
- color:#374151;
124
  }
125
 
126
- /* ===== BUTTON GROUP ===== */
127
  .hero-buttons{
128
  display:flex;
129
  justify-content:center;
130
  gap:22px;
131
  }
132
 
133
- /* ===== GLASS BUTTON ===== */
134
  .glass-btn{
135
- padding:16px 42px;
 
136
  border-radius:999px;
137
- background:rgba(255,255,255,0.7);
138
- backdrop-filter: blur(18px);
139
- border:1px solid rgba(255,255,255,0.95);
140
-
141
- color:var(--accent1);
142
- font-weight:700;
143
- letter-spacing:1px;
144
- text-decoration:none;
145
-
146
- transition:.35s ease;
147
- }
148
-
149
- .glass-btn:hover{
150
- transform:scale(1.08);
151
- box-shadow:0 20px 60px rgba(236,72,153,0.35);
152
- }
153
-
154
 
155
- /* GLASS 3D */
156
- .glass-3d{
157
- background:linear-gradient(
158
- 180deg,
159
- rgba(255,255,255,0.75),
160
- rgba(255,255,255,0.55)
161
- );
162
- backdrop-filter:blur(28px) saturate(150%);
163
- border-radius:30px;
164
- border:1px solid rgba(255,255,255,0.95);
165
- box-shadow:
166
- 0 40px 120px rgba(99,102,241,0.25),
167
- inset 0 1px 0 rgba(255,255,255,0.95);
168
- transition:transform .45s ease, box-shadow .45s ease;
169
- }
170
 
171
- .glass-3d:hover{
172
- transform:translateY(-10px) rotateX(4deg);
173
- box-shadow:
174
- 0 70px 180px rgba(236,72,153,0.35),
175
- inset 0 1px 0 rgba(255,255,255,1);
176
- }
177
 
178
- /* BUTTON */
179
- .glass-btn{
180
- display:inline-flex;
181
- align-items:center;
182
- justify-content:center;
183
- padding:16px 42px;
184
- border-radius:999px;
185
- background:rgba(255,255,255,0.7);
186
- backdrop-filter:blur(18px);
187
- border:1px solid rgba(255,255,255,0.95);
188
  color:#4f46e5;
189
  font-weight:700;
190
  letter-spacing:1px;
191
  text-decoration:none;
192
- transition:.35s;
193
- }
194
 
195
- .glass-btn:hover{
196
- transform:scale(1.06);
197
- box-shadow:0 20px 60px rgba(99,102,241,.35);
198
- }
199
-
200
- .small{padding:12px 28px;}
201
-
202
- /* INFO SECTIONS */
203
- .info{
204
- max-width:900px;
205
- margin:80px auto;
206
- padding:40px;
207
- text-align:center;
208
- }
209
-
210
- .info h3{
211
- font-size:34px;
212
- margin-bottom:18px;
213
- color:#4f46e5;
214
- }
215
-
216
- .info span{
217
- color:#6b7280;
218
- }
219
-
220
- /* SKILLS */
221
- .skills{
222
- padding:120px 8% 60px;
223
- text-align:center;
224
- }
225
-
226
- .skills h3{
227
- font-size:36px;
228
- margin-bottom:50px;
229
- color:#4338ca;
230
- }
231
-
232
- .bubble-wrap{
233
- display:flex;
234
- flex-wrap:wrap;
235
- justify-content:center;
236
- gap:26px;
237
- }
238
-
239
- .bubble{
240
- padding:20px 34px;
241
- border-radius:999px;
242
- background:rgba(255,255,255,0.75);
243
- backdrop-filter:blur(22px);
244
- border:1px solid rgba(255,255,255,0.95);
245
- font-weight:600;
246
- color:#4f46e5;
247
- box-shadow:0 20px 50px rgba(99,102,241,.25);
248
- animation:floatBubble 6s ease-in-out infinite;
249
- transition:.4s;
250
- }
251
-
252
- .bubble:hover{
253
- transform:scale(1.15);
254
- box-shadow:0 30px 70px rgba(236,72,153,.4);
255
- }
256
-
257
- @keyframes floatBubble{
258
- 0%{transform:translateY(0);}
259
- 50%{transform:translateY(-18px);}
260
- 100%{transform:translateY(0);}
261
- }
262
-
263
- /* PROJECTS */
264
- .projects{
265
- padding:100px 8%;
266
- text-align:center;
267
- }
268
-
269
- .projects h3{
270
- font-size:36px;
271
- margin-bottom:50px;
272
- color:#4338ca;
273
- }
274
-
275
- .project-grid{
276
- display:grid;
277
- grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
278
- gap:40px;
279
  }
280
 
281
- .project{
282
- padding:34px;
283
- display:flex;
284
- flex-direction:column;
285
- }
286
-
287
- .project h4{
288
- font-size:22px;
289
- margin-bottom:10px;
290
- color:#312e81;
291
- }
292
-
293
- .project-action{
294
- margin-top:auto;
295
- }
296
-
297
- /* FOOTER */
298
- footer{
299
- text-align:center;
300
- padding:40px;
301
- color:#6b7280;
302
  }
 
56
  overflow-x:hidden;
57
  }
58
 
59
+ //* ===== NEW COLOR VARIABLES ===== */
60
+ :root{
61
+ --peach:#fda4af;
62
+ --lavender:#c4b5fd;
63
+ --ice:#67e8f9;
64
+ --ink:#334155;
65
+ }
66
+
67
+ /* ===== HERO BACKGROUND (MORE DREAMY) ===== */
68
  .hero{
69
+ min-height:88vh;
70
  display:flex;
71
  justify-content:center;
72
  align-items:center;
73
+ padding:30px 20px;
74
  }
75
 
76
+ /* ===== ULTRA GLASS LAYERED HERO ===== */
77
  .hero-inner{
78
+ position:relative;
79
  text-align:center;
80
+ padding:54px 64px;
81
+ border-radius:36px;
82
 
83
+ /* layered glass */
84
+ background:
85
+ linear-gradient(
86
+ 135deg,
87
+ rgba(255,255,255,0.85),
88
+ rgba(255,255,255,0.55)
89
+ );
90
+
91
+ backdrop-filter: blur(36px) saturate(170%);
92
+ -webkit-backdrop-filter: blur(36px) saturate(170%);
93
 
 
94
  border:1px solid rgba(255,255,255,0.95);
95
 
96
  box-shadow:
97
+ 0 50px 140px rgba(99,102,241,0.25),
98
+ inset 0 1px 0 rgba(255,255,255,0.95);
99
 
100
+ animation: floatGlass 7s ease-in-out infinite;
101
  }
102
 
103
+ /* soft floating */
104
+ @keyframes floatGlass{
105
  0%{ transform:translateY(0); }
106
+ 50%{ transform:translateY(-14px); }
107
  100%{ transform:translateY(0); }
108
  }
109
 
110
+ /* subtle glass shine */
111
+ .hero-inner::after{
112
+ content:"";
113
+ position:absolute;
114
+ inset:0;
115
+ border-radius:36px;
116
+ background:linear-gradient(
117
+ 120deg,
118
+ transparent 35%,
119
+ rgba(255,255,255,0.6),
120
+ transparent 65%
121
+ );
122
+ opacity:0.6;
123
+ animation: shine 6s linear infinite;
124
+ }
125
+
126
+ @keyframes shine{
127
+ from{ transform:translateX(-120%); }
128
+ to{ transform:translateX(120%); }
129
+ }
130
+
131
  /* ===== NAME ===== */
132
  .hero-name{
133
+ font-size:58px;
134
+ margin-bottom:10px;
135
+ background:linear-gradient(
136
+ 90deg,
137
+ var(--lavender),
138
+ var(--peach),
139
+ var(--ice)
140
  );
141
  -webkit-background-clip:text;
142
  -webkit-text-fill-color:transparent;
 
144
 
145
  /* ===== SUBTITLE ===== */
146
  .hero-sub{
147
+ font-size:15.5px;
148
  font-weight:500;
149
+ color:#6366f1;
150
+ margin-bottom:20px;
151
  }
152
 
153
  /* ===== TEXT ===== */
154
  .hero-text{
155
  max-width:620px;
156
+ margin:0 auto 28px;
157
  font-size:16px;
158
  line-height:1.9;
159
+ color:var(--ink);
160
  }
161
 
162
+ /* ===== BUTTONS (PURE GLASS) ===== */
163
  .hero-buttons{
164
  display:flex;
165
  justify-content:center;
166
  gap:22px;
167
  }
168
 
 
169
  .glass-btn{
170
+ position:relative;
171
+ padding:16px 44px;
172
  border-radius:999px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
 
174
+ background:
175
+ linear-gradient(
176
+ 135deg,
177
+ rgba(255,255,255,0.9),
178
+ rgba(255,255,255,0.6)
179
+ );
 
 
 
 
 
 
 
 
 
180
 
181
+ backdrop-filter: blur(22px);
182
+ border:1px solid rgba(255,255,255,1);
 
 
 
 
183
 
 
 
 
 
 
 
 
 
 
 
184
  color:#4f46e5;
185
  font-weight:700;
186
  letter-spacing:1px;
187
  text-decoration:none;
 
 
188
 
189
+ transition:.4s ease;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  }
191
 
192
+ .glass-btn:hover{
193
+ transform:scale(1.1);
194
+ box-shadow:
195
+ 0 25px 70px rgba(253,164,175,0.45),
196
+ 0 0 0 8px rgba(196,181,253,0.15);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
197
  }