/* Modern Testimonials Section Styles */
#testimonials2 {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* Container and Layout */
.testimonials-modern-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Modern Card Design */
.testimonial-modern-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image Wrapper with Quote Icon */
.testimonial-image-wrapper {
    position: relative;
    display: inline-block;
}

.testimonial-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Content Styling */
.testimonial-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid #667eea;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
    padding: 20px;
    margin: 0;
}

.testimonial-author {
    margin-top: 15px;
}

.author-name {
    font-weight: 700;
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.author-title {
    font-size: 0.95rem;
    color: #777;
    font-weight: 500;
}

/* Owl Carousel Modern Styling */
.testimonials-carousel.owl-carousel {
    position: relative;
}

/* Navigation Arrows */
.testimonials-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
}

.testimonials-carousel .owl-nav button {
    position: absolute;
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    outline: none;
}

.testimonials-carousel .owl-nav button:hover {
    background: #667eea;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.testimonials-carousel .owl-nav .owl-prev {
    left: -70px;
}

.testimonials-carousel .owl-nav .owl-next {
    right: -70px;
}

.testimonials-carousel .owl-nav button span {
    font-size: 20px;
}

/* Dots Styling */
.testimonials-carousel .owl-dots {
    text-align: center;
    margin-top: 40px;
}

.testimonials-carousel .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonials-carousel .owl-dots .owl-dot.active,
.testimonials-carousel .owl-dots .owl-dot:hover {
    background: #667eea;
    transform: scale(1.3);
}

.testimonials-carousel .owl-dots .owl-dot span {
    display: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .testimonial-modern-card {
        min-height: auto;
        padding: 30px 20px !important;
    }
    
    .testimonials-carousel .owl-nav .owl-prev,
    .testimonials-carousel .owl-nav .owl-next {
        display: none;
    }
    
    .testimonial-image {
        width: 100px;
        height: 100px;
    }
    
    .quote-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
        bottom: 5px;
        right: 5px;
    }
    
    .testimonial-quote {
        font-size: 1rem;
        padding: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .testimonial-modern-card {
        text-align: center;
        padding: 25px 15px !important;
    }
    
    .testimonial-quote {
        border-left: none;
        border-top: 4px solid #667eea;
        border-radius: 8px;
        background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
        padding: 20px 15px;
    }
    
    .testimonial-image {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .author-name {
        font-size: 1.1rem;
    }
    
    .author-title {
        font-size: 0.9rem;
    }
}

/* Animation on Load */
.testimonial-modern-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header Styling */
#testimonials2 h2 {
    position: relative;
    display: inline-block;
}

#testimonials2 h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Fix for any conflicting styles */
.testimonials-carousel * {
    box-sizing: border-box;
}

.testimonials-carousel .owl-stage-outer {
    overflow: visible;
}

.testimonials-carousel .owl-item {
    opacity: 1;
    backface-visibility: hidden;
}

/* Loading State */
.testimonials-carousel:not(.owl-loaded) {
    opacity: 0;
}

.testimonials-carousel.owl-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ==================== PREMIUM HEADER STYLING ==================== */

/* Premium Language Switcher with Black Divider */
.language-switcher-premium {
    position: relative;
    padding-right: 15px;
    margin-right: 15px;
    border-right: 1px solid #000000;
}

.lang-wrapper {
    position: relative;
    display: inline-block;
}

