/* =========================================================
   MANOW ENGINEERING — SHARED STYLESHEET
   Theme: Deep Red (#B22222) corporate identity
   ========================================================= */

:root {
    --primary: #B22222;
    --primary-dark: #8B1A1A;
    --primary-light: rgba(178, 34, 34, 0.08);
    --accent: #F5A623;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --gray-900: #111;
    --gray-800: #333;
    --gray-700: #444;
    --gray-600: #666;
    --gray-500: #888;
    --gray-400: #aaa;
    --gray-300: #ccc;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

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

/* ==================== HEADER ==================== */
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}
#header .container {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 0;
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 58px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; list-style: none; gap: 28px; }
.nav-links a {
    color: var(--gray-700); font-weight: 500; font-size: 15px;
    position: relative; transition: var(--transition); padding: 4px 0;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--primary); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.mobile-toggle {
    display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px;
}
.mobile-toggle span { width: 25px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: var(--transition); }

/* ==================== HERO ==================== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(178, 34, 34, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(178, 34, 34, 0.1) 0%, transparent 40%);
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 140px 0 60px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px; border-radius: 50px; color: var(--white);
    font-size: 14px; font-weight: 500; margin-bottom: 30px;
}
.badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }
.hero-title { font-size: clamp(40px, 8vw, 80px); font-weight: 900; color: var(--white); letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px; }
.hero-title .highlight { color: var(--primary); position: relative; }
.hero-title .highlight::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--accent); border-radius: 2px; }
.hero-slogan { font-size: clamp(18px, 3vw, 26px); color: var(--accent); font-weight: 600; font-style: italic; margin-bottom: 20px; }
.hero-desc { font-size: 18px; color: rgba(255, 255, 255, 0.7); max-width: 640px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.btn { display: inline-block; padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 20px rgba(178, 34, 34, 0.4); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(178, 34, 34, 0.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }
.btn-full { width: 100%; }

.hero-stats { display: flex; justify-content: center; gap: clamp(20px, 5vw, 60px); flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { display: block; font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 1px; }

/* ==================== SECTIONS ==================== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label { display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--gray-900); margin-bottom: 16px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 17px; color: var(--gray-600); max-width: 600px; margin: 0 auto; }

/* ==================== ABOUT ==================== */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.about-text p { font-size: 16px; color: var(--gray-700); margin-bottom: 20px; }
.about-text strong { color: var(--primary); }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.feature { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--gray-100); border-radius: var(--radius); transition: var(--transition); }
.feature:hover { background: var(--primary-light); transform: translateY(-2px); }
.feature-icon { font-size: 28px; flex-shrink: 0; }
.feature strong { color: var(--gray-900); font-size: 14px; }
.feature small { color: var(--gray-500); font-size: 12px; }
.visual-card { position: relative; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.visual-ring { position: absolute; inset: 0; animation: rotate 30s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.visual-text { text-align: center; z-index: 2; }
.visual-text h3 { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.visual-text p { font-size: 14px; color: var(--gray-600); font-style: italic; }

/* ==================== BUSINESS / PROJECT CARDS ==================== */
.filter-tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 50px; }
.filter-btn { padding: 10px 24px; border: 2px solid var(--gray-200); background: var(--white); border-radius: 50px; font-weight: 600; font-size: 14px; color: var(--gray-600); cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.filter-btn .count { background: rgba(0, 0, 0, 0.1); padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.filter-btn.active .count { background: rgba(255, 255, 255, 0.25); }

.business-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.business-card { background: var(--white); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.04); }
.business-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.business-card:hover::before { transform: scaleX(1); }
.business-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.business-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.business-serial { font-size: 12px; color: var(--gray-400); font-weight: 600; }
.business-short { font-size: 18px; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.business-full { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.business-slogan { font-size: 13px; color: var(--primary); font-weight: 600; font-style: italic; margin-bottom: 14px; padding: 8px 12px; background: var(--primary-light); border-radius: 8px; }
.business-field { font-size: 13px; color: var(--gray-600); margin-bottom: 16px; line-height: 1.6; }
.business-field ul { list-style: none; padding: 0; }
.business-field li { padding: 3px 0 3px 18px; position: relative; }
.business-field li::before { content: '▹'; position: absolute; left: 0; color: var(--primary); }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 50px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.status-badge.running { background: rgba(46, 160, 67, 0.1); color: #2ea043; }
.status-badge.scheduled { background: rgba(245, 166, 35, 0.15); color: #b8860b; }
.status-badge.future { background: rgba(88, 101, 242, 0.1); color: #5865f2; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ==================== TEAM ==================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.team-card { background: var(--gray-100); border-radius: var(--radius-lg); padding: 30px; text-align: center; transition: var(--transition); }
.team-card:hover { background: var(--white); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; font-weight: 700; color: var(--white); }
.team-name { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.team-position { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.team-id { font-size: 12px; color: var(--gray-400); }

/* ==================== TIMELINE ==================== */
.timeline { max-width: 800px; margin: 0 auto; position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--gray-300); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-marker { position: absolute; left: -33px; top: 5px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px currentColor; }
.timeline-marker.running { color: #2ea043; background: #2ea043; }
.timeline-marker.scheduled { color: #b8860b; background: #b8860b; }
.timeline-marker.future { color: #5865f2; background: #5865f2; }
.timeline-content { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.timeline-status { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; }
.timeline-item:nth-child(1) .timeline-status, .timeline-item:nth-child(2) .timeline-status { background: rgba(46, 160, 67, 0.1); color: #2ea043; }
.timeline-item:nth-child(3) .timeline-status { background: rgba(245, 166, 35, 0.15); color: #b8860b; }
.timeline-item:nth-child(4) .timeline-status { background: rgba(88, 101, 242, 0.1); color: #5865f2; }
.timeline-content h4 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.timeline-content p { font-size: 14px; color: var(--gray-600); }

/* ==================== CONTACT ==================== */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 900px; margin: 0 auto; }
.contact-info-card { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--gray-100); border-radius: var(--radius); transition: var(--transition); }
.contact-item:hover { background: var(--primary-light); }
.contact-icon { font-size: 24px; flex-shrink: 0; }
.contact-item h4 { font-size: 13px; color: var(--gray-500); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-size: 15px; color: var(--gray-900); font-weight: 600; }
.contact-item a:hover { color: var(--primary); }
.contact-form-card { background: var(--gray-100); padding: 32px; border-radius: var(--radius-lg); }
.contact-form-card input, .contact-form-card textarea { width: 100%; padding: 14px 18px; border: 2px solid transparent; border-radius: 10px; font-size: 15px; font-family: inherit; background: var(--white); margin-bottom: 16px; transition: var(--transition); outline: none; }
.contact-form-card input:focus, .contact-form-card textarea:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form-card textarea { resize: vertical; min-height: 120px; }

/* ==================== SERVICES ==================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.service-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px 30px; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid rgba(0, 0, 0, 0.04); text-align: center; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon { font-size: 44px; margin-bottom: 18px; }
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; }
.service-card ul { text-align: left; list-style: none; padding: 0; }
.service-card li { font-size: 13px; color: var(--gray-600); padding: 4px 0 4px 18px; position: relative; }
.service-card li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

/* ==================== FOOTER ==================== */
.footer { background: var(--darker); color: rgba(255, 255, 255, 0.7); padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: block; font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.footer-brand p { font-size: 14px; font-style: italic; color: var(--accent); margin-bottom: 8px; }
.footer-domain a { color: var(--primary); font-weight: 600; }
.footer h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links, .footer-businesses, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-businesses a { color: rgba(255, 255, 255, 0.6); font-size: 14px; transition: var(--transition); }
.footer-links a:hover, .footer-businesses a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact p { font-size: 14px; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.4); }

/* ==================== BACK TO TOP ==================== */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; border-radius: 50%; background: var(--primary); color: var(--white); border: none; font-size: 20px; cursor: pointer; z-index: 999; opacity: 0; visibility: hidden; transition: var(--transition); box-shadow: var(--shadow-md); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ==================== ANIMATIONS ==================== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .about-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--white); flex-direction: column; padding: 80px 30px 30px; box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1); transition: right 0.4s; }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 18px; padding: 12px 0; }
    .mobile-toggle { display: flex; }
    .hero-stats { gap: 20px; }
    .section { padding: 60px 0; }
    .business-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .form-row { grid-template-columns: 1fr; }
    .logo-img { height: 44px; }
}
@media (max-width: 480px) {
    .container { width: 92%; }
    .hero-title { font-size: 36px; }
    .business-card { padding: 24px; }
    .filter-tabs { gap: 8px; }
    .filter-btn { padding: 8px 16px; font-size: 13px; }
}
