/* ==========================================================================
   WEBGUIDE HOMEPAGE - ÖZEL STİLLER
   ========================================================================== */

.webguide-home-container {
    padding-top: 1rem; 
    padding-bottom: 4rem;
    overflow-x: hidden; 
}

/* ==========================================================================
   1. HERO SECTION (GİRİŞ BÖLÜMÜ)
   ========================================================================== */
.hero-section {
    text-align: center;
    max-width: 900px; 
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto; 
    margin-top: 2rem;
    margin-bottom: 6rem; /* Bölümler arası boşluk */
}

/* --- Hero Typography --- */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--clr-secondary);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

/* --- Typewriter Effect --- */
.hero-typewriter {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--clr-primary); 
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: monospace, var(--font-main);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--clr-primary);
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-description {
    font-size: 1.1rem;
    color: var(--clr-text-light);
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 3rem;
}

/* --- Hero Buttons --- */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Hero Badge --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 99px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: var(--clr-secondary);
    font-weight: 600;
}

.badge-icon { font-size: 1.2rem; }


/* ==========================================================================
   2. LOGO SLIDER (MARQUEE)
   ========================================================================== */
.logo-slider-wrapper {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.logo-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
    display: flex;
    width: calc(200px * 12); 
    animation: scroll 30s linear infinite;
    gap: 4rem;
}

.slide {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
}

.slide img {
    width: 100%;
    height: auto;
    max-width: 120px;
    filter: grayscale(100%) sepia(100%) hue-rotate(320deg) saturate(500%) brightness(0.95);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.slide img:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6 - 24rem)); } 
}


/* ==========================================================================
   3. SERVICES SECTION (BENTO GRID - ASİMETRİK TASARIM)
   ========================================================================== */
.services-section {
    margin-bottom: 8rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem auto;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-primary);
    background-color: var(--clr-primary-light);
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-secondary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}

