/* N8 Casino APK - Modern Gaming Platform Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: #f7fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    z-index: -1;
    will-change: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.8);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo:hover .logo-img {
    transform: rotate(5deg) scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.nav-links a[aria-current="page"] {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem 0;
    margin-bottom: 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #ccc;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: #5a67d8;
}

/* Main Content */
main {
    background: transparent;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 200px);
}

.content {
    padding: 4rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0;
    width: 100%;
    display: block;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 3rem 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.feature-card h3 {
    margin: 0 0 1rem 0;
    color: #2d3748;
    font-size: 1.4rem;
}

/* Hero Section Layout */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    aspect-ratio: 3/2;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 3/2;
    min-height: 200px;
    max-height: 400px;
}

.hero-img:hover {
    transform: scale(1.02);
}

/* Brand Section Layout */
.brand-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin: 2rem 0;
}

.brand-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 150px;
    max-height: 350px;
    aspect-ratio: 10/7;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.brand-img:hover {
    transform: scale(1.02);
}

/* Image optimization for all images */
.brand-img,
.registration-img,
.benefits-img {
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    aspect-ratio: 10/7;
    min-height: 150px;
    max-height: 350px;
    width: 100%;
    height: auto;
}

/* Registration Section Layout */
.registration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin: 2rem 0;
}

.registration-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.registration-image {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: 150px;
    max-height: 350px;
    aspect-ratio: 10/7;
}

.registration-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.registration-img:hover {
    transform: scale(1.02);
}

/* Benefits Section Layout */
.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin: 2rem 0;
}

.benefits-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefits-image {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: 150px;
    max-height: 350px;
    aspect-ratio: 10/7;
}

.benefits-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.benefits-img:hover {
    transform: scale(1.02);
}

p {
    margin-bottom: 1.5rem;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
}

.feature-card p {
    text-align: center;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    background: #f7fafc;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

.feature-icon svg {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: scale(1.05);
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

/* FAQ Styles */
.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.faq-question {
    background: #f7fafc;
    color: #2d3748;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
    border-bottom: 1px solid #e2e8f0;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-question:hover {
    background: #edf2f7;
    color: #1a202c;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 1.5rem;
    display: none;
    background: white;
    color: #4a5568;
    line-height: 1.6;
}

.faq-answer.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    background: #2d3748;
    color: #a0aec0;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid #4a5568;
}

footer a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: #5a67d8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .content {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 800px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .brand-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .brand-image {
        order: -1;
    }
    
    .registration-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .registration-image {
        order: -1;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .benefits-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
        width: 100%;
    }
    
    h2 {
        font-size: 1.875rem;
        text-align: center;
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .content {
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-img {
        max-width: 80%;
        min-height: 150px;
        max-height: 300px;
    }
    
    .hero-image {
        min-height: 150px;
        max-height: 300px;
    }
    
    .brand-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .brand-image {
        order: -1;
    }
    
    .brand-img {
        max-width: 80%;
    }
    
    .registration-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .registration-image {
        order: -1;
    }
    
    .registration-img {
        max-width: 80%;
        display: block;
        margin: 0 auto;
        object-fit: contain;
        object-position: center;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .benefits-image {
        order: -1;
    }
    
    .benefits-img {
        max-width: 80%;
        display: block;
        margin: 0 auto;
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-img {
        width: 24px;
        height: 24px;
    }
    
    h1 {
        font-size: 2rem;
        text-align: center;
        width: 100%;
    }
    
    h2 {
        font-size: 1.5rem;
        text-align: center;
        width: 100%;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Elements Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Content Animation - Optimized for LCP */
.content {
    animation: slideInUp 0.3s ease-out;
    will-change: auto;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
