/* Design System Variable Definitions */
:root {
  --color-primary: #1e3a8a;       /* Deep Steel Blue */
  --color-primary-light: #3b82f6; /* Bright Blue */
  --color-primary-dark: #1e293b;  /* Dark Blue-Gray */
  --color-accent: #f59e0b;        /* Safety Amber */
  --color-accent-hover: #d97706;  /* Deep Amber */
  --color-neutral-dark: #111827;  /* Charcoal Dark */
  --color-neutral-light: #f8fafc; /* Cool Light Gray */
  --color-white: #ffffff;
  
  --font-ko: 'Noto Sans KR', sans-serif;
  --font-en: 'Outfit', sans-serif;
  
  --max-width: 1200px;
  --header-height: 80px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ko);
  background-color: var(--color-white);
  color: var(--color-neutral-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utility */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

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

.highlight {
  color: var(--color-accent);
}

/* Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-family: var(--font-ko);
}

.btn-primary {
  background-color: var(--color-primary-light);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-neutral-dark);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.125rem;
  border-radius: 12px;
}

.btn-phone {
  background-color: var(--color-accent);
  color: var(--color-neutral-dark);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-family: var(--font-en);
  font-weight: 600;
  border-radius: 20px;
}

.btn-phone:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.05);
}

/* Header & Glassmorphic Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  height: 70px;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

header.scrolled .logo {
  color: var(--color-neutral-dark);
}

header.scrolled .nav-link {
  color: rgba(17, 24, 39, 0.8);
}

header.scrolled .nav-link:hover {
  color: var(--color-primary-light);
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
  transition: var(--transition-normal);
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  transition: var(--transition-normal);
}

header.scrolled .logo-img {
  height: 36px;
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-accent {
  font-family: var(--font-en);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent), #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 4px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-white);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition-normal);
  transform-origin: left center;
}

header.scrolled .mobile-menu-toggle span {
  background-color: var(--color-neutral-dark);
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--color-neutral-dark);
  z-index: 999;
  padding: 100px 40px;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-normal);
}

.mobile-sidebar.open {
  right: 0;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-accent);
  padding-left: 8px;
}

.btn-phone-mobile {
  margin-top: 24px;
  background-color: var(--color-accent);
  color: var(--color-neutral-dark);
  font-weight: 700;
  border-radius: 8px;
  gap: 8px;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  background-image: url('assets/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: var(--color-white);
  padding-top: var(--header-height);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 40%, rgba(30, 58, 138, 0.45));
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.badge-container {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.badge-ebs {
  background-color: #ef4444; /* Alert Red */
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: -0.3px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

.badge-special {
  background-color: var(--color-primary-light);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-content h1 .subtitle {
  display: block;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
  letter-spacing: 0px;
}

.hero-content h1 .title-main {
  background: linear-gradient(to right, var(--color-white), rgba(255,255,255,0.85));
  -webkit-background-clip: text;
}

.hero-desc {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-subtext {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* EBS TV Showcase Section */
.ebs-section {
  padding: 100px 0;
  background-color: var(--color-neutral-light);
}

.ebs-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  background-color: var(--color-white);
  border-radius: 24px;
  padding: 50px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.6);
  align-items: center;
}

.ebs-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-top: 16px;
  margin-bottom: 24px;
  color: var(--color-neutral-dark);
}

.ebs-badge-tv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-weight: 800;
  font-size: 1rem;
}