/* --- Asimetrik Grid Yapısı --- */
.services-grid {
    display: grid;
    /* Container'ı 4 eşit parçaya bölüyoruz */
    grid-template-columns: repeat(4, 1fr); 
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Kart Tasarımı --- */
.service-card {
    background-color: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1 / 1; 
    height: 100%;
    
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* --- Grid Yerleşimi (Bento Layout) --- */
.service-card:nth-child(1) { grid-column: span 2; background: linear-gradient(135deg, #fff, #fff7ed); aspect-ratio: 2 / 1; }
.service-card:nth-child(2) { grid-column: span 1; background: linear-gradient(135deg, #fff, #eff6ff); }
.service-card:nth-child(3) { grid-column: span 1; background: linear-gradient(135deg, #fff, #f5f3ff); }
.service-card:nth-child(4) { grid-column: span 1; background: linear-gradient(135deg, #fff, #ecfdf5); }
.service-card:nth-child(5) { grid-column: span 1; background: linear-gradient(135deg, #fff, #fdf2f8); }
.service-card:nth-child(6) { grid-column: span 2; background: linear-gradient(135deg, #fff, #fefce8); aspect-ratio: 2 / 1; }

/* --- Kart Efektleri --- */
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--clr-primary);
    background: #fff;
    z-index: 2;
}

/* --- İkon Kutusu --- */
.card-icon-wrapper {
    width: 72px;
    height: 72px;
    background-color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--clr-primary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.service-card:hover .card-icon-wrapper {
    background-color: var(--clr-primary);
    color: #fff;
    transform: rotateY(180deg);
    box-shadow: 0 10px 15px rgba(255, 87, 34, 0.3);
}

.card-icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

/* --- Başlık ve Metin --- */
.service-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--clr-secondary);
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   4. PROCESS SECTION (SÜREÇ ADIMLARI)
   ========================================================================== */
.process-section {
    margin-bottom: 8rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Process Card */
.process-card {
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    opacity: 0;
    animation: step-fade-up 0.6s ease-out forwards;
}

.process-card:nth-child(1) { animation-delay: 0.1s; }
.process-card:nth-child(2) { animation-delay: 0.3s; }
.process-card:nth-child(3) { animation-delay: 0.5s; }
.process-card:nth-child(4) { animation-delay: 0.7s; }

@keyframes step-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Akış Okları (Arrows) --- */
.process-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 12px;
    height: 12px;
    border-right: 3px solid var(--clr-primary-light);
    border-bottom: 3px solid var(--clr-primary-light);
    z-index: 1;
    animation: arrow-pulse-right 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes arrow-pulse-right {
    0%, 100% { transform: translateY(-50%) rotate(-45deg) translateX(0); border-color: var(--clr-primary-light); }
    50% { transform: translateY(-50%) rotate(-45deg) translateX(5px); border-color: var(--clr-primary); }
}

.process-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--clr-primary);
    background-color: var(--clr-primary-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.process-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--clr-secondary);
    margin-bottom: 1rem;
}

.process-card p {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.6;
    margin: 0;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.08);
    border-color: var(--clr-primary);
}

.process-card:hover .process-number {
    background-color: var(--clr-primary);
    color: #fff;
    transform: scale(1.1) rotate(10deg);
}

.process-card.highlight-card {
    background: linear-gradient(135deg, #fff7ed, #fff);
    border-color: var(--clr-primary);
}


/* ==========================================================================
   5. WHY US SECTION (YENİ - NEDEN BİZ?)
   ========================================================================== */
.why-us-section {
    margin-bottom: 8rem;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Eşit Kolon */
    gap: 4rem;
    align-items: center;
}

/* --- Sol Taraf: Görsel --- */
.why-us-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.why-us-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.why-us-image:hover img {
    transform: scale(1.03);
}

.image-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--clr-primary-light);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

/* --- Sağ Taraf: Accordion --- */
.why-us-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accordion-item {
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: var(--clr-primary);
    box-shadow: 0 10px 20px -5px rgba(255, 87, 34, 0.1);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--clr-surface);
    color: var(--clr-primary);
    border-radius: 8px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.accordion-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-secondary);
    margin: 0;
    flex-grow: 1;
}

.accordion-toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--clr-text-light);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-toggle-icon {
    transform: rotate(45deg); /* + işaretini x yap */
    color: var(--clr-primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    padding-bottom: 1.5rem;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease 0.1s;
}

.accordion-content p {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.6;
    margin: 0;
}


/* ==========================================================================
   RESPONSIVE (MOBİL VE TABLET UYUMLULUĞU)
   ========================================================================== */

/* --- Tablet (1024px Altı) --- */
@media (max-width: 1024px) {
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card:nth-child(1),
    .service-card:nth-child(6) {
        grid-column: span 2;
    }
    .service-card {
        aspect-ratio: auto;
        padding: 3rem 2rem;
    }

    /* Process Grid */
    .process-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 3rem;
    }
    .process-card:not(:last-child)::after {
        display: none; 
    }

    /* Why Us Grid */
    .why-us-grid {
        grid-template-columns: 1fr; /* Alt alta */
        gap: 3rem;
    }
    .why-us-image {
        order: -1; /* Görsel üstte kalsın */
    }
}

/* --- Mobil (768px Altı) --- */
@media (max-width: 768px) {
    .webguide-home-container { padding-top: 0; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-typewriter { font-size: 1.2rem; min-height: auto; flex-direction: column; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 1rem; margin-bottom: 3rem; }
    .btn { width: 100%; justify-content: center; }

    .section-title {
        font-size: 2rem;
    }

    /* Services Mobil */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .service-card:nth-child(n) {
        grid-column: span 1;
        aspect-ratio: auto;
    }

    /* Process Mobil */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-card:not(:last-child)::after {
        display: block;
        right: auto;
        left: 50%;
        top: auto;
        bottom: -2rem;
        transform: translateX(-50%) rotate(45deg);
        animation: arrow-pulse-down 2s infinite ease-in-out;
    }

    @keyframes arrow-pulse-down {
        0%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0); border-color: var(--clr-primary-light); }
        50% { transform: translateX(-50%) rotate(45deg) translateY(5px); border-color: var(--clr-primary); }
    }
}