/* css/theme.css */
:root {
    --accent-color: #4A90E2;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-height: 70px;
    
    /* --- NEW: FONT SIZING VARIABLES --- */
    /* Sets the base font size between a min of 0.85rem and max of 1.1rem */
    --fluid-font-size: clamp(0.85rem, 0.75rem + 0.5vw, 1.1rem);
}

html[data-theme="dark"] {
    --accent-glow: rgba(74, 144, 226, 0.25); --bg-color: #000000; --surface-color: rgba(30, 30, 30, 0.75);
    --border-color: rgba(255, 255, 255, 0.1); --text-primary: #EAEAEA; --text-secondary: #A0A0A0;
    --header-bg: rgba(18, 18, 18, 0.8); --suggestion-bg: #2a2a2a; --suggestion-hover-bg: #3a3a3a;
    --star-color: white; --star-opacity: 1;
    --card-bg-opaque: #1E1E1E; /* Opaque card background */
}

html[data-theme="light"] {
    --accent-glow: rgba(74, 144, 226, 0.15); --bg-color: #F5F5F7; --surface-color: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.1); --text-primary: #1D1D1F; --text-secondary: #6E6E73;
    --header-bg: rgba(245, 245, 247, 0.7); --suggestion-bg: #FFFFFF; --suggestion-hover-bg: #f0f0f0;
    --star-color: #333; --star-opacity: 0.3;
    --card-bg-opaque: #FFFFFF; /* Opaque card background */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); -ms-overflow-style: none; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
    font-family: var(--font-main); background-color: var(--bg-color); color: var(--text-primary);
    line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.3s ease;
    /* --- FONT SIZE CHANGE --- */
    font-size: var(--fluid-font-size);
}

h1 {
    font-size: 1.3rem; /* Set base H1 size as requested */
}

.stars {
    background-color: transparent; background-repeat: repeat; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: -10; opacity: var(--star-opacity);
    transition: opacity 0.8s ease, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
#stars1 { background-image: radial-gradient(1px 1px at 25px 5px, var(--star-color), rgba(255,255,255,0)), radial-gradient(1px 1px at 50px 25px, var(--star-color), rgba(255,255,255,0)); background-size: 100px 100px; }
#stars2 { background-image: radial-gradient(1px 1px at 10px 30px, var(--star-color), rgba(255,255,255,0)), radial-gradient(1px 1px at 80px 60px, var(--star-color), rgba(255,255,255,0)); background-size: 200px 200px; }
#stars3 { background-image: radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(255,255,255,0)), radial-gradient(2px 2px at 20px 80px, var(--star-color), rgba(255,255,255,0)); background-size: 300px 300px; }

.container { width: 90%; margin: 0 auto; }
section { padding: 60px 0; }
#hero { padding-top: calc(var(--header-height) + 60px); text-align: center; display: flex; align-items: center; justify-content: center; min-height: 85vh; }
#hero .container { max-width: 750px; }

#tools {
    padding-top: 40px;
}

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2em; margin-bottom: 0.5rem; } 
.section-header p { max-width: 600px; margin: 0 auto; color: var(--text-secondary); font-size: 1em; }

.hero-title { font-size: 2.8em; font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem; background: linear-gradient(90deg, var(--text-primary), var(--text-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.1em; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 500; transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.2s ease, box-shadow 0.2s ease; cursor: pointer; border: none; font-size: 1em; }
.btn-primary { background-color: var(--accent-color); color: #FFF; }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 20px var(--accent-glow); }
.btn-secondary { background-color: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover, .btn-secondary:focus-visible { background-color: var(--border-color); transform: translateY(-2px); }

/* UPDATED: Start with a 2-column grid on mobile */
.tools-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem; 
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card { 
    background-color: var(--card-bg-opaque); 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    padding: 1.5rem; 
    text-align: center; 
    position: relative; 
    overflow: hidden; 
    height: 100%; 
}
.tool-icon { font-size: 2em; margin-bottom: 1rem; color: var(--accent-color); line-height: 1; }
.tool-card h3 { font-size: 1.1em; margin-bottom: 0.5rem; color: var(--text-primary); }
.tool-card p { color: var(--text-secondary); font-size: 0.9em; line-height: 1.4; }