/* Rummy 777 - Modern CSS Styles */
/* Optimized for performance and accessibility */

/* ColorHunt Palette - Custom Properties */
:root {
    /* ColorHunt Palette Colors */
    --color-very-dark-red: #3E0703;
    --color-dark-red-brown: #660B05;
    --color-medium-dark-purple: #81007F;
    --color-very-light-cream: #FFF0C4;
    
    /* Text Colors for Contrast Compliance */
    --text-on-dark: #FFFFFF;
    --text-on-light: #000000;
    
    /* Semantic Color Assignments */
    --primary-bg: var(--color-very-light-cream);
    --secondary-bg: var(--color-very-dark-red);
    --accent-color: var(--color-medium-dark-purple);
    --accent-secondary: var(--color-dark-red-brown);
    
    /* Interactive States */
    --hover-lighten: rgba(255, 255, 255, 0.1);
    --hover-darken: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-on-light);
    background-color: var(--primary-bg);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-on-light);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-on-light);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-on-dark);
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    color: var(--text-on-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(129, 0, 127, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-on-dark);
    border: 2px solid var(--text-on-dark);
}

.btn-outline:hover {
    background-color: var(--text-on-dark);
    color: var(--secondary-bg);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    background-color: var(--secondary-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

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

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

.nav-menu a {
    color: var(--text-on-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    color: var(--color-very-light-cream);
    text-decoration: none;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-on-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-secondary) 50%, var(--accent-color) 100%);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-on-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav {
    padding: 2rem 0;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-on-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-very-light-cream);
    padding-left: 2rem;
}

.mobile-menu-nav a[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-very-light-cream);
}

.mobile-menu-buttons {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-buttons .btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: var(--text-on-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(129, 0, 127, 0.3);
}

.mobile-menu-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 0, 127, 0.4);
}

.mobile-menu-buttons .btn-outline {
    background: transparent;
    color: var(--text-on-dark);
    border: 2px solid var(--text-on-dark);
}

.mobile-menu-buttons .btn-outline:hover {
    background: var(--text-on-dark);
    color: var(--secondary-bg);
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--color-very-light-cream);
    padding: 1rem 0;
    border-bottom: 1px solid var(--accent-secondary);
}

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

.breadcrumb-item {
    color: var(--accent-secondary);
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: var(--accent-secondary);
}

.breadcrumb-item a {
    color: var(--accent-secondary);
}

.breadcrumb-item[aria-current="page"] {
    color: var(--text-on-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-secondary) 50%, var(--accent-color) 100%);
    color: var(--text-on-dark);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    color: var(--text-on-dark);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 0;
}

/* Sections */
section {
    padding: 4rem 0;
}

.about-section,
.faq-section,
.how-to-register-section,
.how-to-login-section {
    background-color: var(--primary-bg);
}

.features-section,
.security-section,
.cta-section {
    background-color: var(--secondary-bg);
    color: var(--text-on-dark);
}

.about-section h2,
.features-section h2,
.security-section h2,
.faq-section h2,
.cta-section h2,
.how-to-register-section h2,
.how-to-login-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-section h2,
.faq-section h2,
.how-to-register-section h2,
.how-to-login-section h2 {
    color: var(--text-on-light);
}

.features-section h2,
.security-section h2,
.cta-section h2 {
    color: var(--text-on-dark);
}

/* Security Section */
.security-section {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-secondary) 50%, var(--accent-color) 100%);
    color: var(--text-on-dark);
    padding: 4rem 0;
}

.security-section h2,
.security-section h3 {
    color: var(--text-on-dark);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.security-section p {
    color: var(--text-on-dark);
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--primary-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    color: var(--text-on-light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.feature-card img {
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}


/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, var(--primary-bg) 0%, #f8f9fa 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%2381007F" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%2381007F" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%2381007F" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%2381007F" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%2381007F" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.faq-section .container {
    position: relative;
    z-index: 1;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-on-light);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    color: var(--text-on-light);
    box-shadow: 0 8px 25px rgba(129, 0, 127, 0.1);
    border: 1px solid rgba(129, 0, 127, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-secondary));
    transition: width 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(129, 0, 127, 0.2);
    border-color: rgba(129, 0, 127, 0.2);
}

