/* Basic Reset & Font Import (Poppins from HTML) */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f26 25%, #151b22 50%, #0f1419 75%, #1a1f26 100%);
  color: var(--text-color-primary);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Enhanced Noise/Grain Overlay Effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015; /* Changed from 0.02 */
  pointer-events: none;
  z-index: 2;
}
/* Unified Variables - Enhanced TAU Brand Colors */
:root {
  --default-border-radius: 24px;
  --card-border-radius: 20px;

  /* Enhanced TAU Brand Colors */
  --primary-accent-color: #7c9cc7;
  --primary-accent-color-rgb: 124, 156, 199;
  --secondary-accent-color: #9fb3d9;
  --secondary-accent-color-rgb: 159, 179, 217;
  --tertiary-accent-color: #5a7a9e;
  --tertiary-accent-color-rgb: 90, 122, 158;
  --quaternary-accent-color: #b8cae6;
  --quaternary-accent-color-rgb: 184, 202, 230;

  /* Enhanced Glass Effects */
  --glass-bg-color: rgba(255, 255, 255, 0.08);
  --glass-bg-color-strong: rgba(255, 255, 255, 0.14);
  --glass-border-color: rgba(255, 255, 255, 0.18);
  --glass-border-color-strong: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --glass-shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.5);

  /* Animation Easing */
  --ease-out-cubic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --default-transition: all 0.4s var(--ease-out-cubic);

  /* Unified Text Colors */
  --text-color-primary: #ffffff;
  --text-color-secondary: #e8f1ff;
  --text-color-subtle: #d1e2f7;
  --text-color-muted: #a3bdd8;

  /* Enhanced Button Colors */
  --button-bg-color: rgba(124, 156, 199, 0.15);
  --button-text-color: #ffffff;
  --button-hover-bg-color: rgba(124, 156, 199, 0.25);
  --button-border-color: rgba(124, 156, 199, 0.3);
  --button-shadow: 0 12px 30px rgba(124, 156, 199, 0.2);

  --focus-ring-color: rgba(var(--primary-accent-color-rgb), 0.4);
}

/* Enhanced Header with Minimal Surface Design */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  background: linear-gradient(
    135deg,
    rgba(15, 20, 25, 0.85) 0%,
    rgba(26, 31, 38, 0.9) 50%,
    rgba(15, 20, 25, 0.85) 100%
  );
  backdrop-filter: blur(20px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.15s ease-out;
  overflow: visible;
}

/* Dynamic background with animated particles */
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(var(--primary-accent-color-rgb), 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(var(--secondary-accent-color-rgb), 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(var(--tertiary-accent-color-rgb), 0.03) 0%, transparent 50%);
  z-index: -1;
  animation: header-particles-float 15s ease-in-out infinite;
}

/* Subtle animated bottom border */
header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px; /* Reduced from 2px */
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(var(--primary-accent-color-rgb), 0.3) 20%, /* Reduced opacity */
    rgba(var(--secondary-accent-color-rgb), 0.4) 50%, /* Reduced opacity */
    rgba(var(--primary-accent-color-rgb), 0.3) 80%, /* Reduced opacity */
    transparent 100%
  );
  background-size: 300% 100%; /* Increased size for smoother effect */
  animation: border-flow 25s ease-in-out infinite; /* Slower animation */
  opacity: 0.6; /* Reduced overall opacity */
}

@keyframes header-particles-float {
  0%, 100% { 
    background-position: 20% 50%, 80% 20%, 40% 80%; 
  }
  25% { 
    background-position: 25% 55%, 75% 25%, 45% 75%; 
  }
  50% { 
    background-position: 30% 60%, 70% 30%, 50% 70%; 
  }
  75% { 
    background-position: 15% 45%, 85% 15%, 35% 85%; 
  }
}

@keyframes border-flow {
  0%, 100% { background-position: 300% 0; }
  50% { background-position: -300% 0; }
}

.main-nav {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  height: 60px;
  padding: 0 40px;
  position: relative;
  justify-content: space-between;
  gap: 60px;
}

/* Navigation container for centered logo and links */
.nav-content {
  display: flex;
  align-items: center;
  gap: 60px;
  flex: 1;
  justify-content: center;
}

