SocialBuddyMarketingWebsite/components/CoreServices.module.css
2025-12-18 18:47:56 +05:30

211 lines
3.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;
margin-bottom: 5rem;
}
.subTitle {
color: #0072b1;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 0.9rem;
margin-bottom: 0.5rem;
display: 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);
max-width: 600px;
margin: 0 auto;
line-height: 1.6;
}
.gridContainer {
display: grid;
gap: 3rem;
align-items: center;
}
/* Service Item Styling */
.serviceItem {
display: flex;
gap: 1.5rem;
margin-bottom: 3rem;
align-items: flex-start;
}
.serviceItem:last-child {
margin-bottom: 0;
}
.iconWrapper {
width: 50px;
height: 50px;
border-radius: 12px;
background: var(--card-bg, rgba(255, 255, 255, 0.05));
border: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: all 0.3s ease;
}
.serviceItem:hover .iconWrapper {
background: var(--primary);
border-color: var(--primary);
transform: scale(1.1);
box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}
.icon {
font-size: 1.5rem;
}
.content h3 {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--foreground);
transition: color 0.3s ease;
}
.serviceItem:hover .content h3 {
color: var(--primary);
}
.content p {
font-size: 0.95rem;
color: var(--foreground-secondary);
line-height: 1.6;
margin: 0;
}
/* Central Image Styles */
.columnCenter {
display: flex;
justify-content: center;
align-items: center;
position: relative;
z-index: 1;
}
.centralVisual {
position: relative;
width: 100%;
max-width: 203px;
display: flex;
align-items: center;
justify-content: center;
}
.centerImage {
width: 203px;
height: 256px;
object-fit: contain;
filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}
/* Desktop Layout (1024px+) */
@media (min-width: 1024px) {
.gridContainer {
grid-template-columns: 1fr 350px 1fr;
gap: 4rem;
}
.columnLeft {
text-align: right;
}
.columnLeft .serviceItem {
flex-direction: row-reverse;
}
}
/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
.gridContainer {
grid-template-columns: 1fr 1fr;
gap: 3rem;
}
.columnCenter {
grid-column: span 2;
order: -1;
min-height: 300px;
}
}
/* Mobile (below 768px) */
@media (max-width: 767px) {
.gridContainer {
grid-template-columns: 1fr;
padding-right: 0.5rem;
/* Ensure right space */
}
.columnCenter {
order: -1;
/* Image first on mobile */
margin-bottom: 2rem;
}
.centralVisual {
transform: scale(0.9);
}
.serviceItem {
padding-right: 10px;
/* Force internal spacing */
max-width: 100%;
box-sizing: border-box;
}
}