/*
=====================================================
KP Portfolio Theme - Single Portfolio Styles 
=====================================================
Version: 3.0 (Enhanced)
Description: Modern, responsive styles for Single Portfolio details
*/

:root {
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --light-surface: #f8faff;
    --dark-surface: #1a1a1a;
    --light-card: #ffffff;
    --dark-card: #2d2d2d;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 30px 60px rgba(0,0,0,0.15);
}

/* ==================== DECORATIVE BACKGROUND ==================== */

.project-bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.decor-shape {
    position: absolute;
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
    animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: #667eea;
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #764ba2;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #00d2ff;
    top: 40%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 100px) rotate(360deg); }
}

/* ==================== HERO SECTION ==================== */

.single-project-hero {
    height: 85vh;
    min-height: 600px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
    backdrop-filter: blur(2px);
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    border-radius: 3rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.project-category-badge {
    background: var(--primary-gradient);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.project-title {
    font-size: 4.5rem;
    text-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.project-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.8;
}

.scroll-indicator-wrap {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 3;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.6;
}

.mouse {
    width: 26px;
    height: 44px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    top: 10px;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(15px); }
}

/* ==================== CONTENT SECTION ==================== */

.project-content-section {
    padding: 120px 0;
    position: relative;
}

.sticky-top-offset {
    top: 100px;
}

/* Premium Meta Card */
.premium-card {
    background: var(--light-card);
    border-radius: 2.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.dark-mode .premium-card {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.05);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-gradient);
}

.info-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.project-meta-grid {
    display: grid;
    gap: 1.8rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.meta-icon {
    width: 45px;
    height: 45px;
    background: var(--light-surface);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.dark-mode .meta-icon {
    background: rgba(255,255,255,0.05);
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.meta-value {
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-badge.live { background: #e3fcef; color: #00b894; }
.status-badge.completed { background: #e3fcef; color: #00b894; }
.status-badge.development { background: #fffbe6; color: #faad14; }

/* Content Typography */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.accent-line {
    width: 60px;
    height: 5px;
    background: var(--primary-gradient);
    border-radius: 10px;
    margin-top: 1rem;
}

.prose {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.prose h2, .prose h3 {
    color: var(--text-primary);
    margin-top: 3rem;
}

/* Tech Stack Refining */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tech-stack-item {
    background: var(--light-card);
    padding: 1.5rem;
    border-radius: 2rem;
    display: flex;
    gap: 1.2rem;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.tech-stack-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.tech-icon-box {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tech-details h6 {
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.tech-details p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Premium Buttons */
.premium-btn {
    position: relative;
    overflow: hidden;
    border: none;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.premium-btn:hover::before {
    width: 400px;
    height: 400px;
}

/* ==================== RELATED PROJECTS ==================== */

.related-projects-section {
    padding: 120px 0;
    background: var(--light-surface);
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.dark-mode .related-projects-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-sub-title {
    display: block;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.related-card-link {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

.related-project-card {
    background: var(--light-card);
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark-mode .related-project-card {
    background: var(--dark-card);
}

.card-img-wrapper {
    position: relative;
    height: 280px;
    min-height: 280px;
    background: #f0f2f5;
    overflow: hidden;
    display: block;
}

.dark-mode .card-img-wrapper {
    background: #1e1e1e;
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s ease;
}

.card-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(102, 126, 234, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.related-project-card:hover .card-overlay-modern {
    opacity: 1;
}

.view-btn {
    background: white;
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.related-project-card:hover .view-btn {
    transform: translateY(0);
}

.card-content {
    padding: 2rem;
    background: var(--light-card);
    flex-grow: 1;
}

.dark-mode .card-content {
    background: var(--dark-card);
}

.card-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    display: block;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1199px) {
    .card-img-wrapper { height: 220px; min-height: 220px; }
}

@media (max-width: 991px) {
    .project-title { font-size: 3rem; }
    .hero-glass-card { padding: 2.5rem; border-radius: 2rem; }
    .single-project-hero { height: auto; padding: 150px 0; }
}

@media (max-width: 768px) {
    .project-title { font-size: 2.5rem; }
    .tech-stack-grid { grid-template-columns: 1fr; }
    .card-img-wrapper { height: 200px; min-height: 200px; }
}
