SocialBuddyMarketingWebsite/components/AboutSection.module.css

304 lines
5.7 KiB
CSS

.section {
position: relative;
overflow: visible;
/* Changed from hidden to visible to avoid clipping badge/shadows */
padding: var(--spacing-2xl) 0;
background: var(--background);
/* Ensure z-index management if sections overlap, but usually safe default */
}
.container {
max-width: 1280px;
margin: 0 auto;
padding: 0 var(--spacing-md);
}
.contentWrapper {
display: grid;
grid-template-columns: 1fr;
gap: var(--spacing-2xl);
align-items: center;
}
@media (min-width: 1024px) {
.contentWrapper {
grid-template-columns: 1fr 1fr;
/* Equal width as requested "equaly show the image and content" */
gap: 2rem;
/* Reduced from 4rem */
}
}
/* Image Composition */
.imageGrid {
position: relative;
height: 600px;
width: 100%;
}
.mainImageWrapper {
position: absolute;
top: 0;
right: 0;
width: 75%;
height: 85%;
border-radius: var(--radius-2xl);
overflow: hidden;
z-index: 1;
}
.secondaryImageWrapper {
position: absolute;
bottom: 0;
left: 0;
width: 55%;
height: 50%;
border-radius: var(--radius-2xl);
border: 10px solid var(--background);
overflow: hidden;
z-index: 2;
box-shadow: var(--shadow-xl);
}
.image {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.7s ease;
}
.mainImageWrapper:hover .image,
.secondaryImageWrapper:hover .image {
transform: scale(1.05);
}
.badge {
position: absolute;
bottom: 25%;
left: 45%;
transform: translate(-50%, 50%);
width: 140px;
height: 140px;
background: #a855f7;
background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
border-radius: 50%;
border: 8px solid var(--background);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
z-index: 3;
box-shadow: var(--shadow-lg);
animation: float 4s ease-in-out infinite;
}
.badgeNumber {
font-size: 1.75rem;
font-weight: 700;
line-height: 1;
}
.badgeText {
font-size: 0.75rem;
text-align: center;
opacity: 0.9;
margin-top: 4px;
}
/* Text Side */
.textContent {
display: flex;
flex-direction: column;
/* gap: 1rem; */
/* Reduced from var(--spacing-md) */
padding-left: var(--spacing-md);
}
.subTitle {
color: #0072b1;
text-transform: uppercase;
letter-spacing: 2px;
font-weight: 600;
font-size: 0.875rem;
margin-bottom: 1rem;
}
.subTitleIcon {
width: 18px;
height: 18px;
border: 2px solid var(--primary);
border-radius: 50%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.subTitleIcon::after {
content: '';
width: 6px;
height: 6px;
background: var(--primary);
border-radius: 50%;
}
.title {
font-family: var(--font-display);
font-size: clamp(2rem, 3.5vw, 3rem);
font-weight: 800;
line-height: 1.25;
color: var(--text-primary);
}
.description {
color: var(--text-secondary);
font-size: 1rem;
line-height: 1.7;
max-width: 600px;
}
.featuresList {
list-style: none;
display: flex;
flex-direction: column;
gap: 1rem;
/* Reduced from 2rem */
margin-top: 1rem;
}
.featureItem {
display: flex;
align-items: flex-start;
gap: 1.25rem;
}
.iconWrapper {
flex-shrink: 0;
width: 60px;
height: 60px;
border-radius: 50%;
background: #f1f5f9;
color: #0072b1;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
transition: all 0.3s ease;
}
.featureItem:nth-child(2) .iconWrapper {
background: #f1f5f9;
/* Darker blue-100 for better visibility */
color: #ec4899;
}
.featureItem:nth-child(3) .iconWrapper {
background: #f1f5f9;
/* Darker pink-100 for better visibility */
color: #1255d8;
}
.featureContent h4 {
font-size: 1.125rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--text-primary);
}
.featureContent p {
color: var(--text-secondary);
font-size: 0.9rem;
line-height: 1.6;
margin: 0;
}
/* Button Wrapper */
.buttonWrapper {
margin-top: 1rem;
}
/* Counters Section */
.countersSection {
margin-top: 5rem;
padding-top: 3rem;
/* Added some top padding/border maybe */
border-top: 1px solid var(--border-color);
/* Added border to separate explicitly */
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 2rem;
}
@media (max-width: 768px) {
.countersSection {
display: grid;
grid-template-columns: 1fr 1fr;
text-align: center;
margin-top: 3rem;
}
.imageGrid {
height: 400px;
}
}
.counterItem {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
flex: 1;
/* Distribute space */
}
/* Add separator lines between counters on Desktop */
@media (min-width: 1024px) {
.counterItem:not(:last-child)::after {
content: '';
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
height: 50px;
width: 1px;
background: var(--border-color);
}
}
.counterNumber {
font-size: 2.5rem;
font-weight: 800;
color: var(--text-primary);
line-height: 1;
margin-bottom: 0.5rem;
}
/* Plus sign color pop */
.counterNumber::after {
content: '+';
color: var(--primary);
margin-left: 5px;
}
.counterLabel {
color: var(--text-secondary);
font-size: 0.9rem;
font-weight: 500;
text-transform: capitalize;
}
@keyframes float {
0%,
100% {
transform: translate(-50%, 50%) translateY(0);
}
50% {
transform: translate(-50%, 50%) translateY(-10px);
}
}