/* =========================================================
   APERION WEB AUTOMATION - FIXED CSS (THEME & VISIBILITY)
========================================================= */

:root {
    --bg: #0d1721;
    --bg-soft: #11202e;
    --card: #142535;
    --card-light: #1b3248;

    --text: #f3f7fa;
    --text-main: #f3f7fa;
    --muted: #94a3b8;

    --accent: #38bdf8;
    --accent-dark: #0284c7;

    --border: rgba(255,255,255,0.12);
    --nav-bg: rgba(13, 23, 33, 0.95);

    --container: 1180px;
    --heading: "Space Grotesk", sans-serif;
    --body: "DM Sans", sans-serif;
}

body.light-theme {
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --card: #ffffff;
    --card-light: #e2e8f0;

    --text: #0f172a;
    --text-main: #0f172a;
    --muted: #475569;

    --accent: #0284c7;
    --accent-dark: #0369a1;

    --border: rgba(15, 23, 42, 0.12);
    --nav-bg: rgba(248, 250, 252, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}


a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.container {
    width: min(100% - 48px, var(--container));
    margin: auto;
}

/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}

.logo-text span {
    color: var(--accent);
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--accent);
    font-weight: bold;
    font-size: 20px;
}

.nav-links {
    display: flex;
    gap: 34px;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle-btn:hover {
    background: var(--card-light);
    border-color: var(--accent);
    color: var(--accent);
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-button:hover {
    background: var(--card-light);
    border-color: var(--accent);
}

.nav-button span {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px;
    background: var(--text);
}

/* ================= HERO ================= */

.hero {
    min-height: 850px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.13;
    pointer-events: none;
}

.glow-one {
    background: var(--accent);
    top: 100px;
    right: -150px;
}

.glow-two {
    background: var(--accent-dark);
    bottom: -200px;
    left: -200px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
    max-width: 650px;
    font-family: var(--heading);
    font-size: clamp(48px, 6vw, 76px);
    line-height: 0.99;
    letter-spacing: -3.5px;
    margin-bottom: 28px;
    color: var(--text);
}

.hero h1 span,
.section-heading h2 span,
.problem-content h2 span,
.about-content h2 span,
.cta-content h2 span {
    color: var(--accent);
}

.hero-description {
    max-width: 590px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--accent-dark);
}

body.light-theme .primary-button {
    color: #ffffff;
    background: var(--accent);
}

.primary-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.secondary-button {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--card);
}

.secondary-button:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: var(--card-light);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 20px;
}

.hero-note span {
    color: var(--accent);
}

/* ================= AUTOMATION VISUAL ================= */

.automation-visual {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    width: min(100%, 500px);
    padding: 27px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.visual-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--border);
}

.mini-label {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1.7px;
    margin-bottom: 5px;
}

.visual-top h3 {
    font-family: var(--heading);
    font-size: 19px;
    color: var(--text);
}

.live-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 20px;
    background: var(--card-light);
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
}

.live-pill span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.flow {
    padding: 25px 0;
}

.flow-node {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    border-radius: 11px;
}

.flow-node.active {
    border-color: var(--accent);
    background: var(--card-light);
    box-shadow: 0 0 30px rgba(56,189,248,0.1);
}

.node-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--card);
    color: var(--accent);
}

.flow-node strong {
    display: block;
    font-size: 13px;
    color: var(--text);
}

.flow-node small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}

.connector {
    height: 25px;
    position: relative;
}

.connector span {
    position: absolute;
    left: 31px;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--accent);
    opacity: 0.4;
}

.visual-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.visual-footer span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1.3px;
}

.visual-footer strong {
    display: block;
    font-size: 11px;
    color: var(--text);
    margin-top: 5px;
}

.pulse-chart {
    height: 35px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.pulse-chart i {
    display: block;
    width: 5px;
    border-radius: 4px;
    background: var(--accent);
    opacity: 0.75;
}

.floating-card {
    position: absolute;
    padding: 13px 15px;
    min-width: 155px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--card);
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.floating-card span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1.3px;
}

.floating-card strong {
    display: block;
    color: var(--accent);
    font-size: 13px;
    margin-top: 3px;
}

.floating-card small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.floating-one {
    left: -10px;
    top: 65px;
}

.floating-two {
    right: -10px;
    bottom: 55px;
}

/* ================= TRUST BAR ================= */

