/* ----------------------------------------------------------------
	Custom CSS - Game Voucher & Wallet Top-up Theme
-----------------------------------------------------------------*/

:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f1f5f9;
    --body-bg: #ffffff;
    --body-color: #334155;
    --header-height: 80px;
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--body-color);
    background-color: var(--body-bg);
    line-height: 1.6;
    padding-top: var(--header-height);
    margin:0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header Styles */
.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

#header-wrap {
    height: 100%;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo Styles */
#logo {
    margin-right: 2rem;
}

.standard-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.standard-logo img {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Navigation Styles */
.primary-menu {
    height: 100%;
}

.menu-container {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top:15px;
}

.menu-item {
    height: 100%;
    margin: 0 0.5rem;
}

.menu-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--body-color);
    transition: all 0.3s ease;
}

.menu-link:hover {
    color: var(--primary-color);
}

.menu-link div {
    position: relative;
}

.menu-link div::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.menu-link:hover div::after {
    width: 100%;
}

/* Top-up Button */
.btn-topup {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    margin-left: 1rem;
}

.btn-topup:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-topup div::after {
    display: none;
}

/* Mobile Menu Trigger */
#primary-menu-trigger {
    display: none;
}

.svg-trigger {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.svg-trigger path {
    fill: none;
    stroke: var(--dark-color);
    stroke-width: 3;
    transition: all 0.3s ease;
}

/* Footer Styles */
#footer {
    background-color: var(--dark-color);
    color: #fff;
}
#footer > .container{
    padding: 5rem;
}

.footer-copyright .container{
    padding:1rem;
}

.footer-widgets-wrap {
    padding-bottom: 4rem;
}

.widget h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-right: 1rem;
}

.footer-logo-text {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.widget_links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_links ul li {
    margin-bottom: 0.75rem;
}

.widget_links ul li a {
    color: rgba(255,255,255,0.7);
}

.widget_links ul li a:hover {
    color: #fff;
}

.contact-info p {
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.footer-copyright {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

/* Go To Top Button */
#gotoTop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#gotoTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#gotoTop:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    :root {
        --header-height: 70px;
    }

    #primary-menu-trigger {
        display: block;
    }

    .primary-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #fff;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .primary-menu.menu-open {
        transform: translateX(0);
    }

    .menu-container {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .menu-item {
        width: 100%;
        height: auto;
        margin: 0;
    }

    .menu-link {
        padding: 1rem 0;
        width: 100%;
    }

    .btn-topup {
        margin: 1rem 0 0;
        text-align: center;
        justify-content: center;
    }

    .footer-copyright .text-md-right,
    .footer-links {
        text-align: center;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .widget {
        margin-bottom: 2rem;
    }
}

/* Hero Section Styles */
.slider-element {
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
}

.slider-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png') repeat;
    opacity: 0.1;
}

.slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.vertical-middle {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    padding: 0 15px;
}

/* Feature Box Styles */
.feature-box {
    position: relative;
    padding: 2rem;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.fbox-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-box-sm {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-box-sm:hover {
    transform: translateX(5px);
}

/* Game Card Styles */
.game-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.card-img-top-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f8f9fa;
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .hover-overlay {
    opacity: 1;
}

.game-card:hover .card-img-top {
    transform: scale(1.1);
}

.hover-content {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.game-card:hover .hover-content {
    transform: translateY(0);
}

.card-body {
    padding: 1rem;
    background: #fff;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

.card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section.bg-light {
    background-color: var(--light-color) !important;
}

/* Contact Form Styles */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.form-control-lg {
    font-size: 1.125rem;
    padding: 1.25rem 1.5rem;
}

/* Contact Info Styles */
.contact-info .bi {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Header Shrink Animation */
.header-shrink {
    height: 70px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.header-shrink .standard-logo img {
    height: 35px;
}

.header-shrink .brand-text {
    font-size: 1.25rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .slider-element {
        min-height: 500px !important;
    }

    .feature-box {
        margin-bottom: 2rem;
    }

    .game-card {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }
}

/* Products Section Styles */
#section-products {
    padding: 4rem 0;
}

.section.bg-light {
    background-color: var(--light-color) !important;
}

/* Products Grid Styles */
.row.g-4 {
    margin: 0 -0.75rem;
}

.row.g-4 > [class*="col-"] {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

.game-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.card-img-top-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f8f9fa;
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .hover-overlay {
    opacity: 1;
}

.game-card:hover .card-img-top {
    transform: scale(1.1);
}

.hover-content {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.game-card:hover .hover-content {
    transform: translateY(0);
}

.card-body {
    padding: 1rem;
    background: #fff;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

.card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

/* Responsive Grid Adjustments */
@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 21%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Form Styles */
.form-modern {
    --input-padding-y: 1rem;
    --input-padding-x: 1.25rem;
}

.form-modern .form-group {
    margin-bottom: 1.5rem;
}

.form-modern .form-label {
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-modern .form-control,
.form-modern .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: var(--input-padding-y) var(--input-padding-x);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--dark-color);
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.form-modern .form-control-lg,
.form-modern .form-select-lg {
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.1);
}

.form-modern .form-control::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

.form-modern small.text-muted {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Card Styles */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding:10px;
}

.card-body {
    background-color: #fff;
}

/* Button Styles */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Additional Styles */
.section.bg-light {
    background-color: #f8fafc !important;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 5rem 0;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .section.bg-light {
        padding: 3rem 0;
    }

    .card-body {
        padding: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    .form-modern .form-control-lg,
    .form-modern .form-select-lg {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* Contact Section Specific Styles */
#section-contact {
    padding: 5rem 0;
}
#section-contact .container{
    padding:0;
    width:100%;
}
#section-contact input,
#section-contact textarea{
    width:600px;
}
#section-contact .form-control {
    background-color: #fff;
    border: 2px solid #e2e8f0;
}

#section-contact .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.1);
}

#section-contact .contact-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
    margin-top:30px;
    width:1000px;
}

#section-contact .contact-info .d-flex {
    padding: 1rem;
    background-color: rgba(99, 102, 241, 0.03);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

#section-contact .contact-info .d-flex:hover {
    transform: translateX(5px);
    background-color: rgba(99, 102, 241, 0.06);
}

#section-contact .contact-info .bi {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

#section-contact .contact-info h5 {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
}

#section-contact .contact-info p {
    color: var(--body-color);
    margin-bottom: 0;
    font-size: 0.95rem;
}

#section-contact .btn-primary {
    padding: 1rem 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#section-contact .alert {
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
}

#section-contact iframe {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#section-contact iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.15);
}