/* ==================== */
/* PROJECT PAGE STRUCTURE */
/* ==================== */
.project-detail {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== */
/* PROJECT HEADER */
/* ==================== */
.project-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-header h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.project-meta i {
    margin-right: 8px;
    color: var(--primary-color);
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: var(--primary-color);
    color: white;
}

.btn:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: rgba(127, 90, 240, 0.1);
    color: var(--accent-light);
    border-color: var(--accent-light);
}

/* ==================== */
/* PROJECT CONTENT SECTIONS */
/* ==================== */
.project-section {
    margin-bottom: 40px;
}

.project-section h3 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-section h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.project-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ==================== */
/* REUSABLE COMPONENTS */
/* ==================== */

/* Highlight Box */
.highlight-box {
    background-color: rgba(127, 90, 240, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border-radius: 8px;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(127, 90, 240, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.highlight-box-content {
    flex: 1;
}

.highlight-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Grid Layouts */
.grid-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(127, 90, 240, 0.2);
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(127, 90, 240, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Lists */
.styled-list {
    margin: 20px 0 20px 20px;
    list-style: none;
}

.styled-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.styled-list li i {
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.6rem;
    top: 8px;
}

/* Tech Stack */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tech-item {
    background-color: rgba(127, 90, 240, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(127, 90, 240, 0.1);
}

.tech-item:hover {
    transform: translateY(-5px);
    background-color: rgba(127, 90, 240, 0.2);
}

.tech-item i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.tech-item span {
    font-size: 0.9rem;
}

/* Dashboard Embed */
.dashboard-embed {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: #f5f5f5;
}

.embed-caption {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 10px;
    font-style: italic;
}

.card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
    transition: transform 0.3s ease;
}

/* ==================== */
/* RESPONSIVE ADJUSTMENTS */
/* ==================== */
@media (max-width: 768px) {
    .dashboard-embed {
        height: 350px;
    }

    .dashboard-embed iframe {
        height: 100%;
        width: 100%;
        min-height: 0;
        min-width: 0;
    }


    .project-detail {
        padding: 25px;
    }

    .grid-2cols {
        grid-template-columns: 1fr;
    }

    .project-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .project-header h2 {
        font-size: 1.8rem;
    }

    .project-section h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .dashboard-embed {
        height: 100px;
    }

    .dashboard-embed iframe {
        height: 100%;
        width: 100%;
        min-height: 0;
        min-width: 0;
    }

    .project-meta {
        flex-direction: column;
        gap: 10px;
    }

    .highlight-box {
        flex-direction: column;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}