/* --- Project Popup Styles --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: #fff;
    border-radius: 1.5em;
    border: 0px solid #ddd;
    max-width: 1200px;
    max-height: 85vh;
    width: 95vw;
    overflow: hidden;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 0px solid #eee;
    background: #f8f8f8;
}

.popup-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.popup-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.popup-title {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 2.5em;
    color: var(--accent-color);
    margin: 0;
    font-weight: 200;
}

.popup-close {
    background: none;
    border: none;
    color: #888;
    font-size: 2.5em;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.popup-content {
    display: flex;
    position: relative;
    overflow: hidden;
    max-height: calc(85vh - 100px);
}

.popup-left-column {
    flex: 1;
    min-width: 0;
    background: #fdfdfd;
    border-right: 0px solid #eee;
}

.popup-right-column {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 0;
}

/* Image Carousel Styles */
.popup-carousel-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: #fff;
    border-color: var(--accent-color);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-indicator.active {
    background: var(--accent-color);
}

.carousel-indicator:hover {
    background: var(--accent-color)aa;
}

.carousel-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-size: 16px;
    text-align: center;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: carousel-spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

/* Popup Content Text Styles */
.popup-description,
.popup-features,
.popup-tech-stack,
.popup-links {
    padding: 24px 32px;
    font-family: "Roboto Condensed", sans-serif;
}

.popup-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    font-weight: 200;
}

.popup-features h3,
.popup-tech-stack h3 {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.1em;
    color: #333;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.popup-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-features li {
    font-size: 1em;
    color: #555;
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 200;
}

.popup-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 6px 12px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1em;
    color: #333;
    font-weight: 200;
}

.popup-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 2px solid #eee;
    margin-top: 20px;
}

.popup-link {
    background: var(--accent-color)11;
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--accent-color);
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
    font-size: 1em;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.popup-link:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

.popup-link.secondary {
    background: #ffeb3b33;
    border-color: #ffeb3b;
    color: #b8860b;
}

.popup-link.secondary:hover {
    background: #ffeb3b;
    color: #333;
}
