2025-12-18 18:47:56 +05:30

293 lines
5.8 KiB
CSS

.section {
position: relative;
padding: 4rem 0;
overflow: hidden;
background: var(--background);
}
.container {
max-width: 1000px;
margin: 0 auto;
padding: 0 1.5rem;
position: relative;
}
.header {
text-align: center;
margin-bottom: 5rem;
}
.title {
font-size: clamp(2rem, 5vw, 3rem);
font-weight: 800;
margin-bottom: 1rem;
color: var(--foreground);
}
.subTitle {
background: transparent;
-webkit-background-clip: unset;
-webkit-text-fill-color: unset;
background-clip: unset;
color: #0072b1;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 0.875rem;
margin-bottom: 1rem;
display: inline-block;
}
.timeline {
position: relative;
display: flex;
flex-direction: column;
gap: 3rem;
}
/* The vertical connecting line (simplified snake for responsiveness) */
.timeline::before {
content: '';
position: absolute;
top: 80px;
bottom: 0;
left: 40px;
/* Aligns with circle center */
width: 4px;
background: #e2e8f0;
z-index: 0;
}
.stepItem {
position: relative;
z-index: 1;
display: flex;
align-items: center;
gap: 2rem;
opacity: 0;
transform: translateX(-20px);
transition: all 0.6s ease-out;
}
.stepItem.visible {
opacity: 1;
transform: translateX(0);
}
/* ZigZag indent for desktop */
@media (min-width: 768px) {
/* Create the snake effect by alternating margins/padding isn't robust for the straight cards shown.
The image creates a visual snake with the connectors, but the cards look aligned.
We will keep cards aligned for readability and use the connector styling to suggest the flow.
*/
.timeline::before {
background: radial-gradient(circle at center, var(--secondary) 0%, transparent 100%);
width: 2px;
opacity: 0.3;
left: 49px;
}
}
/* Circle Number Wrapper */
.numberWrapper {
flex-shrink: 0;
width: 100px;
height: 100px;
border-radius: 50%;
background: var(--background);
border: 8px solid var(--background);
/* Gap for connection */
box-shadow: var(--shadow-xl);
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 2;
}
/* The colored ring and number */
.numberCircle {
width: 100%;
height: 100%;
border-radius: 50%;
background: var(--gradient-primary);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 2rem;
font-weight: 800;
position: relative;
box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.2);
}
/* The connecting curve element */
.connectorCurve {
display: none;
/* Hidden on mobile */
}
/* Card Capsule */
.cardCapsule {
flex: 1;
background: white;
border-radius: 50px;
/* Pill shape */
padding: 1.5rem 3rem 1.5rem 2rem;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
border: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
position: relative;
overflow: hidden;
transition: transform 0.3s ease;
}
.cardCapsule:hover {
transform: translateY(-5px);
border-color: var(--primary-light);
}
/* Colored accent bar on the left of capsule */
.cardCapsule::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 8px;
background: var(--gradient-primary);
}
.textContent {
flex: 1;
}
.label {
color: #0072b1;
font-weight: 700;
font-size: 0.875rem;
margin-bottom: 1rem;
display: block;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.stepTitle {
font-size: 1.25rem;
font-weight: 800;
color: var(--text-primary);
text-transform: uppercase;
margin-bottom: 0.5rem;
letter-spacing: 0.5px;
}
.stepDescription {
font-size: 0.95rem;
color: var(--text-secondary);
line-height: 1.4;
margin: 0;
}
.iconCircle {
width: 60px;
height: 60px;
border-radius: 50%;
background: #f1f5f9;
display: flex;
align-items: center;
justify-content: center;
color: white;
flex-shrink: 0;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.iconCircle svg {
width: 30px;
height: 30px;
}
/* Specific S-Curve Connector Logic to match image better */
/* We will simulate the "snake" by adjusting the timeline line or adding curves between items */
/* For robust responsive design, sticking to a straight cleaner line is safer, but let's try to add the "orange connector" look between circles */
.connector {
position: absolute;
left: 48px;
/* Center of 100px circle approx */
top: 100px;
/* Bottom of circle */
width: 4px;
height: 3rem;
/* Gap between items */
background: var(--primary);
z-index: 1;
}
/* Mobile responsive adjustments */
@media (max-width: 768px) {
.stepItem {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.timeline::before {
left: 20px;
top: 20px;
}
.numberWrapper {
width: 60px;
height: 60px;
border-width: 4px;
}
.numberCircle {
font-size: 1.25rem;
}
.cardCapsule {
width: 100%;
border-radius: 20px;
padding: 1.5rem;
flex-direction: column;
align-items: flex-start;
}
.iconCircle {
position: absolute;
top: 1rem;
right: 1rem;
width: 40px;
height: 40px;
}
.iconCircle svg {
width: 20px;
height: 20px;
}
}
@media (max-width: 400px) {
.cardCapsule {
padding-right: 4rem;
/* Ensure text doesn't hit the absolute icon */
}
.iconCircle {
width: 32px;
height: 32px;
top: 1rem;
right: 1rem;
}
.iconCircle svg {
width: 16px;
height: 16px;
}
}