.ebs-content p {
  color: rgba(17, 24, 39, 0.7);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.ebs-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.ebs-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ebs-feature-item .num {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-light);
  line-height: 1;
  background-color: rgba(59, 130, 246, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
}

.ebs-feature-item h4 {
  font-size: 1.1rem;
  color: var(--color-neutral-dark);
  margin-bottom: 4px;
}

.ebs-feature-item p {
  font-size: 0.925rem;
  margin-bottom: 0;
}

.ebs-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.ebs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.ebs-card:hover .ebs-img {
  transform: scale(1.05);
}

.tv-frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

/* Sections Global Headers */
.section-title {
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-title .subtitle {
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-primary-light);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 2.25rem;
  color: var(--color-neutral-dark);
  margin-bottom: 16px;
}

.section-title p {
  color: rgba(17, 24, 39, 0.6);
  font-size: 1.1rem;
}

/* Service Catalog Section */
.services-section {
  padding: 100px 0;
  background-color: var(--color-white);
}

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

.service-card {
  background-color: var(--color-white);
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59, 130, 246, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  background-color: rgba(59, 130, 246, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon-wrap {
  background-color: var(--color-primary-light);
  color: var(--color-white);
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--color-neutral-dark);
  margin-bottom: 16px;
}

.service-desc {
  color: rgba(17, 24, 39, 0.65);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-details {
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.service-details li {
  font-size: 0.9rem;
  color: var(--color-neutral-dark);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-details li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
}

/* Portfolio Section */
.portfolio-section {
  padding: 100px 0;
  background-color: var(--color-neutral-light);
}

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

.filter-btn {
  background-color: var(--color-white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: rgba(17, 24, 39, 0.7);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--color-primary-light);
  color: var(--color-white);
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

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

.portfolio-item {
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 10%, rgba(15, 23, 42, 0.4));
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: var(--transition-normal);
  color: var(--color-white);
}

.portfolio-img-wrap:hover img {
  transform: scale(1.1);
}

.portfolio-img-wrap:hover .portfolio-hover {
  opacity: 1;
}

.portfolio-hover .category {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.portfolio-hover h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.portfolio-hover p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Why Choose Us Section */
.why-us-section {
  padding: 100px 0;
  background-color: var(--color-white);
}

.why-us-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.why-us-info h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  color: var(--color-neutral-dark);
}

.why-us-p {
  color: rgba(17, 24, 39, 0.65);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.points-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.point-item {
  display: flex;
  gap: 20px;
}

.point-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(245, 158, 11, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-weight: 800;
  flex-shrink: 0;
}

.point-item h3 {
  font-size: 1.15rem;
  color: var(--color-neutral-dark);
  margin-bottom: 4px;
}

.point-item p {
  font-size: 0.95rem;
  color: rgba(17, 24, 39, 0.6);
}

.why-us-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-card {
  background-color: var(--color-neutral-light);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 35px 24px;
  text-align: center;
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.1);
}

.stat-number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary-light);
}

.stat-plus, .stat-percent {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-left: 2px;
}

.stat-card p {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.7);
  margin-top: 10px;
}

/* Quote Assistant & Form */
.quote-section {
  padding: 100px 0;
  background-color: var(--color-neutral-light);
}

.quote-card {
  background-color: var(--color-white);
  border-radius: 24px;
  padding: 60px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
  max-width: 900px;
  margin: 0 auto;
}

.quote-header {
  margin-bottom: 48px;
}

.badge-accent {
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--color-accent-hover);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 16px;
}

.quote-header h2 {
  font-size: 2.25rem;
  color: var(--color-neutral-dark);
  margin-bottom: 12px;
}

.quote-header p {
  color: rgba(17, 24, 39, 0.6);
  font-size: 1.05rem;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-neutral-dark);
  margin-bottom: 16px;
}

/* Modern Radio Grid */
.form-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.radio-label, .checkbox-label {
  cursor: pointer;
  position: relative;
  display: block;
}

.radio-label input, .checkbox-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label span, .checkbox-label span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: var(--color-neutral-light);
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.8);
  text-align: center;
  transition: var(--transition-fast);
}

.radio-label input:checked + span, .checkbox-label input:checked + span {
  background-color: rgba(59, 130, 246, 0.05);
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}

/* Modern Checkbox Grid */
.form-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

/* Input Fields */
.inputs-row {
  display: flex;
  gap: 24px;
}

.col-6 {
  flex: 1;
}

.form-group input[type="text"], .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(226, 232, 240, 0.8);
  background-color: var(--color-neutral-light);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-ko);
  color: var(--color-neutral-dark);
  transition: var(--transition-fast);
}

.form-group input[type="text"]:focus, .form-group textarea:focus {
  border-color: var(--color-primary-light);
  background-color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.sms-guide-box {
  background-color: rgba(245, 158, 11, 0.05);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
}

.sms-guide-box .guide-title {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent-hover);
  margin-bottom: 8px;
}