/* Square Container with Round Flags */
.lang-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px; /* Kare dış form */
    background: #ffffff !important; /* Beyaz arka plan - zorunlu */
    background-color: #ffffff !important; /* Ek garanti */
    border: 1px solid rgba(108, 117, 125, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-link:hover {
    border-color: #4CAF50;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.flag-img {
    width: 16px;
    height: 16px; /* Yuvarlak için eşit boyutlar */
    border-radius: 50%; /* Yuvarlak bayrak */
    object-fit: cover;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    background: #ffffff !important; /* Bayrak arka planı beyaz */
    background-color: #ffffff !important; /* Ek garanti */
    border: 1px solid rgba(255, 255, 255, 0.9); /* Beyaz border */
}

.lang-link:hover .flag-img {
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

/* Language Link Ripple Effect - Simplified */
.lang-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 6px;
    background: rgba(76, 175, 80, 0.1);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 1;
}

.lang-link:hover .lang-ripple {
    width: 26px;
    height: 26px;
}

/* ==================== SIMPLE NAV LINKS HOVER ==================== */

/* Simple Navigation Links with Underline */
.modern-nav .nav-link {
    position: relative;
    display: inline-block;
    padding: 8px 16px;
    color: #2d3748;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Simple Underline Effect */
.modern-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4CAF50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-nav .nav-link:hover {
    color: #4CAF50;
    text-decoration: none;
}

.modern-nav .nav-link:hover::after {
    width: 80%;
}

/* Active State */
.modern-nav .nav-link.active {
    color: #4CAF50;
    font-weight: 600;
}

.modern-nav .nav-link.active::after {
    width: 80%;
}

/* Mobile Navigation Simple */
.mobile-nav .nav-link {
    position: relative;
    padding: 12px 16px;
    color: #2d3748;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 3px 0;
    border-left: 3px solid transparent;
}

.mobile-nav .nav-link:hover {
    color: #4CAF50;
    border-left-color: #4CAF50;
    text-decoration: none;
}

.mobile-nav .nav-link.active {
    color: #4CAF50;
    border-left-color: #4CAF50;
}

/* Compact Social Media Styling */
.social-media-premium {
    position: relative;
}

.social-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 1px; /* Spacing between icons reduced */
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Reduced from 38px */
    height: 32px; /* Reduced from 38px */
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #4a5568;
    font-size: 14px; /* Reduced from 16px */
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* Slightly reduced shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1); /* Reduced scale from 1.15 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Reduced shadow */
    text-decoration: none;
}

/* LinkedIn Specific Styling */
.social-linkedin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.social-linkedin:hover {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    border-color: #0077b5;
    color: white;
    box-shadow: 0 12px 25px rgba(0, 119, 181, 0.4);
}

/* Instagram Specific Styling */
.social-instagram {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
    color: white;
    box-shadow: 0 12px 25px rgba(225, 48, 108, 0.4);
}

/* Medium Specific Styling */
.social-medium {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    color: white;
}

.social-medium:hover {
    background: linear-gradient(135deg, #12100e 0%, #2d2d2d 100%);
    border-color: #12100e;
    color: white;
    box-shadow: 0 12px 25px rgba(18, 16, 14, 0.4);
}

/* Social Ripple Effect */
.social-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 1;
}

.social-link:hover .social-ripple {
    width: 100px; /* Reduced from 120px */
    height: 100px; /* Reduced from 120px */
}

/* Icon Animation */
.social-link i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: rotate(360deg) scale(1.1);
}

/* Glow Effect for Premium Look */
.social-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-wrapper:hover::before {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .social-media-premium {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .language-switcher-premium {
        gap: 1px !important;
        padding-right: 10px;
        margin-right: 10px;
        border-right: 1px solid #000000;
    }
    
    .lang-link {
        width: 28px;
        height: 28px;
        background: #ffffff !important; /* Responsive beyaz arka plan */
        background-color: #ffffff !important;
    }
    
    .flag-img {
        width: 14px;
        height: 14px; /* Yuvarlak için eşit */
        background: #ffffff !important; /* Responsive bayrak arka planı */
        background-color: #ffffff !important;
    }
    
    /* Mobile Navigation Links Responsive */
    .modern-nav .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .language-switcher-premium {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }
    
    .lang-link {
        width: 26px;
        height: 26px;
        background: #ffffff !important; /* Mobile beyaz arka plan */
        background-color: #ffffff !important;
    }
    
    .flag-img {
        width: 12px;
        height: 12px; /* Yuvarlak için eşit */
        background: #ffffff !important; /* Mobile bayrak arka planı */
        background-color: #ffffff !important;
    }
    
    /* Mobile Navigation Compact */
    .modern-nav .nav-link {
        padding: 8px 14px;
        font-size: 14px;
        margin: 2px 0;
    }
}

/* Mobile Social Media Styling */
.mobile-social-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 15px -15px -15px -15px;
    padding: 20px 15px;
    border-radius: 0 0 15px 15px;
}

.mobile-social-section p {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mobile-social .social-link {
    width: 40px; /* Slightly reduced for mobile too */
    height: 40px;
    font-size: 16px;
}

.mobile-social .social-link:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Enhanced Mobile Menu */
.mobile-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    margin: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header Container Enhancement */
#header .header-row {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Smooth Header Transitions */
#header {
    transition: all 0.3s ease;
}

