@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* ==========================================================================
   1. Design System & CSS Variables
   ========================================================================== */
:root {
  /* Color Palette (Slate & Warm Amber/Gold) */
  --primary-color: #0f172a;       /* Slate 900 */
  --primary-rgb: 15, 23, 42;
  --secondary-color: #1e293b;     /* Slate 800 */
  --secondary-rgb: 30, 41, 59;
  --accent-color: #c29343;        /* Warm Premium Gold */
  --accent-light: #f59e0b;       /* Amber 500 */
  --accent-rgb: 194, 147, 67;
  --accent-hover: #a1772f;
  
  --bg-light: #f8fafc;            /* Slate 50 */
  --bg-card: #ffffff;
  --bg-dark: #090d16;             /* Deep rich dark space */
  
  --text-main: #334155;           /* Slate 700 */
  --text-dark: #0f172a;           /* Slate 900 */
  --text-light: #f8fafc;          /* Slate 50 */
  --text-muted: #64748b;          /* Slate 500 */
  
  --border-color: #e2e8f0;        /* Slate 200 */
  --border-focus: rgba(194, 147, 67, 0.4);
  
  /* Typography */
  --font-kr: 'Noto Sans KR', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  
  /* Layout Spacing */
  --container-max-width: 1200px;
  --header-height: 80px;
  --header-height-shrunk: 70px;
  
  /* Borders and Shadows */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
  --shadow-premium: 0 30px 60px rgba(15, 23, 42, 0.15);
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   2. Base Resets & Global Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-kr);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: keep-all;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   3. Typography & Utility Classes
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.font-en {
  font-family: var(--font-en);
}

.text-accent {
  color: var(--accent-color) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.bg-dark-section h2 {
  color: #ffffff;
}

.bg-dark-section .section-subtitle {
  color: var(--accent-color);
}

/* Containers & Grid Layouts */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

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

.section-subtitle {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 16px auto 0 auto;
}

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

.bg-dark-section .section-desc {
  color: #94a3b8;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-hover);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: var(--text-dark);
  color: #ffffff;
  border-color: var(--text-dark);
}

.btn-dark {
  background-color: #ffffff;
  color: var(--primary-color);
}

.btn-dark:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-icon {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   4. Navigation / Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: var(--header-height-shrunk);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.header.scrolled-dark {
  height: var(--header-height-shrunk);
  background-color: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.logo-icon svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  transition: var(--transition-fast);
}

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

.header.scrolled-dark .logo-text {
  color: #ffffff;
}

.logo-text span {
  font-weight: 300;
  font-size: 0.95rem;
  margin-left: 4px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header.scrolled .nav-link {
  color: var(--text-main);
}

.header.scrolled .nav-link:hover {
  color: var(--text-dark);
}

.header.scrolled-dark .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.header.scrolled-dark .nav-link:hover {
  color: #ffffff;
}

.header-btn {
  font-size: 0.85rem;
  padding: 10px 20px;
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: var(--transition-fast);
}

.header.scrolled .nav-toggle span {
  background-color: var(--text-dark);
}

.header.scrolled-dark .nav-toggle span {
  background-color: #ffffff;
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 100px 40px 40px 40px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    color: #ffffff;
    font-size: 1.1rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .header-btn {
    display: none; /* Hide button on mobile in menu */
  }
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  background-color: var(--primary-color);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: zoomBg 20s ease-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(15, 23, 42, 0.6) 50%,
    rgba(15, 23, 42, 0.4) 100%
  );
}

@keyframes zoomBg {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 750px;
}

.hero-tagline {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(194, 147, 67, 0.15);
  border: 1px solid rgba(194, 147, 67, 0.3);
  border-radius: var(--radius-pill);
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-title span {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  color: #cbd5e1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-title strong {
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 40px;
  max-width: 600px;
  font-weight: 300;
}

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

.hero-scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: var(--accent-color);
  animation: scrollDown 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-20px); }
  60% { transform: translateY(60px); }
  100% { transform: translateY(60px); }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-title span {
    font-size: 1.2rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   6. About / Company Intro
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-text-content h3 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--text-dark);
}

