/* Variables */
:root {
    --portfolio-primary: #007bff;
    --portfolio-background: #ffffff;
    --portfolio-text: #333333;
    --portfolio-card-bg: #f8f9fa;
    --portfolio-card-border: #e9ecef;
    --portfolio-modal-overlay: rgba(0, 0, 0, 0.7);
    --portfolio-shadow: rgba(0, 0, 0, 0.1);
    --portfolio-hover-shadow: rgba(0, 0, 0, 0.2);
    --portfolio-gray-800: #343a40;
    --portfolio-gray-700: #495057;
    --portfolio-gray-300: #dee2e6;
    --portfolio-gray-200: #e9ecef;
}

/* General */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--portfolio-background);
    color: var(--portfolio-text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark-mode {
    --portfolio-background: #1a1a1a;
    --portfolio-text: #ffffff;
    --portfolio-card-bg: #2d2d2d;
    --portfolio-card-border: #404040;
    --portfolio-shadow: rgba(0, 0, 0, 0.3);
    --portfolio-hover-shadow: rgba(0, 0, 0, 0.4);
}

/* Theme switcher */
.pa-theme-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}
 
.pa-theme-switcher {
    background-color: var(--portfolio-gray-800);
    color: var(--portfolio-gray-200);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}
 
.pa-theme-switcher:hover {
    background-color: var(--portfolio-gray-700);
}
 
.dark-mode .pa-theme-switcher {
    background-color: var(--portfolio-gray-200);
    color: var(--portfolio-gray-800);
}
 
.dark-mode .pa-theme-switcher:hover {
    background-color: var(--portfolio-gray-300);
}

/* Main container */
.portfolio-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Project Header */
.portfolio-project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.portfolio-project-header i {
    font-size: 2.5rem;
    color: var(--portfolio-primary);
}

.portfolio-project-header h2 {
    font-size: 2rem;
    margin: 0;
    color: var(--portfolio-text);
}

/* Projects Grid */
.portfolio-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.portfolio-projects-grid-bi {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.portfolio-project-card {
    background: var(--portfolio-card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px var(--portfolio-shadow);
}

.portfolio-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--portfolio-hover-shadow);
}

.portfolio-video-wrapper {
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.portfolio-video-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-project-info {
    padding: 1.5rem;
    margin: 0;
}

.portfolio-project-info h3 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: var(--portfolio-text);
}

.portfolio-project-info p {
    color: var(--portfolio-text);
    opacity: 0.8;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    padding-bottom: 1.3rem;
    text-align: justify;
}

.portfolio-project-info-bi {
    padding: 1.5rem;
    margin: 0;
}

.portfolio-project-info-bi h3 {
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
    color: var(--portfolio-text);
}

.portfolio-project-info-bi p {
    color: var(--portfolio-text);
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    padding-bottom: 1.3rem;
    text-align: justify;
}

.portfolio-project-info button {
    background: var(--portfolio-primary);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--portfolkio-shadow);
    width: 100%;
    height: auto;
}

.portfolio-project-info-bi button {
    background: var(--portfolio-primary);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--portfolkio-shadow);
    width: 100%;
    height: auto;
}

/* .portfolio-details-btn {
    background: var(--portfolio-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--portfolkio-shadow);
} */

.portfolio-project-info button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--portfolio-hover-shadow);
}

.portfolio-project-info-bi button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--portfolio-hover-shadow);
}

/* .portfolio-details-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--portfolio-hover-shadow);
} */

/* Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--portfolio-modal-overlay);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.portfolio-modal-content {
    position: relative;
    background: var(--portfolio-card-bg);
    margin: 5% auto;
    padding: 2rem;
    width: 80%;
    max-width: 800px;
    border-radius: 1rem;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px var(--portfolio-shadow);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-close-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--portfolio-text);
    transition: color 0.3s ease;
}

.portfolio-close-btn:hover {
    color: var(--portfolio-primary);
}

.portfolio-modal-body {
    margin-top: 1rem;
}

/* Features Layout in Modal */
.portfolio-features-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.portfolio-feature-box {
    background: var(--portfolio-background);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px var(--portfolio-shadow);
}

/* Footer */
.portfolio-footer {
    background: var(--portfolio-card-bg);
    padding: 1.5rem;
    text-align: center;
    color: var(--portfolio-text);
    opacity: 0.8;
    box-shadow: 0 -2px 4px var(--portfolio-shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-main-container {
        padding: 1rem;
    }
    
    .portfolio-project-header {
        flex-direction: column;
        text-align: center;
    }
    
    .portfolio-modal-content {
        width: 95%;
        margin: 2% auto;
    }

    .portfolio-projects-grid {
        grid-template-columns: 1fr;
    }
}
