/* Basic Reset & Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Light Theme Variables */
    --bg-primary: #f9f9f9;
    --bg-secondary: #ffffffe1;
    --header-bg: rgba(249, 249, 249, 0.85); /* For transparent header */
    --bg-accent: #e9ecef; /* For elements like hero bg, borders */
    --text-primary: #333333;
    --text-secondary: #555555;
    --bg-footer: #d3d3d3;
    --text-footer: #111111; /* Footer text color */
    --accent-main: #FFDB58; /* Mustard Yellow */
    --accent-secondary: #007bff; /* Blue */
    --border-color: #dddddd; /* Light border for elements */
    --button-text-primary: #333; /* Text color for primary buttons */
    --button-text-secondary: #ffffff; /* Text color for secondary buttons */
    --shadow-color: rgba(0,0,0,0.1);
    --accent-main-rgb: 255, 219, 88; /* RGB for opacity */
    --card-glow-color: rgba(0, 0, 0, 0.4); /* Dark glow for light theme */

    --container-padding: 1rem;
    --border-radius: 5px;

    /* Added for success toast */
    --success-bg: #28a745; 
    --success-text: #ffffff;
}

html[data-theme="dark"] {
    /* Dark Theme Variables */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2c2c2c;
    --header-bg: rgba(26, 26, 26, 0.85); /* For transparent header */
    --bg-accent: #3a3a3a;
    --text-primary: #f0f0f0;
    --text-secondary: #bbbbbb;
    --accent-main: #FFDB58; /* Mustard Yellow */
    --accent-secondary: #4dabf7; /* Lighter blue for dark mode */
    --border-color: #444444;
    --button-text-primary: #333; /* Mustard buttons still have dark text */
    --button-text-secondary: #f0f0f0; /* Secondary buttons on dark bg need light text */
    --shadow-color: rgba(255,255,255,0.05);
    --card-glow-color: rgba(var(--accent-main-rgb), 0.4); /* Accent glow for dark theme */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 0.75em;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-primary); /* Ensure headings also use theme color */
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; color: var(--accent-secondary); } /* Section titles use accent */
h3 { font-size: 1.3rem; }

p {
    margin-bottom: 1em;
    color: var(--text-secondary); /* Paragraphs use secondary text color */
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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


/* Responsive Typography (Mobile specific tweaks) */
@media (max-width: 600px) {
    h1.logo { font-size: 1.1rem; } /* Moved from style.css general media query */
    h2 { font-size: 1.6rem; }
}