/* All Rummy Games - Main Stylesheet */
/* Optimized for performance and SEO */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: #e74c3c;
    background-color: #f8f9fa;
}

.nav-menu a[aria-current="page"] {
    color: #e74c3c;
    background-color: #fff5f5;
    font-weight: 700;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #2c3e50;
    border: 2px solid #e74c3c;
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-outline {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.btn-outline:hover {
    background: #2c3e50;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-support {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: 2px solid #ff6b35;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: pulse-glow 2s infinite;
}

.btn-support:hover {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    animation: none;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
}

.btn-bright {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: 2px solid #4CAF50;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: pulse-bright 2s infinite;
}

.btn-bright:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    animation: none;
}

@keyframes pulse-bright {
    0% {
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: #ecf0f1;
    padding: 10px 0;
    border-bottom: 1px solid #bdc3c7;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 8px;
    color: #7f8c8d;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: white;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: #2c3e50;
}

h3 {
    font-size: 1.5rem;
    color: #34495e;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Brand Introduction */
.brand-intro {
    background: white;
    text-align: center;
}

.brand-intro h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

.brand-intro p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: #555;
}

/* Features Section */
.features {
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

/* Game Showcase Carousel */
.game-showcase {
    background: #f8f9fa;
    padding: 80px 0;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-overlay {
    transform: translateY(0);
}

.carousel-item:hover .carousel-image img {
    transform: scale(1.05);
}

.carousel-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.carousel-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #e74c3c;
    transform: scale(1.2);
}

.indicator:hover {
    background: #c0392b;
}

/* Carousel Info */
.carousel-info {
    text-align: center;
    margin-top: 2rem;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Registration Process */
.registration-process {
    background: white;
}

.registration-process h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.process-cta {
    text-align: center;
}

/* Security and Benefits */
.security-benefits {
    background: #f8f9fa;
}

.benefits-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.benefits-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.benefits-text ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.benefits-text li {
    margin-bottom: 0.5rem;
}

.benefits-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* FAQ Section */
.faq {
    background: white;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Page Styles */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-hero img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.mission-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.mission, .values {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

/* Policy Pages Styles */
.policy-content, .terms-content, .disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-intro, .terms-intro, .disclaimer-intro {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.policy-section, .terms-section, .disclaimer-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.policy-section h2, .terms-section h2, .disclaimer-section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.policy-section h3, .terms-section h3, .disclaimer-section h3 {
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section ul, .terms-section ul, .disclaimer-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section li, .terms-section li, .disclaimer-section li {
    margin-bottom: 0.5rem;
}

/* Support Page Styles */
.support-intro {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    text-align: center;
}

.contact-methods h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card img {
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.info-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-details {
    display: grid;
    gap: 1rem;
}

.contact-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.support-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.topic-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.topic-category h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.topic-category ul {
    margin-left: 1.5rem;
}

.topic-category li {
    margin-bottom: 0.5rem;
}

.support-cta {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
}

.support-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

/* 404 Error Page Styles */
.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
}

.error-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 2rem;
}

.error-text h1 {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-text h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.error-suggestions {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
}

.error-suggestions h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.error-suggestions ul {
    margin-left: 2rem;
}

.error-suggestions li {
    margin-bottom: 0.5rem;
}

.error-actions {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.popular-links h3 {
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.link-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.link-card:hover {
    transform: translateY(-3px);
    color: #e74c3c;
}

.link-card img {
    width: 40px;
    height: 40px;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #f39c12;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f39c12;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

.footer-bottom a {
    color: #f39c12;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Carousel Responsive Design */
@media (max-width: 768px) {
    .carousel-image {
        height: 250px;
    }
    
    .carousel-overlay {
        padding: 1rem;
    }
    
    .carousel-overlay h3 {
        font-size: 1.5rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .game-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-image {
        height: 200px;
    }
    
    .carousel-overlay {
        padding: 0.8rem;
    }
    
    .carousel-overlay h3 {
        font-size: 1.2rem;
    }
    
    .carousel-overlay p {
        font-size: 0.9rem;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .stat {
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
    }
    
    .mission-values {
        grid-template-columns: 1fr;
    }
    
    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .support-topics {
        grid-template-columns: 1fr;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .btn-outline {
        border: 2px solid #000;
    }
}

/* 404 Error Page Styles */
.error-page {
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.error-text h1 {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
    font-weight: bold;
}

.error-text h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.error-suggestions {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
}

.error-suggestions h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
}

.error-suggestions li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.error-suggestions li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.error-actions {
    margin: 2rem 0;
}

.popular-links {
    margin-top: 3rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #2c3e50;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    color: #e74c3c;
}

.link-card span {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Logo text styling for 404 page */
.logo h2 {
    color: #e74c3c;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

/* 404 Page Responsive Design */
@media (max-width: 768px) {
    .error-text h1 {
        font-size: 3rem;
    }
    
    .error-text h2 {
        font-size: 1.2rem;
    }
    
    .error-suggestions {
        padding: 1.5rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .link-card {
        padding: 1rem;
    }
    
    .link-card span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .error-text h1 {
        font-size: 2.5rem;
    }
    
    .error-text h2 {
        font-size: 1.1rem;
    }
    
    .error-suggestions {
        padding: 1rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .link-card {
        padding: 0.8rem;
    }
    
    .link-card span {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .nav-menu,
    .auth-buttons,
    .hero-buttons,
    .cta-buttons,
    .error-actions,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}
