API_portfolio / static /css /_about.css
NGOC1712's picture
Upload 21 files
b8d618b verified
/* About Section Styles */
.about {
position: relative;
overflow: hidden;
}
.about-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
overflow: hidden;
}
.about-bg-image {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
opacity: 0.08;
transition: all 0.3s ease;
animation: slowFloat 20s ease-in-out infinite;
}
.about:hover .about-bg-image {
opacity: 0.12;
transform: scale(1.02);
}
@keyframes slowFloat {
0%, 100% {
transform: translateY(0px) scale(1);
}
50% {
transform: translateY(-20px) scale(1.01);
}
}
.about .container {
position: relative;
z-index: 1;
}
.about-content {
display: grid;
grid-template-columns: 300px 1fr;
gap: 4rem;
align-items: start;
}
.about-profile {
position: relative;
}
.profile-image {
position: relative;
width: 250px;
height: 300px;
margin: 0 auto;
border-radius: 20px;
overflow: hidden;
background: var(--gradient);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}
.profile-photo {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
display: block;
position: relative;
z-index: 1;
}
.profile-overlay {
position: absolute;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background: rgba(250, 250, 255, 0.1);
backdrop-filter: blur(10px);
opacity: 0;
transition: opacity 0.3s ease;
z-index: 2;
}
.profile-image:hover .profile-overlay {
opacity: 1;
}
.profile-overlay i {
font-size: 4rem;
color: var(--white);
opacity: 0.8;
}
.about-info {
display: flex;
flex-direction: column;
gap: 2rem;
}
.about-text {
font-size: 1.1rem;
line-height: 1.8;
color: var(--text-muted);
}
.about-highlights {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 1.5rem;
}
.highlight-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
background: var(--dark-light);
border-radius: 10px;
border-left: 4px solid var(--primary);
}
.highlight-item i {
color: var(--primary);
font-size: 1.2rem;
}
.highlight-item span {
color: var(--light);
font-weight: 500;
}
.about-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 2rem;
}
.stat-card {
background: var(--dark-light);
padding: 2rem;
border-radius: 15px;
text-align: center;
border: 1px solid var(--border);
transition: all 0.3s ease;
box-shadow: 0 4px 15px var(--shadow);
}
.stat-card:hover {
transform: translateY(-5px);
border-color: var(--primary);
box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}
.stat-card i {
font-size: 2rem;
color: var(--primary);
margin-bottom: 1rem;
}
.stat-card h3 {
font-size: 2rem;
margin-bottom: 0.5rem;
}
/* About Responsive */
@media (max-width: 768px) {
.about-content {
grid-template-columns: 1fr;
gap: 2rem;
text-align: center;
}
.profile-image {
width: 200px;
height: 240px;
}
}