*,
*::after,
**::before {
    box-sizing: border-box;
}

:root {
    --background: #171c2c;
    --primary: #00235e;
    --secondary: #004e8f;
    --accent: #2ab7ff;
    --white: #ffffff;
    --orange: #2ab7ff;
    --cubic: cubic-bezier(0.4, 0, 0.2, 1);
}

.orange {
    color: var(--orange)
}

body {
    line-height: 1.5;
    padding: 0;
    margin: 0;
    background-color: #171c2c;
    background-image: url('../img/bg.png');
    background-position: top center;
    background-repeat: no-repeat;
    font-family: "Lexend", Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
li {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}


/* Header */

.header {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to left, transparent 0%, rgb(23 28 44 / 0.7) 20%, rgb(23 28 44 / 1) 50%, rgb(23 28 44 / 0.7) 80%, transparent 100%);
    margin-top: 6em
}

.header::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 25%;
    height: 4px;
    background: linear-gradient(to right, transparent 0%, #2ab7ff 50%, #2ab7ff 100%);
    z-index: 1;
}

.header::after {
    content: "";
    position: absolute;
    top: -4px;
    right: 0;
    width: 25%;
    height: 4px;
    background: linear-gradient(to left, transparent 0%, #2ab7ff 50%, #2ab7ff 100%);
    z-index: 1;
}

.logo {
    position: relative;
    z-index: 3;
    margin-top: -2.5em;
    transform: translateY(1em)
}

.logo img {
    width: 300px;
}

.logoback {
    position: absolute;
    bottom: -1.5em;
    width: 400px;
    height: 100%;
    background: rgb(23 28 44 / 0.85);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    z-index: 1;
    backdrop-filter: blur(5px);
}

.header .container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.header ul {
    position: absolute;
    right: 0;
    display: grid;
    grid-template-columns: auto auto;
}

.header ul li {
    transform: skew(-11deg);
    position: relative;
}

.header ul li a {
    padding: 1.75em 2em;
    color: #fff;
    position: relative;
    transform: skew(11deg);
    font-weight: 700;
}

.header ul li:first-child a {
    background: #2ab7ff;
}

.header ul li:last-child a {
    background: #00235e;
}


/* Header Text */

.header-text {
    color: #fff;
    margin-top: 8em
}

.header-text .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.header-text .container>* {
    max-width: 400px;
}

.header-text h1 {
    position: relative;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    padding-left: .5em;
    margin: 0
}

.header-text h1::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 70%;
    width: 4px;
    background: #2ab7ff;
}

.header-text h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.3em 0 0 0;
    color: var(--accent);
}

.header-text p {
    text-align: right;
    font-weight: 400;
    margin: 0
}


/* Second Area */

.second-area {
    margin-top: 20em;
    color: #fff;
    text-align: center;
    background-image: url('../img/secondbg.png');
    background-position: top center;
    height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.second-area .container {
    margin-top: 20em
}

.second-area h2 {
    font-size: 2em;
    margin: 0 0 .5em 0
}

.second-area p {
    max-width: 80%;
    margin: 0 auto;
    font-size: 1.1em;
}


/* Games Area */

.games-area {
    background-image: url('../img/gamesbg.png');
    background-size: 100% calc(100% - 3em);
    background-repeat: no-repeat;
    margin-top: -6em;
}

.games-area .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
    transform: translateY(-4em);
    justify-content: space-between;
}

.games-area img {
    transition: all 300ms var(--cubic)
}

.games-area a:hover img {
    transform: scale(1.1)
}


/* Promation Area */

