/* ==========================================================================
   SSB Engineering Services - Premium Modern Styling
   Aesthetics: Sleek High-End Engineering, Minimalist Luxury Dark Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #050B14;
  --bg-surface: #0A1220;
  --bg-card: #0F1A2E;
  --bg-card-hover: #16243D;
  
  --accent-cyan: #00F0FF;
  --accent-cyan-glow: rgba(0, 240, 255, 0.2);
  --accent-gold: #FFB703;
  --accent-gold-glow: rgba(255, 183, 3, 0.2);
  --accent-blue: #3B82F6;

  --text-bright: #FFFFFF;
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 240, 255, 0.3);
  --border-gold: rgba(255, 183, 3, 0.3);

  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.15);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Utility Accents */
.text-cyan { color: var(--accent-cyan); }
.text-gold { color: var(--accent-gold); }

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.badge-gold {
  background: rgba(255, 183, 3, 0.08);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.25);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00F0FF 0%, #0077FF 100%);
  color: #050B14;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 240, 255, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-bright);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
}

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

.btn-gold {
  background: linear-gradient(135deg, #FFB703 0%, #FB8500 100%);
  color: #050B14;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(255, 183, 3, 0.3);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 183, 3, 0.5);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

/* Header & Glass Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.9rem 0;
  background: rgba(5, 11, 20, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(255,183,3,0.15));
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.3rem;
  box-shadow: var(--shadow-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-bright);
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-bright);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  border-radius: var(--radius-full);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-bright);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 1001;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -15px 0 40px rgba(0,0,0,0.8);
  border-left: 1px solid var(--border-light);
}

.mobile-nav.active { right: 0; }

.mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 2rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.mobile-nav-link.active { color: var(--accent-cyan); }

/* Hero Section */
.hero {
  position: relative;
  padding: 12rem 0 7rem 0;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 75% 20%, rgba(0, 240, 255, 0.07) 0%, transparent 60%),
              radial-gradient(circle at 15% 85%, rgba(255, 183, 3, 0.05) 0%, transparent 50%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 60%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.8rem;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-top: 0.8rem;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--border-light);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-visual { position: relative; }

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
}

.hero-img-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.05);
}

/* Section Header */
.section { padding: 7rem 0; position: relative; }

.section-alt {
  background: rgba(10, 18, 32, 0.6);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-title { font-size: 2.6rem; }
.section-desc { font-size: 1.1rem; color: var(--text-muted); }

/* Clean 4 Core Pillars Showcase (Decluttered Grid) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyan);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7);
  background: var(--bg-card-hover);
}

.pillar-card:hover::before { opacity: 1; }

.pillar-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.pillar-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.pillar-icon-box.gold {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.12), rgba(251, 133, 0, 0.12));
  border-color: rgba(255, 183, 3, 0.25);
  color: var(--accent-gold);
}

.pillar-title { font-size: 1.45rem; }

.pillar-sub-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.pillar-sub-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.pillar-sub-item i {
  color: var(--accent-cyan);
  font-size: 0.85rem;
}

/* Services Page Accordion / Tab Showcase */
.services-pillar-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.pillar-tab-btn {
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pillar-tab-btn:hover, .pillar-tab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.pillar-detail-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detail-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.sub-card-clean {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: var(--transition);
}

.sub-card-clean:hover {
  border-color: var(--border-cyan);
  background: rgba(0, 240, 255, 0.03);
}

.sub-card-clean h4 {
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

/* Panel Configurator Widget */
.panel-configurator {
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.12), transparent 70%), var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-card);
  margin: 4rem 0;
}

.configurator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
}

.form-select, .form-input, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(5, 11, 20, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.config-preview-box {
  background: rgba(5, 11, 20, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

/* Contact Page Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info-card, .contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  color: var(--text-bright);
  padding: 1rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Footer */
.footer {
  background: #03060C;
  border-top: 1px solid var(--border-light);
  padding: 6rem 0 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover { color: var(--accent-cyan); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-content, .pillars-grid, .configurator-grid, .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-title { font-size: 2.8rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .pillar-sub-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
