/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 60px 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 3;
}
.cta-box {
    background:#031521;
    background-image: url(img/cta-box-bg-image.svg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top left;
    padding: 0 0;
}
.cta-box-content {
    height: 100%;
    align-content: center;
}
.cta-box-image {
    height: 100%;
    align-content: end;
    margin-left: 20px;
}
/* Video Background */

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    animation: videoScale 20s ease-in-out infinite;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    animation: videoScale 20s ease-in-out infinite;
}

@keyframes videoScale {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:  rgba(0, 0, 0, 0.2);
    z-index: 2; 
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-fallback.show {
    opacity: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="8" fill="rgba(255,255,255,0.05)">aw8.com</text></svg>') repeat;
    opacity: 0.1;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    animation: fadeInUp 1.5s ease-out;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    animation: fadeIn 2s ease-out;
}

.aw8-logo {
    font-size: 4rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.ceremony-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 600;
}

.ambassador-image-container {
    position: relative;
    margin: 40px 0;
}

.ambassador-photo {
    position: relative;
    z-index: 2;
}

.jersey-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.jersey-img {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.country-flags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.flag-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
}

.flag-circle.malaysia { background: linear-gradient(45deg, #cc0000, #ffffff); }
.flag-circle.vietnam { background: linear-gradient(45deg, #da251d, #ffff00); }
.flag-circle.singapore { background: linear-gradient(45deg, #ffffff, #ed2939); }
.flag-circle.thailand { background: linear-gradient(45deg, #a51931, #2d2a4a); }
.flag-circle.indonesia { background: linear-gradient(45deg, #ffffff, #ce1126); }
.flag-circle.cambodia { background: linear-gradient(45deg, #032ea1, #ed1c24); }
.flag-circle.australia { background: linear-gradient(45deg, #012169, #ffffff); }
.flag-circle.international { background: linear-gradient(45deg, #1e3a8a, #ffffff); }

.main-title {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-top: 40px;
}

/* Security Bar */
.security-bar {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    padding: 30px 0;
    border-top: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
}

.security-title {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.certification-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.cert-logo img {
    max-height: 160px; 
    transition: transform 0.3s ease;
}

.cert-logo img:hover {
    transform: scale(1.1);
}

.award-years {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.award-medal {
    background: linear-gradient(45deg, #ffffff, #ffed4e);
    color: #000000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Welcome Section */
.welcome-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/bg.png') center center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.welcome-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 60px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.torres-image-container {
    position: relative;
    text-align: center;
}

.torres-img {
    max-width: 100%; 
}

.number-8-overlay {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 8rem;
    font-weight: bold;
    color: #ffffff;
    opacity: 0.3;
    z-index: -1;
}

.torres-info {
    padding: 40px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 58, 138, 0.2);
}

.signature {
    font-family: 'Brush Script MT', cursive;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.ambassador-title {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.achievements {
    margin-bottom: 30px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255,215,0,0.1);
    border-radius: 10px;
    border-left: 4px solid #ffffff;
}

.achievement-item i {
    color: #ffffff;
    font-size: 1.2rem;
}

.casino-description h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.casino-description p {
    color: #1e3a8a;
    line-height: 1.8;
}

/* Promotions Section */
.promotions-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.promotion-card {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    height: 100%;
}

.promotion-card:hover {
    transform: translateY(-10px);
}

.promotion-image {
    position: relative;
    overflow: hidden;
}

.promotion-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.promotion-card:hover .promotion-image img {
    transform: scale(1.05);
}

.promotion-content {
    padding: 25px;
    text-align: center;
}

.promotion-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
}

.info-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    height: 100%;
}

.info-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    color: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    padding-left: 25px;
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

/* Loyalty Section */
.loyalty-section {
    padding: 80px 0; 
    text-align: center;
}

.loyalty-content {
    max-width: 800px;
    margin: 0 auto;
}

.loyalty-icon {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 30px;
}

.loyalty-section h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.loyalty-section p {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Better Choice Section */
.better-choice-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.section-subtitle {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 60px;
    text-align: center;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.feature-card h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-card p {
    color: #ffffff;
    line-height: 1.6;
}

/* Mobile App Section */
.mobile-app-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    text-align: center;
}

.mobile-app-section h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.app-subtitle {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 60px;
}

.qr-section {
    margin-bottom: 40px;
}

.qr-code img {
    max-width: 150px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mobile-mockups {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.phone-mockup img {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 60px 0 30px; 
}

.gaming-providers h4 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: bold;
}

.provider-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.provider-logo img {
    max-height: 40px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.provider-logo img:hover {
    transform: scale(1.1);
}

.footer-section {
    text-align: center;
    margin-bottom: 30px;
}

.footer-section h5 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.pagcor-logo img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-section p {
    color: #ffffff;
    line-height: 1.6;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-logo img {
    max-height: 60px;
    filter: brightness(0) invert(1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: scale(1.1);
    color: #000000;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

.copyright p {
    color: #ffffff;
    margin: 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .video-background video {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
    }
    
    .video-background iframe {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
    }
    
    .aw8-logo {
        font-size: 2.5rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .ceremony-title {
        font-size: 1.2rem;
    }
    
    .country-flags {
        gap: 15px;
    }
    
    .flag-circle {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }
    
    .certification-logos {
        gap: 15px;
    }
    
    .cert-logo img {
        max-height: 40px;
    }
    
    .torres-info {
        padding: 20px;
        margin-top: 30px;
    }
    
    .signature {
        font-size: 1.5rem;
    }
    
    .mobile-mockups {
        gap: 15px;
    }
    
    .phone-mockup img {
        max-width: 250px;
    }
    
    .provider-logos {
        gap: 15px;
    }
    
    .provider-logo img {
        max-height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .aw8-logo {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .country-flags {
        gap: 10px;
    }
    
    .flag-circle {
        width: 40px;
        height: 40px;
        font-size: 0.7rem;
    }
    
    .flag-item span {
        font-size: 0.8rem;
    }
    
    .certification-logos {
        gap: 10px;
    }
    
    .cert-logo img {
        max-height: 30px;
    }
    
    .award-medal {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .torres-info {
        padding: 15px;
    }
    
    .signature {
        font-size: 1.2rem;
    }
    
    .ambassador-title {
        font-size: 1.2rem;
    }
    
    .achievement-item {
        padding: 8px;
        gap: 10px;
    }
    
    .achievement-item i {
        font-size: 1rem;
    }
    
    .promotion-content h3 {
        font-size: 1.1rem;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .loyalty-section h2 {
        font-size: 1.8rem;
    }
    
    .loyalty-section p {
        font-size: 1rem;
    }
    
    .mobile-app-section h2 {
        font-size: 1.8rem;
    }
    
    .app-subtitle {
        font-size: 1rem;
    }
    
    .phone-mockup img {
        max-width: 200px;
    }
    
    .gaming-providers h4 {
        font-size: 1.4rem;
    }
    
    .provider-logo img {
        max-height: 30px;
    }
    
    .footer-section h5 {
        font-size: 1.1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-section,
.welcome-section,
.promotions-section,
.loyalty-section,
.better-choice-section,
.mobile-app-section {
    animation: fadeInUp 1s ease-out;
}

.loyalty-icon {
    animation: pulse 2s infinite;
}

/* 滾動效果 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
} 

