Skip to content

Commit 18467ba

Browse files
committed
Update section title styles for improved responsiveness and animation effects
1 parent fe5ae43 commit 18467ba

1 file changed

Lines changed: 17 additions & 22 deletions

File tree

style.css

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -823,38 +823,33 @@ html:not([data-theme="dark"]) .lang-option.active:hover {
823823
}
824824

825825
.section-title {
826-
font-size: 2.5rem;
827-
text-transform: uppercase;
828-
letter-spacing: 0.1em;
829-
margin-bottom: 3rem;
826+
font-size: clamp(2.5rem, 6vw, 4rem);
827+
font-weight: 200;
828+
line-height: 1.1;
829+
letter-spacing: -0.02em;
830+
margin-bottom: 5rem;
831+
opacity: 0;
832+
transform: translateY(40px);
830833
position: relative;
831-
text-align: center;
832-
}
833-
834-
@media (max-width: 968px) {
835-
.section-title {
836-
text-align: left;
837-
margin-left: 1.5rem;
838-
}
839-
840-
.section-title::after {
841-
left: 0;
842-
transform: none;
843-
}
844834
}
845835

846836
.section-title::after {
847837
content: '';
848838
position: absolute;
849-
bottom: -0.5rem;
850-
left: 50%;
851-
transform: translateX(-50%);
839+
bottom: -20px;
840+
left: 0;
852841
width: 60px;
853-
height: 3px;
854-
background: var(--accent-color);
842+
height: 2px;
843+
background: var(--accent);
844+
opacity: 0.6;
855845
}
856846

857847
.content-grid {
848+
display: grid;
849+
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
850+
gap: 3rem;
851+
margin-top: 4rem;
852+
}
858853

859854
.content-card {
860855
background: var(--bg);

0 commit comments

Comments
 (0)