/* Portfolio Detail Page - White Background Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    color: #212121;
    background-color: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Navigation Bar - Portfolio Detail Page */
.nav-bar {
    background-color: #1A1A1A !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Main Content Area */
.detail-content {
    padding: 96px 10px 48px;
    min-height: 100vh;
    background-color: rgba(250, 250, 250, 1);
}

.detail-container {
    max-width: 1069px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

/* Hero Section */
.detail-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    height: fit-content;
    padding-top: 48px;
}

.detail-title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: normal;
    letter-spacing: -0.36px;
    color: #212121;
    text-align: center;
    margin: 0;
}

.detail-description {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    color: #000000;
    text-align: center;
    max-width: 800px;
    margin: 0;
}

.hero-image-container {
    width: 100%;
    max-width: 1069px;
    height: 508px;
    border: 1px solid #f1f1f1;
    border-radius: 16px;
    overflow: hidden;
    padding: 4px;
    background: #ffffff;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* Challenge & Impact Section */
.challenge-impact-section {
    width: 100%;
    max-width: 1069px;
}

.challenge-impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    border: none;
    border-radius: 12px;
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 0;
    padding-right: 0;
}

.challenge-impact-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.section-subtitle {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: normal;
    color: #000000;
    margin: 0;
}

.section-text {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    margin: 0;
}

/* Metadata Section */
.metadata-section {
    width: 100%;
    max-width: 1069px;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    height: 188px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.company-logo {
    width: 107px;
    height: 20.63px;
    position: relative;
    padding: 6.447px 6.447px 6.447px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 99.284px;
    height: 20.63px;
    object-fit: contain;
    transform: scale(1.3);
    transform-origin: center center;
}

/* Overview Section */
.overview-section {
    width: 100%;
    max-width: 1069px;
    border-top: 1px solid #dedede;
    padding-top: 24px;
    padding-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: normal;
    color: #212121;
    margin: 0;
}

.section-title-center {
    text-align: center;
}

.overview-text {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    margin: 0;
}

/* Feature Section */
.feature-section {
    width: 100%;
    max-width: 1069px;
    border-top: 1px solid #dedede;
    padding-top: 72px;
    padding-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.section-description {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    text-align: center;
    margin: 0;
}

/* Feature Items */
.feature-item {
    display: flex;
    gap: 36px;
    align-items: center;
    width: 100%;
}

.feature-item-reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: normal;
    color: #000000;
    margin: 0;
}

.feature-text {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    margin: 0;
}

.feature-image {
    flex: 1;
    height: 591px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Feature Item Full Width */
.feature-item-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.feature-image-full {
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 12px;
}

.feature-img-full {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    align-items: flex-start;
}

.slider-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: block;
}

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

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #212121;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow-prev {
    left: 16px;
}

.slider-arrow-next {
    right: 16px;
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
}

/* Dashboard Image */
.dashboard-image-container {
    width: 100%;
    max-width: 1069px;
    height: 508px;
    border: 1px solid #f1f1f1;
    border-radius: 16px;
    overflow: hidden;
    padding: 4px;
    background: #ffffff;
}

.dashboard-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    border: none;
}

.dashboard-image-container iframe.dashboard-image {
    border: none;
}

/* Problem Solution Grid */
.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    width: 100%;
}

.problem-solution-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Solution Steps */
.solution-steps {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.solution-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.step-title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: normal;
    color: #000000;
    margin: 0;
    text-align: center;
}

.step-description {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    text-align: center;
    margin: 0;
}

.step-image {
    width: 100%;
    max-width: 1069px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 12px;
}

.step-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Footer Message */
.footer-message {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.footer-text {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: normal;
    color: #212121;
    margin: 0;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    position: relative;
    padding: 0;
}

.footer-transition {
    width: 100%;
    height: 43px;
    background-color: rgba(250, 250, 250, 1);
    border-radius: 16px 16px 0 0;
    transform: scaleY(-1);
    margin-bottom: 0;
}

.footer-content {
    max-width: 214.5px;
    width: 100%;
    margin: 0 auto;
    padding: 72px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 59px;
    align-items: center;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.footer-name {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: normal;
    letter-spacing: -0.18px;
    color: #ffffff;
    text-align: center;
    width: 100%;
    white-space: pre-wrap;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.social-link {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.social-link:hover {
    background: rgba(249, 250, 247, 0.2);
    width: 32px;
    height: 32px;
}

.social-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    object-fit: contain;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
}

.footer-copyright {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    letter-spacing: -0.14px;
    color: #606060;
    width: 100%;
    text-align: center;
    white-space: pre-wrap;
    margin: 0;
}

/* More Projects Section */
.more-projects-section {
    width: 100%;
    max-width: 1069px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 48px;
}

.more-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    width: 100%;
}

.portfolio-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.portfolio-card:hover {
    opacity: 0.9;
}

.portfolio-card:hover .card-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #c4c4c4;
}

.card-image {
    width: 100%;
    aspect-ratio: 516 / 344;
    border: 1px solid #DEDEDE;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.card-title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: normal;
    color: #212121;
    width: 100%;
    margin: 0;
}

.card-description {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    width: 100%;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .detail-container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .detail-content {
        padding: 80px 16px 48px;
    }

    .detail-container {
        gap: 36px;
    }

    .detail-hero {
        gap: 32px;
        padding-bottom: 0px;
    }

    .detail-title {
        font-size: 28px;
        letter-spacing: -0.28px;
    }

    .detail-description {
        font-size: 16px;
    }

    .hero-image-container {
        height: 300px;
    }

    .challenge-impact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 24px;
        padding-bottom: 24px;
        padding-left: 0;
        padding-right: 0;
    }

    .metadata-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        gap: 32px;
    }

    .metadata-item {
        height: auto;
    }

    .feature-section {
        padding-top: 48px;
        padding-bottom: 32px;
        gap: 32px;
    }

    .feature-item,
    .feature-item-reverse {
        flex-direction: column;
        gap: 24px;
    }

    .feature-image {
        height: 400px;
        width: 100%;
    }

    .feature-image-full {
        height: auto;
    }

    .dashboard-image-container {
        height: 300px;
    }

    .problem-solution-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .more-projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step-image {
        height: fit-content;
    }

    .footer-text {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .detail-title {
        font-size: 24px;
    }

    .detail-description {
        font-size: 15px;
    }

    .hero-image-container {
        height: 250px;
    }

    .metadata-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 20px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-image {
        height: 300px;
    }

    .footer-text {
        font-size: 24px;
    }
}
