:root {
    --bg-color: #0f172a;
    --accent: #14b8a6;
    --text: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

body { background: var(--bg-color); color: var(--text); line-height: 1.6; overflow-x: hidden; }

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

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

/* Glassmorphism */
.glass-header, .glass-footer, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--glass-border); padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-container nav a { margin: 0 15px; color: var(--text); font-weight: 500; transition: color 0.3s; }
.nav-container nav a:hover { color: var(--accent); }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--text); }

#lang-select { background: transparent; color: var(--text); border: 1px solid var(--glass-border); padding: 5px; border-radius: 5px; cursor: pointer; }
#lang-select option { background: var(--bg-color); }

main { padding: 40px 0; min-height: 80vh; }

.hero { text-align: center; margin-bottom: 50px; }
.hero h1 { font-size: 3rem; margin-bottom: 15px; color: var(--accent); }

/* Tools Grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.glass-card { padding: 30px; border-radius: 15px; text-align: center; transition: transform 0.3s ease; }
/*.glass-card:hover { transform: translateY(-5px); border-color: var(--accent); }*/

/* Compass Tool UI */

/*
.compass-container { display: flex; flex-direction: column; align-items: center; margin: 40px 0; }
.compass-dial { width: 300px; height: 300px; border-radius: 50%; border: 4px solid var(--accent); position: relative; display: flex; justify-content: center; align-items: center; background: radial-gradient(circle, #1e293b 0%, #0f172a 100%); box-shadow: 0 0 30px rgba(20, 184, 166, 0.2); transition: transform 0.1s ease-out; }
.compass-arrow { width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 120px solid #ef4444; position: absolute; top: 20px; }
.compass-arrow::after { content: ''; position: absolute; top: 120px; left: -15px; width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 120px solid #f8fafc; }
.compass-degree { font-size: 3rem; font-weight: bold; margin-top: 20px; color: var(--accent); }

.btn { display: inline-block; padding: 10px 25px; background: var(--accent); color: var(--bg-color); border: none; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 15px; transition: opacity 0.3s; }
.btn:hover { opacity: 0.8; }
*/
/* Premium Compass UI */
.compass-app-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.premium-compass-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin-bottom: 40px;
}

/* The red target line at the top */
.lubber-line {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: #ef4444;
    border-radius: 2px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.compass-bezel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.8),
        0 10px 30px rgba(0,0,0,0.5),
        0 0 0 10px rgba(255,255,255,0.05);
    padding: 15px;
    position: relative;
}

.compass-dial-premium {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #0f172a 30%, #020617 100%);
    border: 2px solid rgba(20, 184, 166, 0.3);
    position: relative;
    transition: transform 0.1s linear; /* Smooth hardware rotation */
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
}

/* Dial Markings */
.compass-dial-premium .mark {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}
.mark.n { top: 10px; left: 50%; transform: translateX(-50%); color: #ef4444; }
.mark.e { top: 50%; right: 15px; transform: translateY(-50%); }
.mark.s { bottom: 10px; left: 50%; transform: translateX(-50%); }
.mark.w { top: 50%; left: 15px; transform: translateY(-50%); }

.crosshair {
    position: absolute;
    background: rgba(255,255,255,0.05);
}
.crosshair.vertical { top: 15%; bottom: 15%; left: 50%; width: 1px; transform: translateX(-50%); }
.crosshair.horizontal { left: 15%; right: 15%; top: 50%; height: 1px; transform: translateY(-50%); }

.premium-needle {
    position: absolute;
    top: 50%; left: 50%;
    /* Changed the Y translation to -100% to align the pivot exactly in the center */
    transform: translate(-50%, -100%);
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 110px solid #ef4444; /* North pointing red */
}
.premium-needle::after {
    content: '';
    position: absolute;
    top: 110px; left: -12px;
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 110px solid #cbd5e1; /* South pointing silver */
}

/* Digital Readout */
.digital-readout {
    display: flex;
    gap: 40px;
    background: rgba(0,0,0,0.4);
    padding: 15px 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    margin-bottom: 25px;
}

.readout-group { text-align: center; }
.readout-label { display: block; font-size: 0.7rem; color: #94a3b8; letter-spacing: 2px; margin-bottom: 5px; }
.compass-degree { font-size: 2.5rem; font-weight: bold; color: #fff; font-family: monospace; }
.compass-direction { font-size: 2.5rem; font-weight: bold; color: var(--accent); }

.compass-controls { display: flex; gap: 15px; }

/* SEO Content Area */
.seo-content { margin-top: 60px; padding: 40px; border-radius: 15px; text-align: justify;}
.seo-content h2 { margin-top: 30px; margin-bottom: 15px; color: var(--accent); }
.seo-content p { margin-bottom: 20px; font-size: 1.1rem; }
.seo-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Footer */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; padding: 40px 0; }
.footer-col h3 { color: var(--accent); margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid var(--glass-border); }


