/* 777 Rummy - Modern CSS with SEO Optimization */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #64b5f6;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #64b5f6;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #64b5f6;
    border: 2px solid #64b5f6;
}

.btn-secondary:hover {
    background: #64b5f6;
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(26, 26, 46, 0.9);
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-nav {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.breadcrumb-nav li:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: #666;
}

.breadcrumb-nav {
    color: #b0b0b0;
}

.breadcrumb-nav a {
    color: #64b5f6;
    text-decoration: none;
}

/* Main Content */
.main-content {
    background: rgba(30, 30, 46, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.content-section {
    padding: 3rem 2rem;
}

.content-section h2 {
    color: #64b5f6;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.content-section h3 {
    color: #e0e0e0;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b0b0b0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(45, 45, 65, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #64b5f6;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(55, 55, 75, 0.9);
}

.feature-card h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #c0c0c0;
}

/* FAQ Section */
.faq {
    margin: 3rem 0;
}

.faq-item {
    background: rgba(45, 45, 65, 0.8);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #2a2a3e 0%, #262a4e 100%);
}

.faq-answer {
    padding: 1.5rem;
    display: none;
    background: rgba(35, 35, 55, 0.6);
    color: #c0c0c0;
}

.faq-answer.active {
    display: block;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #64b5f6;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 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 accessibility */
a:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Schema.org styling */
.organization-info {
    background: #f8f9ff;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Interactive Fun Section */
.fun-section {
    background: linear-gradient(45deg, #2d3748 0%, #4a5568 50%, #2d3748 100%);
    padding: 4rem 2rem;
    margin: 2rem 0;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fun-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(30px) translateY(-30px); }
    66% { transform: translateX(-20px) translateY(20px); }
    100% { transform: translateX(0) translateY(0); }
}

.fun-section h2 {
    color: #e0e0e0;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.fun-section p {
    color: #b0b0b0;
}

.fun-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fun-card {
    background: rgba(45, 45, 65, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fun-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.fun-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.fun-card:hover::before {
    left: 100%;
}

.fun-card h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.fun-card p {
    color: #c0c0c0;
    margin-bottom: 1rem;
}

.fun-button {
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.fun-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animated Counter */
.counter-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.counter-item {
    text-align: center;
}

.counter-number {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
}

.counter-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Pulse animation for counters */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.counter-number {
    animation: pulse 2s infinite;
}

/* Interactive Rummy Tips */
.tips-section {
    background: linear-gradient(45deg, #2d3748 0%, #4a5568 100%);
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tips-section h2 {
    color: #e0e0e0;
}

.tips-section p {
    color: #b0b0b0;
}

.tips-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.tip-card {
    background: rgba(45, 45, 65, 0.9);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.tip-title {
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tip-description {
    color: #c0c0c0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Image Layout Styles */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #2d3748 0%, #4a5568 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-size: 1.2rem;
    font-weight: 500;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image-placeholder:hover {
    border-color: #64b5f6;
    color: #64b5f6;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.1), transparent);
    transition: left 0.5s;
}

.image-placeholder:hover::before {
    left: 100%;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Hero Image */
.hero-image {
    width: 100%;
    height: 400px;
    margin: 2rem 0;
}

/* Feature Images */
.feature-image {
    width: 100%;
    height: 250px;
    margin: 1rem 0;
}

/* Banner Images */
.banner-image {
    width: 100%;
    height: 200px;
    margin: 1.5rem 0;
}

/* Gallery Grid */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item .image-placeholder {
    height: 200px;
    margin: 0;
}

/* Side by Side Layout */
.image-text-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.image-text-layout.reverse {
    grid-template-columns: 1fr 1fr;
}

.image-text-layout .text-content {
    padding: 2rem;
}

.image-text-layout .image-content {
    position: relative;
}

/* Responsive Image Layout */
@media (max-width: 768px) {
    .image-text-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .feature-image {
        height: 200px;
    }
    
    .banner-image {
        height: 150px;
    }
}

/* Loading Animation for Images */
.image-placeholder.loading {
    background: linear-gradient(90deg, #2d3748 25%, #4a5568 50%, #2d3748 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image Overlay Effects */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

/* Image Badge */
.image-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #64b5f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}
