/* ========================================
   GAYRİMENKUL WEBSİTESİ - MODERN LÜKS TASARIM
   Renk Paleti: Beyaz (#FFFFFF) - Kırmızı (#C41E3A)
   ======================================== */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C41E3A;
    --primary-red-dark: #A01830;
    --primary-red-light: #E31837;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #F5F5F5;
    --gold: #D4AF37;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-medium);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-red);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   HERO BANNER
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.8), rgba(26, 26, 26, 0.7)),
                url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?w=1920&h=1080&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.hero-title .changing-text {
    color: var(--white);
    position: relative;
    min-width: 180px;
    text-align: center;
    display: inline-block;
    font-size: inherit;
    font-weight: inherit;
    overflow: visible;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Arama Kutusu */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-box.expanded {
    border-radius: 20px;
    padding: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--gray-medium);
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--gray-dark);
    outline: none;
}

.search-input::placeholder {
    color: var(--gray-medium);
    font-style: italic;
}

.search-filters {
    display: none;
    gap: 10px;
    width: 100%;
}

.search-box.expanded .search-filters {
    display: flex;
}

.filter-group {
    flex: 1;
    position: relative;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--gray-dark);
    background: var(--white);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary-red);
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: var(--white);
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

/* ========================================
   SON EKLENEN İLANLAR
   ======================================== */
.properties {
    background: var(--gray-light);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.property-content {
    padding: 25px;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.property-status {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(196, 30, 58, 0.1);
    color: var(--primary-red);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-medium);
    font-size: 0.95rem;
}

.property-location svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   DANIŞMANLARIMIZ
   ======================================== */
.agents {
    background: var(--white);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.agent-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.agent-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--gray-light);
    transition: var(--transition);
}

.agent-card:hover .agent-image {
    border-color: var(--primary-red);
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
}

.agent-title {
    color: var(--primary-red);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.agent-contact {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.agent-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.agent-btn:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* ========================================
   SAYAÇ BÖLÜMÜ
   ======================================== */
.counter-section {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    padding: 60px 0;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.counter-item {
    color: var(--white);
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.counter-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
    background: var(--gray-light);
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
}

.testimonials-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    min-width: 350px;
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    color: var(--gold);
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-info h4 {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 3px;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

/* ========================================
   İLETİŞİM
   ======================================== */
.contact {
    background: var(--white);
    overflow-x: hidden;
    max-width: 100vw;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    max-width: 100%;
    overflow: hidden;
}

.contact-info {
    padding: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(196, 30, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--gray-medium);
    line-height: 1.6;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
    width: 100%;
    max-width: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    max-width: 100%;
    display: block;
}

/* Mobilde harita taşma engelleme */
@media (max-width: 768px) {
    .contact .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .contact-grid {
        width: 100%;
        max-width: 100%;
    }
    
    .contact-map {
        height: 380px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 15px;
        max-width: calc(100vw - 30px);
    }
    
    .contact-map iframe {
        width: 100%;
        max-width: 100%;
        position: relative;
        left: 0;
        display: block;
    }
    
    .contact-info {
        padding: 15px 5px;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-red);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========================================
   ANIMASYONLAR
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
        width: 100%;
    }
    
    .contact-map {
        height: 350px;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .contact-grid {
        width: 100%;
        max-width: 100%;
    }
    
    .contact-map {
        height: 380px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 15px;
        max-width: calc(100vw - 30px);
    }
    
    .contact-map iframe {
        width: 100%;
        max-width: 100%;
        position: relative;
        left: 0;
        display: block;
    }
    
    .contact-info {
        padding: 15px 5px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .search-box.expanded {
        padding: 15px;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .agents-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .testimonial-card {
        min-width: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 50px 0;
    }
}