#header.header-effect-shrink {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Premium Loading Animation */
@keyframes socialPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.social-link:focus {
    animation: socialPulse 1.5s infinite;
    outline: none;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .lang-link {
        background: #ffffff !important; /* Dark mode'da da beyaz arka plan */
        background-color: #ffffff !important;
        color: #333333;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .lang-link:hover {
        background: #ffffff !important; /* Hover'da da beyaz arka plan */
        background-color: #ffffff !important;
        border-color: #4CAF50;
    }
    
    .flag-img {
        background: #ffffff !important; /* Dark mode'da bayrak arka planı */
        background-color: #ffffff !important;
    }
    
    .language-switcher-premium {
        border-right-color: black;
    }
    
    .modern-nav .nav-link {
        color: #e2e8f0;
    }
    
    .modern-nav .nav-link:hover {
        color: #4CAF50;
    }
}

/* ==================== HEADER OVERLAP FIX ==================== */

/* Fix Header Overlap Issue - Body Padding */
body {
    padding-top: 85px !important; /* Fixed header için gerekli padding */
}

/* Responsive Body Padding */
@media (max-width: 991px) {
    body {
        padding-top: 80px !important;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 75px !important;
    }
}

@media (max-width: 575px) {
    body {
        padding-top: 70px !important;
    }
}

/* Main Content Container Fix */
main {
    position: relative;
    z-index: 1;
}

/* Page Content Spacing */
.page-content {
    padding-top: 20px;
}

/* Blog and Contact Page Specific Fixes */
.blog-page main,
.contact-page main {
    margin-top: 20px;
}

/* Section Padding Adjustments */
.container:first-child {
    padding-top: 40px;
}

/* Header Height Variables for Dynamic Calculation */
:root {
    --header-height: 85px;
    --header-height-mobile: 70px;
}

/* Specific Page Fixes */
.contact-page .container,
.blog-page .container {
    margin-top: 30px;
}

/* Content Area Safe Zone */
.content-wrapper {
    min-height: calc(100vh - var(--header-height));
    padding-top: 20px;
}

/* Blog Post Specific Fixes */
.blog-post-content {
    margin-top: 30px;
}

/* Contact Form Specific Fixes */
.contact-form-section {
    margin-top: 30px;
} 

/* ===== POST DATE FIX ===== */

/* Blog Post Date Kutucuk Tasarımı */
.blog-posts .post-date {
    float: left !important;
    margin-right: 15px !important;
    margin-left: 0 !important; /* ms-0 override */
    margin-bottom: 15px !important;
    text-align: center;
    width: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.blog-posts .post-date .day {
    background: #f8f9fa !important;
    border-radius: 4px 4px 0 0 !important;
    color: #495057 !important;
    display: block;
    font-size: 24px !important;
    font-weight: 700 !important;
    padding: 12px 8px 8px !important;
    line-height: 1;
    margin: 0;
}

.blog-posts .post-date .month {
    background: #6c757d !important;
    border-radius: 0 0 4px 4px !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    padding: 6px 4px 8px !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    display: block;
}

/* Responsive için */
@media (max-width: 767px) {
    .blog-posts .post-date {
        float: none !important;
        margin: 0 auto 20px !important;
        display: table;
    }
}

/* Post content margin düzeltmesi */
.blog-posts .post-content {
    overflow: hidden; /* clearfix */
}

/* Post large için özel ayarlar */
.blog-posts article.post-large .post-date {
    margin-left: -75px !important; /* theme'in orijinal ayarını restore et */
    position: relative;
    z-index: 2;
}

/* Modern hover effect */
.blog-posts .post-date:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.blog-posts .post-date {
    transition: all 0.3s ease;
} 

/* ===== FONT PERFORMANCE OPTIMIZATION ===== */

/* Font Display Swap for better PageSpeed */
@font-face {
    font-family: 'Poppins';
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    font-display: swap;
}

@font-face {
    font-family: 'Shadows Into Light';
    font-display: swap;
}

/* Optimized Font Stacks */
body, 
.default-font,
.alternative-font-4,
p, 
input, 
textarea, 
button,
.btn {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
}

/* Heading optimization */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
}

/* Alternative font optimization */
.alternative-font {
    font-family: "Shadows Into Light", cursive, "Apple Color Emoji", "Segoe UI Emoji" !important;
}

/* Font rendering optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Font loading hints */
.font-loading {
    visibility: hidden;
}

.font-loaded .font-loading {
    visibility: visible;
} 