/* --- Homepage Premium Overhaul Styles --- */

/* Global Tweaks */
:root {
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --hover-transform: translateY(-5px);
}

/* Dark mode overrides for homepage */
body.dark-mode {
    --primary-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    padding-left: 40px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

/* 1. Stats Section */
.stats-section {
    background: var(--bg-primary);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    height: 60px;
    width: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    margin-inline: auto;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 2. Detail Sections */
.detail-section {
    padding: 7rem 0;
    overflow: hidden;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.detail-section.alt-bg {
    background: var(--bg-secondary);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.detail-text h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.detail-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.feature-list {
    margin-top: 2.5rem;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.feature-text p {
    color: var(--text-secondary);
}

.detail-img {
    position: relative;
    z-index: 1;
}

.detail-img img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.detail-img:hover img {
    transform: scale(1.02);
}

.detail-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    opacity: 0.2;
}

.img-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: #1e293b;
    z-index: 2;
    border-left: 5px solid var(--secondary-color);
}

.img-badge i {
    color: #22c55e;
    font-size: 1.5rem;
}

/* 3. Colorful Services Grid */
.colorful-grid-section {
    padding: 0;
}

.colorful-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.colorful-card {
    height: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
}

.colorful-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: -2;
}

.colorful-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    z-index: -1;
    transition: opacity 0.3s;
}

.card-content {
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.card-content i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-content span {
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Playfair Display', serif;
}

/* Hover Effects */
.colorful-card:hover .card-content {
    transform: translateY(-10px);
}

.colorful-card:hover::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
}

/* Gradients for Cards */
.card-1 {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5D5D 100%);
}

/* Web Tasarım - Coral/Red */
.card-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Wordpress - Cyan/Blue */
.card-3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Yazılım - Purple/Blue */
.card-4 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Özel - Pink/Orange */
.card-5 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

/* E-Ticaret - Mint/Blue */
.card-6 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* SEO - Pink/Yellow */
.card-7 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Sosyal - Teal/Purple */
.card-8 {
    background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%);
}

/* AdWords - Purple/Pink */

/* Custom Overrides for specific Premium Look */
.card-1 {
    background: linear-gradient(135deg, #101828 0%, #2f4060 100%);
}

.card-2 {
    background: linear-gradient(135deg, #0e2a47 0%, #1e5a8f 100%);
}

.card-3 {
    background: linear-gradient(135deg, #2d1b4e 0%, #5b3a94 100%);
}

.card-4 {
    background: linear-gradient(135deg, #4c0519 0%, #9f1239 100%);
}

.card-5 {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
}

.card-6 {
    background: linear-gradient(135deg, #713f12 0%, #ca8a04 100%);
}

.card-7 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.card-8 {
    background: linear-gradient(135deg, #701a75 0%, #c026d3 100%);
}

/* 4. Analysis & Map */
.analysis-section {
    padding: 7rem 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: background 0.3s ease;
}

.analysis-grid.reverse {
    margin-bottom: 0;
}

.analysis-grid.reverse .analysis-text {
    order: 2;
}

.analysis-grid.reverse .analysis-img {
    order: 1;
}

.analysis-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.analysis-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.05rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.check-list li:last-child {
    border-bottom: none;
}

.check-list li:hover {
    padding-left: 10px;
    color: var(--text-primary);
}

.check-list li i {
    color: #22c55e;
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-img {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.analysis-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 15px;
}

.analysis-img:hover img {
    transform: scale(1.05);
}

.map-section iframe {
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.map-section:hover iframe {
    filter: grayscale(0%);
}


/* Responsive */
@media (max-width: 992px) {
    .colorful-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .analysis-grid.reverse .analysis-text,
    .analysis-grid.reverse .analysis-img {
        order: unset;
    }

    .section-subtitle {
        padding-left: 0;
    }

    .section-subtitle::before {
        display: none;
    }

    .detail-grid .feature-list li {
        text-align: left;
    }

    .img-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 80%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .colorful-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional dark mode support */
.section-title h2 {
    color: var(--text-primary);
}

.section-title p {
    color: var(--text-secondary);
}

/* References section dark mode */
.references-section {
    background: var(--bg-secondary) !important;
    transition: background 0.3s ease;
}

body.dark-mode .references-section img {
    filter: brightness(0.9) grayscale(50%);
}

body.dark-mode .references-section img:hover {
    filter: brightness(1) grayscale(0%);
}