/*
Theme Name: EMJ Systems Premium
Theme URI: http://www.emjsystems.com/
Author: Antigravity AI
Author URI: http://www.emjsystems.com/
Description: A premium, modern dark-themed WordPress theme for EMJ Systems featuring glassmorphism and smooth animations.
Version: 1.0.0
Text Domain: emjsystems
*/

/* --- CSS Variables --- */
:root {
  --bg-color: #0d1117;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --accent-color: #2f81f7;
  --accent-hover: #388bfd;
  --glass-bg: rgba(22, 27, 34, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base Styles */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  color: #fff;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.glass-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 0.5rem 0;
  background: rgba(13, 17, 23, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
}

.site-title a {
  background: linear-gradient(90deg, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.widget-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.widget-title::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--accent-color);
}

.site-info {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
  padding: 12rem 0 8rem;
  text-align: center;
  background: radial-gradient(circle at center top, rgba(47, 129, 247, 0.15) 0%, rgba(13, 17, 23, 1) 70%);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInDown 1s ease-out forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-actions {
  opacity: 0;
  animation: scaleIn 0.8s ease-out 0.6s forwards;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), #216bcc);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 129, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(47, 129, 247, 0.6);
  color: #fff;
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  font-weight: 800;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  display: inline-block;
  background: rgba(47, 129, 247, 0.1);
  padding: 1rem;
  border-radius: 12px;
}

.service-image-container {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-image-container img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.glass-panel:hover .service-image-container img {
  transform: scale(1.05);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Page Header */
.page-header {
  padding: 10rem 0 6rem;
  background: radial-gradient(circle at center, rgba(47, 129, 247, 0.1) 0%, rgba(13, 17, 23, 1) 80%);
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 4rem;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* Content Area */
.site-main {
  padding: 2rem 0;
  min-height: 50vh;
}

.content-block {
  margin-bottom: 4rem;
}

.content-block h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.content-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.content-col {
  flex: 1;
  min-width: 300px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Contact Specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.contact-info .icon {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

/* Base Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    padding: 1rem 0;
  }
  
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 25px;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding-top: 1rem;
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .hero-title { font-size: 2.5rem; }
  .page-title { font-size: 2.5rem; }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