.promotion-area {
    text-align: center;
    color: #fff;
    background-image: url('../img/promobg.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #171c2c;
    padding: 6em 0
}

.promotion-area h2 {
    font-size: 2em;
    margin: 0 0 .5em 0
}

.promotion-area p {
    max-width: 70%;
    margin: 0 auto;
    font-size: 1.1em;
}


/* Promation Grid */

.promo-grid {
    margin-top: 4em;
    display: grid;
    grid-template-areas: "a a b c" "a a d e ";
    gap: 2em;
    text-align: left;
}

.promo-grid a {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
    gap: 1em;
    padding: 2em;
    background-color: rgba(255, 255, 255, 0.1);
    background-image: url('../img/gridbg.png');
    background-position: right top;
    background-repeat: no-repeat;
    transition: all 200ms var(--cubic)
}

.promo-grid a:hover {
    transform: scale(1.02)
}

.promo-grid .info {
    position: relative;
    z-index: 22;
}

.promo-grid .button {
    position: absolute;
    bottom: -1em;
    left: -1em
}

.promo-grid h3,
.promo-grid p {
    margin: 0
}

.promo-grid h3 {
    font-weight: 400;
    color: var(--orange)
}

.promo-grid p {
    margin-top: 1em;
    font-size: .75em;
}

.promo-grid a:first-child {
    background-color: var(--orange);
    background-image: url('../img/gridbg1.png');
    grid-area: a;
    grid-template-columns: 1fr;
}

.promo-grid a:first-child h3 {
    color: #fff;
    font-size: 2.25em;
    font-weight: 700;
}

.promo-grid a:first-child p {
    color: #000;
    font-size: .875em;
}

.promo-grid a:not(:first-child) .grid-image {
    order: 1
}

.promo-grid a:not(:first-child) .grid-image img {
    max-width: 120px;
}


/* Footer */

.footer-top {
    background: #171c2c;
}

.footer-top .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2em 0
}

