/* Specific Page Styles */

/* Front Page Sections */

/* Hero */
.hero-content {
    margin-bottom: 5rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content .subtitle {
    font-size: 1rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--yellow-color);
    color: var(--secondary-color);
    border-radius: var(--radius-pill);
    width: fit-content;
}

.hero-visual {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .buttons .btn {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    border: none;
    animation: pulse-scale 2s infinite;
}

.hero-img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.hero-visual .icon {
    font-size: 4rem;
    color: var(--accent-color);
}

/* Hero Section Background */
.hero-section {
    min-height: 60vh;
    background: linear-gradient(135deg, #7d55ee 0%, #d3caec 100%);
    background-image: url('../images/hero-bg.png');
    /* Relative path adjustment might be needed depending on enqueue */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #7e55eeb7 0%, #7d55ee 100%);
}

/* Purpose & Features */
.purpose-section {
    position: relative;
    background: var(--bg-light);
    padding-bottom: 120px;
    padding-top: 0;
    z-index: 1;
    overflow: hidden;
}

.purpose-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, #7d55ee 0%, #b274ff 100%);
    border-radius: 0 0 80% 80%;
    transform: scaleX(1.3);
    /* Stretch the curve */
    z-index: -1;
}

.purpose-section .section-title-container .section-title {
    color: white;
}

.purpose-section .section-title-container .section-en-title {
    color: var(--yellow-color);
}

.purpose-section .section-title::after {
    background: white;
}

.purpose-section p {
    font-size: 18px;
}

/* Challenges Orbit Layout */
.challenges-section {
    background: var(--bg-light);
    overflow: visible;
    /* Allow floating icons to peek if needed, but usually hidden */
    position: relative;
}

.challenges-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/challenges-blob.svg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    z-index: 0;
    pointer-events: none;
    opacity: .3;
}

.challenges-wrapper {
    position: relative;
    min-height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Circles */
.orbit-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.orbit-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed #e0e0e0;
    border-radius: 50%;
}

.orbit-circle.inner {
    width: 720px;
    height: 720px;
    z-index: 1;
}

/* Outer Orbit Container */
.orbit-outer-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    animation: orbit-rotate 60s linear infinite;
    z-index: 0;
}

.orbit-circle.outer {
    width: 100%;
    height: 100%;
    opacity: 0.7;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    /* Remove centering transform as it's now full size of container */
}

@keyframes orbit-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Center Blob */
.challenge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.challenge-center .center-content {
    color: white;
    position: relative;
}

.challenge-center .highlight-text {
    position: relative;
    display: inline-block;
}

.challenge-center .highlight-text::before {
    content: '● ● ● ● ● ●';
    position: absolute;
    top: -.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--yellow-color);
    font-size: 6px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.challenge-center h2 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0;
    color: white;
    line-height: 1.5;
}


/* Challenge Items */
.challenge-item {
    position: absolute;
    z-index: 5;
    /* Ensure above orbit lines */
    max-width: 360px;
    width: 100%;
    transform: translate(-50%, -50%) !important;
    /* Center on the coordinate */
}

.challenge-card {
    background: white;
    padding: 0 2rem 0 1.5rem;
    height: 120px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 8px 32px rgba(109, 64, 234, 0.15);
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(109, 64, 234, 0.1) !important;
}

.challenge-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.challenge-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* Positions (Clockwise from top) - Radius 280px */
.pos-0 {
    top: 27%;
    left: 50%;
}

/* Top */
.pos-1 {
    top: 50%;
    left: 75%;
}

/* Top Right */
.pos-2 {
    top: 73%;
    left: 66%;
}

/* Bot Right */
.pos-3 {
    top: 73%;
    left: 34%;
}

/* Bot Left */
.pos-4 {
    top: 50%;
    left: 25%;
}

/* Top Left */

/* Floating Icons */
.floating-icons {
    /* Removed container styles as icons are now inside orbit-outer-container */
    display: contents;
}

.float-icon {
    position: absolute;
    font-size: 2.5rem;
    background: var(--white);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-left: -32px;
    margin-top: -32px;
    animation: counter-rotate 60s linear infinite;
    /* Counter rotate to keep upright */
}