.faq-item:hover::before {
    width: 6px;
}

.faq-item h3 {
    color: var(--accent-color);
    margin: 0;
    padding: 1.5rem 1.5rem 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item h3::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-item.active h3::after {
    transform: rotate(45deg);
}

.faq-item h3:hover {
    color: var(--accent-secondary);
}

.faq-item p {
    padding: 0 2rem 1.5rem 2rem;
    margin: 0;
    color: #555;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active p {
    opacity: 1;
    max-height: 200px;
    padding: 0 2rem 1.5rem 2rem;
}

/* FAQ Animation States */
.faq-item {
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Interactive States */
.faq-item h3:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 8px;
}

/* FAQ Responsive Design */
@media (max-width: 768px) {
    .faq-section h2 {
        font-size: 2rem;
}

.faq-item h3 {
        font-size: 1.1rem;
        padding: 1.25rem 1.25rem 0.75rem 1.5rem;
    }
    
    .faq-item p {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }
    
    .faq-item.active p {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: var(--text-on-dark);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-on-dark);
}

.cta-section p {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-secondary) 50%, var(--accent-color) 100%);
    color: var(--text-on-dark);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.about-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.about-hero .hero-content {
    text-align: left;
}

.about-hero h1 {
    color: var(--text-on-dark);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-hero .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.about-hero .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-hero .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.about-hero .hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.mission, .vision {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

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

.value-item {
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.value-item h4 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

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

.achievement {
    text-align: center;
    padding: 2rem;
    background-color: #e74c3c;
    color: white;
    border-radius: 8px;
}

.achievement h4 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

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

.team-item {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.team-item h4 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* Privacy Policy, Terms, Disclaimer Pages */
.privacy-hero,
.terms-hero,
.disclaimer-hero,
.support-hero {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-secondary) 50%, var(--accent-color) 100%);
    color: var(--text-on-dark);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.privacy-hero .container,
.terms-hero .container,
.disclaimer-hero .container,
.support-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.privacy-hero .hero-content,
.terms-hero .hero-content,
.disclaimer-hero .hero-content,
.support-hero .hero-content {
    text-align: left;
}

.privacy-hero h1,
.terms-hero h1,
.disclaimer-hero h1,
.support-hero h1 {
    color: var(--text-on-dark);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.privacy-hero .hero-subtitle,
.terms-hero .hero-subtitle,
.disclaimer-hero .hero-subtitle,
.support-hero .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.privacy-hero .hero-image,
.terms-hero .hero-image,
.disclaimer-hero .hero-image,
.support-hero .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy-hero .hero-image img,
.terms-hero .hero-image img,
.disclaimer-hero .hero-image img,
.support-hero .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.privacy-hero .hero-buttons,
.terms-hero .hero-buttons,
.disclaimer-hero .hero-buttons,
.support-hero .hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 0;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

.privacy-section,
.terms-section,
.disclaimer-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.privacy-section h2,
.terms-section h2,
.disclaimer-section h2 {
    color: #e74c3c;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

.privacy-section h3,
.terms-section h3,
.disclaimer-section h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-section ul,
.terms-section ul,
.disclaimer-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Support Page Styles */
.support-methods {
    margin: 3rem 0;
}

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

.support-method {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(129, 0, 127, 0.1);
    border: 1px solid rgba(129, 0, 127, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.support-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    transition: height 0.3s ease;
}

.support-method:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(129, 0, 127, 0.2);
    border-color: rgba(129, 0, 127, 0.2);
}

.support-method:hover::before {
    height: 6px;
}

.support-method img {
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.support-method h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.support-method:hover h3 {
    color: var(--accent-secondary);
}

.support-method p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.support-method .btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-align: center;
}

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

.support-method .btn:hover::before {
    left: 100%;
}

.support-method .btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(129, 0, 127, 0.3);
}

.support-method .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 0, 127, 0.4);
    color: white;
}

.support-method .btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(129, 0, 127, 0.1);
}

.support-method .btn-outline:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(129, 0, 127, 0.3);
}

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

