-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.css
147 lines (128 loc) · 2.89 KB
/
about.css
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/* About Section - Creative Styling */
#about {
max-width: 1000px;
margin: 60px auto;
padding: 60px 30px;
background: #f9f9f9; /* Light grey background */
color: #303030; /* Dark text color for readability */
border-radius: 20px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
text-align: center;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: space-between;
gap: 30px;
}
/* About Section Container */
.about-container {
display: flex;
align-items: center;
justify-content: space-between;
gap: 30px;
}
/* Image Styling */
#about .about-image {
width: 180px;
height: 180px;
border-radius: 50%;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
border: 4px solid #fff;
transition: transform 0.3s ease-in-out;
}
#about .about-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
#about .about-image:hover {
transform: scale(1.1);
}
/* About Text Styling */
#about .about-text {
max-width: 600px;
}
#about h2 {
font-size: 3rem;
margin-bottom: 20px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
position: relative;
color: #333;
margin-bottom: 20px;
font-family: 'Poppins', sans-serif; /* Smooth modern font */
}
#about h2::after {
content: "";
display: block;
width: 80px;
height: 4px;
background: var(--primary-color); /* Primary color underline */
margin: 8px auto 0;
border-radius: 5px;
}
#about h2:hover::after {
transform: scaleX(1);
}
/* Paragraph Styling */
#about p {
font-size: 1.2rem;
line-height: 1.8;
color: #555;
margin-top: 15px;
font-weight: 400;
font-family: 'Lora', serif; /* Elegant serif font for readability */
}
/* Floating Background Effect */
#about::before, #about::after {
content: "";
position: absolute;
width: 100px;
height: 100px;
background: rgba(0, 0, 0, 0.1);
border-radius: 50%;
z-index: 0;
animation: floating 6s infinite alternate ease-in-out;
}
#about::before {
top: -30px;
left: -30px;
}
#about::after {
bottom: -30px;
right: -30px;
}
/* Floating Animation */
@keyframes floating {
0% {
transform: translateY(0);
}
100% {
transform: translateY(20px);
}
}
/* Responsive Design */
@media (max-width: 768px) {
#about {
flex-direction: column;
padding: 40px 20px;
text-align: center;
}
#about .about-container {
flex-direction: column;
align-items: center;
}
#about .about-image {
width: 150px;
height: 150px;
}
#about h2 {
font-size: 2.2rem;
}
#about p {
font-size: 1.1rem;
}
}