/* 🎨 PREMIUM ENTERPRISE SAAS PALETTE */
:root {
  --bg-color: #080C16; /* Deep Navy/Slate Base */
  --section-alt-bg: #0C1222; /* Slightly lighter structural background */
  --card-bg: rgba(18, 26, 47, 0.6); /* Glassy Navy Cards */
  
  --text-color: #F8FAFC; /* Crisp White */
  --muted-text: #94A3B8; /* Slate Gray for secondary text */
  
  --primary-color: #FFFFFF;
  
  /* Modern Tech Gradients (Blue to Purple) */
  --secondary-color: #3B82F6; 
  --accent-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  --accent-light: rgba(59, 130, 246, 0.1); 
  
  --border-color: rgba(255, 255, 255, 0.06); 
  --border-highlight: rgba(139, 92, 246, 0.5);
  
  --radius-sm: 6px;
  --radius: 12px; /* Sharper, modern enterprise corners */
  --radius-lg: 20px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 10px 40px rgba(59, 130, 246, 0.15);
  
  --header-bg: rgba(8, 12, 22, 0.85); 
  
  color-scheme: dark;
}

/* Typography Reset */
* { box-sizing: border-box; scroll-behavior: smooth; }
body { 
    margin: 0; 
    background: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.7; 
    font-family: 'Inter', sans-serif; /* Highly readable body font */
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden;
}

/* Headings Font */
h1, h2, h3, h4, h5, .brand {
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
}

/* --- Keyframes --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- General Layout --- */
section { 
    padding: 110px 0; 
    width: 100%; 
}

.content-center-wrapper {
    max-width: 1140px; 
    margin: 0 auto;
    padding: 0 24px; 
}

/* Alternating Backgrounds */
#services { background-color: var(--section-alt-bg); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); } 
#software { background-color: var(--section-alt-bg); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); } 
#pricing { background-color: var(--section-alt-bg); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); } 
#policy-center { background-color: var(--section-alt-bg); border-top: 1px solid var(--border-color); } 

/* --- Header & Navigation --- */
header.app-header {
  position: fixed; 
  top: 0; left: 0; right: 0; height: 72px; 
  display: flex; align-items: center; padding: 0 40px;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  justify-content: space-between; 
}

header .brand { 
    font-weight: 700; 
    font-size: 1.4rem; 
    color: var(--primary-color); 
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
header .brand .brand-mj-bold { 
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-nav-menu {
    display: none; align-items: center; list-style: none; margin: 0; padding: 0; 
    gap: 36px; 
    font-weight: 500;
}
.desktop-nav-menu .item a {
    color: var(--muted-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}
.desktop-nav-menu .item a:hover { color: var(--primary-color); }

header .hamburger { cursor:pointer; display:block; font-size:24px; color: var(--primary-color); }

/* Mobile Drawer */
.drawer-nav { position:fixed; top:0; left:-300px; bottom:0; width:280px;
  background:var(--section-alt-bg); padding:24px; padding-top:80px;
  transition:left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index:200; border-right: 1px solid var(--border-color); }
.drawer-nav.open { left:0; }
.drawer-nav .menu { display:flex; flex-direction:column; gap:4px; }
.drawer-nav .menu .item { display:flex; gap:16px; align-items:center; padding:16px;
  border-radius: var(--radius-sm); cursor:pointer; color:var(--muted-text); font-weight:500; transition:all .2s ease; font-size: 0.95rem; }
.drawer-nav .menu .item i { font-size: 1.2rem; }
.drawer-nav .menu .item:hover, .drawer-nav .menu .item.active { background:var(--accent-light); color:var(--secondary-color); }
.drawer-overlay { position:fixed; inset:0; background:rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); z-index:150; display:none; }
.drawer-overlay.visible { display:block; }

/* --- Headers & Typography --- */
h2 { 
    margin: 0 0 16px; 
    font-weight: 700; 
    font-size: 2.5rem; 
    color: var(--primary-color); 
    letter-spacing: -1px;
    text-align: center;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin: 0 auto 60px;
    max-width: 700px;
    text-align: center;
    line-height: 1.6;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh; 
    padding: 140px 24px 80px;
    background: 
        radial-gradient(circle at 15% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Subtle tech grid */
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px; pointer-events: none;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

#heroTextContent { position: relative; z-index: 2; width: 100%; }
#heroTextContent h1 {
    font-size: 4.5rem; 
    margin-bottom: 24px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
}
#heroTextContent p {
    font-size: 1.2rem; 
    max-width: 650px;
    margin: 0 auto 40px;
    color: var(--muted-text);
    font-weight: 400;
}
.hero-actions {
    display: flex; gap: 16px; justify-content: center;
}

/* --- Grid Layouts --- */
.services, .pricing, .software-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; 
}
.recent-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

/* --- CARDS (Enterprise Style) --- */
.card, .work-block-view, .policy-card, .about-us-video, .software-card {
  background: var(--card-bg); 
  border: 1px solid var(--border-color); 
  border-radius: var(--radius); 
  padding: 32px; 
  box-shadow: var(--shadow-sm); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  text-align: left; 
  position: relative;
  overflow: hidden;
}

.card:hover, .work-block-view:hover, .software-card:hover {
  transform: translateY(-4px); 
  border-color: rgba(59, 130, 246, 0.3); 
  box-shadow: var(--shadow-glow);
  background: rgba(30, 41, 65, 0.6);
}

.card h4, .work-block-view h4, .software-card h4 { 
    font-size: 1.25rem; 
    margin-bottom: 12px; 
    font-weight: 600; 
    color: var(--primary-color); 
    letter-spacing: -0.3px;
}
.card p, .work-block-view p, .policy-card p, .software-card p { 
    font-size: 0.95rem; 
    color: var(--muted-text); 
    margin: 0;
}

/* Service Card Specifics */
.service-card-video i {
    font-size: 1.8rem; 
    color: var(--secondary-color);
    background: var(--accent-light);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

/* --- SOFTWARE CARD SPECIFICS --- */
.software-card {
    display: flex; flex-direction: column; gap: 20px;
}
.software-card-header {
    display: flex; gap: 16px; align-items: center;
}
.software-logo, .software-logo-placeholder {
    width: 64px; height: 64px; border-radius: 12px;
    flex-shrink: 0; border: 1px solid var(--border-color);
}
.software-logo-placeholder {
    background: rgba(255,255,255,0.03);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--secondary-color);
}
.software-meta {
    font-size: 0.85rem; color: var(--muted-text); margin-top: 4px;
}
.software-gallery {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
}
.software-gallery img {
    width: 100px; height: 60px; object-fit: cover;
    border-radius: var(--radius-sm); border: 1px solid var(--border-color);
    flex-shrink: 0; transition: transform 0.2s ease; cursor: pointer;
}
.software-gallery img:hover {
    transform: scale(1.05); border-color: var(--secondary-color);
}
.software-gallery::-webkit-scrollbar { height: 4px; }
.software-gallery::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.software-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto;
}
.btn-download {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px; border-radius: var(--radius-sm); font-weight: 500;
    text-decoration: none; font-size: 0.85rem; transition: all 0.2s ease;
    border: 1px solid var(--border-color); color: var(--text-color);
}
.btn-download:hover { background: rgba(255,255,255,0.05); }
.btn-demo { grid-column: span 2; background: var(--accent-light); color: var(--secondary-color); border-color: transparent; }
.btn-demo:hover { background: rgba(59, 130, 246, 0.2); }