/* Logo without frame */
.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: all 0.15s ease-out;
  flex-shrink: 0;
  cursor: pointer;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo-image {
  height: 105px;
  width: 150px;
  object-fit: contain;
  transition: all 0.15s ease-out;
  display: block;
}

.nav-logo:hover .logo-image {
  filter: brightness(1.05);
}

/* Navigation without frame */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.nav-links li a {
  font-family: "Inter", sans-serif;
  color: var(--text-color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 24px;
  position: relative;
  transition: all 0.15s ease-out;
  background: transparent;
  border: none;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.nav-links li a:hover {
  transform: scale(1.05);
  color: var(--primary-accent-color);
}

.nav-links li a.active {
  color: var(--primary-accent-color);
}

/* Language Toggle Button */
.language-toggle {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border-color);
  border-radius: 12px;
  color: var(--text-color-primary);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-cubic);
  box-shadow: var(--glass-shadow);
}

.lang-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  transform: scale(1.05);
}

.lang-icon {
  font-size: 1.1rem;
}

.lang-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: linear-gradient(
    135deg,
    rgba(15, 20, 25, 0.95) 0%,
    rgba(26, 31, 38, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-color);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s var(--ease-out-cubic);
  z-index: 9999;
  padding: 4px;
}

.language-toggle.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-toggle.active .lang-arrow {
  transform: rotate(180deg);
}

.lang-option {
  width: calc(100% - 8px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text-color-primary);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0 4px;
}

.lang-option:hover {
  background: rgba(var(--primary-accent-color-rgb), 0.1);
  color: var(--primary-accent-color);
}

.lang-option.active {
  background: rgba(var(--primary-accent-color-rgb), 0.15);
  color: var(--primary-accent-color);
}

.lang-option .flag {
  font-size: 1.1rem;
}

/* Enhanced Hamburger Menu */
.hamburger-menu {
  display: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border-color);
  border-radius: 12px;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  transition: all 0.3s var(--ease-out-cubic);
  box-shadow: var(--glass-shadow);
}

.hamburger-menu:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-color: var(--primary-accent-color);
  box-shadow: 0 8px 25px rgba(var(--primary-accent-color-rgb), 0.2);
  transform: translateY(-2px);
}

.hamburger-menu .hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-accent-color), var(--secondary-accent-color));
  margin: 4px 0;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color-primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-color-secondary);
}

a {
  color: var(--primary-accent-color);
  text-decoration: none;
}
a:hover {
  color: var(--text-color-primary);
  text-decoration: none;
}

/* Common section styling */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  transition: opacity 0.6s var(--ease-out-cubic), transform 0.6s var(--ease-out-cubic);
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-color-primary);
  margin-bottom: 4rem;
  text-align: center;
  animation: fadeInDown 0.8s var(--ease-out-cubic) backwards;
  animation-delay: 0.2s;
  text-shadow: 0 0 20px rgba(var(--primary-accent-color-rgb), 0.2);
  letter-spacing: -0.02em;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent-color), var(--secondary-accent-color));
  border-radius: 2px;
}

/* Subtitle for Services Section */
.services-subtitle {
  text-align: center;
  font-size: 1.2rem; /* Adjust as needed */
  color: var(--text-color-secondary);
  margin-bottom: 2.5rem; /* Adjust as needed, provides space before the grid */
  max-width: 800px; /* Optional: controls width for longer subtitles */
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px; /* Add some padding for smaller screens */
  padding-right: 15px; /* Add some padding for smaller screens */
}

/* Video Background Styles */
.video-bg-section {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.video-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.video-background-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}




.content-overlay-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 120px 20px 80px 20px;
}

/* Hero Section - Consistent with other cards */
.hero-section {
  background: linear-gradient(135deg, #0f1419 0%, #1a1f26 50%, #0f1419 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--primary-accent-color-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-sphere-1 8s ease-in-out infinite alternate;
  filter: blur(40px);
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--secondary-accent-color-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-sphere-2 10s ease-in-out infinite alternate-reverse;
  filter: blur(30px);
}

#home.video-bg-section .content-overlay-wrapper {
  padding-top: 100px; /* Adjusted for new header height */
}

