/* Efyuar Project Styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gold: #D4AF37;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #7a7a7a;
    --text-white: #ffffff;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-light: #e8e8e8;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 40px rgba(0, 0, 0, 0.08);
}

/* Hide default theme meta header */
.meta-header-inside {
    display: none !important;
}

.efyuar-project-single {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    font-weight: 300;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 80px;
    z-index: 2;
}

.hero-title-banner {
    background: rgba(60, 60, 60, 0.95);
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 500px;
    font-family: 'Poppins', sans-serif;
}

.hero-main-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 42px;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 8px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #ffffff;
    font-weight: 400;
    display: block;
}

/* Project Gallery with Navigation */
.project-gallery {
    padding: 60px 0;
    background: var(--bg-white);
}

.gallery-slider {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-main {
    position: relative;
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.gallery-main:active {
    cursor: grabbing;
}

.gallery-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.gallery-images-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow);
}

.gallery-arrow.prev {
    left: 20px;
}

.gallery-arrow.next {
    right: 20px;
}

.gallery-arrow svg {
    width: 20px;
    height: 20px;
    fill: var(--text-dark);
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb.active {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Stats */
.stats-section {
    background: var(--bg-white);
    padding: 20px 0 0 0;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    text-align: center;
}

.stat-item {
    background: var(--bg-white);
    padding: 50px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), #f4c542);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.stat-item:hover::before {
    transform: translateX(0);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 48px;
    font-weight: 200;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: block;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Project Details */
.details-section {
    padding: 120px 0;
}

.details-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: start;
}

.details-text h2 {
    font-size: 56px;
    font-weight: 200;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.details-text p {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.7;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 400;
}

/* Secondary Gallery */
.secondary-gallery {
    padding: 80px 0;
    background: var(--bg-light);
}

.secondary-gallery h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 200;
    color: var(--text-dark);
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.image-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(20%);
}

.image-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-item:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 18px;
    font-weight: 300;
    text-align: center;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .details-content {
        gap: 60px;
    }

    .gallery-main img,
    .gallery-slider-container {
        height: 400px;
    }

    .gallery-thumb {
        width: 100px;
        height: 70px;
    }
}

@media (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-section {
        height: 70vh;
        background-attachment: scroll; /* Fixed attachment doesn't work well on mobile */
    }

    .hero-overlay {
        padding-left: 30px;
        padding-right: 30px;
    }

    .hero-title-banner {
        max-width: 100%;
        padding: 20px 25px;
    }

    .hero-main-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .gallery-main img,
    .gallery-slider-container {
        height: 300px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
    }

    .gallery-arrow.prev {
        left: 10px;
    }

    .gallery-arrow.next {
        right: 10px;
    }

    .gallery-thumb {
        width: 80px;
        height: 60px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .details-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .details-text h2 {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 30px 20px;
    }

    .details-section {
        padding: 80px 0;
    }

    .hero-section {
        height: 60vh;
        background-attachment: scroll; /* Fixed attachment doesn't work well on mobile */
    }

    .hero-overlay {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-title-banner {
        padding: 15px 20px;
    }

    .hero-main-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .gallery-main img,
    .gallery-slider-container {
        height: 250px;
    }

    .gallery-thumbnails {
        gap: 8px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Projects Grid Shortcode Styles */
.efyuar-projects-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

/* Grid columns based on data attribute */
.efyuar-projects-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.efyuar-projects-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.efyuar-projects-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.efyuar-projects-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Project Card */
.project-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Project Image */
.project-image-link {
    display: block;
    text-decoration: none;
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

/* Project Button */
.project-button {
    background: #000000 !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.project-button:hover {
    background: #333333 !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.project-button:visited,
.project-button:focus,
.project-button:active {
    color: white !important;
    text-decoration: none;
}

/* Project Content */
.project-content {
    padding: 24px;
}

.project-title-link {
    text-decoration: none;
    color: inherit;
}

.project-title-link:hover {
    text-decoration: none;
    color: var(--primary-gold);
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-location {
    font-size: 14px;
    color: var(--text-medium);
    margin: 0;
    display: flex;
    align-items: center;
    flex: 1;
}

.project-location:before {
    content: "📍";
    margin-right: 6px;
}

.project-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design for Projects Grid */
@media (max-width: 1200px) {
    .efyuar-projects-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .efyuar-projects-grid {
        gap: 20px;
        margin: 30px 0;
    }
    
    .efyuar-projects-grid[data-columns="3"],
    .efyuar-projects-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .efyuar-projects-grid[data-columns="2"],
    .efyuar-projects-grid[data-columns="3"],
    .efyuar-projects-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
    
    .efyuar-projects-grid {
        gap: 15px;
        margin: 20px 0;
    }
    
    .project-content {
        padding: 16px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    .project-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .project-button {
        padding: 10px 20px;
        font-size: 12px;
        align-self: flex-start;
    }
} 