simran40 commited on
Commit
56ad02e
·
verified ·
1 Parent(s): a17a186

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +89 -105
style.css CHANGED
@@ -1,132 +1,116 @@
1
- * {
2
- margin: 0;
3
- padding: 0;
4
- box-sizing: border-box;
5
- font-family: "Segoe UI", system-ui, sans-serif;
6
  }
7
 
8
- /* ===== BACKGROUND (NEON DARK) ===== */
9
- body {
10
- min-height: 100vh;
11
  background:
12
- radial-gradient(circle at 10% 20%, #00f5d4 0%, transparent 40%),
13
- radial-gradient(circle at 90% 30%, #c77dff 0%, transparent 45%),
14
- radial-gradient(circle at 50% 90%, #4cc9f0 0%, transparent 40%),
15
- linear-gradient(180deg, #050816, #050816);
16
- color: #f8fafc;
17
- padding: 50px 16px;
18
  }
19
 
20
- /* ===== GLASS CARD ===== */
21
- .glass {
22
- max-width: 900px;
23
- margin: 0 auto 70px;
24
- padding: 40px;
25
- border-radius: 28px;
26
-
27
- background: rgba(255, 255, 255, 0.18); /* 👈 transparent */
28
- backdrop-filter: blur(20px); /* 👈 GLASS */
29
- -webkit-backdrop-filter: blur(20px);
30
-
31
- border: 1px solid rgba(255, 255, 255, 0.35);
32
- box-shadow:
33
- 0 30px 80px rgba(0, 0, 0, 0.7),
34
- inset 0 0 1px rgba(255,255,255,0.6);
35
-
36
- transition: all 0.4s ease;
37
- }
38
-
39
- /* hover = more glass */
40
- .glass:hover {
41
- background: rgba(255, 255, 255, 0.25);
42
- transform: translateY(-6px);
43
  }
44
 
45
- /* ===== HEADINGS ===== */
46
- h1 {
47
- font-size: 38px;
48
- margin-bottom: 10px;
49
- background: linear-gradient(90deg, #00f5d4, #c77dff, #4cc9f0);
50
- -webkit-background-clip: text;
51
- -webkit-text-fill-color: transparent;
 
 
 
 
52
  }
53
 
54
- .subtitle {
55
- font-size: 16px;
56
- opacity: 0.85;
57
- margin-bottom: 18px;
 
 
 
 
 
 
 
58
  }
59
 
60
- h2 {
61
- font-size: 24px;
62
- margin-bottom: 18px;
63
- color: #e0f2fe;
64
  }
65
 
66
- p {
67
- font-size: 15.5px;
68
- line-height: 1.8;
69
- color: #e5e7eb;
 
70
  }
71
 
72
- /* ===== BUTTON ===== */
73
- .btn {
74
- display: inline-block;
75
- margin-top: 18px;
76
- padding: 12px 28px;
77
- border-radius: 999px;
78
-
79
- background: linear-gradient(90deg, #00f5d4, #c77dff);
80
- color: #020617;
81
- font-weight: 600;
82
- text-decoration: none;
83
 
84
- transition: 0.3s ease;
 
 
 
 
85
  }
86
 
87
- .btn:hover {
88
- transform: scale(1.08);
89
- box-shadow: 0 0 35px #00f5d4;
 
 
 
 
 
90
  }
91
 
92
- /* ===== SKILLS ===== */
93
- .skills {
94
- display: flex;
95
- flex-wrap: wrap;
96
- gap: 12px;
 
 
97
  }
98
 
99
- .skill {
100
- padding: 10px 18px;
101
- border-radius: 999px;
102
-
103
- background: rgba(255, 255, 255, 0.25);
104
- backdrop-filter: blur(10px);
105
-
106
- border: 1px solid rgba(255, 255, 255, 0.4);
107
- font-size: 14px;
108
- }
109
-
110
- /* ===== PROJECT ===== */
111
- .project {
112
- margin-top: 24px;
113
- padding: 26px;
114
- border-radius: 22px;
115
-
116
- background: rgba(255, 255, 255, 0.22);
117
- backdrop-filter: blur(16px);
118
-
119
- border: 1px solid rgba(255, 255, 255, 0.4);
120
  }
121
 
122
- .project h3 {
123
- font-size: 18px;
124
- margin-bottom: 6px;
125
  }
126
 
127
- /* ===== FOOTER ===== */
128
- footer {
129
- text-align: center;
130
- font-size: 13px;
131
- opacity: 0.7;
132
  }
 
1
+ :root {
2
+ --accent1:#00f5d4;
3
+ --accent2:#c77dff;
4
+ --glass:rgba(255,255,255,0.18);
 
5
  }
6
 
7
+ body.dark {
 
 
8
  background:
9
+ radial-gradient(circle at 15% 20%, #00f5d420, transparent 40%),
10
+ radial-gradient(circle at 85% 30%, #c77dff25, transparent 45%),
11
+ linear-gradient(180deg,#040814,#040814);
12
+ color:#f8fafc;
13
+ font-family:"Segoe UI",system-ui,sans-serif;
 
14
  }
15
 
16
+ /* particles */
17
+ #particles{
18
+ position:fixed;
19
+ inset:0;
20
+ background:
21
+ radial-gradient(circle at 10% 30%, #00f5d430, transparent 35%),
22
+ radial-gradient(circle at 80% 60%, #c77dff30, transparent 40%);
23
+ z-index:-1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
25
 
26
+ /* toggle */
27
+ #themeToggle{
28
+ position:fixed;
29
+ top:18px;
30
+ right:18px;
31
+ border:none;
32
+ border-radius:50%;
33
+ padding:12px;
34
+ cursor:pointer;
35
+ background:#111;
36
+ color:white;
37
  }
38
 
39
+ /* glass card */
40
+ .glass{
41
+ max-width:900px;
42
+ margin:70px auto;
43
+ padding:42px;
44
+ border-radius:28px;
45
+ background:var(--glass);
46
+ backdrop-filter:blur(26px);
47
+ border:1px solid rgba(255,255,255,0.35);
48
+ box-shadow:0 40px 90px rgba(0,0,0,0.8);
49
+ transition:0.4s ease;
50
  }
51
 
52
+ .glass:hover{
53
+ background:rgba(255,255,255,0.26);
54
+ transform:translateY(-6px);
 
55
  }
56
 
57
+ .hero h1{
58
+ font-size:40px;
59
+ background:linear-gradient(90deg,var(--accent1),var(--accent2));
60
+ -webkit-background-clip:text;
61
+ -webkit-text-fill-color:transparent;
62
  }
63
 
64
+ .subtitle{opacity:.85;margin-bottom:16px;}
 
 
 
 
 
 
 
 
 
 
65
 
66
+ .links a{
67
+ margin-right:18px;
68
+ text-decoration:none;
69
+ color:#e5e7eb;
70
+ font-weight:600;
71
  }
72
 
73
+ /* skills */
74
+ .skills span{
75
+ display:inline-block;
76
+ margin:8px 8px 0 0;
77
+ padding:9px 18px;
78
+ border-radius:999px;
79
+ background:rgba(255,255,255,0.25);
80
+ backdrop-filter:blur(10px);
81
  }
82
 
83
+ /* projects */
84
+ .project{
85
+ margin-top:26px;
86
+ padding:28px;
87
+ border-radius:24px;
88
+ background:rgba(255,255,255,0.22);
89
+ border:1px solid rgba(255,255,255,0.4);
90
  }
91
 
92
+ .project h3{margin-bottom:6px;}
93
+
94
+ .project-btn{
95
+ display:inline-block;
96
+ margin-top:14px;
97
+ padding:12px 28px;
98
+ border-radius:999px;
99
+ background:linear-gradient(90deg,var(--accent1),var(--accent2));
100
+ color:#020617;
101
+ font-weight:700;
102
+ text-decoration:none;
103
+ letter-spacing:1px;
104
+ transition:0.3s;
 
 
 
 
 
 
 
 
105
  }
106
 
107
+ .project-btn:hover{
108
+ box-shadow:0 0 40px var(--accent1);
109
+ transform:scale(1.08);
110
  }
111
 
112
+ footer{
113
+ text-align:center;
114
+ opacity:.7;
115
+ margin-bottom:30px;
 
116
  }