.hero-content {
  max-width: 1200px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border-color-strong);
  border-radius: var(--default-border-radius);
  padding: 80px 100px;
  box-shadow: var(--glass-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: hero-float 6s ease-in-out infinite alternate;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--text-color-primary);
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 0 0 30px rgba(var(--primary-accent-color-rgb), 0.3);
  animation: fadeInDown 1s var(--ease-out-cubic) 0.2s backwards;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-color-secondary);
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInDown 1s var(--ease-out-cubic) 0.5s backwards;
  line-height: 1.6;
  opacity: 0.9;
}

/* Unified Button Styles */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--card-border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 1px solid var(--glass-border-color);
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  color: var(--text-color-primary);
  backdrop-filter: blur(25px) saturate(180%);
  box-shadow: var(--glass-shadow);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-accent-color), transparent);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
}

.btn:hover::before {
  transform: translateX(100%);
  opacity: 1;
}

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

.btn-primary {
  animation: fadeInUp 1s var(--ease-out-cubic) 0.8s backwards;
}

/* Services Section - Unified with Hero */
.services-section {
  background: linear-gradient(135deg, #1a1f26 0%, #151b22 50%, #1a1f26 100%);
  position: relative;
  overflow: hidden;
}

/* Services 섹션 제목 여백 */
.services-section .section-title {
  margin-top: 0;
  margin-bottom: 4rem;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(var(--secondary-accent-color-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-sphere-3 12s ease-in-out infinite alternate;
  filter: blur(35px);
}

.services-section::after {
  content: "";
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(var(--tertiary-accent-color-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-sphere-4 9s ease-in-out infinite alternate-reverse;
  filter: blur(25px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for flexible layout */
  gap: 30px;
  max-width: 1200px;
  /* animation: fadeInUp 0.8s var(--ease-out-cubic) backwards; */
  /* animation-delay: 0.4s; */
}

/* First row cards (large) span 2 columns each */
.service-card:nth-child(1),
.service-card:nth-child(2) {
  grid-column: span 2;
}

/* Second row cards (small) span 1 column each */
.service-card-small {
  grid-column: span 1;
}

/* Unified Card Styles */
.service-card,
.tech-card {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border-color);
  border-radius: var(--card-border-radius);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  min-height: 350px; /* 다국어 대응 최소 높이 설정 */
  justify-content: space-between; /* 내용을 균등하게 분배 */
}

.service-card::before,
.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-accent-color), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
}

.service-card:hover::before,
.tech-card:hover::before {
  transform: translateX(100%);
  opacity: 1;
}

.service-card:hover,
.tech-card:hover {
  box-shadow: var(--glass-shadow-strong), 0 0 30px rgba(var(--primary-accent-color-rgb), 0.2);
  border-color: var(--glass-border-color-strong);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.12) 100%
  );
  transform: translateY(-2px);
}

.service-icon,
.tech-icon {
  margin-bottom: 2rem;
}

.service-icon svg,
.tech-icon svg {
  width: 64px;
  height: 64px;
  color: var(--primary-accent-color);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 0 10px rgba(var(--primary-accent-color-rgb), 0.3));
}

.service-card:hover .service-icon svg,
.tech-card:hover .tech-icon svg {
  transform: scale(1.05);
  color: var(--secondary-accent-color);
  filter: drop-shadow(0 0 15px rgba(var(--secondary-accent-color-rgb), 0.4));
}

.service-title,
.tech-title {
  font-size: 1.4rem;
  color: var(--text-color-primary);
  margin-bottom: 1rem;
}

.service-description,
.tech-description {
  font-size: 1rem;
  color: var(--text-color-subtle);
  line-height: 1.6;
  flex-grow: 1;
}

/* Styling for the new list within service cards */
.service-card .service-description-list {
  flex-grow: 1; /* Allows card to expand if list is long */
  font-size: 1rem; /* Consistent font size for description area */
  /* text-align: left; */ /* Removed to inherit center alignment */
}

.service-card .service-description-list ul {
  list-style-type: none; /* Remove default bullets */
  padding-left: 0;       /* Remove default left padding for ul */
  margin-top: 1rem;      /* Space below the service-title */
  margin-bottom: 0;      /* Ensure no extra bottom margin for ul */
}

