/* Meritking Custom Styles - SEO Optimized */

:root {
    --primary-color: #0066cc;
    --secondary-color: #ffcc00;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.brand-text {
    color: #fff;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 50%, var(--primary-color) 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    padding: 80px 0;
    position: relative;
    min-height: 80vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

.hero-wave path {
    fill: var(--light-color);
    animation: waveAnimation 3s ease-in-out infinite;
}

@keyframes waveAnimation {
    0%, 100% { d: path("M0,0 C150,80 350,80 600,40 C850,0 1050,80 1200,40 L1200,120 L0,120 Z"); }
    50% { d: path("M0,0 C150,60 350,100 600,60 C850,20 1050,100 1200,60 L1200,120 L0,120 Z"); }
}

/* Animated GIF Container */
.animated-gif-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.animated-gif {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.animated-gif:hover {
    transform: scale(1.05);
}

.login-gif,
.bonus-gif {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

.bonus-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Cards */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bonus-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.bonus-card:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #e9ecef 100%);
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff9900 100%);
    border: none;
    color: #000;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9900 0%, var(--secondary-color) 100%);
    color: #000;
}

/* Feature Box */
.feature-box {
    background: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-box:hover {
    background: var(--light-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    color: var(--primary-color);
}

/* Accordion */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: var(--light-color);
    font-weight: 600;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: #fff;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2d2d2d 100%);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* SEO Optimized Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy Loading Support */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .min-vh-75 {
        min-height: auto;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* Performance Optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* 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-width: 0;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}
