/* Page Setup & Colors (#FF6200) */
body.single-portfolio {
    background-color: #0b0b0b !important;
    color: #ffffff !important;
}

html, body.single-portfolio {
    overflow-x: clip !important; /* Fix Sticky sidebar issue */
}

.portfolio-single-wrapper {
    background-color: #0b0b0b;
    width: 100%;
    padding: 40px 0;
    position: relative;
    overflow: visible !important;
}

.portfolio-single-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    overflow: visible !important;
}

/* Header */
.portfolio-hero-header {
    background-color: #141414;
    padding: 35px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    border: 1px solid #222;
}

.portfolio-hero-header h1 {
    font-size: 38px;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.portfolio-breadcrumbs, .portfolio-breadcrumbs a {
    color: #888888;
    text-decoration: none;
    font-size: 14px;
}

.portfolio-breadcrumbs a:hover {
    color: #FF6200;
}

.portfolio-breadcrumbs span {
    color: #FF6200;
}

/* Main Grid Layout & Sticky Sidebar */
.portfolio-main-grid {
    display: flex !important;
    align-items: flex-start !important;
    gap: 40px;
}

.portfolio-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 90px !important;
    z-index: 99 !important;
    height: auto !important;
}

.project-details-card {
    background: #141414;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid #222;
}

.project-details-card h3 {
    background: #FF6200;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.detail-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #222;
    padding-bottom: 12px;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-item strong {
    color: #888888;
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.detail-item p {
    margin: 0;
    font-size: 15px;
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #FF6200;
}

/* Sidebar CTA Card */
.sidebar-cta-card {
    background: #141414;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #222;
    text-align: center;
}

.sidebar-cta-card p {
    color: #bbb;
    font-size: 14px;
}

.sidebar-cta-card .btn-primary {
    display: inline-block;
    background: #FF6200;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s;
}

.sidebar-cta-card .btn-primary:hover {
    background: #e05600;
}

/* Right Side Content */
.portfolio-content {
    flex-grow: 1;
    width: calc(100% - 360px);
}

/* 🖼️ HERO IMAGE (480px Height) */
.portfolio-main-image {
    width: 100%;
    height: 480px !important;
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid #222;
}

/* 🖼️ SECOND IMAGE (350px Height) */
.portfolio-secondary-image {
    width: 100%;
    height: 350px !important;
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid #222;
}

.portfolio-main-image img, 
.portfolio-secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* 🌟 HOVER SHINE ANIMATION */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    z-index: 5;
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
}

.shine-effect:hover::before {
    animation: shineSweep 0.85s ease-in-out forwards;
}

.shine-effect:hover img {
    transform: scale(1.04);
}

@keyframes shineSweep {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Headings & Text */
.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 15px;
}

.content-block h2 span {
    color: #FF6200;
}

.block-text, .block-text p {
    color: #bbbbbb;
    line-height: 1.7;
    font-size: 16px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: #141414;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #222;
}

.feature-card h4 {
    margin: 10px 0 5px 0;
    color: #ffffff;
    font-size: 18px;
}

.feature-card p {
    color: #888888;
    margin: 0;
    font-size: 14px;
}

/* FAQ Accordion */
.sub-heading {
    color: #FF6200;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.faq-accordion details {
    background: #141414;
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid #222;
}

.faq-accordion summary {
    cursor: pointer;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

.faq-answer {
    margin-top: 12px;
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.6;
}

/* 🌀 FLOATING & ROTATING SHAPE IMAGES (#FF6200 ORANGE) */
.bg-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    display: block !important;
    opacity: 0.8;
}

/* Cube Shape Left */
.shape-left {
    top: 250px;
    left: -30px;
    width: 170px !important;
    height: auto !important;
    filter: hue-rotate(95deg) saturate(350%) brightness(0.95) contrast(1.1) !important;
    -webkit-filter: hue-rotate(95deg) saturate(350%) brightness(0.95) contrast(1.1) !important;
    animation: spinCube 12s linear infinite, floatUp 4s ease-in-out infinite alternate !important;
}

/* Sphere Shape Right */
.shape-right {
    top: 850px;
    right: -30px;
    width: 170px !important;
    height: auto !important;
    filter: hue-rotate(95deg) saturate(350%) brightness(0.95) contrast(1.1) !important;
    -webkit-filter: hue-rotate(95deg) saturate(350%) brightness(0.95) contrast(1.1) !important;
    animation: spinSphere 10s linear infinite, floatDown 5s ease-in-out infinite alternate !important;
}

/* ⭕ Bottom Ring Shape (Near Footer) */
.shape-bottom {
    bottom: 20px !important;
    left: -40px !important;
    width: 220px !important;
    height: auto !important;
    filter: hue-rotate(-35deg) saturate(300%) brightness(0.95) !important;
    -webkit-filter: hue-rotate(-35deg) saturate(300%) brightness(0.95) !important;
    animation: spinCube 16s linear infinite, floatUp 6s ease-in-out infinite alternate !important;
}

/* 🔄 360-DEGREE SPIN ANIMATIONS */
@keyframes spinCube {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinSphere {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* 🎈 FLOATING EFFECTS */
@keyframes floatUp {
    0% { margin-top: 0px; }
    100% { margin-top: -25px; }
}

@keyframes floatDown {
    0% { margin-top: 0px; }
    100% { margin-top: 30px; }
}

/* Responsive Fixes */
@media (max-width: 1200px) {
    .bg-shape {
        width: 120px !important;
        opacity: 0.4;
    }
}

@media (max-width: 991px) {
    .portfolio-main-grid {
        flex-direction: column;
    }
    .portfolio-sidebar {
        width: 100%;
        position: static !important;
    }
    .portfolio-content {
        width: 100%;
    }
    .portfolio-main-image {
        height: 320px !important;
    }
    .portfolio-secondary-image {
        height: 250px !important;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .bg-shape {
        display: none !important;
    }
}