/* ===================================
   REFERANSLAR PAGE - PROFESSIONAL DESIGN
   =================================== */

/* ========== HERO ========== */
.ref-hero {
    position: relative;
    background: linear-gradient(135deg, #022a44 0%, #044E7C 40%, #066ba8 100%);
    padding: 160px 0 100px;
    overflow: hidden;
    color: #fff;
}

.ref-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.ref-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.ref-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ref-hero-title {
    font-family: 'Lora', serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.ref-hero-desc {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 40px;
}

.ref-hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 700px;
    margin: 0 auto;
}

.ref-hero-stat {
    text-align: center;
}

.ref-hero-stat-num {
    font-family: 'Lora', serif;
    font-size: 36px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.ref-hero-stat-plus {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.ref-hero-stat-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 6px;
    white-space: nowrap;
}

.ref-hero-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* ========== SECTION COMMONS ========== */
.ref-section-badge {
    display: inline-block;
    color: #044E7C;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    padding: 0 20px;
}

.ref-section-badge::before,
.ref-section-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #044E7C;
    opacity: 0.3;
}

.ref-section-badge::before {
    left: -20px;
}

.ref-section-badge::after {
    right: -20px;
}

.ref-section-title {
    font-family: 'Lora', serif;
    font-size: 40px;
    font-weight: 700;
    color: #0B111F;
    line-height: 1.3;
    margin-bottom: 16px;
}

.ref-accent {
    color: #044E7C;
    position: relative;
}

.ref-section-desc {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 17px;
    color: #666;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* ========== LOGOS GRID ========== */
.ref-logos-section {
    padding: 100px 0;
    background: #fff;
}

.ref-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.ref-logo-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eee;
}

.ref-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(4, 78, 124, 0.12);
    border-color: #044E7C;
}

.ref-logo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 15px;
}

.ref-logo-inner img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(40%) opacity(0.85);
    transition: all 0.4s ease;
}

.ref-logo-card:hover .ref-logo-inner img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* ========== STORIES ========== */
.ref-stories-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.ref-story-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    height: 100%;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.ref-story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #044E7C, #066ba8);
    transition: height 0.4s ease;
    border-radius: 0 0 4px 0;
}

.ref-story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(4, 78, 124, 0.15);
    border-color: rgba(4, 78, 124, 0.1);
}

.ref-story-card:hover::before {
    height: 100%;
}

.ref-story-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(4, 78, 124, 0.1), rgba(6, 107, 168, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #044E7C;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.ref-story-card:hover .ref-story-icon {
    background: linear-gradient(135deg, #044E7C, #066ba8);
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
}

.ref-story-category {
    display: inline-block;
    background: rgba(4, 78, 124, 0.08);
    color: #044E7C;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.ref-story-title {
    font-family: 'Lora', serif;
    font-size: 20px;
    font-weight: 700;
    color: #0B111F;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ref-story-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.ref-story-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #044E7C;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.ref-story-link:hover {
    color: #066ba8;
    gap: 12px;
}

/* ========== TESTIMONIALS ========== */
.ref-testimonials-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #f0f4f8 100%);
}

.ref-testimonials-carousel .ref-testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    margin: 10px 5px;
    transition: all 0.3s;
}

.ref-testimonials-carousel .ref-testimonial-card:hover {
    box-shadow: 0 12px 30px rgba(4, 78, 124, 0.1);
}

.ref-testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.ref-testimonial-stars i {
    color: #f4b740;
    font-size: 16px;
}

.ref-testimonial-text {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid rgba(4, 78, 124, 0.2);
}

.ref-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ref-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #044E7C, #066ba8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.ref-testimonial-name {
    font-weight: 700;
    color: #0B111F;
    font-size: 15px;
}

.ref-testimonial-position {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

/* ========== WHY US ========== */
.ref-why-section {
    padding: 100px 0;
    background: #fff;
}

.ref-why-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eee;
}

.ref-why-card:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(4, 78, 124, 0.1);
    border-color: rgba(4, 78, 124, 0.15);
}