.topic-category {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.topic-category h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.topic-category ul {
    list-style: none;
    padding-left: 0;
}

.topic-category li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.topic-category li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

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

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-item h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

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

.tip-item {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.tip-item h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.tip-item ul {
    list-style: none;
    padding-left: 0;
}

.tip-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tip-item li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* 404 Error Page */
.error-page {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-secondary) 50%, var(--accent-color) 100%);
    color: var(--text-on-dark);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.error-page .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.error-page .hero-content {
    text-align: left;
}

.error-page h1 {
    color: var(--text-on-dark);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.error-page .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.error-page .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-page .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.error-page .hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 0;
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.error-image img {
    max-width: 100%;
    height: auto;
}

.error-text h1 {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-text h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

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

.helpful-links {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

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

.helpful-link h4 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.helpful-link ul {
    list-style: none;
    padding-left: 0;
}

.helpful-link li {
    padding: 0.25rem 0;
}

.search-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-suggestions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.search-suggestion {
    padding: 0.5rem 1rem;
    background-color: #e74c3c;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.search-suggestion:hover {
    background-color: #c0392b;
    text-decoration: none;
}

.error-tips {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.error-tips h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-tips ul {
    list-style: none;
    padding-left: 0;
}

.error-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.error-tips li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: var(--secondary-bg);
    color: var(--text-on-dark);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

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

.footer-column h4 {
    color: var(--text-on-dark);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

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

.footer-column a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-on-dark);
    text-decoration: none;
}

.footer-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu,
    .nav-buttons {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 20px;
    }
    
    .nav-menu,
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu {
        width: 100% !important;
        right: -100%;
        background: var(--primary-bg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-menu-header {
        background: var(--secondary-bg);
        padding: 1rem 1.5rem;
    }
    
    .mobile-menu-logo img {
        height: 35px;
    }
    
    .mobile-menu-close {
        font-size: 1.8rem;
        color: var(--text-on-dark);
    }
    
    .mobile-menu-nav {
        padding: 1rem 0;
        background: var(--primary-bg);
        display: block !important;
    }
    
    .mobile-menu-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: block !important;
    }
    
    .mobile-menu-nav li {
        display: block !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-nav a {
        color: var(--text-on-light);
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        display: block !important;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-nav a:hover,
    .mobile-menu-nav a[aria-current="page"] {
        background-color: var(--accent-color);
        color: var(--text-on-dark);
        padding-left: 2rem;
    }
    
    .mobile-menu-nav a[aria-current="page"]::before {
        background-color: var(--text-on-dark);
    }
    
    .mobile-menu-buttons {
        padding: 1rem 1.5rem;
        background: var(--primary-bg);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        gap: 0.75rem;
        display: flex !important;
        flex-direction: column;
    }
    
    .mobile-menu-buttons .btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .mobile-menu-buttons .btn-primary {
        background: var(--accent-color);
        color: var(--text-on-dark);
    }
    
    .mobile-menu-buttons .btn-outline {
        background: transparent;
        color: var(--accent-color);
        border: 2px solid var(--accent-color);
    }
    
    .mobile-menu-buttons .btn-outline:hover {
        background: var(--accent-color);
        color: var(--text-on-dark);
    }
    
    /* Mobile-specific breadcrumb styling */
    .breadcrumb {
        padding: 0.75rem 0;
    }
    
    .breadcrumb-item {
        font-size: 0.9rem;
    }
    
    /* Mobile hero adjustments */
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero .container,
    .about-hero .container,
    .support-hero .container,
    .privacy-hero .container,
    .terms-hero .container,
    .disclaimer-hero .container,
    .error-page .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content,
    .about-hero .hero-content,
    .support-hero .hero-content,
    .privacy-hero .hero-content,
    .terms-hero .hero-content,
    .disclaimer-hero .hero-content,
    .error-page .hero-content {
        text-align: center;
    }
    
    .hero-content h1,
    .about-hero h1,
    .support-hero h1,
    .privacy-hero h1,
    .terms-hero h1,
    .disclaimer-hero h1,
    .error-page h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons,
    .about-hero .hero-buttons,
    .support-hero .hero-buttons,
    .privacy-hero .hero-buttons,
    .terms-hero .hero-buttons,
    .disclaimer-hero .hero-buttons,
    .error-page .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .about-intro,
    .mission-vision,
    .error-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .registration-steps,
    .login-steps {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .search-suggestions {
        flex-direction: column;
        align-items: center;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .support-method {
        padding: 1.5rem;
    }
    
    .support-method .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1,
    .about-hero h1,
    .support-hero h1,
    .privacy-hero h1,
    .terms-hero h1,
    .disclaimer-hero h1,
    .error-page h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Accessibility */
@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 */
.btn:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: var(--secondary-bg);
        color: var(--text-on-dark);
        border: 2px solid var(--secondary-bg);
    }
    
    .btn-outline {
        background-color: transparent;
        color: var(--secondary-bg);
        border: 2px solid var(--secondary-bg);
    }
}

/* How to Register and Login Sections */
.how-to-register-section,
.how-to-login-section {
    padding: 4rem 0;
}

.how-to-register-section .container,
.how-to-login-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.register-content,
.login-content {
    max-width: 100%;
}

.register-intro,
.login-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-on-light);
    line-height: 1.7;
}

.registration-steps,
.login-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--primary-bg);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--accent-color);
    border-radius: 50%;
    color: var(--text-on-dark);
    flex-shrink: 0;
}

.step-icon svg {
    width: 24px;
    height: 24px;
}

.step-content h3 {
    color: var(--text-on-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content h3 strong {
    color: var(--accent-color);
    font-weight: 700;
}

.step-content p {
    color: var(--text-on-light);
    margin: 0;
    line-height: 1.6;
}

.register-cta,
.login-cta {
    text-align: center;
    margin-top: 2rem;
}

.register-cta .btn,
.login-cta .btn {
    margin-bottom: 1rem;
}

.login-link,
.register-link {
    color: var(--text-on-light);
    font-size: 0.95rem;
}

.login-link a,
.register-link a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover,
.register-link a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.login-benefits {
    background-color: var(--primary-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-benefits h3 {
    color: var(--text-on-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.login-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-on-light);
}

.login-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Visual Elements */
.register-visual,
.login-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.mobile-mockup {
    position: relative;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.mobile-mockup:hover {
    transform: translateY(-5px);
}

.mobile-mockup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.register-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.register-visual .mobile-mockup:nth-child(1) {
    transform: rotate(-5deg);
    z-index: 3;
}

.register-visual .mobile-mockup:nth-child(2) {
    transform: rotate(2deg);
    z-index: 2;
    margin-top: -20px;
}

.register-visual .mobile-mockup:nth-child(3) {
    transform: rotate(-3deg);
    z-index: 1;
    margin-top: -20px;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .how-to-register-section .container,
    .how-to-login-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .register-visual,
    .login-visual {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-icon {
        align-self: center;
    }
    
    .register-visual .mobile-mockup:nth-child(1),
    .register-visual .mobile-mockup:nth-child(2),
    .register-visual .mobile-mockup:nth-child(3) {
        transform: none;
        margin-top: 0;
    }
    
    .register-visual {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .mobile-mockup {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .step-card {
        padding: 1rem;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
    }
    
    .step-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-mockup {
        max-width: 120px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}