.service-card .service-description-list li {
  margin-bottom: 0.75rem; /* Space between list items */
  line-height: 1.6;      /* Adjust line height for readability */
  color: var(--text-color-subtle); /* Use subtle text color for list items */
  padding-left: 0; /* Changed for better centering of text */
}

.service-card .service-description-list li:last-child {
  margin-bottom: 0; /* No margin for the last item */
}

/* Center alignment for specific service cards */
.service-card .service-description-center {
  text-align: center;
}

.service-card .service-description-center ul {
  text-align: center;
}

.service-card .service-description-center li {
  text-align: center;
}

/* Technology Section - Unified Design */
.technology-section {
  background: linear-gradient(135deg, #1a1f26 0%, #151b22 50%, #1a1f26 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
}

/* Technology 섹션 제목 여백 */
.technology-section .section-title {
  margin-top: 0;
  margin-bottom: 4rem;
}

.technology-section::before {
  content: "";
  position: absolute;
  top: 25%;
  right: 20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(var(--primary-accent-color-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-sphere-5 11s ease-in-out infinite alternate;
  filter: blur(40px);
  z-index: -1;
}

.technology-section::after {
  content: "";
  position: absolute;
  bottom: 30%;
  left: 15%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(var(--tertiary-accent-color-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-sphere-6 13s ease-in-out infinite alternate-reverse;
  filter: blur(35px);
  z-index: -1;
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  /* animation: fadeInUp 0.8s var(--ease-out-cubic) backwards; */
  /* animation-delay: 0.4s; */
}

.tech-card {
  padding: 50px 35px;
}

.tech-icon svg {
  width: 72px;
  height: 72px;
}

.tech-title {
  font-size: 1.5rem;
}

/* Vision Section - 완전히 새로 작성 */
.vision-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 100vh;
  z-index: 10;
}

.vision-section .video-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.vision-section .video-background-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.vision-section .content-overlay-wrapper {
  background: rgba(15, 20, 25, 0.5);
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.vision-content {
  max-width: 1000px;
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 80px 40px;
}

.vision-text {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-color-primary);
  line-height: 1.6;
  text-align: center;
  text-shadow: 0 0 30px rgba(var(--primary-accent-color-rgb), 0.3);
  animation: fadeInScaleUp 1s var(--ease-out-cubic) 0.3s backwards;
  /* Temporarily disable gradient to fix visibility issue */
  /* background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--text-color-secondary) 30%,
    var(--text-color-subtle) 60%,
    #ffffff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; */
  color: #ffffff;
}

/* Contact Section - Corrected Layout */
#contact {
    position: relative;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f26 50%, #0f1419 100%);
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Set to 0 to be behind all other content */
}

#contact > h2,
.contact-container {
    position: relative;
    z-index: 1; /* Ensure content is above particles */
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 25%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(var(--secondary-accent-color-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-sphere-7 14s ease-in-out infinite alternate;
  filter: blur(45px);
}

.contact-section::after {
  content: "";
  position: absolute;
  bottom: 25%;
  right: 20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(var(--primary-accent-color-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-sphere-8 10s ease-in-out infinite alternate-reverse;
  filter: blur(35px);
}

/* New sphere decorations for Contact Section */
.sphere-decoration-1,
.sphere-decoration-2 {
  content: ""; /* Though not pseudo-elements, maintaining this for consistency in structure if needed */
  position: absolute;
  border-radius: 50%;
  z-index: 0; /* Ensure they are behind the contact cards */
}

.sphere-decoration-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(var(--primary-accent-color-rgb), 0.15) 0%, transparent 70%);
  top: 15%;
  right: 10%;
  animation: float-sphere-9 12s ease-in-out infinite alternate;
  filter: blur(40px);
}

.sphere-decoration-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--secondary-accent-color-rgb), 0.15) 0%, transparent 65%);
  bottom: 20%;
  left: 15%;
  animation: float-sphere-10 15s ease-in-out infinite alternate-reverse;
  filter: blur(30px);
}
.contact-form {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border-color);
  border-radius: var(--card-border-radius);
  padding: 50px 40px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 25px;
  animation: fadeInUp 0.8s var(--ease-out-cubic) backwards;
  animation-delay: 0.6s;
  position: relative;
  z-index: 2;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  align-items: stretch; /* 카드의 높이를 동일하게 맞춤 */
}

