/* ===========================================================
   SMARTTAX INNOVATIONS — MODERN PREMIUM THEME + DARK MODE
   =========================================================== */

/* -------- GLOBAL THEME VARIABLES -------- */
:root {
    --bg: #f4f6fc;
    --text: #0d1b2a;
    --card: #ffffff;
    --shadow: 0 5px 25px rgba(0,0,0,0.09);
    --btn: #1e40af;
    --btn-hover: #172b82;
    --nav-bg: #ffffffdd;
    --nav-text: #0d1b2a;
    --back-bg: #ffffffaa;
}

/* -------- DARK MODE VARIABLES -------- */
.dark {
    --bg: #1c1f24;
    --text: #e5e7eb;
    --card: #2a2d32;
    --shadow: 0 5px 25px rgba(0,0,0,0.35);
    --btn: #3b82f6;
    --btn-hover: #2363ca;
    --nav-bg: #2a2d32cc;
    --nav-text: #e5e7eb;
    --back-bg: #3a3d42aa;
}

/* -------- BODY + GLOBAL RESET -------- */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    position: relative;
    overflow-x: hidden;
}

/* -------- BLURRY BACKGROUND LOGO (HOME + CONTACT) -------- */
body.home::before,
body.contact-page::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    background: url("../../smarttax_logo.jpg") no-repeat center;
    background-size: contain;
    opacity: 0.07;
    filter: blur(3px);
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* -------- NAVIGATION BAR -------- */
nav {
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    padding: 12px 25px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow);
}

nav img.logo {
    height: 40px;
    margin-right: 25px;
}

nav a {
    color: var(--nav-text);
    font-weight: 600;
    margin-right: 25px;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    opacity: 0.6;
}

/* -------- DARK MODE TOGGLE BUTTON -------- */
#themeToggle {
    margin-left: auto;
    padding: 8px 15px;
    background: var(--btn);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: 0.25s;
}

#themeToggle:hover {
    background: var(--btn-hover);
}

/* -------- HERO SECTION -------- */
.hero {
    text-align: center;
    margin-top: 120px;
}

.hero h1 {
    font-size: 50px;
    font-weight: 800;
}

.hero p {
    max-width: 750px;
    margin: 0 auto;
    margin-top: 12px;
    font-size: 22px;
    color: var(--text);
}

.hero .btn-container {
    margin-top: 35px;
}

/* -------- PAGE BACKGROUNDS -------- */
body.form-page {
    background: url("../../40454.jpg") no-repeat center center fixed;
    background-size: cover;
}

body.upload-page {
    background: url("../../cost_font_1.jpg") no-repeat center center fixed;
    background-size: cover;
}

body.tips-page {
    background: url("../../christmas_2012_new_5046.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* -------- CARD STYLE -------- */
.card {
    background: var(--card);
    padding: 25px;
    border-radius: 14px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

/* -------- BUTTONS -------- */
.btn {
    background: var(--btn);
    color: white;
    padding: 14px 25px;
    border-radius: 10px;
    margin: 10px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.btn:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
}

/* -------- BACK BUTTON -------- */
.back-btn {
    margin: 20px;
}

.back-btn a {
    padding: 8px 14px;
    background: var(--back-bg);
    color: var(--text);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(5px);
}
