/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* MÜŞTERİ RENK PALETİ (ZORUNLU) */
    --main-bg: hsla(204, 100%, 96%, 1);
    --second-bg: hsla(204, 100%, 90%, 1);
    --accent: hsla(196, 100%, 45%, 1);
    --title: hsla(196, 100%, 15%, 1);
    --text: hsla(196, 100%, 10%, 1);
    --main-text: #065c59;
    --second-text: #207983;

    /* TECH VIBE VARIABLES */
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.9);
    --tech-grid-color: rgba(6, 92, 89, 0.05); /* Arka plan ızgara rengi */
    --shadow-soft: 0 10px 30px -10px rgba(6, 92, 89, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(6, 92, 89, 0.2);

    /* FONTS */
    --font-body: "Inter", sans-serif;
    --font-heading:
        "Inter", sans-serif; /* Okunabilirlik için Inter, istenirse Orbitron eklenebilir */
}

/* Base Settings */
.ai-wrapper {
    font-family: var(--font-body);
    background-color: var(--main-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.ai-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2%;
    position: relative;
    z-index: 2;
}

.ai-section {
    padding: 80px 0;
    position: relative;
}

.ai-bg-alt {
    background-color: var(--second-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* =========================================
   2. TECHNICAL BACKGROUND (GRID)
   ========================================= */
/* Tüm sayfaya yayılan milimetrik grafik kağıdı deseni */
.ai-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--tech-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--tech-grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.ai-hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-badge-pulse {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    color: var(--main-text);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--second-text);
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(6, 92, 89, 0.1);
    position: relative;
    z-index: 2;
}

.ai-badge-pulse::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.ai-main-title {
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--title);
    letter-spacing: -1px;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--main-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-hero-desc {
    font-size: 1.25rem;
    color: var(--second-text);
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

.ai-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* =========================================
   4. BUTTONS
   ========================================= */
/* Butonları kapsayan alan (Ortalamak için) */
.ai-hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Buton Genel Stili */
.btn-ai {
    display: inline-flex; /* İçindeki yazıyı ortalamak için flex */
    align-items: center; /* Dikey orta */
    justify-content: center; /* Yatay orta */
    width: auto; /* SADECE İÇERİK KADAR GENİŞLE */
    min-width: 170px; /* Ama çok da küçük olmasın, standart dursun */
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Yazının alt satıra kaymasını engelle */
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.3);
    border: 2px solid transparent; /* Outline butonla aynı yükseklikte olması için */
}

.btn-primary:hover {
    background: var(--main-text);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 92, 89, 0.3);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}
/* =========================================
   5. STATS BAR (Digital Dashboard)
   ========================================= */
.ai-stats-bar {
    background: var(--white);
    border-top: 1px solid rgba(6, 92, 89, 0.1);
    border-bottom: 1px solid rgba(6, 92, 89, 0.1);
    padding: 40px 0;
    margin-bottom: 0;
}

.ai-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main-text);
    font-family: var(--font-heading);
}

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

/* =========================================
   6. SERVICES GRID (Cards)
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--title);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--second-text);
    font-size: 1.1rem;
}

.ai-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ai-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
}

.ai-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

/* Kartın üzerindeki renkli çizgi (Scanner efekti) */
.ai-card-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ai-card:hover .ai-card-top-line {
    transform: scaleX(1);
}

.ai-icon-box {
    width: 60px;
    height: 60px;
    background: var(--main-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent);
    transition: 0.3s;
}

.ai-card:hover .ai-icon-box {
    background: var(--accent);
    color: var(--white);
}

.ai-icon-box svg {
    width: 30px;
    height: 30px;
}

.ai-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--title);
    font-weight: 700;
}

