:root {
    --gold: #d4af37;
    --dark: #0a0a0c;
    --red-accent: #8b0000;
    --glass: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: white;
    line-height: 1.6;
}

h1, h2, h3, .logo { font-family: 'Cinzel', serif; color: var(--gold); }

.container { width: 85%; margin: auto; }
.section { padding: 80px 0; }
.center { text-align: center; margin-bottom: 40px; }

/* Hero */
.hero {
    height: 90vh;
    background: url('BACKGROUND.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle, transparent, rgba(0,0,0,0.8));
}

nav { position: relative; z-index: 10; display: flex; justify-content: space-between; padding: 20px 5%; align-items: center; }
nav ul { display: flex; list-style: none; gap: 20px; }
nav a { color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; }

.hero-content { position: relative; z-index: 10; margin-top: 15vh; }
.hero-content h1 { font-size: 4rem; margin: 0; }

.cta-button {
    display: inline-block;
    background: var(--gold);
    color: black;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 30px;
    transition: 0.3s;
}

/* Flex Layouts */
.flex-row { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.text-block, .img-block { flex: 1; min-width: 300px; }
.img-block img { width: 100%; border-radius: 15px; border: 2px solid var(--gold); }

/* Alphabet Cards */
.alphabet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.alpha-card {
    background: var(--glass);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    backdrop-filter: blur(10px);
}
.alpha-card h3 { font-size: 2.5rem; margin: 0; }

/* Calculator Section */
.calc-section {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('download (2).jpg') center/cover;
    padding: 100px 0;
}
.calc-card {
    max-width: 600px;
    margin: auto;
    background: rgba(15, 15, 15, 0.9);
    padding: 50px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    text-align: center;
}
input { width: 100%; padding: 15px; margin: 20px 0; border-radius: 5px; border: 1px solid var(--gold); background: #111; color: white; }
button { width: 100%; padding: 15px; background: var(--gold); border: none; font-weight: bold; cursor: pointer; }

#result { margin-top: 25px; font-size: 1.5rem; border-top: 1px solid var(--gold); padding-top: 20px; }

/* Meanings Grid */
.meanings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.m-card { background: #1a1a1a; padding: 20px; display: flex; align-items: center; gap: 20px; border-left: 5px solid var(--gold); }
.m-card strong { font-size: 2rem; color: var(--gold); }

footer { text-align: center; padding: 100px 0; position: relative; overflow: hidden; }
.footer-bg { position: absolute; top:0; left:0; width:100%; height:100%; opacity: 0.2; background-size: cover; z-index: -1; }
