/* Global Styles */
:root {
    --primary-color: #8B4513;
    --secondary-color: #A0522D;
    --accent-color: #CD853F;
    --background-color: #F5F5DC;
    --text-color: #3E2723;
    --light-text: #5D4037;
    --border-color: #8D6E63;
    --highlight-color: #D2B48C;
    --success-color: #654321;
    --error-color: #8B0000;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Source Serif Pro', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('../images/background-texture.svg');
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: 200px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: var(--accent-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

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

.sudoku-example,
.sudoku-history-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sudoku-example:hover,
.sudoku-history-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Playfair Display', serif;
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-secondary {
    background-image: linear-gradient(45deg, var(--highlight-color), var(--accent-color));
    color: var(--text-color);
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.25rem;
}

/* Header Styles */
.header {
    background-color: rgba(245, 245, 220, 0.95);
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    background-image: linear-gradient(rgba(245, 245, 220, 0.9), rgba(245, 245, 220, 0.95)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 3px solid var(--border-color);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--light-text);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--accent-color);
    font-style: italic;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: rgba(210, 180, 140, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.feature-title {
    margin-bottom: 15px;
}

/* How to Play Section */
.how-to-play {
    padding: 100px 0;
}

.how-to-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.how-to-steps {
    flex: 1;
    min-width: 300px;
}

.step {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.how-to-image {
    flex: 1;
    min-width: 300px;
}

.sudoku-example {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 3px solid var(--border-color);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: rgba(210, 180, 140, 0.1);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-item::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: 'Playfair Display', serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--primary-color);
}

.author-title {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Sudoku Tips Section Styles */
.sudoku-tips {
    background-color: #f9f6f0;
    padding: 80px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tip-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.15);
}

.tip-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.tip-description {
    color: var(--text-color);
    line-height: 1.6;
}

/* Difficulty Levels Section Styles */
.difficulty-levels {
    background-color: var(--background-color);
    padding: 80px 0;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.level-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.15);
}

.level-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.level-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.level-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Daily Challenge Section Styles */
.daily-challenge {
    background-color: #f0ebe5;
    padding: 80px 0;
}

.daily-challenge-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.daily-info {
    flex: 1;
    min-width: 300px;
}

.challenge-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 20px 0 30px;
}

.challenge-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    color: var(--text-color);
    font-size: 0.9rem;
}

.challenge-preview {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border: 2px solid var(--border-color);
    max-width: 200px;
    width: 100%;
    aspect-ratio: 1/1;
}

.preview-cell {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.preview-cell.filled {
    color: var(--primary-color);
    font-weight: 900;
}

/* Benefits Section Styles */
.benefits {
    background-color: var(--background-color);
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.15);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.benefit-title {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit-description {
    color: var(--text-color);
    line-height: 1.6;
}

/* FAQ Section Styles */
.faq {
    background-color: #f9f6f0;
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.faq-question {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.6;
}

/* Call to Action */
.cta {
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(139, 69, 19, 0.95), rgba(210, 180, 140, 0.95)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-top: 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-title::after {
    background-color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-image: linear-gradient(45deg, white, var(--highlight-color));
    color: var(--primary-color);
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 30px;
    min-width: 180px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo::after {
    display: none;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links-title,
.footer-legal-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-title::after,
.footer-legal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links-list,
.footer-legal-list {
    list-style: none;
}

.footer-links-list li,
.footer-legal-list li {
    margin-bottom: 10px;
}

.footer-links-list a,
.footer-legal-list a {
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid transparent;
}

.footer-links-list a:hover,
.footer-legal-list a:hover {
    color: white;
    border-bottom-color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* About Page Styles */
.about-section {
    padding: 100px 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 3px solid var(--border-color);
}

.history-section {
    padding: 100px 0;
    background-color: rgba(210, 180, 140, 0.1);
}

.history-timeline {
    margin-top: 50px;
    position: relative;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.timeline-date {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Contact Page Styles */
.contact-section {
    padding: 100px 0;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 5px;
}

/* Privacy Policy & Terms of Service Styles */
.privacy-section,
.terms-section {
    padding: 100px 0;
}

.privacy-content,
.terms-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.privacy-content h3,
.terms-content h3 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.privacy-content h4,
.terms-content h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.privacy-content ul,
.terms-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .nav-list {
        margin-top: 20px;
    }

    .nav-item {
        margin-left: 15px;
        margin-right: 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .how-to-content,
    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .history-timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 70px;
        padding-right: 20px;
    }

    .game-content {
        flex-direction: column;
    }

    .number-pad {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .nav-item {
        margin-left: 10px;
        margin-right: 10px;
    }

    .nav-link {
        font-size: 1rem;
    }

    .privacy-content,
    .terms-content,
    .contact-info {
        padding: 30px 20px;
    }
}