/* -------------------------------------------------------------------------- */
/* 1. CSS Variables for Theme Switching                                       */
/* -------------------------------------------------------------------------- */

:root {
    /* Light Theme Colors (Default) */
    --color-primary: #059669; /* Green 600 */
    --color-secondary: #4ade80; /* Green 400 */
    --bg-main: #f9fafb; /* Light Page Background */
    --card-bg: #ffffff; /* Light Card Background */
    --text-primary: #1f2937; /* Dark text for headers */
    --text-secondary: #4b5563; /* Medium text for paragraphs */
    --border-color: #f3f4f6; /* Light border lines */
}

.dark {
    /* Dark Theme Colors */
    --bg-main: #111827; /* Dark Page Background */
    --card-bg: #1f2937; /* Dark Card Background */
    --text-primary: #ffffff; /* White text for headers */
    --text-secondary: #d1d5db; /* Light text for paragraphs */
    --border-color: #374151; /* Dark border lines */
}

/* Apply CSS Variables to elements for smooth theme transition */
body {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    transition: background-color 0.5s, color 0.5s;
}

.card {
    background-color: var(--card-bg);
    transition: background-color 0.5s;
}

/* Helper classes to apply variables in HTML where Tailwind classes aren't sufficient */
.text-primary-color {
    color: var(--color-primary);
}

.text-main-header {
    color: var(--text-primary);
}

.text-secondary-color {
    color: var(--text-secondary);
}

.border-division {
    border-color: var(--border-color);
}


/* -------------------------------------------------------------------------- */
/* 2. Custom Element Styles                                                   */
/* -------------------------------------------------------------------------- */

/* Ensure smooth scrolling and clean look */
html {
    scroll-behavior: smooth;
}

/* Custom styles for link buttons (kept for visual fidelity) */
.link-button {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Social link button specific styling for icons */
.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-icon {
    margin-bottom: 0.25rem; /* Space between icon and text */
    font-size: 1.5rem;
}
