/* ==========================================================================
   S.STAR Engineering - CSS Design System & Stylesheet (Tech Dark Theme)
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --bg-main: #070a13;
  --bg-surface: #0f1524;
  --bg-surface-hover: #151e33;
  --bg-card: rgba(15, 21, 36, 0.6);
  --bg-navbar: rgba(7, 10, 19, 0.75);
  
  --primary: #0f8a5f;         /* S.STAR Brand Green */
  --primary-glow: #10b981;    /* Vibrant Emerald Green */
  --primary-rgb: 15, 138, 95;
  --primary-glow-rgb: 16, 185, 129;
  
  --secondary: #0ea5e9;       /* Deep Ocean Blue */
  --secondary-glow: #38bdf8;  /* Light Blue Glow */
  
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.25);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  --font-family: 'Poppins', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-light);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Utility Typography Classes */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-light);
}

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

p {
  color: var(--text-muted);
}

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

.text-danger {
  color: #ef4444 !important;
}

/* Background Glowing Orbs */
.glow-orb {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -10;
  pointer-events: none;
  opacity: 0.15;
}
.orb-1 {
  background: var(--primary-glow);
  top: -100px;
  right: -100px;
  animation: floatOrb1 15s infinite alternate ease-in-out;
}
.orb-2 {
  background: var(--secondary);
  top: 40%;
  left: -200px;
  animation: floatOrb2 20s infinite alternate ease-in-out;
}
.orb-3 {
  background: var(--primary-glow);
  bottom: -100px;
  right: -100px;
  animation: floatOrb1 18s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 80px) scale(1.1); }
}
@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, -60px) scale(0.9); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-glow));
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

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

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Header & Glassmorphic Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-normal);
}

.navbar {
  padding: 20px 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: var(--bg-navbar);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.2));
  transition: var(--transition-normal);
}
.navbar.scrolled .logo-img {
  height: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 25px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-light);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
  transition: var(--transition-normal);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  margin-left: 10px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-family);
  font-weight: 600;
  transition: var(--transition-fast);
  padding: 2px 6px;
}
.lang-btn.active {
  color: var(--primary-glow);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.lang-btn:hover:not(.active) {
  color: var(--text-light);
}
.lang-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  margin: 0 2px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.mobile-nav-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-normal);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(15, 21, 36, 0.6) 0%, rgba(7, 10, 19, 0.95) 100%);
}

.hero-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--primary-glow);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.05rem;
  margin-bottom: 35px;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

/* Hero Visual Canvas Animation */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tech-canvas-placeholder {
  width: 350px;
  height: 350px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.05);
}
.tech-circle.outer {
  width: 340px;
  height: 340px;
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-top-color: var(--primary-glow);
  border-bottom-color: var(--secondary-glow);
  animation: rotateClockwise 25s infinite linear;
}
.tech-circle.middle {
  width: 260px;
  height: 260px;
  border: 1px dashed rgba(56, 189, 248, 0.2);
  animation: rotateCounterClockwise 20s infinite linear;
}
.tech-circle.inner {
  width: 180px;
  height: 180px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-left-color: var(--primary-glow);
  border-right-color: var(--secondary-glow);
  animation: rotateClockwise 15s infinite linear;
}

.tech-node {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition-normal);
}
.tech-node i {
  transition: var(--transition-normal);
}
.tech-node:hover {
  border-color: var(--primary-glow);
  color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
.tech-node:hover i {
  transform: scale(1.15);
}

.node-1 { top: 0; left: 50%; transform: translate(-50%, -50%); border-color: rgba(16, 185, 129, 0.4); }
.node-2 { right: 0; top: 50%; transform: translate(50%, -50%); border-color: rgba(56, 189, 248, 0.4); }
.node-3 { bottom: 0; left: 50%; transform: translate(-50%, 50%); border-color: rgba(16, 185, 129, 0.4); }
.node-4 { left: 0; top: 50%; transform: translate(-50%, -50%); border-color: rgba(56, 189, 248, 0.4); }

.tech-center-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(15, 21, 36, 0.85);
  border: 2px solid var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 40px rgba(15, 138, 95, 0.4);
  z-index: 5;
  animation: pulseGlow 4s infinite alternate ease-in-out;
}
.center-glow-logo {
  width: 70px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(15, 138, 95, 0.6));
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes rotateCounterClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 25px rgba(15, 138, 95, 0.3); border-color: var(--primary); }
  100% { box-shadow: 0 0 50px rgba(16, 185, 129, 0.6); border-color: var(--primary-glow); }
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}