@keyframes counter-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Icon Positions on 1000px Circle (Radius 500px) */
/* 7 items distributed evenly (360/7 ≈ 51.4 degrees apart) */
/* Center point: left: 50%, top: 50%. Radius: 50% of container */
/* Formula: left = 50 + 50 * cos(a), top = 50 + 50 * sin(a) */

/* 0 deg (Right) */
.i-1 {
    left: 100%;
    top: 50%;
}

/* ~51.4 deg (Bottom Right) */
.i-2 {
    left: 81.2%;
    top: 89.0%;
}

/* ~102.8 deg (Bottom) */
.i-3 {
    left: 38.9%;
    top: 98.7%;
}

/* ~154.2 deg (Bottom Left) */
.i-4 {
    left: 5%;
    top: 71.7%;
}

/* ~205.7 deg (Top Left) */
.i-5 {
    left: 5%;
    top: 28.3%;
}

/* ~257.1 deg (Top Left) */
.i-6 {
    left: 38.9%;
    top: 1.3%;
}

/* ~308.5 deg (Top Right) */
.i-7 {
    left: 81.2%;
    top: 11.0%;
}

/* Values */
.values-section {
    overflow: hidden;
    /* Prevent horizontal scroll from deco */
}

.values-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 240px;
    z-index: 10;
    pointer-events: none;
}

.values-decoration img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Strength */
.strength-section .section-en-title {
    color: var(--yellow-color);
}

.strength-section .section-title {
    color: white;
}