.ref-why-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #044E7C, #066ba8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    transition: transform 0.3s;
}

.ref-why-card:hover .ref-why-icon {
    transform: scale(1.1) rotate(-5deg);
}

.ref-why-card h4 {
    font-family: 'Lora', serif;
    font-size: 18px;
    font-weight: 700;
    color: #0B111F;
    margin-bottom: 8px;
}

.ref-why-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ========== CTA ========== */
.ref-cta-section {
    padding: 80px 0 100px;
    background: #f8f9fa;
}

.ref-cta-box {
    background: linear-gradient(135deg, #022a44 0%, #044E7C 40%, #066ba8 100%);
    border-radius: 24px;
    padding: 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ref-cta-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.ref-cta-title {
    font-family: 'Lora', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ref-cta-desc {
    font-size: 17px;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

.ref-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #044E7C, #066ba8);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    margin-top: 24px;
}

.ref-cta-btn:hover {
    background: #fff;
    color: #044E7C;
    border-color: #044E7C;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 78, 124, 0.3);
}

.ref-cta-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #044E7C;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ref-cta-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #044E7C;
}

/* ========== GLOBAL REFERENCES CAROUSEL (Footer üstü) ========== */
.global-ref-carousel-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    overflow: hidden;
    position: relative;
}

.global-ref-carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(4, 78, 124, 0.15), transparent);
}

.global-ref-header {
    text-align: center;
    margin-bottom: 40px;
}

.global-ref-header .ref-section-badge {
    font-size: 12px;
    letter-spacing: 2px;
}

.global-ref-header h3 {
    font-family: 'Lora', serif;
    font-size: 28px;
    font-weight: 700;
    color: #0B111F;
    margin-bottom: 0;
}

.global-ref-header h3 span {
    color: #044E7C;
}

.global-ref-owl.owl-carousel .owl-item {
    padding: 8px;
}

.global-ref-owl .ref-carousel-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: 12px;
    transition: all 0.4s ease;
}

.global-ref-owl .ref-carousel-item:hover {
    border-color: #044E7C;
    box-shadow: 0 8px 25px rgba(4, 78, 124, 0.1);
    transform: translateY(-2px);
}

.global-ref-owl .ref-carousel-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(30%) opacity(0.8);
    transition: all 0.4s ease;
}

.global-ref-owl .ref-carousel-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.global-ref-owl .owl-nav {
    display: none;
}

.global-ref-owl .owl-dots {
    text-align: center;
    margin-top: 25px;
}

.global-ref-owl .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
    transition: all 0.3s;
}

.global-ref-owl .owl-dots .owl-dot.active span {
    background: #044E7C;
    width: 24px;
    border-radius: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .ref-hero {
        padding: 130px 0 70px;
    }
    
    .ref-hero-title {
        font-size: 38px;
    }
    
    .ref-hero-stats-row {
        gap: 20px;
        padding: 25px 20px;
    }
    
    .ref-hero-stat-num {
        font-size: 28px;
    }
    
    .ref-section-title {
        font-size: 32px;
    }
    
    .ref-logos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .ref-cta-box {
        padding: 40px;
        text-align: center;
    }
    
    .ref-cta-box .text-lg-end {
        text-align: center !important;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .ref-hero {
        padding: 120px 0 60px;
    }
    
    .ref-hero-title {
        font-size: 30px;
    }
    
    .ref-hero-desc {
        font-size: 16px;
    }
    
    .ref-hero-stats-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .ref-hero-stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .ref-section-title {
        font-size: 26px;
    }
    
    .ref-logos-section,
    .ref-stories-section,
    .ref-testimonials-section,
    .ref-why-section {
        padding: 60px 0;
    }
    
    .ref-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .ref-logo-inner {
        height: 80px;
        padding: 10px;
    }
    
    .ref-cta-box {
        padding: 30px 20px;
    }
    
    .ref-cta-title {
        font-size: 24px;
    }
}
