/* ===========================================
   PORTFOLIO DETAIL PAGES STYLING
   Combining service-details.css + Orbit portfolio styles
   =========================================== */

/* Page Title Section - From service-details.css */
/* Page Title Section */
.page-title {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    padding: 80px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.page-title .heading {
    position: relative;
    z-index: 2;
}

.page-title .service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-title .service-badge i {
    font-size: 16px;
}

.page-title h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
    letter-spacing: -1px;
}

.page-title p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* More compact page title */
.page-title-animated {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    padding: 60px 0 45px;
    /* Reduced from 80px/60px to make it more compact */
    position: relative;
    overflow: hidden;
}

/* Animated Translation Text Background - More subtle and compact */
.page-title-animated::before {
    content: "Hello • Hola • Bonjour • こんにちは • 你好 • Ciao • Привет • مرحبا • Olá • Hallo     Translation • Traducción • Traduction • 翻訳 • 翻译 • Traduzione • Перевод • ترجمة • Tradução • Übersetzung     Language • Idioma • Langue • 言語 • 语言 • Lingua • Язык • لغة • Língua • Sprache";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 200%;
    opacity: 0.9;
    /* More subtle */
    pointer-events: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 8vw, 100px);
    /* Smaller, more compact */
    line-height: 2;
    color: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    animation: slideRightSmooth 80s linear infinite;
    z-index: 0;
}

/* Decorative Document Elements */
.page-title-animated::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 200px;
    top: 15%;
    right: 8%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transform: rotate(12deg);
    animation: floatDocument 8s ease-in-out infinite;
    z-index: 1;
}

/* Floating Translation Icons */
.page-title-animated .heading::before {
    content: "📄";
    position: absolute;
    left: 5%;
    top: 20%;
    font-size: 60px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.page-title-animated .heading::after {
    content: "🌐";
    position: absolute;
    right: 10%;
    bottom: 10%;
    font-size: 50px;
    opacity: 0.1;
    animation: float 7s ease-in-out infinite 2s;
    z-index: 1;
}

/* Language Symbol Decorations */
.page-title-animated .breadcrumbs::before {
    content: "A";
    position: absolute;
    left: 12%;
    top: -60px;
    font-family: 'Montserrat', sans-serif;
    font-size: 80px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(-15deg);
    z-index: 1;
}

.page-title-animated .breadcrumbs::after {
    content: "語";
    position: absolute;
    right: 15%;
    top: -50px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 70px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
    z-index: 1;
}

/* Compact heading styles */
.page-title-animated h1 {
    font-size: 42px !important;
    /* Reduced from 48px */
    font-weight: 800;
    margin-bottom: 12px !important;
    /* More compact */
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.page-title-animated p {
    font-size: 16px !important;
    /* Reduced from 18px */
    margin-bottom: 0;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.page-title-animated .service-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    padding: 6px 18px !important;
    /* More compact */
    font-size: 12px !important;
    margin-bottom: 14px !important;
    position: relative;
    z-index: 2;
}

/* Ensure text is white on dark background */
.page-title-animated h1,
.page-title-animated .service-badge,
.page-title-animated p {
    color: white !important;
}

.page-title-animated .breadcrumbs ol li a {
    color: rgba(255, 255, 255, 0.9);
}

.page-title-animated .breadcrumbs ol li {
    color: rgba(255, 255, 255, 0.7);
}

.page-title-animated .breadcrumbs ol li.current {
    color: rgba(255, 255, 255, 0.95);
}

/* Translation Symbols Floating Around */
.page-title-animated .container {
    position: relative;
}

.page-title-animated .container::before {
    content: "⟳";
    position: absolute;
    right: 5%;
    top: 30%;
    font-size: 45px;
    color: rgba(255, 255, 255, 0.08);
    animation: rotate360 10s linear infinite;
    z-index: 1;
}

.page-title-animated .container::after {
    content: "⇄";
    position: absolute;
    left: 8%;
    bottom: 20%;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.08);
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

/* Smooth Animations */
@keyframes slideRightSmooth {
    0% {
        transform: translateY(-50%) translateX(-50%);
    }

    100% {
        transform: translateY(-50%) translateX(0%);
    }
}

@keyframes floatDocument {

    0%,
    100% {
        transform: rotate(12deg) translateY(0px);
    }

    50% {
        transform: rotate(15deg) translateY(-15px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes rotate360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.08;
        transform: scale(1);
    }

    50% {
        opacity: 0.12;
        transform: scale(1.1);
    }
}

/* Globe particles effect */
.page-title-animated .heading .col-lg-8::before {
    content: "●";
    position: absolute;
    left: -30px;
    top: 50%;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    animation: twinkle 2s ease-in-out infinite;
}

.page-title-animated .heading .col-lg-8::after {
    content: "●";
    position: absolute;
    right: -30px;
    top: 50%;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    animation: twinkle 2s ease-in-out infinite 1s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-title-animated {
        padding: 50px 0 40px;
    }

    .page-title-animated h1 {
        font-size: 36px !important;
    }

    .page-title-animated::after,
    .page-title-animated .heading::before,
    .page-title-animated .heading::after {
        display: none;
        /* Hide some decorations on tablets */
    }
}

@media (max-width: 768px) {
    .page-title-animated {
        padding: 45px 0 35px;
    }

    .page-title-animated::before {
        font-size: clamp(30px, 6vw, 70px);
        line-height: 1.8;
    }

    .page-title-animated h1 {
        font-size: 30px !important;
    }

    .page-title-animated p {
        font-size: 15px !important;
    }

    .page-title-animated .breadcrumbs::before,
    .page-title-animated .breadcrumbs::after {
        font-size: 50px;
        top: -40px;
    }
}

@media (max-width: 576px) {
    .page-title-animated {
        padding: 40px 0 30px;
    }

    .page-title-animated h1 {
        font-size: 26px !important;
    }

    .page-title-animated p {
        font-size: 14px !important;
    }

    /* Hide decorative elements on mobile */
    .page-title-animated .breadcrumbs::before,
    .page-title-animated .breadcrumbs::after,
    .page-title-animated .container::before,
    .page-title-animated .container::after {
        display: none;
    }
}

/* Breadcrumbs - Matches Team/About Page */
.portfolio-details-page .breadcrumbs {
    background: rgba(27, 94, 32, 0.95);
    padding: 14px 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    backdrop-filter: none;
    border-radius: 0;
    position: relative;
    z-index: 2;
}

.portfolio-details-page .breadcrumbs .container {
    position: relative;
    z-index: 2;
}

.portfolio-details-page .breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.portfolio-details-page .breadcrumbs ol li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.portfolio-details-page .breadcrumbs ol li+li::before {
    content: "/";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.portfolio-details-page .breadcrumbs ol li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-details-page .breadcrumbs ol li a:hover {
    color: #ffffff;
    text-decoration: none;
}

.portfolio-details-page .breadcrumbs ol li.current {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Portfolio Details Section */
.portfolio-details {
    padding: 80px 0;
    background: var(--bg-light);
}

/* Hero Image Wrapper with Slider */
.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-slider {
    border-radius: 16px;
}

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

.portfolio-slider .swiper-button-prev,
.portfolio-slider .swiper-button-next {
    color: white;
    background: rgba(45, 106, 79, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.portfolio-slider .swiper-button-prev:after,
.portfolio-slider .swiper-button-next:after {
    font-size: 20px;
}

.floating-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(45, 106, 79, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-badge i {
    font-size: 16px;
}

/* Project Info Card */
.project-info-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.project-category {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-green);
}

.project-category .dot {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
}

.project-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.project-excerpt {
    font-size: 16px;
}

.portfolio-details-page .breadcrumb-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400;
}

.portfolio-details-page .breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 400;
}

.portfolio-details-page .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.portfolio-details-page .breadcrumb-item a:hover {
    color: #ffffff !important;
    text-decoration: none;
}

.portfolio-details-page .breadcrumb-item.current,
.portfolio-details-page .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
}

/* Meta Grid */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px 0;
    border-top: 2px solid var(--bg-gray);
    border-bottom: 2px solid var(--bg-gray);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

.meta-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}

.meta-link {
    color: var(--primary-green);
    text-decoration: none;
}

.meta-link:hover {
    text-decoration: underline;
}

/* Tech Stack */
.tech-stack {
    margin-top: 20px;
}

.tech-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 12px;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid rgba(82, 183, 136, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

/* Stats Ribbon - Maximum Visibility */
.stats-ribbon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-box {
    text-align: center;
    padding: 20px 10px;
    border-right: 2px solid #ddd;
}

.stat-box:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 900;
    color: #1B4332 !important;
    margin-bottom: 12px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-text {
    display: block;
    font-size: 13px;
    color: #2c3e50 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-ribbon {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-box {
        border-right: none;
        border-bottom: 1px solid var(--bg-gray);
    }

    .stat-box:nth-child(2n) {
        border-right: 1px solid var(--bg-gray);
    }

    .stat-box:last-child,
    .stat-box:nth-last-child(2) {
        border-bottom: none;
    }
}

/* Content Block */
.content-block {
    background: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.block-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent-mint);
}

.block-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-emerald) 100%);
    color: white;
    border-radius: 12px;
    font-size: 24px;
}

