* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --accent-color: #ffd23f;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --text-color: #2d3436;
    --border-color: #e0e0e0;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #e17055;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Navigation */
.sticky-nav {
    background-color: white;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sticky-nav .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 20px;
}

.sticky-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.sticky-nav a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Main Content */
main {
    padding: 40px 0;
}

section {
    background-color: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 100px;
}

section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
}

section h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

section h4 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

section ol,
section ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

section li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Introduction Section */
.intro-section .info-box {
    background-color: var(--light-color);
    border-left: 4px solid var(--success-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.intro-section .info-box p {
    margin-bottom: 8px;
}

.safety-warning {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    margin-top: 25px;
    border-radius: 5px;
}

.safety-warning h3 {
    margin-top: 0;
    color: #856404;
}

.safety-warning ul {
    margin-top: 15px;
}

/* Materials Section */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.material-item {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.material-item:hover {
    background-color: var(--accent-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Method Sections */
.method-section {
    background: linear-gradient(to bottom, white, #fefefe);
}

.method-image {
    text-align: center;
    margin: 25px 0;
}

.method-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    object-fit: cover;
}

.step {
    background-color: var(--light-color);
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.feedback {
    background-color: #e8f5e9;
    border-left: 4px solid var(--success-color);
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    font-style: italic;
}

.doneness-option {
    background-color: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.doneness-option h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.timing-list {
    list-style: none;
    margin-left: 0;
}

.timing-list li {
    padding: 12px;
    background-color: var(--light-color);
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

/* Troubleshooting Section */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--light-color);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Glossary Section */
.glossary-list {
    margin-top: 20px;
}

.glossary-list dt {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 5px;
}

.glossary-list dd {
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.image-credits {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.image-credits h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.image-credits ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.image-credits li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.image-credits a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.image-credits a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    section {
        padding: 25px 20px;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .sticky-nav .container {
        gap: 10px;
    }

    .sticky-nav a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .materials-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }

    section {
        padding: 20px 15px;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
