@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=Tilt+Neon&display=swap");

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Noto Sans Arabic", "Nunito", sans-serif;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    min-height: 100dvh;
    background: #232439;
}

img {
    width: 100%;
    pointer-events: none;
    user-select: none;
}

/* Soft Apple-like color wash behind the original layout */
.home-aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(
        circle at 50% 40%,
        rgba(67, 69, 112, 1) 3%,
        rgba(35, 36, 57, 1) 60%
    );
}

.home-aurora .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    mix-blend-mode: screen;
    will-change: transform;
}

.home-aurora .orb-a {
    width: min(70vw, 480px);
    height: min(70vw, 480px);
    top: -10%;
    right: -15%;
    background: #4ea1e0;
    animation: auroraA 18s ease-in-out infinite alternate;
}

.home-aurora .orb-b {
    width: min(75vw, 520px);
    height: min(75vw, 520px);
    bottom: -18%;
    left: -20%;
    background: #5b6bc8;
    animation: auroraB 22s ease-in-out infinite alternate;
}

.home-aurora .orb-c {
    width: min(55vw, 360px);
    height: min(55vw, 360px);
    top: 40%;
    left: 35%;
    background: #2a9d8f;
    opacity: 0.35;
    animation: auroraC 16s ease-in-out infinite alternate;
}

@keyframes auroraA {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-10%, 14%, 0) scale(1.12); }
}
@keyframes auroraB {
    from { transform: translate3d(0, 0, 0) scale(1.05); }
    to { transform: translate3d(12%, -12%, 0) scale(1.15); }
}
@keyframes auroraC {
    from { transform: translate3d(0, 0, 0) scale(0.95); }
    to { transform: translate3d(-14%, -8%, 0) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .home-aurora .orb { animation: none !important; }
}

/* SECTION - HOME (original layout) */
.home {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 45% 50%;
    place-items: center;
    gap: 50px;
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent;
    overflow: hidden;
    padding: 130px 80px;
}

.description {
    color: #fff;
    padding: 0 50px;
}

.description h1 {
    font-family: "Tilt Neon", "Baloo Bhaijaan 2", sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.gradient-text {
    font-family: "Tilt Neon", "Baloo Bhaijaan 2", sans-serif;
    background-image: linear-gradient(
        90deg,
        rgb(255, 255, 255) 0%,
        rgb(255, 255, 255) 100%
    );
    color: transparent;
    background-size: contain;
    background-clip: text;
    -webkit-background-clip: text;
}

.description p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 30px;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-height: 48px;
    max-width: max-content;
    background: linear-gradient(
        90deg,
        rgb(32, 89, 158) 0%,
        rgb(32, 89, 158) 40%,
        rgb(32, 89, 158) 50%,
        rgb(160, 160, 160) 70%,
        rgb(32, 89, 158) 100%
    );
    background-size: 200%;
    background-position: left;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    border: 0;
    padding: 12px 18px;
    border-radius: 5px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.5),
        inset 0px 2px 2px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease-in;
    -webkit-tap-highlight-color: transparent;
}

.btn-alt {
    background: linear-gradient(
        90deg,
        rgb(48, 110, 180) 0%,
        rgb(32, 89, 158) 45%,
        rgb(140, 140, 140) 75%,
        rgb(32, 89, 158) 100%
    );
    background-size: 200%;
}

.btn:hover,
.btn:focus-visible {
    background-position: right;
}

.btn:active {
    transform: scale(0.98);
}

.users-color-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}

.item {
    max-width: 200px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5),
        inset 0px 2px 2px rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s linear 1 forwards;
    animation-delay: calc(0.2s * var(--i));
    opacity: 0;
}

.item:nth-child(1) {
    background-color: #67d7e1;
    border-radius: 50% 50% 0 50%;
}

.item:nth-child(2) {
    border-radius: 50% 50% 0 0;
}

.item:nth-child(3) {
    background-color: #6cc164;
    border-radius: 50%;
}

.item:nth-child(4) {
    border-radius: 0 0 0 50%;
}

.item:nth-child(5) {
    border-radius: 0 50% 50% 0;
}

.item:nth-child(6) {
    background-color: #8071a8;
    border-radius: 0 50% 50% 50%;
}

.item:nth-child(7) {
    border-radius: 50% 50% 0 50%;
}

.item:nth-child(8) {
    background-color: #fe7519;
    border-radius: 50% 0 0 50%;
}

.item:nth-child(9) {
    background-color: #f5bec3;
    border-radius: 0 50% 50% 0;
}

.item:nth-child(10) {
    border-radius: 50%;
}

.item:nth-child(11) {
    background-color: #fcd659;
    border-radius: 50% 0 50% 50%;
}

.item:nth-child(12) {
    border-radius: 50% 0 0 0;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
}

.social-icons {
    position: fixed;
    z-index: 2;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-icons a {
    color: white;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #00aced;
}

@media (max-width: 1215px) {
    .btn {
        font-size: 1rem;
    }
}

@media (max-width: 1015px) {
    .home {
        grid-template-columns: 45% 50%;
        gap: 50px;
        padding: 140px 50px;
    }

    .btn {
        padding: 10px 14px;
    }
}

@media (max-width: 865px) {
    .home {
        gap: 60px;
        padding: 130px 70px;
    }

    .users-color-container {
        gap: 15px;
    }
}

@media (max-width: 815px) {
    .home {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "userscolorcontainer"
            "description";
        gap: 28px;
        padding: 48px 24px 96px;
        align-content: center;
    }

    .users-color-container {
        grid-area: userscolorcontainer;
        gap: 12px;
        width: min(100%, 420px);
        margin: 0 auto;
    }

    .description {
        grid-area: description;
        padding: 0;
        text-align: center;
    }

    .title {
        justify-content: center;
    }

    .button-container {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin-inline: auto;
    }

    .btn {
        max-width: none;
        width: 100%;
        min-height: 52px;
        font-size: 1.05rem;
        border-radius: 10px;
    }
}

@media (max-width: 460px) {
    .home {
        gap: 20px;
        padding: 28px 18px 100px;
    }

    .users-color-container {
        gap: 8px;
    }

    .description h1 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
        margin-bottom: 16px;
    }

    .description p {
        margin-bottom: 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .social-icons {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        padding: 8px 12px;
        gap: 10px;
    }

    .social-icons a {
        font-size: 22px;
    }
}