.contact-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border-color);
  border-radius: var(--card-border-radius);
  padding: 35px 30px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 속도 개선 */
  box-shadow: var(--glass-shadow);
  animation: fadeInUp 0.8s var(--ease-out-cubic) backwards;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.contact-icon {
    margin-bottom: 1rem;
}

.contact-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-accent-color);
}

.contact-card p {
  flex-grow: 1; /* 설명 부분이 남은 공간을 차지하도록 설정 */
}

.email-card {
    justify-content: center; /* 이메일 카드의 콘텐츠를 수직 중앙 정렬 */
}

.email-card p {
    flex-grow: 0; /* p 태그가 불필요하게 공간을 차지하지 않도록 설정 */
}

.google-form-btn,
.kakao-btn {
  margin-top: auto; /* 버튼을 항상 하단에 위치시킴 */
  padding: 12px 24px;
  font-size: 0.95rem;
  display: inline-block;
}

.qr-code-container {
    margin-bottom: 1rem;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-accent-color), transparent);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
}

.contact-form:hover::before {
  transform: translateX(100%);
  opacity: 1;
}

.contact-form:hover {
  box-shadow: var(--glass-shadow-strong), 0 0 40px rgba(var(--primary-accent-color-rgb), 0.25);
  border-color: var(--glass-border-color-strong);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.12) 100%
  );
}

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

.form-group label {
  font-size: 1rem;
  color: var(--text-color-secondary);
  margin-bottom: 12px;
  text-align: left;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  background: var(--glass-bg-color);
  backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid var(--glass-border-color);
  border-radius: var(--card-border-radius);
  padding: 20px;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: var(--text-color-primary);
  outline: none;
  transition: all 0.4s var(--ease-out-cubic);
  box-shadow: var(--glass-shadow);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
  color: var(--text-color-muted);
  opacity: 0.8;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
  border-color: var(--primary-accent-color);
  box-shadow: 0 0 0 3px var(--focus-ring-color), var(--glass-shadow-strong);
  background: var(--glass-bg-color-strong);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}



/* 구글 폼 버튼 */
.google-form-btn {
  margin-top: 15px;
  padding: 12px 24px;
  font-size: 0.95rem;
  display: inline-block;
}

.contact-card .btn {
  text-decoration: none;
}

/* Unified Sphere Animations */
@keyframes titlePulse {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float-sphere-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, -20px) scale(1.1);
  }
}

@keyframes float-sphere-2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-25px, 15px) scale(0.9);
  }
}

@keyframes float-sphere-3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, -30px) scale(1.2);
  }
}

@keyframes float-sphere-4 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-35px, 25px) scale(0.8);
  }
}

@keyframes float-sphere-5 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-30px, -25px) scale(1.1);
  }
}

@keyframes float-sphere-6 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(35px, 20px) scale(0.9);
  }
}

@keyframes float-sphere-7 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-40px, -35px) scale(1.3);
  }
}

@keyframes float-sphere-8 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, 25px) scale(0.85);
  }
}

/* New Keyframe Animations for additional spheres */
@keyframes float-sphere-9 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-20px, 30px) scale(1.15);
  }
}

@keyframes float-sphere-10 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(25px, -15px) scale(0.95);
  }
}

@keyframes hero-float {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll-triggered Animation Base Class */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0s;
  will-change: opacity, transform;
}

