1+ /* CSS Custom Properties for consistent theming */
2+ : root {
3+ --primary-color : # 1e5c8f ;
4+ --secondary-color : # 571194 ;
5+ --accent-color : # e7df69 ;
6+ --text-light : # eef6fc ;
7+ --text-dark : # 001729 ;
8+ --gradient-start : # 6daae4 ;
9+ --gradient-middle : # 175792 ;
10+ --gradient-end : # 571194 ;
11+ --nav-hover : # 133653 ;
12+ --section-bg : rgba (65 , 65 , 65 , 0.95 );
13+ --transition-speed : 0.3s ;
14+ }
15+
116/* Fonts */
217@font-face {
3- font-family : 'rampage-monoline' ;
4- src : url ('../../fonts/rampage-monoline.woff2' ) format ('woff2' ),
5- url ('../../fonts/rampage-monoline.woff' ) format ('woff' );
6- font-weight : normal;
7- font-style : normal;
18+ font-family : 'rampage-monoline' ;
19+ src : url ('../../fonts/rampage-monoline.woff2' ) format ('woff2' ),
20+ url ('../../fonts/rampage-monoline.woff' ) format ('woff' );
21+ font-display : swap;
22+ font-weight : normal;
23+ font-style : normal;
824}
925
1026@font-face {
11- font-family : 'roboto' ;
12- src : url ('../../fonts/roboto.woff2' ) format ('woff2' ),
13- url ('../../fonts/roboto.woff' ) format ('woff' );
14- font-weight : normal;
15- font-style : normal;
27+ font-family : 'roboto' ;
28+ src : url ('../../fonts/roboto.woff2' ) format ('woff2' ),
29+ url ('../../fonts/roboto.woff' ) format ('woff' );
30+ font-display : swap;
31+ font-weight : normal;
32+ font-style : normal;
1633}
1734
1835title {
19- font-family : 'rampage-monoline' , sans-serif;
36+ font-family : 'rampage-monoline' , sans-serif;
2037}
2138
2239/* Header */
2340header {
24- background : # 1e5c8f ; /* Deep navy blue */
25- color : # eef6fc ; /* Light text */
26- padding : 15px 20px ;
27- position : sticky; /* Sticks to the top when scrolling */
28- top : 0 ;
29- z-index : 1000 ; /* Stays above other elements */
30- box-shadow : 0 2px 5px rgba (0 , 0 , 0 , 0.1 );
41+ background : var (--primary-color );
42+ color : var (--text-light );
43+ padding : 15px 20px ;
44+ position : sticky;
45+ top : 0 ;
46+ z-index : 1000 ;
47+ box-shadow : 0 4px 15px rgba (0 , 0 , 0 , 0.2 );
48+ backdrop-filter : blur (10px );
49+ transition : all var (--transition-speed ) ease;
3150}
3251
3352header nav ul li a img {
34- width : 30px ;
35- height : 30px ;
36- margin-right : 4px ;
37- vertical-align : middle;
53+ width : 30px ;
54+ height : 30px ;
55+ margin-right : 4px ;
56+ vertical-align : middle;
3857}
3958
4059nav ul {
41- list-style : none; /* Removes default list styling */
42- padding : 0 ;
43- margin : 0 ;
44- display : flex;
45- justify-content : center; /* Centers navigation items */
60+ list-style : none;
61+ padding : 0 ;
62+ margin : 0 ;
63+ display : flex;
64+ justify-content : center;
4665}
4766
4867nav ul li {
49- margin-right : 15px ;
68+ margin-right : 15px ;
5069}
5170
5271nav ul li a {
53- font-family : 'rampage-monoline' , sans-serif;
54- font-size : 30px ;
55- color : # a9d3f5 ; /* Lighter blue */
56- text-decoration : none;
57- padding : 5px 10px ;
58- border-radius : 5px ;
59- transition : background 0.3s ease, transform 0.2s ease;
72+ font-family : 'rampage-monoline' , sans-serif;
73+ font-size : 30px ;
74+ color : # a9d3f5 ;
75+ text-decoration : none;
76+ display : flex;
77+ align-items : center;
78+ padding : 8px 16px ;
79+ border-radius : 8px ;
80+ transition : all var (--transition-speed ) cubic-bezier (0.4 , 0 , 0.2 , 1 );
6081}
6182
6283nav ul li a : hover {
63- background : # 133653 ; /* Slightly darker blue */
64- transform : scale (1.05 );
84+ background : var (--nav-hover );
85+ transform : translateY (-2px );
86+ box-shadow : 0 4px 12px rgba (0 , 0 , 0 , 0.15 );
6587}
6688
6789/* General Styling */
6890body {
69- font-family : 'roboto' , sans-serif;
70- margin : 0 ;
71- padding : 0 ;
72- line-height : 1.6 ;
73- color : # 001729 ; /* Light blue text */
74- background : linear-gradient (to bottom, # 6daae4 , # 175792 , # 571194 ); /* Gradient background */
91+ font-family : 'roboto' , sans-serif;
92+ margin : 0 ;
93+ padding : 0 ;
94+ line-height : 1.6 ;
95+ color : var ( -- text-dark );
96+ background : linear-gradient (to bottom, var ( --gradient-start ) , var ( --gradient-middle ) , var ( --gradient-end ));
7597}
7698
7799h1 , h2 , h3 {
78- font-family : 'rampage-monoline' , sans-serif;
79- color : # eef6fc ; /* Light text for headings */
80- text-align : center;
100+ font-family : 'rampage-monoline' , sans-serif;
101+ color : var ( --text-light );
102+ text-align : center;
81103}
82104
83105/* Section Styling */
84106section {
85- padding : 40px 20px ;
86- margin : 20px auto;
87- max-width : 60% ; /* Centers section content */
88- background : # 414141 ; /* Medium blue */
89- border-radius : 10px ;
90- box-shadow : 0 4px 6px rgba (0 , 0 , 0 , 0.2 );
91- color : # eef6fc ;
92- border-left : 3px solid # e7df69 ;
93- transition : transform 0.3s ease;
107+ padding : 40px 20px ;
108+ margin : 20px auto;
109+ max-width : 60% ;
110+ background : var (--section-bg );
111+ backdrop-filter : blur (12px );
112+ border-radius : 10px ;
113+ box-shadow : 0 8px 24px rgba (0 , 0 , 0 , 0.15 );
114+ color : var (--text-light );
115+ border-left : 4px solid var (--accent-color );
116+ transition : transform 0.4s cubic-bezier (0.4 , 0 , 0.2 , 1 );
94117}
95118
96119section : hover {
@@ -99,51 +122,68 @@ section:hover {
99122
100123/* Section Sizing */
101124section .title {
102- width : 30% ;
125+ width : 30% ;
103126}
104127
105128/* Buttons and Links */
106129.button {
107- display : inline-block;
108- text-decoration : none;
109- color : # eef6fc ; /* Light blue text */
110- background : # 1b4e7e ; /* Dark blue button */
111- padding : 5px 10px ;
112- border-radius : 5px ;
113- cursor : pointer;
114- transition : background 0.3s ease, transform 0.2s ease;
130+ display : inline-block;
131+ text-decoration : none;
132+ color : var (--text-light );
133+ background : linear-gradient (135deg , var (--primary-color ), var (--secondary-color ));
134+ padding : 10px 20px ;
135+ border-radius : 8px ;
136+ cursor : pointer;
137+ box-shadow : 0 4px 12px rgba (0 , 0 , 0 , 0.1 );
138+ transition : all var (--transition-speed ) cubic-bezier (0.4 , 0 , 0.2 , 1 );
115139}
116140
117141.button : hover {
118- background : # 17456a ; /* Slightly darker navy */
119- transform : scale ( 1.05 );
142+ transform : translateY ( -2 px );
143+ box-shadow : 0 6 px 16 px rgba ( 0 , 0 , 0 , 0.2 );
120144}
121145
122146/* Footer */
123147footer {
124- text-align : center;
125- padding : 15px 0 ;
126- background : # 366c99 ; /* Deep navy blue */
127- color : # eef6fc ;
148+ text-align : center;
149+ padding : 15px 0 ;
150+ background : # 366c99 ;
151+ color : var ( --text-light ) ;
128152}
129153
154+ /* Canvas */
130155canvas {
131- position : fixed;
132- top : 0 ;
133- left : 0 ;
156+ position : fixed;
157+ top : 0 ;
158+ left : 0 ;
134159}
135160
136161# bg1 {
137- z-index : -1 ; /* Places canvas in the background */
138- filter : blur (1px ); /* Adds blur effect */
162+ z-index : -1 ;
163+ filter : blur (1px );
139164}
140165
141- /* Responsive Typography */
166+ /* Responsive Design */
142167@media screen and (min-width : 500px ) {
143- h1 {
144- font-size : 4rem ;
145- }
146- h2 {
147- font-size : 2rem ;
148- }
168+ h1 {
169+ font-size : 4rem ;
170+ }
171+ h2 {
172+ font-size : 2rem ;
173+ }
174+ }
175+
176+ @media screen and (max-width : 768px ) {
177+ section {
178+ max-width : 90% ;
179+ }
180+
181+ nav ul {
182+ flex-wrap : wrap;
183+ justify-content : space-around;
184+ }
185+
186+ nav ul li {
187+ margin : 5px ;
188+ }
149189}
0 commit comments