.sms-guide-box p {
  font-size: 0.925rem;
  color: rgba(17, 24, 39, 0.7);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* Modal Popup Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open {
  display: flex;
}

.modal-content {
  background-color: var(--color-white);
  border-radius: 20px;
  max-width: 550px;
  width: 100%;
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: modalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--color-neutral-dark);
}

.modal-content p {
  font-size: 0.95rem;
  color: rgba(17, 24, 39, 0.6);
  margin-bottom: 24px;
}

.sms-text-area {
  background-color: var(--color-neutral-light);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 20px;
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--color-neutral-dark);
  white-space: pre-wrap;
  margin-bottom: 28px;
  user-select: all;
  border-left: 4px solid var(--color-primary-light);
  max-height: 200px;
  overflow-y: auto;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-buttons .btn {
  flex: 1;
  min-width: 130px;
  font-size: 0.95rem;
  padding: 12px 20px;
}

.modal-buttons .btn-close {
  background-color: #f1f5f9;
  color: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.modal-buttons .btn-close:hover {
  background-color: #e2e8f0;
}

/* Quick Sticky Contact Bar (Mobile only) */
.quick-contact-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--color-white);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
  z-index: 900;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  gap: 8px;
}

.quick-btn.phone {
  background-color: var(--color-accent);
  color: var(--color-neutral-dark);
}

.quick-btn.message {
  background-color: var(--color-primary-light);
  color: var(--color-white);
}

/* Footer Section */
footer {
  background-color: var(--color-neutral-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0 0;
}

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

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 0;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.footer-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}

.footer-contact-details p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-contact-details strong {
  color: var(--color-white);
}

.footer-links h4 {
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
  font-size: 0.85rem;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.developer-credit {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  }
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* On-scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .ebs-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }
  
  .ebs-image-container {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
  }

  .why-us-wrap {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .why-us-stats {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  body {
    padding-bottom: 60px; /* Space for mobile sticky CTA bar */
  }

  .nav-menu, .nav-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-section {
    padding-top: var(--header-height);
  }

  .hero-content {
    text-align: center;
  }

  .badge-container {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .inputs-row {
    flex-direction: column;
    gap: 16px;
  }

  .col-6 {
    width: 100%;
  }

  .quote-card {
    padding: 30px 20px;
  }

  .form-radio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-contact-bar {
    display: grid;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .form-radio-grid {
    grid-template-columns: 1fr;
  }

  .form-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .why-us-stats {
    grid-template-columns: 1fr;
  }
  
  .portfolio-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* Floating BGM Button */
.bgm-toggle-btn {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.bgm-toggle-btn:hover {
  transform: scale(1.1);
  background-color: var(--color-white);
  color: var(--color-primary-light);
  box-shadow: var(--shadow-xl);
}

.music-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -6px; /* Shift slightly up for the waves at the bottom */
}

/* Sound waves styling */
.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  position: absolute;
  bottom: 8px;
}

.sound-waves span {
  display: inline-block;
  width: 2px;
  height: 3px;
  background-color: currentColor;
  border-radius: 1px;
  transition: height 0.1s ease;
}

/* Animation for active music playing */
.bgm-toggle-btn.playing .music-note {
  animation: rotate 4s linear infinite;
  transform-origin: center;
}

.bgm-toggle-btn.playing .sound-waves span:nth-child(1) {
  animation: wave 1.2s ease-in-out infinite alternate;
}
.bgm-toggle-btn.playing .sound-waves span:nth-child(2) {
  animation: wave 0.8s ease-in-out infinite alternate 0.2s;
}
.bgm-toggle-btn.playing .sound-waves span:nth-child(3) {
  animation: wave 1.0s ease-in-out infinite alternate 0.4s;
}
.bgm-toggle-btn.playing .sound-waves span:nth-child(4) {
  animation: wave 0.6s ease-in-out infinite alternate 0.1s;
}

@keyframes wave {
  0% { height: 3px; }
  100% { height: 14px; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Move up slightly on mobile to avoid overlapping with quick-contact-bar */
@media (max-width: 768px) {
  .bgm-toggle-btn {
    bottom: 140px; /* Above the 60px mobile contact bar + some margin */
    right: 16px;
    width: 44px;
    height: 44px;
  }
}