.block-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.lead-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.content-block p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 16px;
}

/* Challenge-Solution Cards */
.challenge-solution {
    margin-top: 30px;
}

.cs-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.cs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cs-card.challenge {
    border-top: 4px solid #e74c3c;
}

.cs-card.solution {
    border-top: 4px solid var(--primary-light);
}

.cs-card.result {
    border-top: 4px solid var(--accent-color);
}

.cs-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 28px;
}

.cs-card.challenge .cs-icon {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.cs-card.solution .cs-icon {
    background: rgba(82, 183, 136, 0.1);
    color: var(--primary-light);
}

.cs-card.result .cs-icon {
    background: rgba(82, 183, 136, 0.1);
    color: var(--accent-color);
}

.cs-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.cs-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

/* Features Sidebar */
.features-sidebar {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent-mint);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(82, 183, 136, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-emerald) 100%);
    color: white;
    border-radius: 10px;
    font-size: 24px;
}

.feature-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Gallery Section */
.gallery-section {
    margin-top: 50px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(82, 183, 136, 0.1);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.gallery-header h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 106, 79, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 36px;
    color: white;
}

/* Navigation Bar */
.navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--bg-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.nav-link.center {
    background: var(--primary-green);
    color: white;
}

.nav-link.center:hover {
    background: var(--primary-dark);
}

.nav-icon i {
    font-size: 24px;
}

.nav-text {
    font-size: 14px;
}

@media (max-width: 768px) {
    .navigation-bar {
        flex-direction: column;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }

    .nav-link.prev,
    .nav-link.next {
        order: 2;
    }

    .nav-link.center {
        order: 1;
    }
}