/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Prevent layout shift during image loading */
    aspect-ratio: attr(width) / attr(height);
    /* Optimize image loading */
    object-fit: cover;
    object-position: center;
}

/* Prevent layout shift for images without dimensions */
img:not([width]):not([height]) {
    aspect-ratio: 16 / 9;
}

/* Responsive image optimization */
picture {
    display: block;
    width: 100%;
}

picture img {
    width: 100%;
    height: auto;
    display: block;
}

/* Logo optimizations */
.logo img {
    max-width: 200px;
    height: 60px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo img {
        max-width: 120px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 60px;
        height: 18px;
    }
}

/* Hero background optimization */
.hero {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(51, 65, 85, 0.9) 100%),
        url('/public/images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

/* Critical images - load immediately */
img[loading="eager"] {
    content-visibility: auto;
}

/* Lazy loaded images */
img[loading="lazy"] {
    content-visibility: auto;
    contain-intrinsic-size: 300px 300px;
}

/* Layout stability optimizations */
* {
    /* Prevent layout shift during font loading */
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize rendering performance */
* {
    /* Use GPU acceleration for transforms */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Prevent forced reflow on common elements */
h1, h2, h3, h4, h5, h6 {
    contain: layout style;
}

p, span, div {
    contain: layout;
}

/* Optimize animations to use compositor */
.feature-card,
.advantage-item,
.faq-item,
.btn-primary,
.btn-secondary {
    will-change: transform;
    transform: translateZ(0);
}

/* Prevent layout shift for dynamic content */
.section-content {
    min-height: 200px;
    contain: layout style;
}

/* Stable dimensions for feature cards */
.feature-card {
    min-height: 300px;
    contain: layout;
}

/* Stable dimensions for contact cards */
.contact-card {
    min-height: 200px;
    contain: layout;
}

/* Optimized hover effects using CSS classes */
.feature-card,
.advantage-item,
.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.feature-card.hover-active,
.advantage-item.hover-active,
.faq-item.hover-active {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    position: relative;
    font-display: swap;
}

/* Font loading state optimization */
body:not(.fonts-loaded) {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.fonts-loaded {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Font loading optimization to prevent CLS */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    color: #60a5fa;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login, .btn-register {
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: transparent;
    color: #e2e8f0;
    border-color: rgba(96, 165, 250, 0.5);
}

.btn-login:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border-color: #60a5fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.3);
}

.btn-register {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

.btn-register:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.6);
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 10px;
}

.breadcrumb a {
    color: #60a5fa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #93c5fd;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(51, 65, 85, 0.9) 100%),
        url('/public/images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-primary, .btn-secondary {
    padding: 18px 36px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(96, 165, 250, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

main {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #f1f5f9;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #60a5fa;
    font-weight: 700;
}

/* Brand Introduction */
.brand-intro {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 40px 0;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
}

.intro-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Platform Features */
.platform-features {
    background: transparent;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.feature-card:hover::after {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.6);
}

/* Specific hover effects for each icon */
.feature-card:nth-child(1):hover::after {
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.6);
}

.feature-card:nth-child(2):hover::after {
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6);
}

.feature-card:nth-child(3):hover::after {
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.6);
}

.feature-card:nth-child(4):hover::after {
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.6);
}

.feature-card img {
    display: none;
}

/* Feature Icons */
.feature-card::after {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 20px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    position: relative;
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
    order: -1;
}

/* Icon content - we'll use the ::after content property */

/* Security Icon */
.feature-card:nth-child(1)::after {
    content: '🔒';
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    animation-delay: 0s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Instant Play Icon */
.feature-card:nth-child(2)::after {
    content: '⚡';
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    animation-delay: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Fast Payout Icon */
.feature-card:nth-child(3)::after {
    content: '💰';
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    animation-delay: 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Mobile Optimized Icon */
.feature-card:nth-child(4)::after {
    content: '📱';
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
    animation-delay: 1.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 1.5rem;
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 700;
    order: 1;
}

.feature-card p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1.1rem;
    order: 2;
}

/* Registration Process */
.registration-process {
    background: transparent;
    position: relative;
}

.process-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.process-text p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.process-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
}

.process-image img:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* Advantages & Security */
.advantages-security {
    background: transparent;
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.advantage-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
}

.advantage-item h3 {
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.advantage-item p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1.1rem;
}


/* FAQ Section */
.faq-section {
    background: transparent;
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    margin-bottom: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.faq-item h3 {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    margin: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
}

.faq-item h3:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transform: scale(1.02);
}

.faq-item p {
    padding: 2rem;
    margin: 0;
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(51, 65, 85, 0.95) 100%),
        radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.3) 0%, transparent 50%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    margin: 40px 0;
    padding: 80px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #60a5fa;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: #60a5fa;
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Additional Modern Effects */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(96, 165, 250, 0.3); }
    50% { box-shadow: 0 0 40px rgba(96, 165, 250, 0.6); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: slideInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.advantage-item {
    animation: slideInUp 0.6s ease-out;
}

.advantage-item:nth-child(1) { animation-delay: 0.1s; }
.advantage-item:nth-child(2) { animation-delay: 0.2s; }
.advantage-item:nth-child(3) { animation-delay: 0.3s; }
.advantage-item:nth-child(4) { animation-delay: 0.4s; }

/* Scroll animations */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Ensure policy pages are always visible */
.policy-content, .terms-content, .disclaimer-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .intro-content,
    .process-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* 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;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Additional Page Styles */
.policy-header, .terms-header, .disclaimer-header, .support-header, .error-404, .about-hero {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(51, 65, 85, 0.95) 100%),
        radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.3) 0%, transparent 50%);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.policy-header h1, .terms-header h1, .disclaimer-header h1, .support-header h1, .error-404 h1, .about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.last-updated {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    color: #cbd5e1;
    position: relative;
    z-index: 1;
}