/* Scroll-triggered Animation Visible State */
.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 1rem;
  color: var(--text-color-primary);
  font-family: "Inter", sans-serif;
  background: linear-gradient(
    135deg,
    rgba(15, 20, 25, 0.85) 0%,
    rgba(26, 31, 38, 0.9) 50%,
    rgba(15, 20, 25, 0.85) 100%
  );
  backdrop-filter: blur(20px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Responsive Design */
@media (max-width: 1023px) {
  .hero-content {
    padding: 60px 70px;
  }
  .hero-title {
    font-size: 3.8rem;
  }
  .hero-subtitle {
    font-size: 1.3rem;
  }
  .technology-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .tech-card {
    padding: 40px 30px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    gap: 25px;
  }
  
  /* Reset column spans for tablet */
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card-small {
    grid-column: span 1;
  }
}

@media (max-width: 767px) {
  header {
    padding: 15px 0;
  }
  
  .main-nav {
    height: 80px;
    padding: 0 20px;
    justify-content: space-between;
    gap: 20px;
  }
  
  .nav-logo {
    padding: 8px 20px;
  }
  
  .logo-image {
    height: 80px;
    width: 115px;
  }

  .hamburger-menu {
    display: block;
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.1) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  /* Language toggle for mobile */
  .language-toggle {
    margin-left: 0;
    margin-right: 10px;
  }
  
  .lang-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  
  .lang-icon {
    font-size: 1rem;
  }
  
  .lang-dropdown {
    right: -10px;
    min-width: 140px;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(26, 31, 38, 0.95) 100%
    );
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: var(--card-border-radius);
    padding: 20px;
    gap: 10px;
    box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.4),
                0 8px 32px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    transform: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: var(--card-border-radius);
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.1) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  #home.video-bg-section .content-overlay-wrapper {
    padding-top: 100px;
  }

  .hero-content {
    padding: 50px 40px;
  }

  .hero-title {
    font-size: 2.8rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    gap: 25px;
  }

  .technology-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    gap: 25px;
  }

  .tech-card {
    padding: 35px 25px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .vision-text {
    font-size: 1.8rem;
    line-height: 1.5;
  }

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

  .contact-info {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-form {
    gap: 25px;
    padding: 50px 40px;
  }

  .contact-card {
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 40px 30px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .vision-text {
    font-size: 1.5rem;
  }

  .btn {
    padding: 14px 30px;
    font-size: 1rem;
  }

  .btn-submit {
    padding: 16px 40px;
    font-size: 1.1rem;
  }

  .contact-form {
    padding: 40px 25px;
  }

  .contact-card {
    padding: 20px 15px;
  }

  .contact-icon svg {
    width: 40px;
    height: 40px;
  }
}

/* Footer - removed duplicate, using enhanced footer above */

/* Vision text line animation */
.vision-text .vision-line {
  display: block;
  opacity: 1; /* Changed from 0 */
  transform: translateY(0); /* Reset transform */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.vision-text .vision-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Section Transitions & Smooth Scrolling */
section {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Smooth video transitions */
section video {
    transition: opacity 0.8s ease-in-out;
    will-change: opacity;
}

/* Enhanced scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Prevent layout shift during animations */
.service-card,
.tech-card,
.contact-card,
.hero-content,
.vision-content {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Smooth section boundaries */
section:not(:last-child) {
    position: relative;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    opacity: 0.5;
}

/* Enhanced glassmorphism for better transitions */
.hero-content,
.service-card,
.tech-card,
.contact-card {
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Section Transitions & Smooth Scrolling */
section {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Smooth video transitions */
section video {
    transition: opacity 0.8s ease-in-out;
    will-change: opacity;
}

/* Enhanced scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Prevent layout shift during animations */
.service-card,
.tech-card,
.contact-card,
.hero-content,
.vision-content {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Smooth section boundaries */
section:not(:last-child) {
    position: relative;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    opacity: 0.5;
}

/* Enhanced Section Transitions & Smooth Scrolling */
section {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Smooth video transitions */
section video {
    transition: opacity 0.8s ease-in-out;
    will-change: opacity;
}

/* Enhanced scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Prevent layout shift during animations */
.service-card,
.tech-card,
.contact-card,
.hero-content,
.vision-content {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Smooth section boundaries */
section:not(:last-child) {
    position: relative;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
    opacity: 0.5;
}

/* Enhanced glassmorphism for better transitions */
.hero-content, .service-card, .tech-card, .contact-card {
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Section Transitions & Smooth Scrolling */
section {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

section video {
    transition: opacity 0.8s ease-in-out;
    will-change: opacity;
}

html {
    scroll-behavior: smooth;
}

.service-card, .tech-card, .contact-card, .hero-content, .vision-content {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

section:not(:last-child) {
    position: relative;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
    opacity: 0.5;
}

.hero-content, .service-card, .tech-card, .contact-card {
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Smooth Blur Transition System */
.video-background-wrapper {
  transition: filter 0.8s ease-out, transform 0.6s ease-out;
}

/* Hero Section - Always Clear */
#home .video-background-wrapper {
  filter: none !important;
  transition: filter 0.8s ease-out;
}

/* Other Sections - Smooth Blur Transition */
.video-bg-section:not(#home) .video-background-wrapper {
  filter: blur(8px) brightness(0.7);
  transition: filter 0.8s ease-out;
}

/* Enhanced Animation States */
.section-revealed .video-background-wrapper {
  filter: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.section-revealed .content-overlay-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* Reverse Animation Support */
.section-hidden .video-background-wrapper {
  filter: blur(12px) brightness(0.6);
  transition: filter 0.6s ease-in;
}

.section-hidden .content-overlay-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease-in, transform 0.6s ease-in;
}

/* Enhanced Services Section Animations */
.services-card-left {
  transform: translateX(-150px) translateY(30px) scale(0.8) !important;
  opacity: 0 !important;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.services-card-right {
  transform: translateX(150px) translateY(30px) scale(0.8) !important;
  opacity: 0 !important;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.services-card-center {
  transform: translateX(0) translateY(0) scale(1) !important;
  opacity: 1 !important;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Enhanced Contact Section Animations */
.contact-bounce {
  transform: translateY(100px) scale(0.7) !important;
  opacity: 0 !important;
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.contact-visible {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* Enhanced Scroll-based Animations */
.enhanced-scroll-hidden {
  opacity: 0 !important;
  transform: translateY(80px) scale(0.9) !important;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.enhanced-scroll-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Direction-based Animations */
.scroll-from-top {
  transform: translateY(-80px) scale(0.9) !important;
}

.scroll-from-bottom {
  transform: translateY(80px) scale(0.9) !important;
}

.scroll-from-left {
  transform: translateX(-120px) scale(0.9) !important;
}

.scroll-from-right {
  transform: translateX(120px) scale(0.9) !important;
}

/* Smooth Blur Transition Classes */
.smooth-blur-transition {
  transition: filter 0.8s ease-out, transform 0.6s ease-out !important;
}

/* Enhanced Video Blur Effects */
.video-blur-light {
  filter: blur(2px) brightness(0.9) !important;
}

.video-blur-medium {
  filter: blur(5px) brightness(0.8) !important;
}

.video-blur-heavy {
  filter: blur(10px) brightness(0.7) !important;
}

/* Animation Performance Optimization */
.video-background-wrapper,
.content-overlay-wrapper,
.service-card,
.tech-card,
.contact-card {
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Enhanced Motion Smoothing */
@media (prefers-reduced-motion: no-preference) {
  .video-background-wrapper {
    transition: filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .content-overlay-wrapper {
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .video-background-wrapper,
  .content-overlay-wrapper,
  .service-card,
  .tech-card,
  .contact-card {
    transition: none !important;
    animation: none !important;
  }
}

/* Enhanced Reverse Animation States */
.section-entering-down .video-background-wrapper {
  filter: blur(8px) brightness(0.6);
  transition: filter 0.8s ease-out;
}

.section-entering-up .video-background-wrapper {
  filter: blur(6px) brightness(0.7);
  transition: filter 0.8s ease-out;
}

.section-exiting-down .video-background-wrapper {
  filter: blur(12px) brightness(0.5);
  transition: filter 0.6s ease-in;
}

.section-exiting-up .video-background-wrapper {
  filter: blur(10px) brightness(0.6);
  transition: filter 0.6s ease-in;
}

/* Enhanced QR Code Animation */
.kakao-qr-section {
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* Final Animation Refinements */
.service-card,
.tech-card,
.contact-card,
.kakao-qr-section {
  transition-property: transform, opacity, box-shadow, border-color, background;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Hover States */
.service-card:hover,
.tech-card:hover,
.contact-card:hover,
.kakao-qr-section:hover {
  transform: translateY(-5px) scale(1.02);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