/* Flow */
.flow-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.flow-item {
    padding: 2rem;
    border-radius: var(--radius-pill);
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.step-label {
    position: absolute;
    top: -1.25rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    opacity: 0.1;
    font-style: italic;
}

.flow-icon-wrapper {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--primary-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.flow-line {
    position: absolute;
    top: 0;
    left: 20%;
    height: 100%;
    z-index: 1;
    border-left: 2px dashed var(--border-light);
}

.flow-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Contact */
.contact-section {
    position: relative;
    overflow: hidden;
    background-image: url('../images/influencers.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.contact-section::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #3c247ef4 0%, #1f1636 100%);
}

.contact-section .section-en-title {
    color: var(--yellow-color);
}


/* Single Page */
.single-page {
    background-color: var(--bg-light);
}

/* Project Archive */
.projects-section {
    min-height: calc(100vh - 80px);
}

.project-card-item {
    border-radius: 1.5rem;
    position: relative;
    box-shadow: 0 16px 32px rgba(175, 156, 235, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(175, 156, 235, 0.15);
}

.project-thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    overflow: hidden;
}

.project-card-item .badge-container {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 1;
    pointer-events: none;
}

.project-card-item .location-badge-container {
    position: absolute;
    bottom: .75rem;
    left: .75rem;
    z-index: 1;
    pointer-events: none;
}

.project-card-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 1rem;
}

.project-card-item .service-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-meta {
    font-size: 0.875rem;
}

.project-meta i {
    width: 20px;
    text-align: left;
}

.project-card-item .card-footer {
    line-height: 1;
    padding-top: 0 !important;
}

.project-card-item .card-footer span {
    font-size: 1.25rem;
}

/* Badge */
.project-card-item .badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.8rem;
}

/* Create Project Page */
.create-project-page .card {
    border-radius: var(--card-radius);
    box-shadow: 0 16px 40px rgba(175, 156, 235, 0.08);
}

/* Genres Section */
.genres-section {
    background-color: var(--white);
    padding-top: 6rem;
    padding-bottom: 6rem;
    border-bottom: 1px dashed var(--border-light);
}

.genre-pill {
    background: var(--bg-light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 1rem;
    border: 1px solid var(--border-light);
}

.genre-pill:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(136, 92, 242, 0.15);
    transform: translateY(-3px);
}

.genre-icon {
    font-size: 1.2rem;
}

/* Single Project Page */
.single-project-page {
    background-color: var(--bg-light);
}

.single-project-page h1 {
    font-size: 1.85rem;
    font-weight: 700;
}

.single-project-page p {
    margin-bottom: 0;
}

.project-detail-card {
    border-radius: var(--card-radius);
    box-shadow: 0 16px 40px rgba(175, 156, 235, 0.08);
    padding: 2rem;
    border: none;
}

/* Project Detail Page - Reusable Classes */
.project-section-card {
    border-radius: var(--card-radius);
    background-color: var(--white);
    box-shadow: 0 16px 40px rgba(175, 156, 235, 0.08);
    padding: 2rem;
    border: none;
    margin-bottom: 1.5rem;
}

.project-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-detail-table {
    border: none;
    margin-bottom: 0;
}

.project-detail-table th,
.project-detail-table td {
    border: none;
}

.project-table-th {
    padding-left: 0;
    color: var(--bs-body-color);
    font-weight: 400;
    width: 30%;
}

.project-table-th-wide,
.project-detail-table th {
    padding: 0.5rem 0.5rem 0.5rem 0;
    color: var(--text-muted);
    font-weight: 400;
    width: 30%;
}

.project-table-th-wide {
    width: 35% !important;
}

.project-detail-table td {
    padding: 0.5rem 0 0.5rem 0.5rem;
}

.project-table-td-end {
    padding-right: 0;
}

.project-table-td-pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.project-carousel-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-thumb-item {
    max-width: 3rem;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.genre-table-pill {
    width: fit-content;
    background: var(--primary-color-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .875rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

/* Responsive Pages */
@media (max-width: 991px) {
	.hero-content {
		margin-bottom: 6rem;
	}
	
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-section .buttons .btn {
        width: 100%;
    }

    .purpose-section::after {
        height: 30%;
        border-radius: 0 0 100% 100%;
        transform: scaleX(1.6);
    }

    .purpose-section p {
        font-size: 1rem;
    }

    .challenges-section {
        background: var(--bg-light);
        position: relative;
        padding: 120px 0;
        overflow: hidden;
    }

    .challenges-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 250%;
        height: 100%;
        background: linear-gradient(180deg, #7d55ee 0%, #b274ff 100%);
        border-radius: 50%;
        z-index: 0;
        opacity: .9;
    }

    .challenges-wrapper {
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin: 0;
    }

    .orbit-circles,
    .orbit-outer-container {
        display: none;
    }

    .challenge-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        width: auto;
        height: auto;
        animation: none;
        background: none;
        margin-bottom: 3rem;
    }

    .challenge-center h2 {
        color: var(--white);
        font-size: 1.8rem;
    }

    .challenge-item {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        max-width: 100%;
    }

    .challenge-card {
        padding: 1.5rem;
        height: auto;
    }

    .values-section {
        padding-bottom: 0;
    }

    .values-decoration {
        position: relative;
        margin-top: 2rem;
        margin-left: 2rem;
        width: 180px;
    }

    .flow-container {
        gap: 1.5rem;
    }

    /* Flow Mobile Adjustment */
    .flow-header h3 {
        font-size: 1rem;
    }

    .flow-content p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .flow-item {
        padding: 1.5rem;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .flow-left {
        width: 50px;
        /* Reduced width */
        margin-right: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
    }

    .flow-content {
        margin-left: 0 !important;
        flex: 1;
    }

    .step-label {
        font-size: 1.25rem;
        top: -1rem;
    }

    .genre-pill {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* Project Card Item */
    .project-card-item {
        border-radius: 0.75rem;
    }

    .project-card-item:hover {
        transform: none;
        box-shadow: none;
    }

    .project-card-item h3 {
        font-size: .875rem;
        margin-bottom: .5rem;
    }

    .project-card-item .card-body {
        padding: 1rem !important;
    }

    .project-card-item .card-footer {
        padding: 0 1rem 1rem !important;
    }

    .project-card-item .service-name {
        font-size: 0.75rem;
    }

    .project-meta {
        font-size: 0.75rem;
    }

    .project-card-item .badge {
        font-size: 0.65rem;
        padding: 6px 12px;
    }

    .project-card-item .card-footer span {
        font-size: 1rem;
    }

    /* Single Project Page */
    .single-project-page {
        background-color: transparent;
    }

    .single-project-page h1 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .project-detail-card,
    .project-section-card {
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background-color: transparent;
    }

    .project-card-item .badge-container {
        top: .5rem;
        left: .5rem;
    }

    .project-card-item .location-badge-container {
        bottom: .5rem;
        left: .5rem;
    }

    .project-detail-table {
        font-size: 0.875rem;
    }
}

/* Fixed Bottom Bar for Mobile */
.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

@media (max-width: 991px) {
    .project-sidebar-col {
        display: none;
    }

    .fixed-bottom-bar {
        display: block;
        padding: 1rem 0;
    }
}