/* Hero Section with Slider */
.hero {
    margin-top: 80px;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* Varsayılan gradient'lar (resim yoksa) */
.slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Resim overlay için dark overlay */
.slide-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.slide-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 20px;
    border: 2px solid white;
    transition: all 0.3s;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
    pointer-events: none;
    /* Ana container'a tıklanmasın */
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    /* Sadece butonlar tıklanabilir */
}

.slider-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Quick Services Preview */
.quick-services {
    padding: 4rem 0;
    background: #f8f9fa;
}

.services-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-preview {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-preview h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-preview a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    display: inline-block;
    transition: color 0.3s;
}

.service-preview a:hover {
    color: #2980b9;
}

/* About Preview Section */
.about-preview {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.learn-more {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-block;
}

.learn-more:hover {
    background: #2980b9;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat h3 {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: bold;
}

/* References Preview Section */
.references-preview {
    padding: 4rem 0;
    background: #f8f9fa;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.reference-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.reference-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.reference-card .content {
    padding: 1.5rem;
}

.reference-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.reference-card p {
    color: #666;
}

/* Responsive Design for Home */
@media (max-width: 768px) {
    .hero {
        height: 400px;
        margin-top: 60px;
        /* Header'ın yüksekliğini azalt */
    }

    .slide-content {
        padding: 0 15px;
        max-width: 90%;
    }

    .slide-content h2 {
        font-size: 1.8rem;
        /* Daha küçük başlık */
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .slide-content p {
        font-size: 1rem;
        /* Daha küçük metin */
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 15px;
    }

    /* Slider Navigation - Mobilde küçült */
    .slider-nav {
        padding: 0 10px;
    }

    .slider-nav button {
        font-size: 1.2rem;
        padding: 8px 12px;
        min-width: 35px;
    }

    /* Dots - Mobilde küçült */
    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    /* About Content - Mobilde tek kolon */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Stats - Mobilde yatay düzen */
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
    }

    .stat {
        flex: 1;
        padding: 1rem;
        margin: 0;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .stat p {
        font-size: 0.9rem;
    }

    /* Services - Mobilde daha küçük gap */
    .services-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-preview {
        padding: 1.5rem;
    }

    /* References - Mobilde tek kolon */
    .references-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Sections - Mobilde daha az padding */
    .quick-services,
    .about-preview,
    .references-preview {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .slider-nav button {
        font-size: 1rem;
        padding: 6px 10px;
        min-width: 30px;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat h3 {
        font-size: 1.5rem;
    }
}

/* Loading animation for images */
.slide img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.slide img.loaded {
    opacity: 1;
}

/* Fallback for broken images */
.slide {
    background-color: #667eea;
}