/* CSS Variables - Premium Dark Mode Palette (Option 2) */
:root {
  /* Brand Colors */
  --primary-color: #10b981;      /* Emerald Green for growth/secure feel */
  --primary-glow: rgba(16, 185, 129, 0.4);
  --secondary-color: #0ea5e9;    /* Bright Ocean Blue */
  --accent-color: #f59e0b;       /* Amber Gold for luxury highlights */

  /* Dark Theme Backgrounds */
  --bg-dark-base: #060b13;       /* Ultra deep navy/black */
  --bg-dark-surface: #0f172a;    /* Navy surface */
  --bg-dark-elevated: #1e293b;   /* For cards/borders */
  
  /* Light Theme / Text Options */
  --text-primary: #f8fafc;       /* Off-white */
  --text-secondary: #cbd5e1;     /* Lighter Slate gray for readability */
  --text-muted: #94a3b8;         /* Slate */
  
  /* Borders and Glass */
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Shadows for Depth */
  --shadow-glow: 0 0 20px var(--primary-glow);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-float: 0 20px 40px -10px rgba(0,0,0,0.5);
  
  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
}

/* Base Reset for Dark Premium Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  background-color: var(--bg-dark-base);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.03), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.03), transparent 25%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

ul {
  list-style: none;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 3.8rem; font-weight: 800; }
h2 { font-size: 2.75rem; font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 8px; /* Restored to standard pill */
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  gap: 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--primary-color);
  color: #060b13;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--primary-glow);
  background: #14cd91;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  color: var(--primary-color);
}

.btn-large {
  padding: 16px 46px;
  font-size: 18px;
}

/* Top Bar Glass */
.top-bar {
  background: rgba(6, 11, 19, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left a {
  margin-right: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar-left a:hover {
  color: var(--primary-color);
}

.top-bar-right a {
  margin-left: 15px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.top-bar-right a:hover {
  background: var(--primary-color);
  color: #060b13;
  transform: translateY(-2px);
}

/* Header Glass */
.site-header {
  background: rgba(6, 11, 19, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 140px; 
  height: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu > li > a {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  opacity: 0.8;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  opacity: 1;
  color: var(--primary-color);
}

/* Submenu */
.has-submenu { position: relative; }

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  border-radius: 8px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 12px 0;
  margin-top: 20px;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 12px 25px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.submenu a:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
  padding-left: 30px;
}

/* Striking Hero Section */
.hero {
  position: relative;
  padding: 150px 0 130px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 40%),
              radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.1), transparent 40%);
  z-index: -1;
}

/* Add a glowing orb behind hero text */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--primary-color);
  filter: blur(150px);
  border-radius: 50%;
  opacity: 0.10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -2;
  animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.2; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.5vw, 3rem); /* Smaller fluid typography so it doesn't break */
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  text-wrap: balance; /* Lets the browser naturally balance the headline */
}

.hero-text .highlight {
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-color);
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-size: 14px;
}

.section-title {
  margin-bottom: 24px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Glassmorphism Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card, .service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 40px 30px;
  border: 1px solid var(--glass-border);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Shimmer effect on hover */
.card::before, .service-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  transition: all 0.7s;
}

.card:hover::before, .service-card:hover::before {
  left: 200%;
}

.card:hover, .service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-glass);
}

.card-icon, .service-icon {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: var(--primary-color);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.card-icon i, .service-icon i {
  font-size: 26px;
  color: var(--primary-color);
  transition: all 0.3s;
}

.card:hover .card-icon i {
  color: #060b13;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--primary-color);
  font-weight: 600;
  font-family: var(--font-heading);
}

/* Lists and features */
.service-features, 
.card ul,
.service-main ul {
  margin: 20px 0;
  padding-left: 0;
}

.service-main ul {
  padding-left: 10px;
}

.service-main li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 25px; /* checkmarks */
  position: relative;
}

.service-main li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.card ul li, .service-features li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.card ul li i, .service-features li i {
  color: var(--success);
  margin-right: 8px;
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, var(--bg-dark-elevated), var(--bg-dark-base));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 100px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.stat-item p {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Page Headers for Sub Pages */
.page-header {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  background: url('data:image/svg+xml,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary-color);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* Service Sidebar */
.service-detail { padding: 80px 0; }
.service-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.sidebar-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
}

.sidebar-menu li {
  margin-bottom: 8px;
}

.sidebar-menu a {
  display: block;
  padding: 12px 20px;
  border-radius: 8px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background: var(--primary-color);
  color: #060b13;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1), var(--bg-dark-base));
  border-top: 1px solid rgba(16, 185, 129, 0.2);
}

/* Footer */
.site-footer {
  background: var(--bg-dark-elevated);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary-color);
  color: #060b13;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-bottom {
  text-align: center;
}

/* Responsive */
@media (max-width: 968px) {
  h1 { font-size: 3rem; }
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text .highlight { display: inline; }
  .hero-buttons { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .service-content { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  
  /* Override inline grid styles for tablets */
  .cards-grid[style], 
  div[style*="display: grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  
  /* Override inline grid styles for mobile */
  .cards-grid[style], 
  div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
  }
}
