/* =========================================================
   EALATHU THIRUCHENTHUR MURUGAN TEMPLE
   CONTRIBUTORS PAGE
   ULTIMATE PREMIUM ROYAL DESIGN
========================================================= */

:root {
    --cream: #f7ecd9;
    --cream-light: #fffaf1;
    --cream-card: #fffdf8;

    --maroon: #781522;
    --maroon-dark: #4b0710;
    --maroon-deep: #260308;

    --gold: #d99b1f;
    --gold-light: #f5d36b;
    --gold-dark: #a66b0c;

    --orange: #c75b25;

    --text: #38231e;
    --muted: #735e53;

    --border: rgba(120, 21, 34, 0.16);

    --shadow:
        0 18px 50px rgba(65, 10, 20, 0.12);

    --shadow-hover:
        0 30px 75px rgba(65, 10, 20, 0.22);
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--text);

    font-family:
        "Noto Sans Tamil",
        "Nirmala UI",
        Arial,
        sans-serif;

    background: var(--cream);
}


/* =========================================================
   PAGE
========================================================= */

.contributors-page {
    min-height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(217, 155, 31, 0.13),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fbf1df 0%,
            #f1dfc5 100%
        );
}


/* =========================================================
   HERO
========================================================= */

.contributors-hero {
    position: relative;

    min-height: 350px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(245, 211, 107, 0.16),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #260308 0%,
            #4b0710 34%,
            #781522 68%,
            #42070f 100%
        );
}


.contributors-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.32;

    background-image:
        radial-gradient(
            circle,
            rgba(245, 211, 107, 0.28) 1px,
            transparent 1.5px
        );

    background-size: 42px 42px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );
}


.contributors-hero::after {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    left: 50%;
    top: -565px;

    transform: translateX(-50%);

    border-radius: 50%;

    border:
        1px solid
        rgba(245, 211, 107, 0.12);

    box-shadow:
        0 0 0 35px
            rgba(245, 211, 107, 0.025),

        0 0 0 70px
            rgba(245, 211, 107, 0.018);
}


/* =========================================================
   HERO INNER
========================================================= */

.hero-inner {
    position: relative;

    z-index: 2;

    width: min(1100px, 92%);

    padding: 72px 20px 65px;
}


.hero-label {
    margin-bottom: 12px;

    color: var(--gold-light);

    font-family: Georgia, serif;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 6px;

    text-transform: uppercase;
}


.hero-star {
    margin-bottom: 10px;

    color: var(--gold-light);

    font-size: 20px;

    text-shadow:
        0 0 18px
        rgba(245, 211, 107, 0.4);
}


.contributors-hero h1 {
    margin: 0;

    color: #fff;

    font-family:
        "Noto Serif Tamil",
        "Noto Sans Tamil",
        "Nirmala UI",
        serif;

    font-size:
        clamp(
            38px,
            5vw,
            62px
        );

    font-weight: 800;

    line-height: 1.35;

    text-shadow:
        0 8px 28px
        rgba(0, 0, 0, 0.3);
}


.hero-subtitle {
    margin: 12px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            0.72
        );

    font-family: Georgia, serif;

    font-size: 14px;

    letter-spacing: 1.5px;
}


/* =========================================================
   MAIN SECTION
========================================================= */

.contributor-section {
    position: relative;

    padding:
        78px 4% 105px;

    background:
        radial-gradient(
            circle at 0% 45%,
            rgba(199, 91, 37, 0.055),
            transparent 25%
        ),

        radial-gradient(
            circle at 100% 65%,
            rgba(217, 155, 31, 0.07),
            transparent 28%
        ),

        linear-gradient(
            180deg,
            #fbf1df,
            #f0dfc6
        );
}


.contributor-section::before,
.contributor-section::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border:
        1px solid
        rgba(217, 155, 31, 0.12);

    border-radius: 50%;

    pointer-events: none;
}


.contributor-section::before {
    left: -190px;
    top: 40px;
}