/* Pricing Cards */
.pricing .card { display: flex; flex-direction: column; justify-content: space-between; }
.pricing .card h4 { text-align: center; } 
.pricing .card .price {
  font-size: 2.5rem; font-weight: 700; color: var(--primary-color); 
  margin: 8px 0 24px; font-family: 'Space Grotesk', sans-serif;
  text-align: center; 
}
.pricing .card ul { list-style: none; padding: 0; margin: 0 0 32px; flex-grow: 1; }
.pricing .card ul li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; color: var(--muted-text); font-size: 0.95rem; }
.pricing .card ul li i { color: var(--secondary-color); font-size: 1.1rem; }

/* Recent Work specific */
.work-block-view { padding: 24px; display: flex; gap: 24px; align-items: center; }
.work-image-container {
    flex-shrink: 0; width: 160px; height: 110px; border-radius: var(--radius-sm); 
    overflow: hidden; border: 1px solid var(--border-color);
}
.work-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-block-view:hover .work-image-container img { transform: scale(1.05); }

/* Policy & About */
.policy-card, .about-us-video { max-width: 850px; margin: 0 auto; padding: 48px; } 
#aboutUsContent ul { list-style: none; padding: 0; margin: 0 0 40px; }
#aboutUsContent ul li { margin-bottom: 16px; padding-left: 24px; position: relative; color: var(--muted-text); } 
#aboutUsContent ul li::before { content: '→'; color: var(--secondary-color); position: absolute; left: 0; top: 0; }

.policy-card h3 { font-size: 1.5rem; color: var(--primary-color); margin: 40px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.policy-card h3:first-of-type { margin-top: 0; }
.policy-content ul { padding-left: 20px; color: var(--muted-text); margin-bottom: 24px; }
.policy-content ul li { margin-bottom: 8px; } 
.policy-content p { margin-bottom: 16px; color: var(--muted-text); } 

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.stat-item { text-align: center; } 
.stat-item .number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); font-family: 'Space Grotesk', sans-serif; }
.stat-item .label { font-size: 0.85rem; color: var(--muted-text); margin-top: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* --- Software Popup Ad --- */
.ad-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
    z-index: 999; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.ad-popup-overlay.visible { display: flex; opacity: 1; }
.ad-popup-content {
    background: var(--card-bg); border: 1px solid var(--border-highlight);
    border-radius: var(--radius); padding: 40px 32px 32px; max-width: 400px; width: 90%;
    position: relative; box-shadow: var(--shadow-glow);
    transform: translateY(20px); transition: transform 0.3s ease; text-align: center;
}
.ad-popup-overlay.visible .ad-popup-content { transform: translateY(0); }
.ad-close-btn {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); 
    color: var(--text-color); width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease;
}
.ad-close-btn:hover { background: rgba(255,255,255,0.15); border-color: var(--secondary-color); }
.ad-popup-header {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem;
    color: var(--secondary-color); margin-bottom: 24px; font-weight: 600;
    text-align: center; letter-spacing: 2px; text-transform: uppercase;
}