.about-p {
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: var(--text-main);
}

.about-features {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-feat-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(194, 147, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
}

.about-feat-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.about-feat-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Visual Panel with Trust Badges */
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-experience-box {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--accent-color);
  position: relative;
  z-index: 2;
  width: 100%;
}

.about-exp-title {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 24px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-num {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
}

.license-info {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #94a3b8;
}

.license-info strong {
  color: #ffffff;
}

/* ==========================================================================
   7. Services / Business Areas
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.service-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: rgba(194, 147, 67, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  margin-bottom: 28px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--accent-color);
  color: #ffffff;
}

.service-icon-wrapper svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.service-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.service-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.service-list-item::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.service-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   8. Portfolio Section
   ========================================================================== */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  color: #ffffff;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(194, 147, 67, 0.2);
}

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

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* For filter filtering animations */
.portfolio-card.hidden {
  display: none !important;
}

.portfolio-img-box {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-overlay-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transform: translateY(15px) scale(0.8);
  transition: var(--transition-smooth);
}

.portfolio-overlay-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card:hover .portfolio-overlay-btn {
  transform: translateY(0) scale(1);
}

.portfolio-info {
  padding: 24px;
}

.portfolio-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 8px;
  display: inline-block;
  text-transform: uppercase;
}

.portfolio-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.portfolio-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. Core Strengths / Values
   ========================================================================== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .strengths-grid {
    grid-template-columns: 1fr;
  }
}

.strength-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  transition: var(--transition-smooth);
}

.strength-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.strength-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px auto;
  color: var(--accent-color);
}

.strength-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.strength-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.strength-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   10. Inquiry / Contact Form Section
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info-panel {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 50px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-info-panel::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 147, 67, 0.1) 0%, transparent 70%);
}

.contact-info-top h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.contact-info-top p {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 40px;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-detail-content h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-detail-content p {
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
}

.contact-detail-content span {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: block;
  margin-top: 4px;
}

.contact-info-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-badge strong {
  color: #ffffff;
  margin-left: 4px;
}

/* Contact / Estimation Form */
.contact-form-panel {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 50px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .contact-info-panel,
  .contact-form-panel {
    padding: 30px;
  }
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

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

.form-label span {
  color: #ef4444;
  margin-left: 2px;
}

.form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: #ffffff;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--border-focus);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

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

.form-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 30px;
}

.form-agreement input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.form-agreement-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-agreement-label a {
  text-decoration: underline;
  color: var(--text-dark);
  font-weight: 500;
}

.submit-btn {
  width: 100%;
  height: 52px;
}

/* Form success notification state */
.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
  font-weight: 500;
}

.form-feedback.success {
  display: block;
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.form-feedback.error {
  display: block;
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   11. Modal Popup Detail Dialog
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(5px);
}

.modal-wrapper {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-premium);
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.modal.active .modal-wrapper {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--accent-color);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-close-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.modal-img-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.modal-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: 40px;
}

.modal-header-info {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.modal-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .modal-content {
    padding: 30px;
  }
}

.modal-desc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.7;
}

.modal-specs {
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--border-color);
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  font-weight: 600;
  color: var(--text-muted);
}

.spec-val {
  font-weight: 500;
  color: var(--text-dark);
}

/* ==========================================================================
   12. Footer Section
   ========================================================================== */
.footer {
  background-color: #0b0f19;
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  padding-top: 80px;
  padding-bottom: 50px;
}

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

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.footer-logo-text span {
  font-size: 0.95rem;
  font-weight: 300;
  color: #94a3b8;
  margin-left: 4px;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-icon {
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-contact-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  padding-bottom: 30px;
}

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

.footer-legal-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   13. Scroll Animation Triggers (Intersection Observer)
   ========================================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sequential stagger fades */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.is-visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

.is-visible .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.is-visible .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.is-visible .stagger-item:nth-child(3) { transition-delay: 0.3s; }
.is-visible .stagger-item:nth-child(4) { transition-delay: 0.4s; }