.contributor-section::after {
    right: -190px;
    bottom: 40px;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    position: relative;

    z-index: 2;

    max-width: 850px;

    margin:
        0 auto 52px;

    text-align: center;
}


.section-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: var(--orange);

    font-family: Georgia, serif;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 5px;

    text-transform: uppercase;
}


.section-heading h2 {
    margin: 0;

    color: var(--maroon);

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size:
        clamp(
            30px,
            4vw,
            46px
        );

    font-weight: 800;

    line-height: 1.4;
}


.heading-line {
    position: relative;

    width: 70px;

    height: 3px;

    margin:
        17px auto 18px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--orange),
            var(--gold-light),
            var(--orange)
        );
}


.heading-line::before,
.heading-line::after {
    content: "";

    position: absolute;

    top: 50%;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--gold);

    transform:
        translateY(-50%);
}


.heading-line::before {
    left: -13px;
}


.heading-line::after {
    right: -13px;
}


.section-heading p {
    max-width: 720px;

    margin: auto;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.95;
}


/* =========================================================
   GRID
========================================================= */

.contributor-grid {
    position: relative;

    z-index: 2;

    width:
        min(
            1320px,
            100%
        );

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 28px;
}


/* =========================================================
   CARD
========================================================= */

.contributor-card {
    position: relative;

    min-height: 390px;

    display: flex;

    flex-direction: column;

    padding: 30px;

    overflow: hidden;

    color: var(--text);

    text-decoration: none;

    border:
        1px solid
        var(--border);

    border-radius: 24px;

    background:
        var(--cream-card);

    box-shadow:
        var(--shadow);

    transform:
        translateZ(0);

    transition:
        transform .45s
            cubic-bezier(
                .2,
                .75,
                .2,
                1
            ),

        box-shadow .45s ease,

        border-color .45s ease;
}


.contributor-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--maroon-dark),
            var(--maroon),
            var(--orange),
            var(--gold)
        );
}


.contributor-card::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -100px;
    bottom: -105px;

    border-radius: 50%;

    border:
        1px solid
        rgba(217, 155, 31, 0.16);

    box-shadow:
        0 0 0 28px
            rgba(217, 155, 31, 0.035),

        0 0 0 56px
            rgba(217, 155, 31, 0.025);

    pointer-events: none;
}


.contributor-card:hover {
    transform:
        translateY(-10px);

    box-shadow:
        var(--shadow-hover);
}


/* =========================================================
   CARD TOP
========================================================= */

.card-top {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 70px;
}


.card-number {
    color: var(--maroon);

    font-family: Georgia, serif;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 4px;
}


/* =========================================================
   ICON
========================================================= */

.card-icon {
    position: relative;

    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    font-size: 23px;

    background:
        linear-gradient(
            145deg,
            #fff7e8,
            #f2dfc4
        );

    border:
        1px solid
        rgba(
            217,
            155,
            31,
            .45
        );

    box-shadow:
        0 8px 20px
        rgba(
            75,
            7,
            16,
            .08
        );

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}


.card-icon::before {
    content: "";

    position: absolute;

    inset: -7px;

    border:
        1px solid
        currentColor;

    border-radius: 50%;

    opacity: .12;
}


.contributor-card:hover
.card-icon {
    transform:
        rotate(6deg)
        scale(1.07);

    box-shadow:
        0 12px 28px
        rgba(
            75,
            7,
            16,
            .15
        );
}


/* =========================================================
   CONTENT
========================================================= */

.card-content {
    position: relative;

    z-index: 2;

    flex: 1;

    padding-top: 30px;
}


.card-label {
    display: block;

    margin-bottom: 10px;

    color: var(--orange);

    font-family: Georgia, serif;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 3px;
}


.card-content h3 {
    margin:
        0 0 14px;

    color: var(--maroon);

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size:
        clamp(
            25px,
            2.4vw,
            32px
        );

    font-weight: 800;

    line-height: 1.45;
}


