/* Global Fix */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden; /* 👈 хажуу тийш гарахыг зогсооно */
}

/* Header */
header { position: relative; background: transparent; padding: 0; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; align-items: center; padding: 20px; position: relative; z-index: 10; }
header img { height: 60px; }

/* Menu */
nav { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 100%; text-align: center; background: rgba(0,0,0,0.7); padding: 10px 0; border-radius: 0 0 12px 12px; }
nav ul { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
nav ul li a { color: #fff; font-weight: bold; text-transform: uppercase; padding: 5px 10px; position: relative; text-decoration: none; transition: color 0.3s; }
nav ul li a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0%; height: 2px; background: #ffa500; transition: 0.3s ease; }
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }

/* Hero (FIXED) */
.hero {
    width: 100%; /* 👈 100vw → FIX */
    height: 35vh;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background-image:
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)),
        url('https://bato.nomadics2.com/logo/headerbg.png');

    background-size: cover;
    background-position: center;
    position: relative;
}

/* Hero Content Wrapper */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Headline */
.hero-content h1 {
    font-size: 2.5rem;                  /* Илүү том */
    line-height: 1.3;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;

    /* Gradient overlay text */
    background: linear-gradient(120deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Shadow for depth over background */
    text-shadow: 
        0 2px 10px rgba(0,0,0,0.7),
        0 4px 20px rgba(0,0,0,0.5);

    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

/* Hero h1 hover subtle animation (optional) */
.hero-content h1:hover {
    transform: scale(1.03);
}

/* Icon inside hero (phone) */
.hero-content h1 i {
    display: inline-block;
    margin-left: 10px;
    font-size: 1.5rem;
    color: #ffac6a;        /* subtle glow color */
    text-shadow: 0 0 8px rgba(255,172,106,0.7);
    vertical-align: middle;
}

/* Ultra Modern Red Button */
.btn {
    display: inline-block; /* 🔥 FIX (хамгийн чухал) */
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: #ff3b3b;

    text-decoration: none; /* 🔥 underline арилгана */
    color: #fff; /* 🔥 link өнгө засна */
}

/* Gradient + Glass Effect */
.btn-red {
    background: linear-gradient(145deg, #ff6b6b, #ff1f1f);
    color: #fff;
    box-shadow:
        0 4px 15px rgba(255, 75, 75, 0.4),
        inset 0 -2px 0 rgba(255,255,255,0.2);
    backdrop-filter: blur(2px);
}

/* Hover effect: pop + glow */
.btn-red:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow:
        0 10px 25px rgba(255, 75, 75, 0.6),
        0 0 15px rgba(255, 100, 100, 0.5),
        inset 0 -2px 0 rgba(255,255,255,0.3);
}

/* Cool animated shine effect */
.btn-red::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.15);
    transform: rotate(25deg);
    transition: all 0.5s ease;
}

.btn-red:hover::before {
    top: -30%;
    left: -30%;
    width: 130%;
    height: 130%;
}

/* 🔥 OPTIONAL FIX (outline арилгана) */
.btn:focus,
.btn:active {
    outline: none;
    box-shadow: none;
}

/* Sections */
.section { max-width: 1200px; margin: 20px auto; padding: 20px; border-radius: 10px; background: #1a1a1a; }
/* Premium Section Headline */
.section h2 {
    font-size: 2.5rem;               /* том, modern */
    margin-bottom: 20px;
    text-align: center;               /* голд байрлуулах */
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    position: relative;
    display: inline-block;

    /* Modern gradient color */
    background: linear-gradient(90deg, #ff7e5f, #feb47b); /* Red-Orange gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* subtle shadow for depth */
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Underline accent */
.section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    margin: 10px auto 0; /* голд */
    border-radius: 2px;
}

/* ORDER PAGE */
.order-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.order-form {
    width: 100%;
    max-width: 500px;
    background: #111;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(255,0,0,0.2);
}

.order-form h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 25px;
}

/* floating label */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #333;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    outline: none;
    font-size: 14px;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
    transition: 0.3s;
    background: #111;
    padding: 0 5px;
}

/* focus effect */
.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -8px;
    font-size: 12px;
    color: #ff2a2a;
}

