@import url('https://fonts.googleapis.com/css2?family=Yanone+Kaffeesatz:wght@700&family=Quicksand:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Light theme colors */
    --background: #F5E6D3;
    --surface: #E8D5B7;
    --surface-variant: #D4B896;
    --primary: #D2691E;
    --primary-container: #F4A460;
    --today: #DAA520;
    --manana: #CD853F;
    --delete: #A0522D;
    --completed: #8B8634;
    --text: #5D4E37;
    --on-surface: #6B4423;
    --on-primary: #F5E6D3;
    --accent: #B8860B;
    --border: #C19A6B;

    /* Dark theme colors */
    --dark-background: #2F1B14;
    --dark-surface: #3D251A;
    --dark-surface-variant: #4A2C1D;
    --dark-primary: #E4A853;
    --dark-primary-container: #B8860B;
    --dark-today: #FFD700;
    --dark-manana: #DEB887;
    --dark-delete: #CD5C5C;
    --dark-text: #E8D5B7;
    --dark-on-surface: #D4B896;
    --dark-accent: #F4A460;
    --dark-border: #8B4513;
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    color: var(--dark-text);
    background-color: var(--dark-background);
}

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

/* Navigation */
.navbar {
    background-color: var(--surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

body.dark-mode .navbar {
    background-color: var(--dark-surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

body.dark-mode .logo {
    color: var(--dark-primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

body.dark-mode .nav-links a {
    color: var(--dark-text);
}

.nav-links a:hover {
    color: var(--primary);
}

body.dark-mode .nav-links a:hover {
    color: var(--dark-primary);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 3rem 20px;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

body.dark-mode .hero h2 {
    color: var(--dark-text);
}

.hero-title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 4rem;
    color: var(--manana);
    margin-bottom: 1rem;
    font-weight: 700;
}

body.dark-mode .hero-title {
    color: var(--dark-manana);
}

.hero p {
    font-size: 1.1rem;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

body.dark-mode .hero p {
    color: var(--dark-on-surface);
}

.hero .subtitle {
    color: var(--accent);
    font-size: 0.95rem;
}

body.dark-mode .hero .subtitle {
    color: var(--dark-accent);
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-item {
    display: flex;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .gallery-image {
    border-color: var(--dark-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    border: 2px solid var(--border);
}

body.dark-mode .features {
    background: var(--dark-surface);
    border-color: var(--dark-border);
}

.features h2 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 2.2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

body.dark-mode .features h2 {
    color: var(--dark-primary);
}

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

.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

body.dark-mode .feature-card h3 {
    color: var(--dark-primary);
}

.feature-card p {
    color: var(--text);
}

body.dark-mode .feature-card p {
    color: var(--dark-text);
}

/* Links Section */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.link-card {
    background: var(--surface-variant);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

body.dark-mode .link-card {
    background: var(--dark-surface-variant);
    border-color: var(--dark-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: var(--primary-container);
}

body.dark-mode .link-card:hover {
    background: var(--dark-primary-container);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.link-card h3 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

body.dark-mode .link-card h3 {
    color: var(--dark-primary);
}

.link-card p {
    color: var(--on-surface);
    margin-bottom: 1.5rem;
}

body.dark-mode .link-card p {
    color: var(--dark-on-surface);
}

/* Content Section */
.content {
    background: var(--surface-variant);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.dark-mode .content {
    background: var(--dark-surface-variant);
    border-color: var(--dark-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.content h2 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

body.dark-mode .content h2 {
    color: var(--dark-primary);
}

.content h3 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

body.dark-mode .content h3 {
    color: var(--dark-primary);
}

.content p {
    color: var(--text);
    margin-bottom: 1rem;
}

body.dark-mode .content p {
    color: var(--dark-text);
}

.content ul, .content dl {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

body.dark-mode .content li {
    color: var(--dark-text);
}

.content dt {
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
}

body.dark-mode .content dt {
    color: var(--dark-primary);
}

.content dd {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

body.dark-mode .content dd {
    color: var(--dark-text);
}

.content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

body.dark-mode .content a {
    color: var(--dark-primary);
}

.content a:hover {
    text-decoration: underline;
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--primary);
    color: var(--on-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

body.dark-mode .btn {
    background-color: var(--dark-primary);
    color: var(--dark-on-primary);
}

.btn:hover {
    background-color: var(--primary-container);
    transform: translateY(-2px);
}

body.dark-mode .btn:hover {
    background-color: var(--dark-primary-container);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--on-primary);
    text-align: center;
    padding: 2.5rem;
    margin-top: 3rem;
}

body.dark-mode footer {
    background-color: var(--dark-primary);
    color: var(--dark-on-primary);
}

footer p {
    margin: 0;
    font-weight: 500;
}

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

    .nav-links {
        gap: 1rem;
    }

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

    .links {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 1.5rem;
    }
}
