.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 1rem 4.5rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 250, 250, 0.98) 100%),
        linear-gradient(135deg, #e5e7eb 0%, #fafafa 100%);
    text-align: center;
    border-radius: 0 0 2rem 2rem;
    isolation: isolate;
}

.hero-water {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-ripple,
.hero-current,
.hero-glow {
    position: absolute;
    opacity: 0.72;
}

.hero-ripple {
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    transform-origin: center;
    animation: rippleDrift 10s ease-in-out infinite;
}

.ripple-one {
    top: -10%;
    right: -4%;
    width: 430px;
    height: 430px;
}

.ripple-two {
    left: -12%;
    bottom: -22%;
    width: 500px;
    height: 500px;
    animation-delay: -3s;
}

.hero-current {
    height: 150px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
    filter: blur(12px);
    transform: rotate(-10deg);
    animation: currentFlow 8s ease-in-out infinite;
}

.current-one {
    top: 18%;
    left: -25%;
    width: 65%;
}

.current-two {
    bottom: 10%;
    right: -18%;
    width: 58%;
    animation-duration: 10s;
    animation-direction: reverse;
}

.hero-glow {
    top: 8%;
    left: 50%;
    width: 460px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
    transform: translateX(-50%);
    filter: blur(10px);
    animation: glowShift 7s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-eyebrow {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-subtitle {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.hero-supporting {
    max-width: 620px;
    margin: 0 auto 1.75rem;
    color: var(--color-text-soft);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-link {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.hero-link:hover {
    color: var(--color-primary);
}

.hero-accent {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.08;
    filter: blur(12px);
}

.wave-divider {
    margin-top: -1.5rem;
    color: rgba(99, 102, 241, 0.14);
    line-height: 0;
    overflow: hidden;
    position: relative;
}

.wave-divider svg {
    display: block;
    width: 150%;
    height: 72px;
    transform: translateX(-14%);
    animation: waveSlide 7s ease-in-out infinite;
}

.wave-divider path {
    fill: currentColor;
}

.wave-divider-secondary {
    position: absolute;
    inset: 8px auto auto 0;
    opacity: 0.4;
    animation-duration: 10s !important;
    animation-direction: reverse;
}

.features {
    padding: 4rem 0;
}

.features h3 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--color-text-soft);
    font-size: 1.05rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 1.6rem 1rem 1.6rem 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    isolation: isolate;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.75) 28%, transparent 46%),
        linear-gradient(180deg, rgba(99, 102, 241, 0.03), transparent 45%);
    opacity: 0;
    transform: translateX(-36%);
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.feature-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    bottom: -92px;
    border-radius: 42% 58% 57% 43% / 38% 35% 65% 62%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.55), transparent 42%),
        linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(244, 114, 100, 0.06));
    opacity: 0.95;
    transition: transform 0.45s ease, opacity 0.45s ease;
    animation: blobFloat 7s ease-in-out infinite;
    z-index: 0;
}

.feature-card:nth-child(even) {
    border-radius: 1rem 1.6rem 1rem 1.6rem;
}

.feature-card:nth-child(even)::after {
    left: -78px;
    right: auto;
    top: -88px;
    bottom: auto;
    border-radius: 58% 42% 43% 57% / 45% 63% 37% 55%;
    animation-duration: 14s;
}

.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.feature-card:hover::after {
    transform: scale(1.04) translateY(-6px);
}

.feature-card h4 {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-size: 1.25rem;
    z-index: 1;
}

.feature-card p {
    position: relative;
    margin-bottom: 0;
    z-index: 1;
}

.page-home .about-me {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.page-home .about-me::before {
    content: "";
    position: absolute;
    top: 20%;
    left: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.1;
}

.page-home .about-me > .container {
    position: relative;
    z-index: 1;
}

.page-home .about-me-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: start;
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.page-home .about-me-layout::after {
    content: "";
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: calc(220px + 1rem);
    width: 3px;
    background: rgba(99, 102, 241, 0.18);
    border-radius: 999px;
}

.page-home .about-me h3 {
    margin: 0;
    text-align: left;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--color-primary);
}

.page-home .about-me p {
    margin: 0;
    color: #4b4b4b;
    font-size: 1.125rem;
    line-height: 1.8;
    padding-left: 1rem;
}

@keyframes rippleDrift {
    0%,
    100% {
        transform: scale(1) translateY(0);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.12) translateY(18px);
        opacity: 0.92;
    }
}

@keyframes currentFlow {
    0% {
        transform: translateX(-18%) rotate(-11deg);
    }

    50% {
        transform: translateX(14%) rotate(-7deg);
    }

    100% {
        transform: translateX(-18%) rotate(-11deg);
    }
}

@keyframes glowShift {
    0%,
    100% {
        opacity: 0.45;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(18px);
    }
}

@keyframes waveSlide {
    0%,
    100% {
        transform: translateX(-14%);
    }

    50% {
        transform: translateX(-30%);
    }
}

@keyframes blobFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(11deg);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem 2.75rem;
    }

    .hero-water {
        inset: -4% -6% 0;
    }

    .hero-ripple,
    .hero-current,
    .hero-glow {
        opacity: 0.84;
    }

    .ripple-one {
        top: -2%;
        right: -34%;
        width: 300px;
        height: 300px;
    }

    .ripple-two {
        left: -36%;
        bottom: -10%;
        width: 340px;
        height: 340px;
    }

    .current-one {
        top: 12%;
        left: -30%;
        width: 96%;
        height: 120px;
    }

    .current-two {
        right: -24%;
        bottom: 8%;
        width: 92%;
        height: 120px;
    }

    .hero-glow {
        top: 6%;
        width: 320px;
        height: 180px;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-supporting,
    .section-intro {
        font-size: 0.98rem;
    }

    .hero-accent {
        right: -20px;
        bottom: -20px;
        width: 200px;
        height: 200px;
    }

    .wave-divider {
        margin-top: -0.9rem;
    }

    .wave-divider svg {
        height: 64px;
        width: 165%;
        transform: translateX(-18%);
        animation-duration: 5.6s;
    }

    .wave-divider-secondary {
        inset: 6px auto auto 0;
        opacity: 0.52;
    }

    .feature-card {
        padding: 1.6rem;
    }

    .feature-card::after {
        width: 130px;
        height: 130px;
        right: -54px;
        bottom: -72px;
    }

    .feature-card:nth-child(even)::after {
        left: -56px;
        top: -64px;
    }

    .page-home .about-me {
        padding: 3rem 0;
    }

    .page-home .about-me-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.4rem 1.25rem;
        border-radius: 1.25rem;
    }

    .page-home .about-me-layout::after {
        top: auto;
        bottom: auto;
        left: 1.25rem;
        right: 1.25rem;
        width: auto;
        height: 3px;
        margin-top: 0.15rem;
    }

    .page-home .about-me h3 {
        font-size: 1.4rem;
    }

    .page-home .about-me p {
        padding-left: 0;
        padding-top: 1rem;
        font-size: 1rem;
        line-height: 1.7;
    }
}
