/* Base Styles */
:root {
    --gold: #D4AF37;
    --dark: #252525;
    --light: #f8f8f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* Header Styles */
header {
    background-color: var(--dark);
    color: var(--light);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light);
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--gold);
}

/* Hero Section */
.projects-hero {
    height: 400px;
background-image: linear-gradient(rgba(37, 37, 37, 0.7), rgba(37, 37, 37, 0.7)), url(https://www.kayaemlakyatirimdanismanlik.com.tr/resim/kaya.png);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
}

.projects-hero-content {
    max-width: 800px;
    padding: 0 1rem;
}

.projects-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.projects-hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    background-color: white;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
}

.breadcrumb ul li {
    font-size: 0.9rem;
    color: #777;
}

.breadcrumb ul li:not(:last-child):after {
    content: "/";
    margin: 0 0.5rem;
    color: #ccc;
}

.breadcrumb ul li a {
    color: #777;
    text-decoration: none;
}

.breadcrumb ul li a:hover {
    color: var(--gold);
}

/* Projects Filter */
.projects-filter {
    background-color: white;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.6rem 1.2rem;
    background: none;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab.active {
    background-color: var(--gold);
    color: white;
    border-color: var(--gold);
}

.filter-tab:hover:not(.active) {
    background-color: #f5f5f5;
}

.filter-dropdown select {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
}

/* Projects Section */
.projects-section {
    padding: 2rem 0 4rem;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 3rem;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card.featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-card.featured .project-image {
    height: 100%;
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--gold);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.project-content {
    padding: 1.5rem;
}

.project-developer {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-location {
    display: flex;
    align-items: center;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.project-detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: #777;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: bold;
}

.project-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 1.2rem;
}

.project-button {
    display: inline-block;
    background-color: var(--gold);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.project-button:hover {
    background-color: var(--dark);
}

.load-more {
    text-align: center;
    margin-top: 2rem;
}

.load-more-button {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--dark);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-button:hover {
    background-color: var(--gold);
    color: white;
}

/* Call to Action */
.project-cta {
    background-color: var(--dark);
    color: var(--light);
    padding: 4rem 1rem;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-button.primary {
    background-color: var(--gold);
    color: var(--dark);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.cta-button.primary:hover {
    background-color: #c9a227;
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 3rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3:after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--gold);
    margin-top: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
    max-width: 1200px;
    margin: 2rem auto 0;
}

/* Media Queries */
@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card.featured {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured .project-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: var(--dark);
        width: 100%;
        height: calc(100vh - 70px);
        transition: 0.3s;
        padding: 2rem;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-tabs {
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        padding-bottom: 10px;
    }
    
    .filter-dropdown {
        width: 100%;
    }
    
    .filter-dropdown select {
        width: 100%;
    }
    
    .projects-hero h1 {
        font-size: 2rem;
    }
    
    .projects-hero p {
        font-size: 1rem;
    }
    
    .cta-container h2 {
        font-size: 1.8rem;
    }
    
    .cta-container p {
        font-size: 1rem;
    }
}

@media (max-width: 580px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    .project-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .projects-hero {
        height: 300px;
    }
    
    .projects-hero h1 {
        font-size: 1.8rem;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.project-card:nth-child(2) {
    animation-delay: 0.1s;
}

.project-card:nth-child(3) {
    animation-delay: 0.2s;
}

.project-card:nth-child(4) {
    animation-delay: 0.3s;
}

.project-card:nth-child(5) {
    animation-delay: 0.4s;
}

.project-card:nth-child(6) {
    animation-delay: 0.5s;
}

.project-card:nth-child(7) {
    animation-delay: 0.6s;
}

.project-card:nth-child(8) {
    animation-delay: 0.7s;
}

/* Project Gallery Overlay for Featured Projects */
.project-card.featured .project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

/* Hover Effects */
.project-button {
    position: relative;
    overflow: hidden;
}

.project-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255,255,255,0.1);
    transition: width 0.3s ease;
}

.project-button:hover::after {
    width: 100%;
}

/* Status Badges */
.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.status-construction {
    background-color: #F29727;
    color: white;
}

.status-ready {
    background-color: #4CAF50;
    color: white;
}

.status-planning {
    background-color: #2196F3;
    color: white;
}

/* Project Details Tooltip */
.project-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    width: 18px;
    height: 18px;
    background-color: #eee;
    color: #777;
    border-radius: 50%;
    font-size: 0.7rem;
    line-height: 18px;
    text-align: center;
    cursor: help;
}

.project-tooltip::before {
    content: "i";
    font-style: italic;
    font-weight: bold;
}

.project-tooltip .tooltip-content {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark);
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: normal;
    line-height: 1.4;
}

.project-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Featured Tag */
.featured-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--gold);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 2;
}

.featured-tag span {
    transform: rotate(45deg) translate(0, -10px);
}

/* Additional Details for Featured Projects */
.project-card.featured .project-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.project-amenity {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
    margin-right: 15px;
}

.project-amenity::before {
    content: "✓";
    color: var(--gold);
    margin-right: 5px;
    font-weight: bold;
}

/* Project Progress Bar */
.project-progress {
    margin-bottom: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #777;
}

.progress-bar {
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress-value {
    height: 100%;
    background-color: var(--gold);
    border-radius: 3px;
}

/* Favorite/Bookmark Button */
.project-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3;
}

.project-favorite:hover {
    background-color: white;
}

.project-favorite.active {
    color: #e74c3c;
}