.ai-card p {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.ai-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-features-list li {
    padding-left: 15px;
    position: relative;
    color: var(--second-text);
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.ai-features-list li::before {
    content: "›";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
    top: 0;
}

/* =========================================
   7. WHY US SECTION & ANIMATIONS
   ========================================= */
.ai-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-sub-badge {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.ai-section-title {
    font-size: 2.5rem;
    color: var(--title);
    margin-bottom: 20px;
    font-weight: 800;
}

.ai-section-desc {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.ai-feature-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.ai-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-text);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.ai-feature-icon svg {
    width: 24px;
    height: 24px;
}

.ai-feature-text h4 {
    color: var(--title);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.ai-feature-text p {
    color: var(--text);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* -- Visual Animations -- */
.ai-abstract-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.9),
        transparent 70%
    );
}

.ai-abstract-visual .circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(32, 121, 131, 0.2);
}

.ai-abstract-visual .c1 {
    width: 320px;
    height: 320px;
    border-style: dashed;
    animation: spin 30s linear infinite;
}

.ai-abstract-visual .c2 {
    width: 220px;
    height: 220px;
    background: rgba(32, 121, 131, 0.05);
    border: none;
}

.card-float {
    background: var(--white);
    padding: 20px 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 2;
    text-align: center;
    border-left: 4px solid var(--accent);
    animation: float 6s ease-in-out infinite;
}

.card-float span {
    display: block;
    font-size: 0.9rem;
    color: var(--second-text);
    margin-bottom: 5px;
}
.card-float strong {
    display: block;
    font-size: 2.2rem;
    color: var(--main-text);
    font-weight: 800;
}

/* =========================================
   8. INDUSTRIES SECTION
   ========================================= */
.ai-industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.industry-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.industry-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.ind-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}
.industry-card h4 {
    color: var(--title);
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}
.industry-card p {
    font-size: 0.95rem;
    color: var(--text);
    opacity: 0.8;
}

/* =========================================
   9. TECH STACK
   ========================================= */
.ai-tech-stack {
    padding: 50px 0;
    background: var(--main-text); /* Koyu Arka Plan */
    text-align: center;
}

.stack-title {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.stack-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ai-tech-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.ai-tech-badge:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* =========================================
   10. PROCESS SECTION
   ========================================= */
.ai-process-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(6, 92, 89, 0.1);
    margin-bottom: -20px;
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
}

.process-step h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    color: var(--title);
    font-weight: 700;
}

.process-step p {
    color: var(--second-text);
    font-size: 0.95rem;
}

.process-line {
    flex: 0.5;
    height: 2px;
    background: rgba(32, 121, 131, 0.2);
    margin-top: 45px;
}

/* =========================================
   11. FAQ SECTION
   ========================================= */
.ai-faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.faq-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--second-text);
    box-shadow: var(--shadow-soft);
}

.faq-item h4 {
    color: var(--title);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.faq-item p {
    color: var(--text);
    font-size: 1rem;
    opacity: 0.85;
    margin: 0;
}

/* =========================================
   12. CTA SECTION
   ========================================= */
.ai-cta-section {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(120deg, var(--main-text), var(--second-text));
    border-radius: 20px;
    padding: 70px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 800;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    font-size: 1.2rem;
}

.btn-white {
    background: var(--white);
    color: var(--main-text);
    padding: 18px 40px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-white:hover {
    background: var(--main-bg);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.faq-section {
    padding: 80px 0 ;
}

/* =========================================
   13. ANIMATIONS (Keyframes)
   ========================================= */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 173, 181, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 173, 181, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 173, 181, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* =========================================
   14. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .ai-main-title {
        font-size: 3rem;
    }
    .ai-why-grid {
        grid-template-columns: 1fr;
    }
    .ai-why-image {
        display: none;
    } /* Tablette görseli gizle veya alta al */
    .process-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .ai-hero {
        padding: 120px 0 80px;
    }
    .ai-main-title {
        font-size: 2.2rem;
    }
    .ai-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .stat-item {
        border-right: none;
    }
    .ai-process-wrapper {
        flex-direction: column;
    }
    .process-step {
        margin-bottom: 40px;
    }
    .cta-box {
        padding: 40px 20px;
    }
    .cta-box h2 {
        font-size: 1.8rem;
    }
}
