/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    padding: 0 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.75rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1s infinite;
    color: #ffffff;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-25%);
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }

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

/* ===== SECTION ===== */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
}

@media (min-width: 768px) {
    .section {
        padding-top: 4rem;
        padding-bottom: 0;
    }

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

.space-y-16 > * + * {
    margin-top: 4rem;
}

.space-y-32 > * + * {
    margin-top: 8rem;
}

/* ===== CARDS ===== */
.card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.card-gradient {
    background: linear-gradient(to bottom right, #312e81, #4338ca);
    color: #ffffff;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ===== CAROUSEL ===== */
.carousel {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .carousel-slide img {
        height: 600px;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #ffffff;
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #d1d5db;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background-color: #1f2937;
    width: 2rem;
    border-radius: 1rem;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: 'Noto Serif KR', serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #4338ca;
}

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

.form-checkbox {
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    cursor: pointer;
}

.char-counter {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: right;
    margin-top: 0.25rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #4338ca;
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background-color: #3730a3;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-5px);
    background-color: #f9fafb;
}

.service-icon {
    font-size: 3rem;
    color: #4338ca;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.service-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ===== CERTIFICATE GRID ===== */
.certificate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .certificate-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.certificate-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

/* ===== LOCATION CARDS ===== */
.location-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.location-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.location-card:hover .location-image {
    transform: scale(1.05);
}

.location-info {
    padding: 2rem;
}

.location-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.location-address {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ===== PROCESS STEPS ===== */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-step {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    text-align: center;
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: #4338ca;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.process-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.process-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ===== IMAGE GRID ===== */
.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #ffffff;
    padding: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(to right, #312e81, #4338ca);
    color: #ffffff;
    padding: 4rem 2rem;
    border-radius: 1rem;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

.cta-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVE GRID HELPERS ===== */
.order-1 { order: 1; }
.order-2 { order: 2; }

@media (min-width: 768px) {
    .md\:order-1 { order: 1; }
    .md\:order-2 { order: 2; }
}

/* ===== IMMUNE CELLS GRID ===== */
.immune-grid {
    display: grid;
    gap: 2rem;
}

.immune-cell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .immune-cell {
        grid-template-columns: 1fr 3fr;
    }
}

.immune-cell:last-child {
    border-bottom: none;
}

.immune-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.immune-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.immune-info p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    white-space: pre-line;
}

/* ===== CORE TECH GRID ===== */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.tech-icon {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
}

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

.tech-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    white-space: pre-line;
}

/* ===== SERVICES GRID (Responsive) ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
