/**
 * Simple Forward-Only Carousel CSS
 * 한쪽으로만 흐르는 간단한 캐러셀
 */

/* CSS Custom Properties */
:root {
  --carousel-gap: 12px;
  --carousel-transition: 800ms ease;
  --carousel-border-radius: 32px;
  --center-width: 66.6667%;
  --peek-width: 16.6667%;
}

/* Base Carousel Container */
.dsp-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: visible;
  border-radius: var(--carousel-border-radius);
  background: #f8f9fa;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  margin: 2rem 0;
}

/* Track Container */
.dsp-hero__track {
  display: flex;
  align-items: center;
  transition: transform var(--carousel-transition);
  gap: var(--carousel-gap);
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual Slide */
.dsp-hero__slide {
  flex-shrink: 0;
  height: 100%;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transition: all var(--carousel-transition);
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Slide Image */
.dsp-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* Slide Content Overlay */
.dsp-hero__content {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  max-width: 250px;
  text-align: right;
  z-index: 3;
  transform: translateY(0);
  transition: transform var(--carousel-transition);
}

.dsp-hero__content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-align: right;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
}

.dsp-hero__content p {
  font-size: 1rem;
  color: white;
  margin: 0;
  text-align: right;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.6);
}

/* Center slide: 2/3 width, full opacity, scale 1, z-index 2 */
.dsp-hero__slide.is-center {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Active slide additional styling */
.dsp-hero__slide.is-active {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Hidden slides (not in current view) */
.dsp-hero__slide:not(.is-center) {
  opacity: 0.75;
  transform: scale(0.9);
  z-index: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dsp-hero {
    height: 300px;
  }
  
  .dsp-hero__content {
    padding: 1rem;
  }
  
  .dsp-hero__content h3 {
    font-size: 1.25rem;
  }
  
  .dsp-hero__content p {
    font-size: 0.875rem;
  }
  
  /* 모바일에서 콘텐츠 크기 조정 */
  .dsp-hero__content {
    top: 1rem;
    right: 1rem;
    max-width: 200px;
    padding: 1rem;
  }
  
  .dsp-hero__content h3 {
    font-size: 1rem;
  }
  
  .dsp-hero__content p {
    font-size: 0.75rem;
  }
}

/* Animation Performance Optimizations */
.dsp-hero__slide,
.dsp-hero__track {
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .dsp-hero__slide,
  .dsp-hero__track {
    transition: none;
  }
}

/* Modern Homepage Layout Styles */

/* Product Cards Section */
.products-section {
    padding: 0.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 20%, #8b5cf6 80%, transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-gradient, linear-gradient(90deg, #3b82f6, #8b5cf6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-header {
    padding: 1rem;
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.product-subtitle {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.product-body {
    padding: 1rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.product-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    color: #475569;
}

.product-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

.product-action {
    display: flex;
    gap: 0.5rem;
}

.btn-product {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Enhanced Features Section */
.features-section {
    padding: 4rem 2rem;
    background: white;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 20%, #3b82f6 50%, #e2e8f0 80%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem auto;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Process Section */
.process-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    position: relative;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.process-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0 auto;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 2rem;
    right: -1rem;
    font-size: 1.5rem;
    color: #64748b;
}

.process-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 auto 1rem auto;
}

.process-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-description {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    background: white;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.about-text p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: #3b82f6;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    color: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

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

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-header {
        padding: 8px;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .product-subtitle {
        font-size: 0.7rem;
    }

    .product-body {
        padding: 8px;
    }

    .product-features {
        margin-bottom: 8px;
    }

    .product-features li {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }

    .btn-product {
        padding: 6px 8px;
        font-size: 0.65rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .feature-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .feature-description {
        font-size: 0.85rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-step:not(:last-child)::after {
        content: '↓';
        top: auto;
        bottom: -1rem;
        right: 50%;
        transform: translateX(50%);
    }

    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .process-title {
        font-size: 1rem;
    }

    .process-description {
        font-size: 0.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .products-section,
    .features-section,
    .process-section,
    .about-section {
        padding: 1.5rem 1rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .btn-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    
    .stat-card {
        padding: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}