/* Sections Common Structure */
.section-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-glow);
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Services Grid & Cards */
.services-section-wrapper {
  padding: 100px 0;
  position: relative;
  background-color: var(--bg-main);
}

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

.service-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-slow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Hover Glowing Card Effects */
.service-card-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  top: -60px;
  right: -60px;
  pointer-events: none;
  transition: var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-surface-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.15);
  border-color: transparent;
}
.service-card:hover .service-card-border {
  opacity: 1;
}
.service-card:hover .service-card-glow {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 75%);
  top: -80px;
  right: -80px;
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(15, 138, 95, 0.1);
  border: 1px solid rgba(15, 138, 95, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  color: var(--primary-glow);
  margin-bottom: 25px;
  transition: var(--transition-normal);
}
.service-card:hover .service-icon-wrapper {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: 0 0 20px rgba(15, 138, 95, 0.4);
  transform: scale(1.05);
}

.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  min-height: 52px;
}

.service-card-desc {
  font-size: 0.9rem;
  margin-bottom: 30px;
  line-height: 1.6;
  flex-grow: 1;
}

.service-btn {
  background: none;
  border: none;
  color: var(--primary-glow);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: var(--transition-normal);
  align-self: flex-start;
}
.service-btn i {
  transition: var(--transition-normal);
}
.service-card:hover .service-btn {
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.service-card:hover .service-btn i {
  transform: translateX(5px);
}

/* Call to Action Banner */
.cta-banner-section {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(15, 21, 36, 0.8) 0%, rgba(7, 10, 19, 0.9) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.cta-banner-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta-content {
  max-width: 800px;
}
.cta-content h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}
.cta-content p {
  font-size: 0.95rem;
}

.cta-action {
  flex-shrink: 0;
}

/* About Us Section */
.about-section-wrapper {
  padding: 100px 0;
  background-color: #05070e;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

/* Tech Stat Grid */
.about-image-content {
  position: relative;
}

.about-tech-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.tech-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: rgba(7, 10, 19, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  transition: var(--transition-normal);
}
.stat-card:hover {
  border-color: var(--primary-glow);
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-5px);
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-text-content {
  position: relative;
}

.about-p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.strengths-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.strength-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.strength-item i {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-glow);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.strength-item h4 {
  font-size: 1.05rem;
  margin-bottom: 5px;
}
.strength-item p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Contact Us Section */
.contact-section-wrapper {
  padding: 100px 0;
  background-color: var(--bg-main);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  margin-top: 20px;
}

.contact-info-panel, .contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 45px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.info-panel-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.info-panel-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 35px;
}

.info-items-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 35px;
}

.info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-glow);
  font-size: 1rem;
  flex-shrink: 0;
}

.info-text {
  font-size: 0.9rem;
}
.info-text strong {
  display: block;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 3px;
}
.info-text span {
  color: var(--text-muted);
  line-height: 1.5;
  display: inline-block;
}

/* Mock map with Radar scan style */
.mock-map-container {
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #0b0f19 radial-gradient(circle, rgba(16, 185, 129, 0.05) 10%, transparent 60%);
  border: 1px solid var(--border-color);
}
.mock-map-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 20px 20px;
}

.mock-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: rgba(15, 21, 36, 0.6);
  padding: 20px;
  text-align: center;
}
.mock-map-overlay i {
  font-size: 2.2rem;
  color: var(--primary-glow);
  animation: pulseIcon 2s infinite ease-in-out;
}
.mock-map-overlay span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@keyframes pulseIcon {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(16,185,129,0.3)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(16,185,129,0.7)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(16,185,129,0.3)); }
}

/* Interactive Floating Label Form */
.contact-form-panel form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(7, 10, 19, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 300;
  transition: var(--transition-normal);
}
.form-input:focus {
  border-color: var(--primary-glow);
  background: rgba(7, 10, 19, 0.7);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.form-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition-normal);
  pointer-events: none;
  background: transparent;
}
.form-input.textarea + .form-label {
  top: 25px;
}

/* Floating Label Logic */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-glow);
  padding: 2px 8px;
  background: var(--bg-surface);
  border-radius: 4px;
}

.form-input.textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer Section */
footer {
  background: #030509;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px 0;
  font-size: 0.9rem;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-logo {
  height: 50px;
  width: auto;
  align-self: flex-start;
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.15));
}
.footer-desc {
  max-width: 320px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.social-links a:hover {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 1.05rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background: var(--primary-glow);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--primary-glow);
  padding-left: 5px;
}