.footer-cizgi {
    border-top: 1px solid #2ab7ff;
    opacity: .2;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(to bottom, #171c2c 70%, #171c2c 70%, #171c2c 70%, #171c2c 100%);
}

.footer-logo img {
    position: relative;
    z-index: 2;
}

.footer-logo::after {
    content: "";
    position: absolute;
    top: 70%;
    width: 100%;
    height: 4px;
    background: var(--orange);
    z-index: 1;
}

.footer-bottom {
    color: #999;
    text-align: center;
    padding: 4em 0;
    background-color: #171c2c;
    background-image: url('../img/footer-icon.png'), url('../img/footer-icon.png');
    background-position: left, right;
    background-repeat: no-repeat;
}

.social {
    margin-top: 2em;
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 1em;
    justify-content: center;
}

.just-mobile {
    display: none;
}

.just-mobile .social {
    margin: 0;
    line-height: 1;
}

.mobile-show {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 1em;
    text-align: center;
    margin: 1em;
    background: #00235e;
    color: var(--orange);
    font-weight: 700;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.mobile-logo {
    display: none;
}

.mobile-top-logo {
    display: none;
}

.mobile-show svg {
    width: 1.5em;
    margin-left: 1em
}

.mobile-social {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

@media screen and (min-width:1336px) {
    .container {
        max-width: 1200px;
    }
}

@media screen and (max-width:768px) {
    .just-mobile {
        display: unset;
    }
    .mobile-show {
        display: none;
    }
    .header::before {
        width: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(to right, transparent 0%, #2ab7ff 10%, #2ab7ff 90%, transparent 100%);
        z-index: 10;
    }
    .header::after {
        display: none;
    }
    .header {
        display: none;
    }
    .header-text {
        margin-top: 0
    }
    .mobile-social {
        display: grid;
        grid-template-columns: repeat(5, auto);
        gap: 0;
        justify-content: center;
        gap: 1em;
        padding: .5em 1em;
        line-height: 1;
        background: rgb(23 28 44 / 0.6);
        backdrop-filter: blur(5px);
    }
    .mobile-social img {
        width: 48px;
    }
    .logoback {
        width: 100%;
        bottom: unset;
        height: 100%;
        top: 0;
    }
    .header .logo {
        display: none;
    }
    .header-text .container {
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    .mobile-top-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1em;
        background: linear-gradient(to bottom, #171c2c 0%, rgba(23, 28, 44, 0.95) 100%);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        border-bottom: 1px solid rgba(42, 183, 255, 0.2);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    .mobile-top-logo img {
        width: 180px;
        height: auto;
    }
    .header-text .container {
        padding-top: 0;
    }
    .header ul {
        display: none;
    }
    .header .container {
        flex-direction: column;
    }
    .header-text h1 {
        order: 0;
        text-align: center;
        padding: 0 1em;
        margin-top: 1em;
        margin-bottom: .5em;
        font-weight: 700;
        line-height: 1;
        text-shadow: 0px 0px 5px #171c2c;
        font-size: 3em;
    }
    .header-text h2 {
        order: 1;
        text-align: center;
        margin-top: 0.5em;
        margin-bottom: 0;
    }
    .header ul li {
        transform: none;
        position: relative;
    }
    .header ul li a {
        display: inline-grid;
        transform: none;
        padding: 1em 1.5em;
        font-size: 0.9em;
    }
    .header-text p {
        text-align: center;
        padding: 0 2em;
		font-size:1.2em;
		color: #fff;
    text-shadow: 0 0 5px #171c2c;
    }
    .second-area {
        margin-top: 10em
    }
    .games-area {
        text-align: center;
    }
    .games-area .container {
        grid-template-columns: 1fr;
    }
    .promo-grid {
        grid-template-areas: "a";
        padding-left: 2em;
        padding-right: 2em
    }
    .games-area .container {
        transform: none;
        padding: 2em 0
    }
    .games-area {
        background-size: 100%;
        background-repeat: repeat-y;
    }
    .footer span {
        padding: 2em;
        text-align: center;
    }
    .footer img {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    .header-text .container>* {
        max-width: 100%;
    }
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 75px !important;
        min-height: 75px !important;
        max-height: 75px !important;
        background: rgba(23, 28, 44, 0.95) !important;
        backdrop-filter: blur(30px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
        border-top: 1px solid rgba(42, 183, 255, 0.2) !important;
        padding: 0.5em 0.25em !important;
        z-index: 9999 !important;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3) !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding-bottom: calc(env(safe-area-inset-bottom, 0) + 0.5em) !important;
        padding-top: 0.5em !important;
        gap: 0 !important;
    }
    .mobile-bottom-nav .nav-icon {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: rgba(255, 255, 255, 0.7) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding: 0.5em 0.4em !important;
        min-width: 60px !important;
        gap: 0.3em !important;
        flex: 1 !important;
        position: relative !important;
        border-radius: 0 !important;
    }
    /* Aktif buton için üstte mavi çizgi */
    .mobile-bottom-nav .nav-icon.active::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 40px !important;
        height: 3px !important;
        background: var(--accent) !important;
        border-radius: 0 0 3px 3px !important;
        z-index: 1 !important;
    }
    .mobile-bottom-nav .nav-icon.active {
        color: var(--accent) !important;
    }
    .mobile-bottom-nav .nav-icon.active svg {
        stroke: var(--accent) !important;
        fill: none !important;
    }
    .mobile-bottom-nav .nav-icon.active span {
        color: var(--accent) !important;
        opacity: 1 !important;
    }
    .mobile-bottom-nav .nav-icon svg {
        width: 24px !important;
        height: 24px !important;
        stroke: currentColor !important;
        stroke-width: 2 !important;
        fill: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    /* WhatsApp icon için özel stil (fill kullanıyor) */
    .mobile-bottom-nav .nav-icon[data-page="whatsapp"] svg {
        fill: currentColor !important;
        stroke: none !important;
    }
    .mobile-bottom-nav .nav-icon span {
        font-size: 0.7em !important;
        font-weight: 500 !important;
        letter-spacing: 0.3px !important;
        opacity: 0.85 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        text-align: center !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .mobile-bottom-nav .nav-icon:hover {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    .mobile-bottom-nav .nav-icon:hover svg {
        stroke: rgba(255, 255, 255, 0.9) !important;
        transform: scale(1.05) !important;
    }
    .mobile-bottom-nav .nav-icon[data-page="whatsapp"]:hover svg {
        fill: rgba(255, 255, 255, 0.9) !important;
        stroke: none !important;
    }
    .mobile-bottom-nav .nav-icon:hover span {
        opacity: 1 !important;
    }
    .mobile-bottom-nav .nav-icon:active {
        transform: scale(0.95) !important;
    }
    .mobile-bottom-nav .nav-icon:active svg {
        transform: scale(1) !important;
    }
    .mobile-bottom-nav .nav-icon-favicon {
        position: absolute !important;
        left: 50% !important;
        top: -30px !important;
        transform: translateX(-50%) !important;
        background: var(--background) !important;
        border-radius: 50% !important;
        padding: 0 !important;
        border: 1px solid var(--accent) !important;
        box-shadow: 0 4px 20px rgba(42, 183, 255, 0.5), 0 0 30px rgba(42, 183, 255, 0.3) !important;
        z-index: 10000 !important;
        width: 68px !important;
        height: 68px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .mobile-bottom-nav .nav-icon-favicon:active {
        transform: translateX(-50%) scale(0.9) !important;
        box-shadow: 0 2px 15px rgba(42, 183, 255, 0.7) !important;
    }
    .mobile-bottom-nav .nav-icon-favicon img {
        width: 66px !important;
        height: 66px !important;
        display: block !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .mobile-bottom-nav .nav-icon-favicon span {
        display: none !important;
    }
    body {
        padding-top: 80px;
        padding-bottom: 75px;
    }
}