214 lines
4.0 KiB
CSS
214 lines
4.0 KiB
CSS
/* Services Section */
|
|
.services {
|
|
padding: var(--space-2xl) 0;
|
|
background: var(--bg-primary);
|
|
position: relative;
|
|
}
|
|
|
|
/* Section Title */
|
|
.services .section-title {
|
|
text-align: center;
|
|
font-size: var(--font-size-3xl);
|
|
margin-bottom: var(--space-2xl);
|
|
color: var(--text-color);
|
|
position: relative;
|
|
display: inline-block;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.services .section-title::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -10px;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 3px;
|
|
background: linear-gradient(
|
|
90deg,
|
|
transparent,
|
|
var(--accent-color),
|
|
transparent
|
|
);
|
|
}
|
|
|
|
/* Service Grid */
|
|
.service-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: var(--space-xl);
|
|
padding: 0 var(--space-md);
|
|
}
|
|
|
|
/* Service Card */
|
|
.service-card {
|
|
background: var(--card-bg);
|
|
border-radius: var(--border-radius-lg);
|
|
padding: var(--space-xl);
|
|
transition: all var(--transition-base);
|
|
position: relative;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.service-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(
|
|
135deg,
|
|
transparent 0%,
|
|
rgba(21, 52, 209, 0.05) 100%
|
|
);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-base);
|
|
}
|
|
|
|
.service-card:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Service Icon */
|
|
.service-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
background: var(--accent-color);
|
|
border-radius: var(--border-radius-full);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: var(--space-lg);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.service-icon i {
|
|
font-size: var(--font-size-2xl);
|
|
color: white;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.service-icon::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(
|
|
135deg,
|
|
transparent,
|
|
rgba(255, 255, 255, 0.2)
|
|
);
|
|
}
|
|
|
|
/* Service Title */
|
|
.service-card h3 {
|
|
font-size: var(--font-size-xl);
|
|
margin-bottom: var(--space-md);
|
|
color: var(--text-color);
|
|
position: relative;
|
|
}
|
|
|
|
/* Service List */
|
|
.service-card ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.service-card li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-sm);
|
|
color: var(--text-color);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.service-card li i {
|
|
color: var(--accent-color);
|
|
font-size: var(--font-size-sm);
|
|
}
|
|
|
|
/* Hover Effects */
|
|
.service-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.service-card:hover .service-icon {
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
box-shadow: 0 0 0 0 rgba(21, 52, 209, 0.4);
|
|
}
|
|
70% {
|
|
box-shadow: 0 0 0 10px rgba(21, 52, 209, 0);
|
|
}
|
|
100% {
|
|
box-shadow: 0 0 0 0 rgba(21, 52, 209, 0);
|
|
}
|
|
}
|
|
|
|
/* Animation on Scroll */
|
|
.service-card {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
transition: opacity 0.6s ease, transform 0.6s ease;
|
|
}
|
|
|
|
.service-card.visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.service-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--space-lg);
|
|
}
|
|
|
|
.services {
|
|
padding: var(--space-xl) 0;
|
|
}
|
|
|
|
.services .section-title {
|
|
font-size: var(--font-size-2xl);
|
|
margin-bottom: var(--space-xl);
|
|
}
|
|
}
|
|
|
|
/* High Contrast Mode */
|
|
@media (forced-colors: active) {
|
|
.service-card {
|
|
border: 1px solid CanvasText;
|
|
}
|
|
|
|
.service-icon {
|
|
border: 1px solid CanvasText;
|
|
}
|
|
}
|
|
|
|
/* Reduced Motion */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.service-card {
|
|
transition: none;
|
|
}
|
|
|
|
.service-card:hover {
|
|
transform: none;
|
|
}
|
|
|
|
.service-card:hover .service-icon {
|
|
animation: none;
|
|
}
|
|
}
|