/* --- style.css - FINAL VERSION (Бүрэн шинэчлэгдсэн) --- */

/* 1. ҮНДСЭН ТОХИРГОО */
html {
    scroll-behavior: smooth; /* Зөөлөн гүйх тохиргоо */
    scroll-padding-top: 80px; /* Цэсний хэмжээгээр зай авч зогсоно */
}

:root {
    --dark-blue: #14213d;
    --primary-blue: #1a2b49;
    --gold: #c59d3f;
    --light-bg: #f8f9fa;
    --blue-tint: #f0f4f8;
    --text-color: #333;
}

* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0; padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; margin: 0; font-weight: 700; }
.container { width: 90%; max-width: 1140px; margin: 0 auto; }
.section-padding { padding: 90px 0; }
a { text-decoration: none; }

/* Хээтэй дэвсгэр */
.bg-pattern {
    background-color: #ffffff;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 2. ТОВЧЛУУРУУД */
.btn {
    display: inline-block; padding: 12px 30px;
    font-weight: 600; border-radius: 50px;
    text-transform: uppercase; font-size: 13px; letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer; border: none; position: relative; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-blue { background: linear-gradient(135deg, var(--primary-blue), #2c3e50); color: white; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #d4af37); color: white; }

.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.full-width { width: 100%; border-radius: 8px; }

/* 3. NAVIGATION (Цэс) */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 20px 0; z-index: 1000;
    transition: all 0.4s ease; background: transparent;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo a {
    color: white; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nav-links { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav-links li a { color: white; font-weight: 600; font-size: 14px; opacity: 0.9; transition: 0.3s; text-transform: uppercase;}
.nav-links li a:hover { opacity: 1; color: var(--gold); }
.nav-btn { padding: 8px 25px; font-size: 11px; }

.navbar.scrolled { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); padding: 15px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.navbar.scrolled .nav-logo a { color: var(--primary-blue); text-shadow: none; }
.navbar.scrolled .nav-links li a { color: #333; }
.navbar.scrolled .nav-links li a:hover { color: var(--gold); }

/* 4. HERO SECTION */
.hero-section {
    position: relative; height: 80vh; min-height: 550px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/back.jpg');
    background-size: cover; background-position: center; z-index: -2;
    animation: zoomEffect 25s infinite alternate; 
}
@keyframes zoomEffect { from { transform: scale(1); } to { transform: scale(1.15); } }
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* ЭНЭ МӨРИЙГ ӨӨРЧИЛЛӨӨ: Тоонуудыг 0.9 -> 0.5, 0.6 -> 0.3 болгов */
    background: linear-gradient(to bottom, rgba(20, 33, 61, 0.5), rgba(20, 33, 61, 0.3));
    
    z-index: -1;
}
.hero-content { position: relative; z-index: 1; padding: 0 20px; }
.header-logo { font-size: 20px; font-weight: bold; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 2px; border: 1px solid rgba(255,255,255,0.3); padding: 10px 20px; border-radius: 50px;}
.header-logo i { color: var(--gold); }
.hero-content h1 { font-size: 46px; line-height: 1.2; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px;}
.hero-content p { font-size: 17px; max-width: 650px; margin: 0 auto 30px; opacity: 0.9; line-height: 1.7; }
.header-buttons .btn { margin: 8px; }

/* Animation */
.animate-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease forwards; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.3s; } .delay-3 { animation-delay: 0.5s; } .delay-4 { animation-delay: 0.7s; }

/* 5. SECTIONS GENERAL */
.section-header { text-align: center; margin-bottom: 60px; position: relative; }
.section-header h2 { 
    color: var(--primary-blue); font-size: 34px; display: inline-block; padding-bottom: 15px; 
    position: relative; z-index: 1;
}
.section-header h2::before { 
    content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 10px; 
    background-color: rgba(197, 157, 63, 0.2); z-index: -1; border-radius: 5px;
}

/* 6. ҮЙЛЧИЛГЭЭ (SERVICES) - OVERLAP ЗАГВАР */
#services {
    position: relative;
    background-color: transparent;
    padding-top: 0;
    padding-bottom: 80px;
    margin-top: -100px; /* Дээшээ татах */
    z-index: 10;
}
/* Гарчгийг картуудын доор харагдуулахгүйн тулд нуух эсвэл доошлуулах */
#services .section-header {
    margin-bottom: 40px; position: relative; top: 120px; z-index: -1; opacity: 0; 
}

.services-row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.service-box { 
    background: white; padding: 40px 30px; text-align: center; 
    border-radius: 12px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); /* Тод сүүдэр */
    flex: 1; min-width: 250px; transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
}
.service-box:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.2); 
    border-bottom: 4px solid var(--gold); 
}
.service-icon { 
    width: 70px; height: 70px; margin: 0 auto 20px; 
    background: #f4f6f8; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--primary-blue); transition: 0.4s;
}
.service-box:hover .service-icon { background: var(--primary-blue); color: white; transform: rotateY(180deg); }
.service-box h3 { font-size: 19px; margin-bottom: 15px; color: var(--dark-blue); }
.service-box p { font-size: 14px; color: #666; line-height: 1.6; }

/* 7. ЯАГААД БИД ГЭЖ */
.why-us-section {
    background-color: #fff;
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 25px 25px;
    padding-top: 60px; /* Дээд зайг нэмэв */
}
.why-us-row { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; }
.why-item { flex: 1; min-width: 200px; margin-bottom: 30px; transition: 0.3s; padding: 20px; }
.why-item:hover { transform: translateY(-5px); }
.circle-icon { 
    width: 70px; height: 70px; border-radius: 20px; 
    display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 20px; font-size: 28px; color: white; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: rotate(45deg); 
}
.circle-icon i { transform: rotate(-45deg); }
.bg-gold { background: linear-gradient(135deg, var(--gold), #e0b44b); }
.bg-blue { background: linear-gradient(135deg, var(--primary-blue), #2a4575); }
.why-item h4 { margin-top: 15px; font-size: 16px; color: #444; }

/* 8. ЦОМОГ */
.portfolio-wrapper { background-color: var(--light-bg); border-top: 1px solid #eee; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.portfolio-card { 
    background: white; border-radius: 12px; overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; 
    transition: 0.3s; position: relative;
}
.portfolio-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.1); transform: translateY(-5px); }
.img-box { overflow: hidden; height: 220px; }
.portfolio-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-card:hover .portfolio-img { transform: scale(1.1); } 
.portfolio-card h4 { padding: 20px; color: var(--dark-blue); font-size: 16px; margin: 0; font-weight: 600; border-top: 1px solid #f0f0f0; }

.filter-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-btn {
    padding: 10px 30px; background-color: white; 
    border: 1px solid #ddd; color: #666; 
    border-radius: 30px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; font-size: 14px;
}
.filter-btn:hover, .filter-btn.active { 
    background-color: var(--primary-blue); color: white; border-color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(26, 43, 73, 0.3);
}

/* 9. ҮЙЛ ЯВЦ */
.process-section { text-align: center; padding: 60px 0; }
.process-steps { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto; flex-wrap: wrap; position: relative; }
.process-steps::before {
    content: ''; position: absolute; top: 40px; left: 50px; right: 50px; height: 2px;
    background: #eee; z-index: -1;
}
.step { 
    display: flex; flex-direction: column; align-items: center; gap: 15px; 
    font-weight: bold; color: var(--primary-blue); margin-bottom: 20px; 
    background: white; padding: 0 10px;
}
.step-num { 
    width: 80px; height: 80px; background: white; border: 2px solid #eee; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #ccc; font-weight: 700; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.step:hover .step-num { border-color: var(--gold); color: var(--gold); transform: scale(1.1); box-shadow: 0 10px 20px rgba(197, 157, 63, 0.2); }
.step-text { text-align: center; line-height: 1.3; font-size: 15px; margin-top: 10px;}

/* 10. ҮНИЙН БАГЦ */
.pricing-section { 
    background: linear-gradient(180deg, var(--blue-tint) 0%, #fff 100%);
}
.pricing-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px;}
.price-card { 
    background: white; width: 300px; text-align: center; border-radius: 12px; 
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: all 0.4s ease; position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}
.price-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.price-header { padding: 30px; color: white; font-size: 20px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.bg-blue { background-color: var(--primary-blue); }
.bg-gold { background: linear-gradient(135deg, var(--gold), #e0b44b); }

.price-body { padding: 40px 20px; }
.price-amount { font-size: 40px; font-weight: 800; color: var(--primary-blue); margin-bottom: 10px; }
.price-desc { color: #888; font-size: 15px; }
.popular { transform: scale(1.05); border: 2px solid var(--gold); z-index: 2; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.popular:hover { transform: scale(1.08) translateY(-15px); }

/* 11. CONTACT & FOOTER */
.footer-area { 
    display: flex; gap: 50px; align-items: stretch; flex-wrap: wrap;
    background-color: white; 
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
}
.testimonial-side { 
    flex: 1; padding: 60px; background: var(--primary-blue); border-radius: 12px; 
    position: relative; min-width: 300px; color: white;
    box-shadow: 0 20px 50px rgba(26, 43, 73, 0.2);
    display: flex; flex-direction: column; justify-content: center;
}
.quote-icon { font-size: 60px; color: rgba(255,255,255,0.1); position: absolute; top: 30px; left: 30px; }
.quote-text { font-style: italic; font-weight: 500; font-size: 20px; line-height: 1.6; margin-bottom: 30px; z-index: 1; position: relative; }
.stars { color: var(--gold); margin-top: 10px; }

.form-side { 
    flex: 0.8; padding: 50px; background: white; border-radius: 12px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.08); min-width: 300px; border: 1px solid #f0f0f0;
}
.form-title { font-size: 24px; font-weight: bold; margin-bottom: 30px; color: var(--primary-blue); }
.form-control { 
    width: 100%; padding: 15px; margin-bottom: 20px; 
    border: 1px solid #eee; border-radius: 8px; box-sizing: border-box; 
    transition: 0.3s; background: #fafafa;
}
.form-control:focus { outline: none; border-color: var(--gold); background: white; box-shadow: 0 0 0 4px rgba(197, 157, 63, 0.1); }

/* Scroll Animation & Mobile */
.hidden { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.show { opacity: 1; transform: translateY(0); }
.portfolio-card.hide { display: none; }
.portfolio-card.show-animate { animation: fadeUp 0.5s ease forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 30px; }
    .hero-content p { font-size: 15px; }
    .nav-links { display: none; }
    #services { margin-top: -50px; padding: 0 20px 60px; }
    .service-box { margin-bottom: 20px; }
    .process-steps::before { display: none; } 
    .testimonial-side, .form-side { padding: 30px; }
}
/* --- TESTIMONIAL SLIDER (Сэтгэгдэл солигдох хэсэг) --- */

/* Сэтгэгдлийн слайд */
.review-slide {
    display: none; /* Бүгдийг нь нууна */
    animation: fadeText 1s ease; /* Гарч ирэхдээ уусах хөдөлгөөн */
}

/* Идэвхтэй байгааг нь харуулна */
.review-slide.active {
    display: block;
}

/* Зохиогчийн нэр хэсэг */
.review-author {
    padding-left: 0; 
    position: relative; 
    z-index: 2;
    margin-top: 20px;
}
.review-author small {
    color: rgba(255,255,255,0.8); 
    font-size: 14px; 
    font-weight: 600;
}

/* Уусах хөдөлгөөн (Animation) */
@keyframes fadeText {
    from {
        opacity: 0;
        transform: translateY(10px); /* Доороос дээшээ зөөлөн гарна */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- MAIN FOOTER STYLES --- */

.main-footer {
    background-color: var(--dark-blue);
    color: #b0b0b0; /* Бүдэг саарал текст */
    padding: 70px 0 30px;
    font-size: 14px;
    position: relative;
    border-top: 5px solid var(--gold); /* Дээд талдаа алтан зураастай */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Автоматаар багана үүсгэнэ */
    gap: 40px;
    margin-bottom: 50px;
}

/* 1. Logo Style */
.footer-logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}
.footer-logo i { color: var(--gold); }

/* Widget Headers */
.footer-widget h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
/* Гарчгийн доогуур жижиг алтан зураас */
.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}

/* Links */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #b0b0b0;
    transition: 0.3s;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px); /* Хулгана очиход баруун тийш бага зэрэг хөдөлнө */
}

/* Contact Info */
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #b0b0b0;
}
.footer-contact i {
    color: var(--gold);
    margin-top: 5px;
}

/* Social Icons */
.social-icons { display: flex; gap: 10px; }
.social-btn {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
}
.social-btn:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.legal-links a {
    color: #b0b0b0;
    margin-left: 20px;
    font-size: 13px;
    transition: 0.3s;
}
.legal-links a:hover { color: var(--gold); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .legal-links a { margin: 0 10px; }
}