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

:root {
    /* Material Design inspired Light Theme */
    --primary-color: #1976d2;
    --primary-variant: #1565c0;
    --secondary-color: #9c27b0;
    --secondary-variant: #7b1fa2;
    --accent-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --light-bg: #f5f5f5;
    --dark-bg: #212121;
    --surface: #ffffff;
    --background: #fafafa;
    --border-color: #e0e0e0;
    --text-color: #212121;
    --text-light: #757575;
    --text-disabled: #bdbdbd;
    --white: #ffffff;
    --link-color: #1976d2;
    --shadow: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.16);
    --border-radius: 4px;
    --border-radius-large: 8px;
    --transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Material Design inspired Dark Theme */
[data-theme="dark"] {
    --primary-color: #2196f3;
    --primary-variant: #1976d2;
    --secondary-color: #ce93d8;
    --secondary-variant: #ab47bc;
    --accent-color: #66bb6a;
    --warning-color: #ffb74d;
    --danger-color: #e57373;
    --light-bg: #303030;
    --dark-bg: #121212;
    --surface: #1e1e1e;
    --background: #121212;
    --border-color: #424242;
    --text-color: #ffffff;
    --text-light: #b0b0b0;
    --text-disabled: #616161;
    --white: #1e1e1e;
    --link-color: #64b5f6;
    --shadow: 0 1px 3px rgba(0,0,0,0.24);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.32);
}

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-color: #2196f3;
        --primary-variant: #1976d2;
        --secondary-color: #ce93d8;
        --secondary-variant: #ab47bc;
        --accent-color: #66bb6a;
        --warning-color: #ffb74d;
        --danger-color: #e57373;
        --light-bg: #303030;
        --dark-bg: #121212;
        --surface: #1e1e1e;
        --background: #121212;
        --border-color: #424242;
        --text-color: #ffffff;
        --text-light: #b0b0b0;
        --text-disabled: #616161;
        --white: #1e1e1e;
        --link-color: #64b5f6;
        --shadow: 0 1px 3px rgba(0,0,0,0.24);
        --shadow-hover: 0 4px 8px rgba(0,0,0,0.32);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

html, body {
    height: 100%;
}

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

.main-content {
    flex: 1;
}

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

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-variant);
    border-color: var(--primary-variant);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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