@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #2B59C3;
    --primary-light: #4c77d9;
    --secondary-color: #4A5568;
    --accent-color: #38B2AC;
    --text-dark: #2D3748;
    --text-light: #718096;
    --background-light: #F7FAFC;
    --background-alt: #EDF2F7;
    --white: #ffffff;
    --navy-brand: #002366;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(43, 89, 195, 0.7), rgba(45, 55, 72, 0.6)), url('images/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(43, 89, 195, 0.3);
}

.btn-navy {
    background-color: var(--navy-brand);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.3);
}

.btn-navy:hover {
    background-color: #003399;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 35, 102, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 89, 195, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Stats Section (About Preview) */
.stats {
    padding: 5rem 2rem;
    background-color: var(--white);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--background-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat-card p {
    color: var(--text-light);
}

/* Services */
.services {
    padding: 6rem 2rem;
    background: linear-gradient(rgba(247, 250, 252, 0.9), rgba(247, 250, 252, 0.9)), url('images/services_bg.png') center/cover fixed;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 1);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--background-alt);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background-color: var(--white);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--background-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-info {
    background-color: var(--navy-brand);
    color: var(--white);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

.contact-form {
    padding: 4rem 3rem 4rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-dark);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 89, 195, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .nav-links {
        display: flex;
        /* Override display:none to use opacity/visibility or max-height for transition if desired, but we'll use transform for better performance if possible, or simple JS. The request asked for CSS checkbox or JS. Since JS is already in script.js, we will adjust CSS to work with current JS toggle */
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.8rem 2rem;
    }

    .stats,
    .services,
    .contact {
        padding: 4rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info {
        padding: 3rem 2rem;
        text-align: center;
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-form {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }
}

/* Services Page Revamp */
.services-hero-banner {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: url('images/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 0;
}

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(43, 89, 195, 0.7), rgba(45, 55, 72, 0.6));
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

.services-hero-content h1 {
    color: var(--white);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

.services-hero-content p {
    color: var(--white);
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 300;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.services-details {
    padding: 8rem 2rem;
    background-color: var(--white);
}

.details-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.service-content-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    scroll-margin-top: 100px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--white);
    padding: 3rem 4rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 2px solid var(--background-alt);
    padding-bottom: 1.5rem;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(43, 89, 195, 0.25);
}

.detail-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0;
    text-align: left;
}

.detail-body {
    padding-left: calc(70px + 1.5rem);
}

.detail-body ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.detail-body ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.detail-body ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.8rem;
    position: absolute;
    left: 0;
    top: -4px;
}

.detail-body ul.sub-list {
    margin-top: 0.8rem;
    margin-bottom: 0;
}

.detail-body ul.sub-list li {
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
}

.detail-body ul.sub-list li::before {
    content: "-";
    color: var(--secondary-color);
    font-size: 1.2rem;
    top: 0;
}

.service-kr-note {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 1.5rem;
    border-top: 1px dashed #e2e8f0;
}

.vision-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.vision-underline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

.services-summary-section {
    padding: 8rem 2rem;
    background-color: var(--background-light);
}

.services-summary-section .service-card {
    background: var(--white);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    padding: 3rem 2rem;
}

.services-summary-section .service-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

@media (max-width: 768px) {
    .detail-body {
        padding-left: 0;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .detail-item {
        padding: 2rem 1.5rem;
    }
}

/* Image Service Cards (Home Page Refined) */
.home-image-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 2rem;
    /* Airy gap between cards */
}

.home-image-service-card {
    display: flex;
    height: 280px;
    /* Refined height */
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    position: relative;
    border: none;
    border-radius: 12px;
    /* Curved corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    /* Clean lift */
    color: inherit;
}

.home-image-service-card:hover {
    transform: translateY(-5px);
    /* Lift upward */
    z-index: 5;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.home-card-color-side {
    flex: 1;
    /* Exactly 1:1 split */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem;
    color: white;
    text-align: left;
    transition: background-color 0.3s ease;
}

.home-card-color-side h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
    border: none !important;
    padding: 0 !important;
}

.home-card-color-side p {
    font-size: 0.95rem;
    /* Slightly smaller for professional feel */
    line-height: 1.5;
    opacity: 0.95;
    font-weight: 400;
    margin: 0;
}

.home-card-image-side {
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.home-image-service-card:hover .home-card-image-side {
    transform: scale(1.15);
}

/* Home Card Themed Colors */
.card-home-nonclinical .home-card-color-side {
    background-color: #7fcfbb;
}

/* Mint */
.card-home-clinical .home-card-color-side {
    background-color: #5fa1d0;
}

/* Sky Blue */
.card-home-cmc .home-card-color-side {
    background-color: #3d7a99;
}

/* Dark Cyan */
.card-home-ra .home-card-color-side {
    background-color: #1a2a3a;
}

/* Deep Navy */

/* Responsive Home Cards */
@media (max-width: 992px) {
    .home-image-cards-grid {
        grid-template-columns: 1fr;
    }

    .home-image-service-card {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .home-image-service-card {
        flex-direction: column;
        height: 400px;
    }

    .home-card-color-side,
    .home-card-image-side {
        flex: auto;
        height: 50%;
        padding: 2rem;
    }

    .home-card-color-side h3 {
        font-size: 1.4rem;
    }
}