/* --- Image Viewer Popup --- */
.image-viewer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px);
    z-index: 1000; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.image-viewer-overlay.visible { display: flex; opacity: 1; }
.viewer-img {
    max-width: 85%; max-height: 85vh; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow); object-fit: contain;
    transition: transform 0.3s ease;
}
.viewer-close-btn {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.1); border: 1px solid var(--border-color); 
    color: var(--text-color); width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    cursor: pointer; transition: all 0.2s ease; z-index: 1001;
}
.viewer-close-btn:hover { background: rgba(255,255,255,0.2); border-color: var(--secondary-color); }
.viewer-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: 1px solid var(--border-color); 
    color: var(--text-color); width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    cursor: pointer; transition: all 0.2s ease; z-index: 1001;
}
.viewer-nav-btn:hover { background: rgba(255,255,255,0.2); border-color: var(--secondary-color); }
.viewer-nav-btn.prev { left: 20px; }
.viewer-nav-btn.next { right: 20px; }

/* --- Contact Form --- */
.contact-title-video { font-size: 2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 12px; font-family: 'Space Grotesk', sans-serif; text-align: center; }
.contact-subtitle-video { font-size: 1.05rem; color: var(--muted-text); margin: 0 auto 40px; text-align: center; max-width: 600px; } 
.contact-form { background: var(--card-bg); border: 1px solid var(--border-color); padding: 40px; border-radius: var(--radius); max-width: 650px; margin: auto; }
.contact-form .input-group { display: flex; gap: 16px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: rgba(0,0,0,0.2); font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--text-color); transition: border 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--secondary-color); }

/* --- Buttons --- */
.btn { padding: 12px 28px; border: none; border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; font-size: 0.95rem; display: inline-flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; transition: all 0.2s ease; }
.btn.primary { background: var(--primary-color); color: #000; text-decoration: none;}
.btn.primary:hover { background: #E2E8F0; transform: translateY(-2px); }
.btn.outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-color); text-decoration: none; }
.btn.outline:hover { background: rgba(255,255,255,0.05); }
.btn.choosePlanBtn { width: 100%; }
#sendMessageBtn { width: 100%; background: var(--accent-gradient); color: #fff; margin-top: 8px; border: none; }
#sendMessageBtn:hover { opacity: 0.9; }

/* Animations */
.animated-item { opacity: 0; animation: fadeInUp 0.6s ease forwards; animation-timeline: view(); animation-range: entry 10% cover 25%; }

/* --- FOOTER --- */
.app-footer { background: #04070D; border-top: 1px solid var(--border-color); padding: 80px 24px 30px; font-size: 0.9rem; }
.footer-content { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-section h4 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 24px; }
.footer-section p, .footer-section li { color: var(--muted-text); margin-bottom: 12px; }
.footer-section ul { padding: 0; list-style: none; margin: 0; }
.footer-section a { color: var(--muted-text); text-decoration: none; transition: color 0.2s ease; }
.footer-section a:hover { color: var(--primary-color); }
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-links a { color: var(--muted-text); font-size: 1.2rem; background: rgba(255,255,255,0.05); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s ease; }
.social-links a:hover { background: var(--secondary-color); color: #fff; transform: translateY(-2px); }
.contact-info p { display: flex; align-items: center; gap: 12px; }
.contact-info i { color: var(--secondary-color); font-size: 1.2rem; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 24px; margin-top: 60px; text-align: center; color: var(--muted-text); }

/* --- Media Queries --- */
@media(max-width:1024px){
    .recent-work-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media(max-width:768px){
  header.app-header { padding: 0 24px; height: 64px; }
  header .brand { font-size: 1.2rem; }
  h2 { font-size: 2rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 40px; } 
  .hero-section { min-height: 100vh; padding: 120px 20px 60px; }
  #heroTextContent h1 { font-size: 2.8rem; letter-spacing: -1px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  section { padding: 80px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  
  /* Updated Mobile Footer Corners & Alignment */
  .footer-content { grid-template-columns: 1fr 1fr; gap: 20px; } 
  .footer-section { text-align: left; }
  .footer-section:nth-child(odd) { justify-self: start; } /* Left Items */
  .footer-section:nth-child(even) { justify-self: end; } /* Right Items */
  
  .contact-form .input-group { flex-direction: column; gap: 0; }
  .work-block-view { flex-direction: column; align-items: flex-start; }
  .work-image-container { width: 100%; height: 200px; }
  .policy-card, .about-us-video, .contact-form { padding: 24px; }

  .viewer-nav-btn { width: 40px; height: 40px; font-size: 1.5rem; }
  .viewer-nav-btn.prev { left: 10px; }
  .viewer-nav-btn.next { right: 10px; }
  .viewer-img { max-width: 95%; }
}
@media(min-width:769px){
    header .hamburger { display:none!important; } 
    .desktop-nav-menu { display: flex; } 
}