/* 
 * ALADIN66 Official - Stylesheet
 * Versi: 2.0 | Teroptimasi untuk SEO & Performa
 */

/* ============================================
   RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-gold: #FFD700;
    --primary-gold-dark: #E6C200;
    --background-dark: #000000;
    --background-card: #111111;
    --background-section: #080808;
    --border-dark: #333333;
    --text-light: #FFFFFF;
    --text-gray: #BBBBBB;
    --text-dark: #888888;
    
    /* Typography */
    --font-primary: 'Bitter', serif;
    --font-size-base: 16px;
    --font-size-large: 1.125rem; /* 18px */
    --font-size-small: 0.875rem; /* 14px */
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    
    /* Shadows */
    --shadow-gold: 0 4px 15px rgba(255, 215, 0, 0.3);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--background-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary-gold);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

p.large {
    font-size: var(--font-size-large);
    line-height: 1.7;
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

/* ============================================
   SKIP LINK (Accessibility)
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-gold);
    color: var(--background-dark);
    padding: 8px 16px;
    z-index: 1001;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
}

.header-inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 4vw;
    position: relative;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.header-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.header-title-nav-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-nav {
    margin-right: 40px;
}

.header-nav-wrapper {
    position: relative;
}

.header-nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.header-nav-item a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-normal);
}

.header-nav-item.active a {
    color: var(--primary-gold);
    font-weight: 700;
}

.header-nav-item a:hover {
    color: var(--primary-gold);
}

.header-nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width var(--transition-normal);
}

.header-nav-item a:hover::after,
.header-nav-item.active a::after {
    width: 100%;
}

.header-title {
    flex-shrink: 0;
}

.header-title-logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.header-title-logo:hover img {
    transform: scale(1.05);
}

.header-actions {
    display: flex;
    align-items: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--background-dark);
    border-color: var(--primary-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-internal {
    display: inline-block;
    padding: 20px 50px;
    font-weight: 800;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 1.2rem;
    min-width: 280px;
    text-align: center;
    transition: all var(--transition-normal);
}

.btn-internal:first-of-type {
    background: var(--primary-gold);
    color: var(--background-dark);
    box-shadow: var(--shadow-gold);
}

.btn-internal:first-of-type:hover {
    background: var(--primary-gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-internal:last-of-type {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-internal:last-of-type:hover {
    background: var(--primary-gold);
    color: var(--background-dark);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.header-burger {
    display: none;
    margin-left: 20px;
}

.header-burger-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-inner {
    position: relative;
    width: 100%;
    height: 14px;
}

.burger-inner span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-gold);
    transition: all var(--transition-normal);
}

.top-bun {
    top: 0;
}

.patty {
    top: 6px;
}

.bottom-bun {
    bottom: 0;
}

/* Mobile Menu Overlay */
.header-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.header-menu.active {
    display: block;
    opacity: 1;
}

.header-menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-dark);
}

.header-menu-nav {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.header-menu-nav-list {
    width: 100%;
    max-width: 500px;
}

.header-menu-nav-item {
    margin-bottom: 30px;
    text-align: center;
}

.header-menu-nav-item a {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 500;
    display: block;
    padding: 15px 0;
    transition: color var(--transition-normal);
}

.header-menu-nav-item.active a {
    color: var(--primary-gold);
    font-weight: 700;
}

.header-menu-nav-item a:hover {
    color: var(--primary-gold);
}

.header-menu-cta {
    margin-top: 50px;
    text-align: center;
}

/* ============================================
   MAIN CONTENT & SECTIONS
   ============================================ */
main {
    margin-top: 80px;
    min-height: calc(100vh - 400px);
}

.page-section {
    position: relative;
    padding: var(--spacing-xl) 0;
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

.content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    padding-top: calc(80px + 40px);
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.hero-title {
    margin-bottom: var(--spacing-sm);
}

.hero-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Description Sections */
.description-section {
    background-color: var(--background-section);
}

.pillar-content {
    max-width: 800px;
    margin: 0 auto;
}

.pillar-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

/* Features List */
.features-list {
    margin: var(--spacing-lg) 0;
    padding-left: 20px;
    list-style: none;
}

.features-list li {
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: 25px;
}

.features-list li::before {
    content: "✓";
    color: var(--primary-gold);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Table Styles */
.table-container {
    margin: var(--spacing-xl) 0;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-dark);
    background: var(--background-card);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-light);
    min-width: 600px;
}

.table-container th {
    background: var(--primary-gold);
    color: var(--background-dark);
    padding: 15px;
    border: 1px solid var(--border-dark);
    font-weight: 700;
    text-align: left;
}

.table-container td {
    padding: 15px;
    border: 1px solid var(--border-dark);
}

.table-container tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.table-container tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

/* Services Section */
.services-section {
    background-color: var(--background-dark);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    border: 1px solid var(--border-dark);
    padding: 25px;
    border-radius: var(--radius-md);
    background: var(--background-card);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.shape-diamond {
    width: 40px;
    height: 40px;
    fill: var(--primary-gold);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--background-section);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--primary-gold);
    transition: transform var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-quote p {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
}

.testimonial-author {
    margin-top: 15px;
}

.testimonial-author span {
    font-size: var(--font-size-small);
    color: var(--text-dark);
}

/* FAQ Section */
.faq-section {
    background: #050505;
    padding-bottom: 80px;
}

.faq-header {
    margin-bottom: 50px;
}

.faq-header p {
    color: var(--text-dark);
    margin-top: var(--spacing-xs);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background-card);
    margin-bottom: 15px;
    border-radius: var(--radius-md);
    border: 1px solid #222;
    padding: 25px;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--primary-gold);
    transform: translateX(5px);
}