.card-content p {
    margin: 0;

    max-width: 470px;

    color: var(--muted);

    font-size: 12.5px;

    line-height: 1.9;
}


/* =========================================================
   ULTIMATE PREMIUM BUTTON
========================================================= */

.card-bottom {
    position: relative;

    z-index: 10;

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    margin-top: 28px;

    padding:
        14px 14px 14px 20px;

    border:
        1px solid
        rgba(
            217,
            155,
            31,
            .38
        );

    border-radius: 14px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #5b0712 0%,
            #801522 48%,
            #a51d25 100%
        );

    box-shadow:
        0 10px 25px
        rgba(
            75,
            7,
            16,
            .18
        ),

        inset
        0 1px 0
        rgba(
            255,
            255,
            255,
            .10
        );

    overflow: hidden;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}


/* =========================================================
   BUTTON LIGHT SWEEP
========================================================= */

.card-bottom::before {
    content: "";

    position: absolute;

    top: 0;

    left: -120%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(
            100deg,
            transparent,
            rgba(
                255,
                255,
                255,
                .16
            ),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left .7s ease;

    pointer-events: none;
}


/* =========================================================
   BUTTON GOLD GLOW
========================================================= */

.card-bottom::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: 10px;
    top: 50%;

    transform:
        translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(
                245,
                211,
                107,
                .14
            ),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   BUTTON HOVER
========================================================= */

.contributor-card:hover
.card-bottom {
    transform:
        translateY(-3px);

    border-color:
        rgba(
            245,
            211,
            107,
            .75
        );

    box-shadow:
        0 16px 35px
        rgba(
            75,
            7,
            16,
            .27
        ),

        0 0 25px
        rgba(
            217,
            155,
            31,
            .08
        ),

        inset
        0 1px 0
        rgba(
            255,
            255,
            255,
            .14
        );
}


.contributor-card:hover
.card-bottom::before {
    left: 130%;
}


/* =========================================================
   BUTTON TEXT
========================================================= */

.card-bottom > span:first-child {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    min-width: 0;

    color: #fff;

    font-family:
        "Noto Sans Tamil",
        "Nirmala UI",
        sans-serif;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.5;

    letter-spacing: .2px;
}


/* =========================================================
   GOLD ARROW BUTTON
========================================================= */

.card-arrow {
    position: relative;

    z-index: 4;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin-left: 14px;

    border-radius: 11px;

    color: #4b0710;

    background:
        linear-gradient(
            145deg,
            #fff1a8 0%,
            #f5d36b 45%,
            #d99b1f 100%
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .35
        );

    box-shadow:
        0 7px 16px
        rgba(
            0,
            0,
            0,
            .20
        ),

        inset
        0 1px 0
        rgba(
            255,
            255,
            255,
            .65
        );

    font-family: Arial, sans-serif;

    font-size: 20px;

    font-weight: 700;

    transition:
        transform .35s
            cubic-bezier(
                .2,
                .8,
                .2,
                1
            ),

        box-shadow .35s ease,

        background .35s ease;
}


/* INNER GOLD BORDER */

.card-arrow::before {
    content: "";

    position: absolute;

    inset: 5px;

    border:
        1px solid
        rgba(
            75,
            7,
            16,
            .18
        );

    border-radius: 7px;

    pointer-events: none;
}


/* =========================================================
   ARROW HOVER
========================================================= */

.contributor-card:hover
.card-arrow {
    transform:
        translateX(5px)
        rotate(-3deg)
        scale(1.06);

    background:
        linear-gradient(
            145deg,
            #fff8c9 0%,
            #f5d36b 45%,
            #e0a62c 100%
        );

    box-shadow:
        0 10px 22px
        rgba(
            75,
            7,
            16,
            .28
        ),

        0 0 18px
        rgba(
            245,
            211,
            107,
            .22
        ),

        inset
        0 1px 0
        rgba(
            255,
            255,
            255,
            .8
        );
}


/* =========================================================
   ARROW ANIMATION
========================================================= */

@keyframes premiumArrow {

    0% {
        transform:
            translateX(0);
    }

    50% {
        transform:
            translateX(4px);
    }

    100% {
        transform:
            translateX(0);
    }
}


.contributor-card:hover
.card-arrow {
    animation:
        premiumArrow
        1s ease-in-out infinite;
}


/* =========================================================
   CARD COLORS
========================================================= */

.contributor-card:nth-child(1) {
    background:
        linear-gradient(
            145deg,
            #fffdf9,
            #f7e5d3
        );
}


.contributor-card:nth-child(2) {
    background:
        linear-gradient(
            145deg,
            #fffdf9,
            #f8e4d1
        );
}


.contributor-card:nth-child(3) {
    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #edf0df
        );
}