.footer-hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-hours-list li {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}
.footer-hours-list li strong {
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-credit {
  font-size: 0.75rem;
}

/* Service Detail Modal (Pop-up Styling) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(50px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.1);
}

.modal-overlay.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}
.modal-close-btn:hover {
  color: var(--primary-glow);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.modal-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-glow);
  font-size: 1.4rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.modal-body {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 10px;
  margin-bottom: 25px;
}

.modal-intro-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.modal-subservices-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.subservice-item {
  background: rgba(7, 10, 19, 0.35);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}
.subservice-item:hover {
  background: rgba(16, 185, 129, 0.04);
  border-left-color: var(--primary-glow);
  transform: translateX(4px);
}

.subservice-title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-light);
}

.subservice-desc {
  font-size: 0.88rem;
  line-height: 1.6;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* Toast Alert Styling */
.toast-alert-container {
  position: fixed;
  bottom: -100px;
  right: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--primary-glow);
  border-radius: 12px;
  padding: 16px 24px;
  z-index: 2000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 380px;
  overflow: hidden;
  transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.toast-alert-container.show {
  bottom: 30px;
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.toast-icon {
  font-size: 1.6rem;
  color: var(--primary-glow);
  flex-shrink: 0;
}

.toast-text {
  flex-grow: 1;
}
.toast-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 3px;
}
.toast-text p {
  font-size: 0.82rem;
  line-height: 1.4;
}

.toast-progress {
  height: 3px;
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 3s linear;
}
.toast-alert-container.show .toast-progress {
  width: 0;
}

/* Products & Brands Section */
.products-section-wrapper {
  padding: 100px 0;
  position: relative;
  background-color: #05070e;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.brand-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.brand-card-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: -50px;
  left: -50px;
  pointer-events: none;
  transition: var(--transition-slow);
}

.brand-logo-container {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  transition: var(--transition-normal);
}

.brand-logo-img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0.95) contrast(1.05);
  transition: var(--transition-normal);
}

.brand-card-content {
  width: 100%;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-light);
}

.brand-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Brand Card Hover Effects */
.brand-card:hover {
  transform: translateY(-6px);
  background: var(--bg-surface-hover);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
}

.brand-card:hover .brand-logo-container {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.brand-card:hover .brand-logo-img {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.brand-card:hover .brand-card-glow {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 75%);
  top: -70px;
  left: -70px;
}

/* About Us Tab System */
.about-sub-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.about-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  position: relative;
  transition: var(--transition-fast);
}
.about-tab-btn.active, .about-tab-btn:hover {
  color: var(--primary-glow);
}
.about-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-glow);
  transition: var(--transition-normal);
}
.about-tab-btn.active::after {
  width: 100%;
}

.about-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}
.about-tab-content.active {
  display: block;
}

.policy-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--primary-glow);
}
.policy-heading i {
  font-size: 1.3rem;
}
.policy-heading div {
  font-size: 1.05rem;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.policy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}
.policy-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.policy-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary-glow);
  font-size: 0.85rem;
}

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

/* Project Reference Section */
.reference-section-wrapper {
  padding: 100px 0;
  position: relative;
  background-color: #05070e;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.reference-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-normal);
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--primary-glow);
  color: var(--text-light);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.reference-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 0;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: filterFadeIn 0.5s ease forwards;
}

.ref-card-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.ref-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
  filter: brightness(0.95);
}

.ref-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.ref-card-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -60px;
  right: -60px;
  pointer-events: none;
  transition: var(--transition-slow);
}

.ref-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.ref-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(16, 185, 129, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.ref-card-icon {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.ref-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 15px;
  color: var(--text-light);
  flex-grow: 1;
}

.ref-card-client {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}
.ref-card-client i {
  color: var(--primary-glow);
}

.reference-card:hover {
  transform: translateY(-6px);
  background: var(--bg-surface-hover);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
}

.reference-card:hover .ref-card-img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.reference-card:hover .ref-card-glow {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 75%);
  bottom: -70px;
  right: -70px;
}

@keyframes filterFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive CSS (Media Queries) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: var(--bg-navbar);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 50px 0;
    gap: 30px;
    transition: var(--transition-normal);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .lang-switcher-item {
    margin-left: 0;
    margin-top: 15px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .tech-canvas-placeholder {
    width: 280px;
    height: 280px;
  }
  .tech-circle.outer { width: 270px; height: 270px; }
  .tech-circle.middle { width: 210px; height: 210px; }
  .tech-circle.inner { width: 150px; height: 150px; }
  .tech-center-icon { width: 90px; height: 90px; }
  .center-glow-logo { width: 55px; }
  .tech-node { width: 34px; height: 34px; font-size: 0.9rem; }
  
  .cta-banner-container {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-info-panel, .contact-form-panel {
    padding: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
