SocialBuddyMarketingWebsite/components/WhyChooseUs.module.css
2025-12-18 15:29:45 +05:30

322 lines
5.7 KiB
CSS

.section {
padding: 4rem 0;
position: relative;
background: var(--background);
overflow: hidden;
}
@media (min-width: 768px) {
.section {
padding: 4rem 0;
}
}
@media (min-width: 1024px) {
.section {
padding: 4rem 0;
}
}
.header {
text-align: center;
max-width: 800px;
margin: 0 auto 5rem;
}
.subTitle {
color: #0072b1;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 0.9rem;
margin-bottom: 1rem;
display: inline-block;
}
.title {
font-size: clamp(2.5rem, 5vw, 3.5rem);
font-weight: 800;
margin-bottom: 1.5rem;
color: var(--foreground);
line-height: 1.1;
}
.highlight {
background: linear-gradient(135deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
font-size: 1.2rem;
color: var(--foreground-secondary);
line-height: 1.6;
}
/* Bento Grid Layout */
.bentoGrid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
}
.bentoItem {
background: var(--card-bg, rgba(255, 255, 255, 0.5));
border: 1px solid var(--border-color);
border-radius: 24px;
padding: 2rem;
display: flex;
flex-direction: column;
justify-content: space-between;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
height: 100%;
}
.bentoItem:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
border-color: var(--primary);
}
.itemContent {
position: relative;
z-index: 2;
}
.iconWrapper {
width: 50px;
height: 50px;
background: rgba(0, 0, 0, 0.05);
/* Very light gray for icon bg */
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
font-size: 1.5rem;
}
.bentoItem h3 {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.75rem;
color: var(--foreground);
}
.bentoItem p {
color: var(--foreground-secondary);
line-height: 1.6;
font-size: 1rem;
margin: 0;
}
/* Desktop Grid Configuration */
@media (min-width: 1024px) {
.bentoGrid {
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 320px);
/* Fixed height rows for bento look */
gap: 2rem;
}
.itemLarge {
grid-column: span 2;
}
/* Specific positioning if needed:
Row 1: Large (AI) | Small (Community)
Row 2: Small (Integrations) | Large (Analytics)
*/
.bentoItem:nth-child(2) {
/* Community */
grid-column: 3;
grid-row: 1;
}
.bentoItem:nth-child(3) {
/* Integrations */
grid-column: 1;
grid-row: 2;
}
.bentoItem:nth-child(4) {
/* Analytics */
grid-column: 2 / span 2;
grid-row: 2;
}
}
/* Tablet Grid */
@media (min-width: 768px) and (max-width: 1023px) {
.bentoGrid {
grid-template-columns: 1fr 1fr;
gap: 2rem;
}
.itemLarge {
grid-column: span 2;
}
}
/* Visuals Styling */
/* AI Visual */
.visualAi {
margin-top: 2rem;
background: #f8fafc;
border-radius: 12px;
padding: 1rem;
border: 1px solid var(--border-color);
}
.typingBox {
display: flex;
gap: 0.25rem;
margin-bottom: 0.5rem;
}
.typingDot {
width: 6px;
height: 6px;
background: var(--primary);
border-radius: 50%;
animation: bounce 1.4s infinite ease-in-out both;
}
.typingDot:nth-child(1) {
animation-delay: -0.32s;
}
.typingDot:nth-child(2) {
animation-delay: -0.16s;
}
@keyframes bounce {
0%,
80%,
100% {
transform: scale(0);
}
40% {
transform: scale(1);
}
}
.aiMessage {
font-size: 0.875rem;
color: var(--foreground);
font-weight: 500;
}
/* Community Visual */
.visualCommunity {
flex-grow: 1;
display: flex;
align-items: flex-end;
justify-content: center;
padding-bottom: 1rem;
}
.avatarStack {
display: flex;
margin-left: 15px;
/* offset for negative margins */
}
.avatar {
width: 40px;
height: 40px;
border-radius: 50%;
border: 3px solid white;
background: #ccc;
margin-left: -15px;
/* Placeholder gradients */
}
.avatar:nth-child(1) {
background: #FFD700;
}
.avatar:nth-child(2) {
background: #FF6B6B;
}
.avatar:nth-child(3) {
background: #4ECDC4;
}
/* Integrations Visual */
.visualIntegrations {
flex-grow: 1;
display: flex;
align-items: flex-end;
justify-content: center;
padding-bottom: 1rem;
}
.logoGrid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.miniLogo {
width: 40px;
height: 40px;
background: #f1f5f9;
border-radius: 8px;
border: 1px solid var(--border-color);
}
/* Analytics Visual */
.visualAnalytics {
margin-top: 2rem;
display: flex;
align-items: flex-end;
gap: 1rem;
height: 60px;
padding-left: 1rem;
border-left: 2px solid var(--border-color);
border-bottom: 2px solid var(--border-color);
}
.graphBar {
width: 30px;
background: linear-gradient(to top, var(--primary), var(--secondary));
border-radius: 4px 4px 0 0;
transition: height 0.5s ease;
}
.graphBar:nth-child(1) {
height: 40%;
animation: grow 2s infinite alternate;
}
.graphBar:nth-child(2) {
height: 70%;
animation: grow 2.5s infinite alternate;
animation-delay: 0.2s;
}
.graphBar:nth-child(3) {
height: 90%;
animation: grow 1.8s infinite alternate;
animation-delay: 0.4s;
}
@keyframes grow {
from {
transform: scaleY(0.8);
}
to {
transform: scaleY(1.1);
}
}