.contributor-card:nth-child(1)
.card-icon {
    color: #721624;
}


.contributor-card:nth-child(2)
.card-icon {
    color: #b84e18;
}


.contributor-card:nth-child(3)
.card-icon {
    color: #526b35;
}


.contributor-card:nth-child(3)
.card-label {
    color: #8f7018;
}


.contributor-card:nth-child(3)
.card-content h3 {
    color: #40552d;
}


/* GREEN BUTTON */

.contributor-card:nth-child(3)
.card-bottom {
    background:
        linear-gradient(
            135deg,
            #29401d 0%,
            #405f29 48%,
            #557536 100%
        );

    border-color:
        rgba(
            217,
            155,
            31,
            .42
        );
}


.contributor-card:nth-child(3)
.card-bottom > span:first-child {
    color: #fff;
}


.contributor-card:nth-child(3)
.card-arrow {
    color: #29401d;

    background:
        linear-gradient(
            145deg,
            #fff3ad,
            #e7bc45
        );
}


/* =========================================================
   BUTTON PRESS
========================================================= */

.card-bottom:active {
    transform:
        scale(.975) !important;

    box-shadow:
        0 5px 12px
        rgba(
            75,
            7,
            16,
            .20
        );
}


.card-bottom:active
.card-arrow {
    transform:
        scale(.92);
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal-item {
    opacity: 0;

    transform:
        translateY(28px);

    transition:
        opacity .7s ease,
        transform .7s
            cubic-bezier(
                .2,
                .75,
                .2,
                1
            );
}


.reveal-item.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}


.card-clicked {
    transform:
        scale(.985) !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .contributor-grid {
        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .contributors-hero {
        min-height: 285px;
    }


    .hero-inner {
        padding:
            58px 18px;
    }


    .contributors-hero h1 {
        font-size: 35px;
    }


    .contributor-section {
        padding:
            55px 18px 75px;
    }


    .section-heading {
        margin-bottom: 38px;
    }


    .contributor-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .contributor-card {
        min-height: 350px;

        padding: 25px;

        border-radius: 20px;
    }


    .card-content {
        padding-top: 22px;
    }


    .card-content h3 {
        font-size: 27px;
    }


    .card-icon {
        width: 54px;
        height: 54px;

        font-size: 21px;
    }


    .card-bottom {
        padding:
            11px 11px 11px 16px;

        border-radius: 12px;
    }


    .card-bottom > span:first-child {
        font-size: 11px;
    }


    .card-arrow {
        width: 42px;
        height: 42px;

        font-size: 18px;

        margin-left: 10px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .contributors-hero h1 {
        font-size: 30px;
    }


    .hero-label {
        font-size: 8px;

        letter-spacing: 4px;
    }


    .hero-subtitle {
        font-size: 12px;
    }


    .contributor-card {
        min-height: 330px;

        padding: 22px;
    }


    .card-content h3 {
        font-size: 24px;
    }


    .card-content p {
        font-size: 11.5px;
    }


    .card-bottom {
        padding:
            10px 10px 10px 14px;
    }


    .card-bottom > span:first-child {
        font-size: 10px;
    }


    .card-arrow {
        width: 39px;
        height: 39px;

        font-size: 17px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }


    .reveal-item {
        opacity: 1;

        transform: none;
    }
}