/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.duck-emoji {
    font-size: 2rem;
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
}

nav a:hover {
    color: #2563eb;
}

.cta-button {
    background-color: #2563eb;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #1d4ed8;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #fefcbf;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #4b5563;
}

.duck-animation {
    font-size: 3rem;
    margin-top: 2rem;
    animation: quack 2s infinite;
}

@keyframes quack {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* Demo Section */
.demo {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}

.demo h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.demo p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #4b5563;
    font-size: 1.1rem;
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.quack-form-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.quack-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-field {
    margin-bottom: 2rem;
}

.form-field label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.form-field textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 1rem;
    resize: vertical;
    background-color: #f9fafb;
    transition: border-color 0.2s ease;
}

.form-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-field textarea:hover {
    border-color: #93c5fd;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.reset-button {
    background-color: transparent;
    color: #4b5563;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
}

.reset-button:hover {
    background-color: #f3f4f6;
}

.quack-preview {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    border-left: 4px solid #fefcbf;
    margin-top: 2rem;
}

.quack-preview h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.quack-preview p {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1rem;
}

.quack-preview p strong {
    color: #1f2937;
}

.add-quack-button {
    margin-top: 1rem;
    text-align: center;
}

.canvas-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.canvas-tools {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.tool-button {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #f9fafb;
    cursor: pointer;
    font-weight: 500;
}

.tool-button.active {
    background-color: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.tool-button:hover {
    background-color: #e5e7eb;
}

#drawingCanvas {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Saved Quacks Section */
.saved-quacks {
    padding: 4rem 2rem;
    background-color: #f9fafb;
    text-align: center;
}

.saved-quacks h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.saved-quacks p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #4b5563;
    font-size: 1.1rem;
}

.quacks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.quack-post-it {
    background-color: #fefcbf;
    padding: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    transform: rotate(-2deg);
    position: relative;
    cursor: pointer;
}

.quack-post-it:nth-child(even) {
    transform: rotate(2deg);
}

.quack-post-it p {
    font-size: 0.9rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.quack-post-it p strong {
    color: #1f2937;
}

.quack-post-it img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-top: 1rem;
}

/* Features */
.features {
    padding: 4rem 2rem;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #4b5563;
}

/* About */
.about {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f9fafb;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about p {
    max-width: 700px;
    margin: 0 auto;
    color: #4b5563;
}

/* CTA */
.cta {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #fefcbf;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    color: #4b5563;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background-color: #1f2937;
    color: #fff;
}

.social-links a {
    color: #fff;
    margin: 0 1rem;
    text-decoration: none;
}

.social-links a:hover {
    color: #93c5fd;
}

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

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

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

    .demo-container {
        flex-direction: column;
        align-items: center;
    }

    .quack-post-it {
        width: 100%;
        max-width: 300px;
    }
}