

/* =========================================
   GLOBAL ZOOM SETTINGS (80% DEFAULT)
   ========================================= */

/* 1. Standard Zoom for Chrome, Edge, Safari */
html {
    zoom: 100%;
}

/* 2. Firefox Fallback (Firefox doesn't support 'zoom') */
@supports (-moz-appearance:none) {
    body {
        transform: scale(0.8);
        transform-origin: 0 0;
        width: 125%; /* Compensate for shrinking */
        overflow-x: hidden;
    }
}

/* 3. Mobile Reset (Disable zoom on phones so it's readable) */
@media (max-width: 768px) {
    html {
        zoom: 100%;
    }
    @supports (-moz-appearance:none) {
        body {
            transform: none;
            width: 100%;
        }
    }
}

/* VARIABLES & THEMES - COMPACT & MINIMALIST */
:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #000000;
    --secondary-text: #555555;
    --border-light: #e0e0e0;
    
    /* Typography */
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-reading: "Georgia", "Times New Roman", serif;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --secondary-text: #a0a0a0;
    --border-light: #333333;
}

/* BASE RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { 
    font-size: 100%; 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-ui);
    line-height: 1.5;
    transition: background-color 0.3s, color 0.3s;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-weight: 600; color: var(--accent-color); margin-bottom: 0.5rem; }

h1 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 0.2rem; }
h2 { font-size: 1.4rem; margin-top: 1.5rem; border-bottom: 1px solid var(--border-light); padding-bottom: 0.3rem; margin-bottom: 1rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.2rem; font-weight: 700; }

p, li { 
    font-family: var(--font-reading); 
    font-size: 1rem; 
    margin-bottom: 0.5rem;
    color: var(--secondary-text);
    /* Keeps text readable even on wide screens (prevents lines from getting too long) */
    max-width: 80ch; 
}

/* LINKS */
a { color: var(--text-color); text-decoration: none; border-bottom: 1px solid var(--border-light); transition: border-color 0.2s; }
a:hover { border-bottom-color: var(--accent-color); }

/* LAYOUT - UPDATED TO 1200px (Wide Standard) */
.container { 
    width: 100%;
    max-width: 1200px; /* Significantly wider */
    margin: 0 auto; 
    padding: 1.5rem 1rem; 
    min-height: 80vh; 
}

.section { margin-bottom: 2.5rem; }

/* COMPONENT: NAVBAR - UPDATED TO 1200px */
.navbar {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: center;
    padding: 1rem 1rem; 
    margin: 0 auto; 
    width: 100%;
    max-width: 1200px; /* Match container */
    border-bottom: 1px solid var(--border-light);
}

.logo-text { font-size: 1.1rem; font-weight: 700; border: none; }

.nav-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; margin-right: 0.5rem; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; margin-top: 0.5rem; padding: 0; flex-wrap: wrap; }
.nav-links a { font-weight: 500; font-family: var(--font-ui); font-size: 0.9rem; text-transform: capitalize; border: none; opacity: 0.7; }
.nav-links a:hover { opacity: 1; }

/* CONTROLS (Theme, Font, Translate) */
.control-btn {
    background: transparent; border: none; color: var(--text-color);
    cursor: pointer; font-family: var(--font-ui); opacity: 0.7; padding: 4px;
}
.control-btn:hover { opacity: 1; }

.font-group { display: flex; gap: 4px; }
.font-group button { border: none; background: transparent; color: var(--text-color); cursor: pointer; opacity: 0.6; font-size: 0.85rem; }
.font-group button:hover { opacity: 1; }

/* GOOGLE TRANSLATE CUSTOMIZATION */
#google_translate_element { overflow: hidden; height: 26px; }
.goog-te-gadget-simple { background-color: transparent !important; border: none !important; padding: 0 !important; }

/* COMPONENT: CLEAN LISTS (No Cards/Boxes) */
.card { 
    background: transparent; 
    padding: 1rem 0; 
    border-bottom: 1px solid var(--border-light); 
    margin-bottom: 0;
}
.card:last-child { border-bottom: none; }
.card p { margin-bottom: 0.3rem; }

/* META TAGS */
.meta-tag { 
    font-family: var(--font-ui); 
    font-weight: 700; 
    font-size: 0.8rem; 
    color: var(--accent-color);
    margin-right: 6px;
}

/* FOOTER - CONTENT CENTERED TO 1200px */
.site-footer { 
    border-top: 1px solid var(--border-light); 
    padding: 2rem 0; 
    margin-top: 2rem; 
    text-align: center; 
    color: var(--secondary-text); 
}

.footer-content {
    width: 100%;
    max-width: 1200px; /* Match container */
    margin: 0 auto;
    padding: 0 1rem;
}

.social-links { display: flex; justify-content: center; gap: 1.5rem; margin: 1rem 0; }
.social-icon { width: 20px; height: 20px; fill: var(--text-color); opacity: 0.7; transition: opacity 0.2s; }
.social-icon:hover { opacity: 1; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { padding: 0.8rem 1rem; }
    .nav-links { gap: 0.8rem; font-size: 0.85rem; }
    .container { padding: 1rem; }
}

/* --- POPUP / MODAL STYLES --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    z-index: 9999; /* Sit on top of everything */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px); /* Optional: blurs background slightly */
}

.popup-content {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.popup-btn {
    margin-top: 1.5rem;
    padding: 0.6rem 2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: opacity 0.2s;
}

.popup-btn:hover {
    opacity: 0.8;
}