/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM
   ========================================================================== */

/* ===== HERO SECTION (Matches About/Gallery) ===== */
.about-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0c0c0c;
    background-size: cover;
    background-position: center;
}

.about-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.about-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-noise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    z-index: 3;
    pointer-events: none;
}

.hero-bg-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.blueprint-grid { stroke: rgba(255, 255, 255, 0.2); }
.blueprint-line { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; fill: none; }

.about-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 60px;
}

.luxury-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(237, 139, 51, 0.1);
    border: 1px solid #ED8B33;
    color: #ED8B33;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.luxury-badge i {
    font-size: 9px;
    margin-right: 6px;
}

.about-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: -1px;
}

.about-hero p {
    font-size: 18px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BREADCRUMB (Matches Contact Page) ===== */
.contact-breadcrumb {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.contact-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-breadcrumb li {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
}

.contact-breadcrumb a {
    color: #1e293b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-breadcrumb a:hover {
    color: #ED8B33;
}

/* ===== PORTFOLIO GRID & FILTERS ===== */
.portfolio-page {
    background-color: #fafafa;
    padding: 80px 0;
}

.portfolio-filters-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 960px;
    margin: 0 auto 50px auto;
    padding: 0;
    position: static;
}


.filter-scroll-btn {
    position: static;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    color: #ED8B33;
    display: none; /* Hidden by default — JS shows them when needed */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    outline: none;
}

.filter-scroll-btn i {
    font-size: 14px;
    line-height: 0;
}

.filter-scroll-btn:hover {
    background: #ED8B33;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(237, 139, 51, 0.3);
}

.portfolio-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    flex: 1 1 auto;
    min-width: 0;
}

/* Hide webkit scrollbar */
.portfolio-filters::-webkit-scrollbar {
    display: none;
}

.portfolio-filter-btn {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
    background: #ED8B33;
    color: #ffffff;
    border-color: #ED8B33;
    box-shadow: 0 5px 15px rgba(237, 139, 51, 0.2);
}

/* ===== PORTFOLIO PREMIUM CARDS ===== */
.portfolio-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-card-item {
    transition: all 0.4s ease;
}

.portfolio-card-item.hide {
    display: none;
}

.portfolio-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 65%; /* 3:2 Aspect ratio roughly */
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card-link:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.card-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    color: #1e293b;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.portfolio-card-link:hover .card-title {
    color: #ED8B33;
}

.card-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-read-more {
    display: inline-flex;
    align-items: center;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.card-read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.portfolio-card-link:hover .card-read-more {
    color: #ED8B33;
}

.portfolio-card-link:hover .card-read-more i {
    transform: translateX(5px);
}

.premium-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card-link:hover .premium-card-overlay {
    opacity: 1;
}

.premium-card-title {
    color: #ffffff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card-link:hover .premium-card-title {
    transform: translateY(0);
}

/* ===== CALL TO ACTION ===== */
.portfolio-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    border-top: 5px solid #ED8B33;
}

.portfolio-cta h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffffff;
}

.portfolio-cta p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.portfolio-cta .btn-cta {
    display: inline-block;
    background: #ED8B33;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(237, 139, 51, 0.3);
}

.portfolio-cta .btn-cta:hover {
    background: #ffffff;
    color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.2);
}

/* =========================================================================
   PORTFOLIO DETAILS PAGE (NEW DESIGN)
   ========================================================================= */

/* Horizontal Specs Grid */
.pd-specs-bar {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
    margin-top: 20px; 
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.spec-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(237, 139, 51, 0.1);
    color: #ED8B33;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.spec-item:hover .spec-icon {
    background: #ED8B33;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(237, 139, 51, 0.3);
}

.spec-content {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 5px;
    font-weight: 600;
}

.spec-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.3;
}

/* Editorial Content */
.editorial-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
    font-family: 'Inter', sans-serif;
    padding: 20px 0;
}

.editorial-content p {
    margin-bottom: 25px;
}

.editorial-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #1e293b;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.editorial-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #ED8B33;
    margin-top: 15px;
}

.editorial-content blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    line-height: 1.4;
    color: #ED8B33;
    font-style: italic;
    border-left: 4px solid #ED8B33;
    padding-left: 30px;
    margin: 50px 0;
    background: #fdfaf7;
    padding: 30px;
    border-radius: 0 8px 8px 0;
}

/* Drop Cap */
.editorial-content .drop-cap::first-letter {
    font-family: 'Cormorant Garamond', serif;
    float: left;
    font-size: 5rem;
    line-height: 4.5rem;
    padding-top: 4px;
    padding-right: 15px;
    color: #1e293b;
    font-weight: 600;
}

/* Masonry Gallery Customization */
.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
}

.masonry-gallery a {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.masonry-gallery a img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.masonry-gallery a:hover img {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    .masonry-gallery {
        column-count: 1;
    }
}

/* ===== PORTFOLIO DETAILS PAGE ===== */
.portfolio-details-page {
    padding: 80px 0;
    background-color: #fafafa;
}

.pd-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.pd-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 40px;
}

.pd-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.pd-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.pd-gallery img:hover {
    transform: scale(1.02);
}

.pd-sidebar {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    position: sticky;
    top: 100px;
    border-top: 4px solid var(--color-accent);
}

.pd-sidebar h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.pd-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pd-spec-item {
    padding: 15px 0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
}

.pd-spec-item:last-child {
    border-bottom: none;
}

.pd-spec-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 600;
}

.pd-spec-value {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .pd-sidebar {
        margin-top: 40px;
        position: static;
    }
    .portfolio-filters {
        justify-content: flex-start;
    }
}
@media (max-width: 768px) {
    .pd-gallery {
        grid-template-columns: 1fr;
    }
    .portfolio-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
