:root {
    --bg-deep: #020408;
    --bg-main: #0a0c12;
    --red: #e63946;
    --blue-glow: #00d4ff;
    --silver-light: #e2e8f0;
    --white: #ffffff;
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
}

/* 1. RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-deep); color: var(--white); font-family: var(--font-body); line-height: 1.8; overflow-x: hidden; }
.center-text { text-align: center; }

/* 2. SITE WRAPPER & WATERMARK */
.site-wrapper { max-width: 1400px; margin: 0 auto; background-color: var(--bg-main); box-shadow: 0 0 100px rgba(0,0,0,0.8); position: relative; min-height: 100vh; }
.site-watermark { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70vh; height: 70vh; background: url('autotec-logo.png') no-repeat center center; background-size: contain; opacity: 0.03; pointer-events: none; z-index: 1; }

/* 3. TOP BAR & NAVIGATION */
.top-bar { background: #000; padding: 12px 20px; border-bottom: 1px solid #1a1a1a; position: relative; z-index: 1001; }
.bar-content-centered { display: flex; justify-content: center; align-items: center; gap: 40px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; }
.bar-group { display: flex; gap: 20px; align-items: center; }
.label-red { color: var(--red); font-weight: 700; }
.bar-group a { color: var(--silver-light); text-decoration: none; font-weight: 700; font-size: 0.75rem; letter-spacing: 1px; }
.glow-text { text-shadow: 0 0 5px rgba(230, 57, 70, 0.9), 0 0 10px rgba(230, 57, 70, 0.4); }

.main-nav { background: rgba(10, 12, 18, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-container-even { display: flex; justify-content: space-between; align-items: center; padding: 10px 40px; max-width: 1300px; margin: 0 auto; }
.nav-logo { height: 85px; width: auto; transition: 0.3s; }

.nav-item { flex: 1; text-align: center; color: #fff; text-decoration: none; text-transform: uppercase; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; transition: 0.3s; }
.nav-item:hover { color: var(--red); }
.logo-center a:hover .nav-logo { filter: drop-shadow(0 0 10px var(--red)); opacity: 0.8; }

.nav-cta { background: var(--red); padding: 12px 25px; border-radius: 4px; color: #fff !important; flex: 0 0 auto; text-decoration: none; transition: 0.3s; font-weight: 700; }
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 0 20px var(--red); }

/* 4. HERO SECTION */
.hero-frame { padding: 40px; position: relative; z-index: 2; }
.hero-bg { min-height: 600px; background-size: cover; background-position: center; border-radius: 12px; }
.hero-inner { min-height: 600px; background: linear-gradient(to right, rgba(0,0,0,0.92), transparent); display: flex; align-items: center; padding: 40px 80px; }
.hero-inner h1 { font-family: var(--font-heading); font-size: clamp(2.5rem, 8vw, 4rem); line-height: 1.1; margin: 20px 0; }
.red-text { color: var(--red); font-style: italic; }
.kicker { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; }

.hero-btns { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { 
    padding: 18px 45px; 
    text-decoration: none; 
    font-weight: 700; 
    border-radius: 4px; 
    display: inline-block; 
    transition: 0.3s; 
    text-transform: uppercase; 
    text-align: center;
    border: none;
    cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-secondary { background: var(--silver-light); color: var(--bg-deep); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3); }

/* 5. SOLUTIONS GRID */
.solutions-modern { padding: 100px 60px; text-align: center; position: relative; z-index: 2; }
.text-gradient { background: linear-gradient(135deg, var(--white) 0%, var(--red) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 3rem; font-weight: 700; display: inline-block; }
.accent-line { width: 80px; height: 4px; background: var(--red); margin: 20px auto 60px; box-shadow: 0 0 10px var(--red); }
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.solution-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); padding: 40px; border-radius: 12px; transition: 0.4s; }
.solution-card:hover { transform: translateY(-10px); border-color: var(--red); }

/* RED GLOW FOR SERVICE HEADERS */
.service-header-glow {
    color: var(--white);
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.8), 0 0 20px rgba(230, 57, 70, 0.4);
    margin-bottom: 20px;
}

/* 6. LEGACY & TEAM */
.about-frame { padding: 100px 60px; position: relative; z-index: 2; }
.legacy-horizontal { background: rgba(17, 17, 17, 0.9); padding: 60px; border-left: 6px solid var(--red); margin-bottom: 50px; text-align: left; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.team-card { background: rgba(17, 20, 27, 0.8); padding: 50px; border: 1px solid #1d212a; border-radius: 8px; text-align: center; }
.email-glow { color: var(--white) !important; text-decoration: none; font-weight: 700; text-shadow: 0 0 10px rgba(230, 57, 70, 0.8), 0 0 20px rgba(230, 57, 70, 0.4); display: block; margin-top: 15px; }

/* BLUE GLOW FOR RICK LEGACY TITLE */
.legacy-blue-glow {
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.5);
    margin-bottom: 25px;
}

/* RED TEXT FOR OFFICE MANAGER TAG */
.card-tag-red {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* 7. CONTACT FORM */
.contact-frame { padding: 100px 20px; position: relative; z-index: 2; }
.form-wrapper { max-width: 900px; margin: 0 auto; background: rgba(17, 20, 27, 0.95); padding: 60px; border-radius: 12px; border: 1px solid #1d212a; }
.input-grid-centered { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.input-field { width: 100%; padding: 20px; background: #0a0c12; border: 1px solid #1d212a; color: #fff; font-family: inherit; border-radius: 4px; }
.form-submit-btn { background: var(--red); color: #fff; padding: 20px; font-weight: 700; border-radius: 4px; cursor: pointer; border: none; width: 100%; text-transform: uppercase; transition: 0.3s; }

/* 8. FOOTER GLOWS */
footer { text-align: center; padding: 100px 20px; border-top: 1px solid #1a1a1a; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-copy { color: var(--white); text-shadow: 0 0 10px rgba(230, 57, 70, 0.8), 0 0 20px rgba(230, 57, 70, 0.4); }
.footer-call { color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.3rem; text-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.5); }

/* 9. MODAL & GALLERY */
.results-grid-dense { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; padding: 40px 60px; }
.gallery-item { border-radius: 8px; overflow: hidden; border: 2px solid rgba(255,255,255,0.1); cursor: pointer; transition: 0.3s; }
.gallery-item:hover { border-color: var(--red); box-shadow: 0 0 20px var(--red); }
.img-container { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; background: #000; }
.img-container img { width: 100%; height: 100%; object-fit: contain !important; }

.modal { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); align-items: center; justify-content: center; }
.modal-content { max-width: 90%; max-height: 80vh; border: 2px solid var(--red); box-shadow: 0 0 50px var(--red); }
.close { position: absolute; top: 20px; right: 40px; color: white; font-size: 50px; cursor: pointer; }

/* 10. RESPONSIVE */
@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .nav-logo { height: 60px; }
    .hero-inner { padding: 40px; text-align: center; background: rgba(0,0,0,0.85); }
    .hero-btns { justify-content: center; }
    .input-grid-centered { grid-template-columns: 1fr; }
    .results-grid-dense { grid-template-columns: 1fr 1fr; padding: 15px; gap: 10px; }
}