/* submit button */
.btn-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #ff0000, #ff4d4d);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,0,0,0.5);
}


.plate-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Main plate */
.plate-box {
    display: flex;
    width: 320px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #222;
    background: #fff;
}

/* Blue country strip */
.plate-left {
    width: 60px;
    background: #0047AB;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    letter-spacing: 1px;
}

/* Right side */
.plate-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background: #fff;
}

/* selects + input */
.plate-right select,
.plate-right input {
    border: none;
    outline: none;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
    background: transparent;
    color: #000;
}

/* size control */
.plate-right select {
    width: 45px;
}

.plate-right input {
    width: 90px;
    letter-spacing: 3px;
}

/* remove ugly arrows spacing */
.plate-right select {
    appearance: none;
}


.plate-title {
    text-align: center;
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.upload-card {
    background: #111;
    border: 2px dashed #444;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: 0.3s;
}

.upload-card:hover {
    border-color: #ff3b3b;
    box-shadow: 0 0 20px rgba(255,0,0,0.2);
}

.upload-card h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.upload-card p {
    color: #aaa;
    font-size: 13px;
    margin: 5px 0 15px;
}

.upload-card input {
    color: #fff;
}

.footer {
    background: #0a0a0a;
    color: #fff;
    margin-top: 40px;
    border-top: 1px solid #222;
}

/* top section */
.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* brand */
.footer-brand h2 {
    color: #ff3b3b;
    margin: 0;
    font-size: 22px;
}

.footer-brand p {
    color: #aaa;
    margin-top: 8px;
}

/* links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ff3b3b;
    transform: translateX(5px);
}

/* contact */
.footer-contact p {
    margin: 5px 0;
    color: #aaa;
}

/* bottom */
.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 13px;
}

/* hover glow effect */
.footer:hover {
    box-shadow: 0 -10px 40px rgba(255, 0, 0, 0.1);
}

.location-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: stretch;
}

/* CARD */
.location-card {
    flex: 1 1 300px;
    background: #111;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #222;
}

.location-card h3 {
    color: #ff3b3b;
    margin-bottom: 15px;
}

.location-card p {
    color: #ccc;
    margin: 6px 0;
}

.coords {
    margin: 15px 0;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    border: 1px solid #333;
}

/* MAP */
.location-map {
    flex: 2 1 500px;
}

/* BUTTON FIX (optional improvement) */
.location-card .btn {
    width: 100%;
}

/* Responsive for mobile */
@media(max-width:768px){
    .section h2 {
        font-size: 2rem;
    }
    .section h2::after {
        width: 40px;
    }
}
.section-header p { color: #ccc; font-size: 16px; text-align: center; margin-bottom: 10px; }

/* About */
.about-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.about-text { flex: 1 1 45%; }
.about-text p { line-height: 1.6; color: #ccc; }
.about-stats { flex: 1 1 45%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { background: #222; padding-top: 15px; border-radius: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100px; transition: transform 0.3s ease; }
.stat-card i { font-size: 40px; color: #ffa500; margin-bottom: 5px; }
.stat-card p { font-weight: bold; color: #fff; font-size: 14px; }

/* Cards Scroll */
.cards-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 10px;
    position: relative;
}

/* Scrollbar */
.cards-wrapper::-webkit-scrollbar {
    height: 8px;
}
.cards-wrapper::-webkit-scrollbar-track {
    background: #111;
    border-radius: 10px;
}
.cards-wrapper::-webkit-scrollbar-thumb {
    background: #ffa500;
    border-radius: 10px;
}

/* Edge fade */
.cards-wrapper::before,
.cards-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}
.cards-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #0a0a0a, transparent);
}
.cards-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #0a0a0a, transparent);
}

.cards-scroll {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.card {
    flex: 0 0 calc((100% - 60px) / 4);
    max-width: calc((100% - 60px) / 4);
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    scroll-snap-align: start;
}

.card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 10px;
    text-align: center;
}

/* Responsive */
@media(max-width:1024px){
    .card {
        flex: 0 0 calc((100% - 40px) / 2);
        max-width: calc((100% - 40px) / 2);
    }
}

@media(max-width:768px){
    .card {
        flex: 0 0 80%;
        max-width: 80%;
    }
}
