/* Red & White Fluper-style Theme for JMJ Systems */
:root {
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #1a1a1a;
    
    --primary: #e60000; /* Fluper Red */
    --hover-red: #cc0000;
    --dark-red: #990000;
    
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;
    
    --text-main: #222222;
    --text-muted: #666666;
    --text-light: #ffffff;
    
    --border-color: #eeeeee;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(230, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: #111; }
h1 span, h2 span, h3 span { color: var(--primary); }
p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }

.text-center { text-align: center; } 
.mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } 
.mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.bg-light { background-color: var(--bg-alt); }
.layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.8rem; border-radius: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; cursor: pointer; transition: var(--transition); border: none; outline: none; }
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--hover-red); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(230,0,0,0.2); color: white; }
.btn-secondary { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.btn-whatsapp { background-color: var(--whatsapp); color: white; width: 100%; margin-top: 1rem; border-radius: 8px; padding: 1rem; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background-color: var(--whatsapp-hover); transform: translateY(-2px); color: white; }

/* Cards */
.card, .glass-card { background: white; border-radius: 12px; padding: 2.5rem; box-shadow: var(--shadow-lg); transition: var(--transition); border: 1px solid var(--border-color); }
.card:hover, .glass-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(230,0,0,0.1); border-color: rgba(230,0,0,0.2); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1.2rem 0; transition: var(--transition); background: white; box-shadow: var(--shadow-sm); }
.navbar.scrolled { padding: 0.8rem 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; letter-spacing: 0px; color: #111; }
.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a { font-family: var(--font-heading); font-weight: 600; color: #333; font-size: 1.05rem; position: relative; padding-bottom: 5px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 3px; background: var(--primary); transition: var(--transition); border-radius: 2px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: #111; }

/* Video Hero Section */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding-top: 80px; overflow: hidden; }
.hero-video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -2; }
.hero-video-container video { min-width: 100%; min-height: 100%; width: auto; height: auto; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)); z-index: -1; }
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 900px; padding: 0 1.5rem; color: white; }
.hero-badge { display: inline-block; padding: 0.5rem 1.2rem; background: rgba(230,0,0,0.9); border-radius: 30px; font-size: 0.95rem; color: white; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: 1px; text-transform: uppercase; animation: fadeInDown 1s ease-out; }
.hero-title { font-size: 4.5rem; margin-bottom: 1.5rem; color: white; animation: fadeInUp 1s ease-out 0.2s both; line-height: 1.1; }
.hero-title span { color: var(--primary); text-shadow: 0 2px 10px rgba(230,0,0,0.5); }
.hero-subtitle { font-size: 1.3rem; margin: 0 auto 2.5rem; color: #f0f0f0; max-width: 700px; animation: fadeInUp 1s ease-out 0.4s both; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; animation: fadeInUp 1s ease-out 0.6s both; }

/* Page Header (for About, Solutions, Contact) */
.page-header { background: linear-gradient(135deg, var(--bg-dark), #333); padding: 8rem 0 4rem; text-align: center; color: white; position: relative; overflow: hidden; }
.page-header h1 { color: white; font-size: 3.5rem; margin-bottom: 1rem; }
.page-header p { color: #cccccc; font-size: 1.2rem; max-width: 600px; margin: 0 auto; }
.page-header span { color: var(--primary); }

/* About Short */
.check-list { list-style: none; margin: 1.5rem 0 2rem; }
.check-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; color: var(--text-main); font-weight: 600; font-size: 1.1rem; }
.check-list i { color: var(--primary); font-size: 1.3rem; background: rgba(230,0,0,0.1); padding: 6px; border-radius: 50%; }

.about-image { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); background: white; padding: 1.5rem; border: 1px solid var(--border-color); text-align: center; }
.about-image .card-icon { font-size: 5rem; color: var(--primary); margin-bottom: 1.5rem; }
.experience-badge { position: absolute; bottom: 20px; right: 20px; background: var(--primary); color: white; padding: 1.5rem; border-radius: 12px; text-align: center; box-shadow: 0 10px 20px rgba(230,0,0,0.3); }
.experience-badge h3 { color: white; font-size: 2.5rem; margin: 0;}
.experience-badge p { color: white; margin: 0; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 0; }

/* Core Solutions */
.section-header { margin-bottom: 4rem; text-align: center; }
.section-title { font-size: 3rem; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card .card-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(230,0,0,0.05); color: var(--primary); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: var(--transition); border: 2px solid rgba(230,0,0,0.1); }
.service-card:hover .card-icon { background: var(--primary); color: white; transform: scale(1.1) rotate(5deg); box-shadow: 0 10px 20px rgba(230,0,0,0.2); border-color: var(--primary); }
.service-card h3 { font-size: 1.6rem; margin-bottom: 1rem; color: #111; }

/* Stats & Features */
.stats { background: var(--primary); color: white; padding: 4rem 0; }
.stats-wrapper { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; text-align: center; }
.stat-item { padding: 1rem; }
.stat-number { font-size: 3.5rem; font-family: var(--font-heading); font-weight: 800; color: white; margin-bottom: 0.5rem; line-height: 1; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.stat-label { font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 1px; }

.features-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.feature-item { background: white; padding: 1rem 1.5rem; border-radius: 30px; font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 0.8rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); color: #333; }
.feature-item i { color: var(--primary); background: rgba(230,0,0,0.1); padding: 6px; border-radius: 50%; }

/* Badges */
.badges { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.5rem; background: var(--bg-alt); border: 1px solid var(--border-color); border-radius: 8px; font-weight: 700; font-size: 1.05rem; color: #222; box-shadow: var(--shadow-sm); }
.badge i { color: var(--primary); font-size: 1.3rem; }

.target-card { margin-bottom: 1.5rem; border-left: 5px solid var(--primary); border-radius: 12px; }
.target-card .card-header { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1rem; }
.target-card .card-header i { font-size: 1.8rem; color: var(--primary); background: rgba(230,0,0,0.1); padding: 12px; border-radius: 10px; }
.target-card h3 { margin-bottom: 0; }

/* Contact */
.contact-item { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; background: white; padding: 1.8rem; border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.contact-item .icon-box { width: 60px; height: 60px; border-radius: 15px; background: rgba(230,0,0,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.contact-item h4 { margin-bottom: 0.3rem; font-size: 1.2rem; }
.contact-item p { margin: 0; font-size: 1.05rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; font-size: 0.95rem; color: #444; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 1.2rem; background: var(--bg-alt); border: 2px solid var(--border-color); border-radius: 8px; color: var(--text-main); font-family: var(--font-body); font-size: 1rem; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(230,0,0,0.1); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; padding-right: 2.5rem; }

/* Footer */
.footer { background-color: var(--bg-dark); padding: 5rem 0 2rem; border-top: 5px solid var(--primary); color: #ccc; }
.footer h4 { color: white; font-size: 1.4rem; margin-bottom: 1.8rem; position: relative; padding-bottom: 0.8rem; }
.footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--primary); border-radius: 2px; }
.footer p { color: #999; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 4rem; margin-bottom: 3rem; }
.footer .logo { color: white; font-size: 2rem; display: block; }
.footer-links ul, .cert-list { list-style: none; }
.footer-links li, .cert-list li { margin-bottom: 1rem; }
.footer-links a { color: #aaa; font-weight: 500; display: inline-block; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.cert-list li { display: flex; align-items: center; gap: 0.8rem; color: #ccc; font-weight: 500; font-size: 1.05rem;}
.cert-list i { color: var(--primary); font-size: 1.3rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #888; font-size: 0.95rem; }

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .layout-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { order: -1; margin-bottom: 1rem; max-width: 500px; margin-left: auto; margin-right: auto;}
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .hero-title { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .page-header h1 { font-size: 2.5rem; }
    
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: block; }
    
    .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: white; padding: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); gap: 1.5rem; text-align: center; border-top: 1px solid var(--border-color); }
    .nav-cta.active { display: block; position: absolute; top: calc(100% + 250px); left: 50%; transform: translateX(-50%); z-index: 1001; }
    
    .experience-badge { bottom: -20px; right: 20px; padding: 1rem; }
    .experience-badge h3 { font-size: 2rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .features-grid { flex-direction: column; }
    .feature-item { text-align: left; }
}

/* Contact Popup Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { background: white; width: 90%; max-width: 450px; border-radius: 16px; padding: 2.5rem; position: relative; transform: translateY(30px); opacity: 0; transition: all 0.4s ease; box-shadow: 0 25px 50px rgba(230,0,0,0.15); border: 1px solid var(--border-color); }
.modal-overlay.show .modal-content { transform: translateY(0); opacity: 1; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(230,0,0,0.05); color: var(--primary); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); border: none; font-size: 1.2rem; }
.modal-close:hover { background: var(--primary); color: white; transform: rotate(90deg); }
.modal-body h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: #111; }
.modal-body p { margin-bottom: 1.5rem; font-size: 1rem; }
