/* ============================================
   TERROID — Stylesheet
   Industrial dark theme with amber/orange accent
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1e293b;
    --primary-light: #334155;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #0f172a;
    --glass: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(245, 158, 11, 0.1);
    --white: #f8fafc;
    --text: #94a3b8;
    --text-secondary: #64748b;
    --gold: #f59e0b;
    --gradient: linear-gradient(135deg, #f59e0b, #d97706);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--dark);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { font-size: 2.5rem; font-weight: 800; color: var(--white); letter-spacing: 0.15em; margin-bottom: 24px; }
.preloader-logo span { color: var(--accent); }
.preloader-track { width: 200px; height: 3px; background: var(--dark-2); border-radius: 3px; overflow: hidden; }
.preloader-bar { height: 100%; background: var(--gradient); border-radius: 3px; transition: width 0.2s; width: 0; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px; color: var(--white);
}
.nav-logo-img { height: 40px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-weight: 700; font-size: 1rem; letter-spacing: 0.15em; color: var(--white); }
.logo-sub { font-size: 0.6rem; letter-spacing: 0.25em; color: var(--text-secondary); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
    padding: 4px 10px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}
.nav-phone {
    display: flex; align-items: center; gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
}
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
    background: none;
    border: none;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 1024px) {
    .nav-links, .nav-phone, .lang-switcher { display: none; }
    .burger { display: flex; }
    .logo-text { display: none; }
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed; top: 0; right: -100%;
    width: 100%; height: 100%;
    background: var(--dark);
    z-index: 99;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active { right: 0; }
.mobile-nav-link {
    font-size: 1.3rem; font-weight: 600;
    color: var(--text); letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--accent); }
.mobile-lang-switcher { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98; opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
}
.mobile-overlay.active { opacity: 1; pointer-events: all; }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--dark);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%),
        url('images/carousel-1.jpg') center/cover no-repeat;
}
.hero-particles {
    position: absolute; inset: 0;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 120px 24px 80px;
}
.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--gradient);
    color: var(--dark);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.25);
}
.btn-secondary {
    background: var(--glass);
    color: var(--white);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============ STATS BAR ============ */
.stats-bar {
    position: relative;
    z-index: 10;
    background: var(--dark-2);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 28px 0;
}
.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    min-width: 140px;
}
.stat-top {
    display: flex;
    align-items: baseline;
    gap: 4px;
    justify-content: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.stat-suffix {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    margin-top: 4px;
}
.stat-divider { width: 1px; height: 40px; background: var(--glass-border); }

@media (max-width: 768px) {
    .stats-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .stat-divider { display: none; }
    .stat-item { min-width: unset; }
    .stat-number { font-size: 2.2rem; }
    .stat-label { white-space: normal; }
}

/* ============ SECTION COMMON ============ */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-subtitle {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ============ SERVICES ============ */
.services { padding: 120px 0; background: var(--dark); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.service-card {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 16px 48px rgba(245, 158, 11, 0.08);
}
.service-icon {
    width: 64px; height: 64px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
}
.service-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(245, 158, 11, 0.04);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}
.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.service-desc {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 20px;
}
.service-features {
    list-style: none;
    margin: 0;
    padding: 0;
}
.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 6px 0;
}
.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.service-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    opacity: 0.85;
    transition: opacity var(--transition);
}
.service-card:hover .service-card-img { opacity: 1; }

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* ============ ABOUT ============ */
.about { padding: 120px 0; background: var(--dark-2); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
}
.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}
.about-value {
    padding: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}
.about-value:hover { border-color: rgba(245, 158, 11, 0.3); }
.about-value-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.about-value strong {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.about-value span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-visual-inner {
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.about-visual-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-logo {
    width: 60%;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { order: -1; }
}

/* ============ FACTS CAROUSEL ============ */
.facts { padding: 120px 0; background: var(--dark); }
.facts-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto 32px;
    overflow: hidden;
    min-height: 200px;
}
.fact-card {
    display: none;
    text-align: center;
    padding: 48px 32px;
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fact-card.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}
.fact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.fact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.fact-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    max-width: 500px;
    margin: 0 auto;
}
.facts-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.fact-nav-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.fact-nav-btn:hover {
    background: var(--accent);
    color: var(--dark);
}
.facts-dots { display: flex; gap: 8px; }
.fact-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.fact-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* ============ CONTACT ============ */
.contact { padding: 120px 0; background: var(--dark-2); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}
.contact-info-icon {
    width: 44px; height: 44px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-info-item strong {
    display: block;
    color: var(--white);
    font-size: 0.85rem;
    margin-bottom: 2px;
}
.contact-info-item span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.contact-map {
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.contact-form {
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact-form h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 16px;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.9rem;
    font-family: var(--font);
    transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}
.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.footer { background: var(--dark-3); border-top: 1px solid var(--glass-border); padding: 48px 0 0; }
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.footer-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding: 4px 0;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); font-size: 0.78rem; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

/* ============ FAB ============ */
.fab-container {
    position: fixed; bottom: 32px; right: 32px;
    z-index: 900;
    display: flex; flex-direction: column; gap: 12px;
}
.fab {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.fab-phone {
    background: var(--gradient);
}
.fab-phone:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}
.fab-top {
    background: var(--primary-light);
    opacity: 0; transform: translateY(20px);
    pointer-events: none; transition: all 0.3s;
}
.fab-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.fab-top:hover { background: var(--accent); transform: translateY(-4px); }

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .section-title { font-size: 1.8rem; }
    .fab-container { bottom: 16px; right: 12px; }
}

/* ============ AOS ============ */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

html, body { overflow-x: hidden; }