.hero-subtitle, .support-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.policy-content, .terms-content, .disclaimer-content {
    background: transparent;
    padding: 40px 0;
    position: relative;
    z-index: 50 !important;
}

.policy-text, .terms-text, .disclaimer-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 20px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 100 !important;
    min-height: 400px;
}

.policy-text h2, .terms-text h2, .disclaimer-text h2 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.policy-text h2:first-child, .terms-text h2:first-child, .disclaimer-text h2:first-child {
    margin-top: 0;
}

.policy-text h3, .terms-text h3, .disclaimer-text h3 {
    color: #93c5fd;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.policy-text ul, .terms-text ul, .disclaimer-text ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.policy-text li, .terms-text li, .disclaimer-text li {
    margin-bottom: 0.8rem;
    color: #f8fafc;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.policy-text p, .terms-text p, .disclaimer-text p {
    color: #f1f5f9;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* About Us Styles */
.about-hero {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(51, 65, 85, 0.95) 100%),
        radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.3) 0%, transparent 50%);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.our-story, .mission-values, .why-choose-us {
    padding: 80px 0;
    position: relative;
}

.our-story {
    background: transparent;
}

.mission-values, .why-choose-us {
    background: transparent;
}

.story-content, .process-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.values-grid, .reasons-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item, .reason-item {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.value-item::before, .reason-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
}

.value-item:hover, .reason-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.value-item h3, .reason-item h3 {
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.value-item p, .reason-item p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Support Page Styles */
.contact-methods, .support-faq, .support-form {
    padding: 80px 0;
    position: relative;
}

.contact-methods, .support-faq {
    background: transparent;
}

.support-form {
    background: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.contact-card:hover::after {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.6);
}

/* Specific hover effects for each contact icon */
.contact-card:nth-child(1):hover::after {
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.6);
}

.contact-card:nth-child(2):hover::after {
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6);
}

.contact-card:nth-child(3):hover::after {
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.6);
}

.contact-card h3 {
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-card p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Hide original contact images */
.contact-card img {
    display: none;
}

/* Contact Icons */
.contact-card::after {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    position: relative;
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Phone Support Icon */
.contact-card:nth-child(1)::after {
    content: '📞';
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    animation-delay: 0s;
}

/* Email Support Icon */
.contact-card:nth-child(2)::after {
    content: '✉️';
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    animation-delay: 0.5s;
}

/* Live Chat Icon */
.contact-card:nth-child(3)::after {
    content: '💬';
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    animation-delay: 1s;
}

.contact-info {
    font-weight: 600;
    color: #60a5fa;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-hours {
    color: #94a3b8;
    font-size: 1rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #f1f5f9;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    background: rgba(15, 23, 42, 0.6);
    color: #f1f5f9;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* 404 Error Page Styles */
.error-404 {
    padding: 100px 0;
    position: relative;
}

/* Hide original 404 error image */
.error-image img {
    display: none;
}

/* Error image container */
.error-image {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 404 Error Icon */
.error-image::after {
    content: '🔍';
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.error-image::before {
    content: '404';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 404 Icon Hover Effects */
.error-image:hover::after {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 25px 50px rgba(239, 68, 68, 0.5);
}

.error-image:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.error-text h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.error-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
    font-weight: 600;
}

.error-text p {
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.helpful-links, .search-suggestion {
    padding: 80px 0;
    background: transparent;
    position: relative;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.link-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
}

.link-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.link-card h3 {
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.link-card p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.search-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.search-link {
    padding: 12px 24px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

.search-link:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.6);
}

/* Mobile Responsive for New Pages */
@media (max-width: 768px) {
    .story-content,
    .process-content,
    .error-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .policy-header h1,
    .terms-header h1,
    .disclaimer-header h1,
    .support-header h1 {
        font-size: 2rem;
    }
    
    .error-text h1 {
        font-size: 2.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .search-links {
        flex-direction: column;
        align-items: center;
    }
}