.faq-footer {
    margin-top: 40px;
    color: #555;
    font-size: 0.9rem;
}

.faq-footer p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--background-section);
    padding: 70px 0;
    border-top: 2px solid var(--primary-gold);
    border-bottom: 1px solid #222;
}

.cta-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cta-title p {
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.cta-action-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.security-badges {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    opacity: 0.6;
    filter: grayscale(100%);
    font-size: 0.8rem;
}

.security-badges span {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Author Section */
.author-section {
    background: #0a0a0a;
    padding: 30px 0;
    border-top: 1px solid #222;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 850px;
    margin: 0 auto;
    background: var(--background-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.author-info h4 {
    color: var(--primary-gold);
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.author-info p {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.author-info p:last-child {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--background-dark);
    padding: 60px 0 30px;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #d2d2d2;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-nav h4,
.footer-trust h4,
.footer-contact h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-nav ul,
.footer-trust ul {
    list-style: none;
    padding: 0;
    line-height: 2;
}

.footer-nav li a,
.footer-trust li a {
    color: #ccc;
    text-decoration: none;
    transition: color var(--transition-normal);
    font-size: 0.9rem;
}

.footer-nav li a:hover,
.footer-trust li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-contact p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-compliance {
    margin-bottom: 40px;
    text-align: center;
}

.license-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    filter: grayscale(100%) opacity(0.7);
}

.responsible-gaming {
    border: 1px solid var(--border-dark);
    padding: 15px;
    border-radius: var(--radius-md);
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 215, 0, 0.05);
}

.responsible-gaming p:first-child {
    color: var(--primary-gold);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 700;
}

.responsible-gaming p:last-child {
    color: #ccc;
    font-size: 0.8rem;
    margin: 5px 0 0;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-dark);
}

.footer-disclaimer {
    max-width: 900px;
    margin: 0 auto 25px;
}

.footer-disclaimer p {
    color: #d6d6d6;
    font-size: 0.75rem;
    line-height: 1.5;
}

.footer-copyright p {
    color: #d2d2d2;
    font-size: 0.85rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* HR Styles */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
    margin: 40px 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .header-nav {
        margin-right: 20px;
    }
    
    .header-nav-list {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Typography Adjustments */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Header Adjustments */
    .header-nav,
    .header-actions .header-actions-action:not(.showOnMobile) {
        display: none;
    }
    
    .header-burger {
        display: block;
    }
    
    .header-desktop {
        justify-content: space-between;
    }
    
    .header-title-nav-wrapper {
        flex: 0 1 auto;
    }
    
    .header-title-logo img {
        height: 35px;
    }
    
    /* Main Content */
    main {
        margin-top: 70px;
    }
    
    .page-section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-section {
        padding-top: calc(70px + 20px);
    }
    
    /* Services & Testimonials */
    .services-container,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item,
    .testimonial-card {
        padding: 20px;
    }
    
    /* CTA Buttons */
    .cta-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-internal {
        min-width: 100%;
        max-width: 300px;
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* Author Section */
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .license-logos {
        gap: 15px;
    }
    
    .license-logos img {
        height: 50px;
        width: auto;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn-internal {
        padding: 12px 25px;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 15px;
    }
    
    .table-container {
        margin: var(--spacing-md) 0;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .header-burger,
    .btn-internal,
    .footer-nav,
    .footer-trust,
    .footer-contact,
    .license-logos,
    .security-badges {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .page-section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}