/* ===== CSS PROJECT DETAIL - PORTFOLIO RAFIKA RAHMA YUNITA ===== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Soothing Slate & Obsidian Tech Theme variables (default) */
    --primary-color: #3b82f6;       /* Royal Blue */
    --secondary-color: #06b6d4;     /* Cyan Accent */
    --accent-color: #10b981;        /* Soothing Emerald */
    --primary-rgb: 59, 130, 246;
    --secondary-rgb: 6, 182, 212;
    --bg-primary: #0a0f1d;          /* Deep Slate Blue-Black */
    --bg-secondary: #0f172a;        /* Dark Slate */
    --bg-glass: rgba(15, 23, 42, 0.75);
    --border-glass: rgba(59, 130, 246, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e0;
    --text-muted: #718096;
    --border-color: #1e293b;
    --shadow-light: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
    --shadow-medium: 0 10px 20px -3px rgba(59, 130, 246, 0.15);
    --shadow-heavy: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    --gradient-text: linear-gradient(135deg, #60a5fa 0%, #2dd4bf 100%);
}

[data-theme="light"] {
    --primary-color: #2563eb;       /* Royal Blue (Contrast) */
    --secondary-color: #0891b2;     /* Cyan Accent (Contrast) */
    --accent-color: #059669;        /* Emerald (Contrast) */
    --primary-rgb: 37, 99, 235;
    --secondary-rgb: 8, 145, 178;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(37, 99, 235, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow-light: 0 4px 6px -1px rgba(37, 99, 235, 0.05);
    --shadow-medium: 0 10px 15px -3px rgba(37, 99, 235, 0.08);
    --shadow-heavy: 0 15px 30px -10px rgba(37, 99, 235, 0.15);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --gradient-text: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
}

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

body {
    font-family: 'Outfit', 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 60px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Gradients */
.bg-glow {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.bg-glow-secondary {
    position: fixed;
    bottom: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

/* Navbar detail */
.nav-detail {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

.back-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 120px auto 0 auto;
    padding: 0 20px;
}

/* Page Header */
.project-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-top: 10px;
}

.project-category {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}

.project-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.project-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Glass Cards */
.card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    border-color: rgba(var(--primary-rgb), 0.25);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
}

/* Left Column Styling */
.project-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
}

.project-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.project-media:hover img {
    transform: scale(1.03);
}

.project-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.project-desc p {
    margin-bottom: 15px;
}

/* Bullet Features */
.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Tech Stack Tags */
.tech-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-tag {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Right Column Styling (Sidebar Info & QR Code) */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid var(--border-glass);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px 0;
    vertical-align: top;
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
    width: 35%;
    font-size: 0.95rem;
}

.info-value {
    color: var(--text-secondary);
    width: 65%;
    font-size: 0.95rem;
}

/* QR Code & Scan Section */
.scan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.qr-wrapper {
    background: white;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    display: inline-block;
    transition: var(--transition);
}

.qr-wrapper img {
    display: block;
    width: 150px;
    height: 150px;
}

.qr-wrapper:hover {
    transform: scale(1.05);
}

.scan-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    max-width: 200px;
}

/* Buttons */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Light / Dark Mode Toggle button style */
.theme-switch-btn {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-switch-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-detail {
        padding: 0 20px;
        height: 70px;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-detail {
        padding: 0 12px;
    }
    
    .back-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .project-title {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 12px;
        margin-top: 25px;
    }
    
    .info-label {
        width: 40%;
        font-size: 0.85rem;
    }
    
    .info-value {
        width: 60%;
        font-size: 0.85rem;
    }
}