.trust-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.trust-content {
    min-height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.trust-content > div:first-child strong {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.trust-content > div:first-child span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.trust-items {
    display: flex;
    gap: 25px;
    color: var(--muted);
    font-size: 11px;
}

/* ================= SECTIONS ================= */

.section {
    padding: 125px 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 65px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading.center .eyebrow {
    justify-content: center;
}

.section-heading h2 {
    font-family: var(--heading);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: var(--text);
}

.section-heading p {
    color: var(--muted);
    font-size: 15px;
    max-width: 580px;
}

/* ================= SERVICES ================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.service-card {
    position: relative;
    min-height: 315px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--card);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-card.featured {
    background: var(--card-light);
}

.service-number {
    position: absolute;
    top: 23px;
    right: 25px;
    color: var(--muted);
    font-family: var(--heading);
    font-size: 12px;
}

.service-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--bg-soft);
    color: var(--accent);
    font-size: 19px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-family: var(--heading);
    font-size: 19px;
    margin-bottom: 11px;
    color: var(--text);
}

.service-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.service-tags {
    display: flex;
    gap: 7px;
    margin-top: 23px;
}

.service-tags span {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--muted);
    font-size: 9px;
    background: var(--bg-soft);
}

/* ================= PROBLEM ================= */

.problem-section {
    padding: 110px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.problem-content h2 {
    max-width: 560px;
    font-family: var(--heading);
    font-size: clamp(37px, 4vw, 53px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 25px;
    color: var(--text);
}

.problem-content p {
    max-width: 550px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.problem-list {
    border-top: 1px solid var(--border);
}

.problem-item {
    display: flex;
    gap: 17px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.problem-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--card);
    color: var(--accent);
}

.problem-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--text);
}

.problem-item p {
    color: var(--muted);
    font-size: 11px;
}

/* ================= PROCESS ================= */

.process-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
}

.process-step {
    position: relative;
    padding: 38px 28px 20px;
    border-right: 1px solid var(--border);
    background: var(--card);
}

.process-step:last-child {
    border-right: 0;
}

.step-number {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    font-family: var(--heading);
    font-size: 11px;
    background: var(--bg-soft);
}

.process-step h3 {
    font-family: var(--heading);
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.process-step p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

/* ================= ABOUT ================= */

.about-section {
    background: var(--bg-soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-visual {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-box {
    width: 390px;
    height: 390px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
}

.about-grid-lines {
    position: absolute;
    inset: 30px;
    border: 1px dashed var(--border);
    border-radius: 50%;
}

.about-center {
    width: 125px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-soft);
    z-index: 2;
}

.center-symbol {
    color: var(--accent);
    font-family: var(--heading);
    font-size: 22px;
    font-weight: 700;
}

.about-center strong {
    font-size: 11px;
    margin-top: 3px;
    color: var(--text);
}

.about-center span {
    color: var(--muted);
    font-size: 8px;
}

.about-orbit {
    position: absolute;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
}

.orbit-one { top: 24px; left: 75px; }
.orbit-two { right: 17px; top: 160px; }
.orbit-three { bottom: 30px; left: 120px; }

.about-content h2 {
    font-family: var(--heading);
    font-size: clamp(39px, 4vw, 55px);
    line-height: 1.04;
    letter-spacing: -2px;
    margin-bottom: 25px;
    color: var(--text);
}

.about-content > p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
    max-width: 530px;
}

.about-points {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-points div {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.about-points span {
    color: var(--accent);
    font-family: var(--heading);
    font-size: 10px;
}

.about-points strong {
    font-size: 12px;
    color: var(--text);
}

/* ================= TRUST ================= */

.trust-section {
    padding: 110px 0;
}

.trust-box {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    padding: 55px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
}

.trust-badge {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 25px;
}

.trust-content-main h2 {
    font-family: var(--heading);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -1.8px;
    margin-bottom: 20px;
    color: var(--text);
}

.trust-content-main h2 span {
    color: var(--accent);
}

.trust-content-main > p {
    color: var(--muted);
    font-size: 14px;
    max-width: 750px;
    line-height: 1.8;
}

.trust-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 35px;
    margin-top: 28px;
}

.trust-points div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
}

.trust-points span {
    color: var(--accent);
}

/* ================= CTA ================= */

.cta-section {
    position: relative;
    padding: 145px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 500px;
    height: 300px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    opacity: 0.07;
    filter: blur(100px);
    border-radius: 50%;
}

.cta-content {
    position: relative;
}

.cta-content .eyebrow {
    justify-content: center;
}

.cta-content h2 {
    max-width: 800px;
    margin: auto;
    font-family: var(--heading);
    font-size: clamp(43px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -3px;
    color: var(--text);
}

.cta-content > p {
    max-width: 590px;
    margin: 25px auto 30px;
    color: var(--muted);
    font-size: 15px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.cta-content small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 20px;
}

/* ================= FOOTER ================= */

.footer {
    border-top: 1px solid var(--border);
    padding: 65px 0 25px;
    background: var(--card);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding-bottom: 55px;
}

.footer-brand p {
    max-width: 240px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 17px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h4 {
    color: var(--text);
    font-size: 11px;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a,
.footer-column span {
    color: var(--muted);
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 9px;
}

@media (max-width: 950px) {
    .nav-links { gap: 18px; }
    .nav-button { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding-top: 130px; padding-bottom: 80px; }
    .automation-visual { max-width: 650px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .problem-grid, .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .process-line { grid-template-columns: repeat(2, 1fr); }
    .process-step:nth-child(2) { border-right: 0; }
    .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .about-visual { order: 2; }
    .footer-main { grid-template-columns: 2fr 1fr 1fr; }
    .footer-column:last-child { grid-column: span 3; }
}

@media (max-width: 700px) {
    .container { width: min(100% - 30px, var(--container)); }
    .nav-links {
        position: fixed;
        top: 76px; left: 15px; right: 15px;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: 0.25s ease;
    }
    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 10px; }
    .menu-toggle { display: block; }
    .hero { min-height: auto; padding-top: 120px; }
    .hero h1 { font-size: 48px; letter-spacing: -2.5px; }
    .hero-description { font-size: 15px; }
    .automation-visual { min-height: 410px; }
    .visual-card { padding: 19px; }
    .floating-card { display: none; }
    .trust-content { flex-direction: column; align-items: flex-start; padding: 25px 0; }
    .trust-items { flex-wrap: wrap; gap: 10px 18px; }
    .section { padding: 85px 0; }
    .section-heading { margin-bottom: 40px; }
    .section-heading h2 { font-size: 39px; }
    .services-grid { grid-template-columns: 1fr; }
    .problem-section { padding: 80px 0; }
    .problem-grid { gap: 45px; }
    .process-line { grid-template-columns: 1fr; }
    .process-step { border-right: 0; border-bottom: 1px solid var(--border); }
    .process-step:last-child { border-bottom: 0; }
    .about-box { width: 300px; height: 300px; }
    .about-center { width: 105px; height: 105px; }
    .trust-box { grid-template-columns: 1fr; padding: 30px; gap: 25px; }
    .trust-points { grid-template-columns: 1fr; }
    .cta-section { padding: 100px 0; }
    .cta-content h2 { font-size: 44px; letter-spacing: -2px; }
    .cta-buttons { flex-direction: column; align-items: stretch; max-width: 320px; margin: auto; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: span 2; }
    .footer-column:last-child { grid-column: span 2; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 42px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .primary-button, .secondary-button { width: 100%; }
    .about-box { width: 270px; height: 270px; }
    .orbit-one { left: 40px; }
    .orbit-three { left: 80px; }
}

.logo-mark {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
}

/* ================= MODAL STYLES ================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: min(90% - 20px, 480px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.modal-container h3 {
    font-family: var(--heading);
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text);
}

.modal-container p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.modal-form input, 
.modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal-form input:focus, 
.modal-form textarea:focus {
    border-color: var(--accent);
}

/* ================= FIXED BACKGROUND WATERMARK ================= */
.watermark-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32vw;
    font-family: var(--heading);
    font-weight: 800;
    color: var(--accent);
    opacity: 0.03; /* Transparency taaki content clear dikhe */
    z-index: 0;
    pointer-events: none; /* Mouse clicks block na ho */
    user-select: none;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    padding: 100px;
    display: flex;
}

/* Light theme mein watermark ka color thoda adjust karne ke liye */
body.light-theme .watermark-bg {
    opacity: 0.025;
}

/* Ensure all main content stays above the watermark */
header, main, footer {
    position: relative;
    z-index: 1;
}

/* ================= NOTIFICATION TOAST STYLES ================= */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateX(150%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #10b981; /* Green accent for success */
}

.toast.error {
    border-left: 4px solid #ef4444; /* Red accent for error */
}

.toast span#toastIcon {
    font-size: 20px;
}

.toast span#toastMessage {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

/* ================= WATERMARK THEME SWITCHING ================= */
.watermark-light, .logo-light {
    display: none; /* By default (Dark Theme) me light wala hidden rahega */
}
.watermark-dark, .logo-dark {
    display: block; /* By default (Dark Theme) me dark wala dikhega */
}

/* Jab Body par .light-theme class ho */
body.light-theme .watermark-light, 
body.light-theme .logo-light {
    display: block;
}
body.light-theme .watermark-dark, 
body.light-theme .logo-dark {
    display: none;
}