/* --- Global & Typography Variables --- */
:root {
    --tp-bg: #fcfbf7;
    --tp-text-dark: #333333;
    --tp-text-light: #666666;
    --tp-accent: #d4a373; /* Adjust to match brand */
    --tp-hero-bg: #3c4a4f; /* The dark teal seen in video */
    --tp-pink: #d98a8a; /* Pinkish location text */
    --tp-border: #e0ded6;
}

.techyon-portfolio-container {
    font-family: 'Inter', sans-serif; /* Assume a clean sans-serif */
    color: var(--tp-text-dark);
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Tabs Navigation --- */
.portfolio-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    justify-content: center;
}

.portfolio-tabs a {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    color: var(--tp-text-dark);
    text-decoration: none;
    border: 1px solid var(--tp-border);
    border-radius: 30px; /* Pill shape */
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-tabs a:hover {
    background-color: #f0eee5;
}

.portfolio-tabs a.active {
    background-color: #fcfbf7;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-color: #ccc;
}

/* --- Grid View Cards --- */
#portfolio-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.portfolio-card-content {
    padding: 20px 0;
}

.portfolio-card-title {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif; /* Elegant serif from video */
}

.portfolio-card-location {
    margin: 0 0 15px 0;
    color: var(--tp-text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.portfolio-card-badge {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
}

.portfolio-card-badge:hover {
    background: #333;
}

.badge-icon { color: var(--tp-pink); margin-right: 5px;}

/* --- Category Dropdown --- */
.portfolio-dropdown-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

#portfolio-project-dropdown {
    padding: 12px 40px 12px 20px;
    width: 100%;
    max-width: 350px;
    font-size: 1rem;
    border: 1px solid var(--tp-border);
    border-radius: 30px;
    background-color: transparent;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    cursor: pointer;
}

/* --- Single Project Layout (AJAX Rendered) --- */
#single-project-details { width: 100%; }

.sp-hero-section {
    background-color: var(--tp-hero-bg);
    color: #fff;
    padding: 120px 20px;
    text-align: center;
    border-radius: 12px;
    position: relative;
    margin-bottom: 60px;
}

.sp-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin: 0 0 10px 0;
    font-weight: 400;
}

.sp-hero-location {
    color: var(--tp-pink);
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 1px;
}

.sp-scroll-discover {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

.sp-scroll-discover .scroll-icon {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Introduction Split Section */
.sp-intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 20px;
    margin-bottom: 60px;
}

.sp-intro-left {
    flex: 1;
    min-width: 300px;
}

.sp-intro-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0;
    color: var(--tp-text-dark);
}

.sp-intro-right {
    flex: 2;
    min-width: 300px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--tp-text-light);
}

/* Gallery Grid */
.sp-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 80px;
}

.sp-gallery-item {
    width: 100%;
}

.sp-img-full { width: 100%; }
.sp-img-half { width: calc(50% - 10px); }

.sp-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .sp-img-half { width: 100%; }
    .sp-hero-title { font-size: 2.5rem; }
}

/* Meta Footer */
.sp-meta-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 60px 0;
    border-top: 1px solid var(--tp-border);
    border-bottom: 1px solid var(--tp-border);
}

.sp-meta-col {
    flex: 1;
    min-width: 200px;
    text-align: center;
    margin-bottom: 20px;
}

.sp-meta-col h4 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    color: var(--tp-text-light);
}

.sp-meta-col p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: var(--tp-text-dark);
}

.sp-empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--tp-text-light);
}