/* ========================================
   GLOBAL HERO SECTION - CORE STYLES
   ========================================
   Mobile-first, performance optimized
   ======================================== */

/* CSS Variables for Hero System */
:root {
    --hero-primary-color: #1A374D;
    --hero-secondary-color: #406882;
    --hero-accent-color: #f38a6a;
    --hero-text-dark: #2C3E50;
    --hero-text-light: #6C757D;
    --hero-bg-light: #F8F9FA;
    --hero-shadow-soft: 0 20px 40px rgba(26, 55, 77, 0.15);
    --hero-shadow-medium: 0 8px 16px rgba(26, 55, 77, 0.1);
    --hero-transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Hero Container */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 44px 0 60px 0;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 50%, #F8F9FA 100%);
}

/* Hero Background Layers - Çok açık mavi-gri gradyan */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(64, 104, 130, 0.03) 0%, rgba(26, 55, 77, 0.04) 100%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(26, 55, 77, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(243, 145, 137, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(64, 104, 130, 0.02) 0%, transparent 50%);
    z-index: 1;
}

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

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 600px;
}

/* Hero Content */
.hero-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--hero-primary-color);
    margin-bottom: 2rem; /* Düzenli dikey hiyerarşi için eşitlendi */
    letter-spacing: -0.02em;
}

.hero-subheading {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--hero-text-light);
    margin-bottom: 2rem; /* Başlık ile eşit */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA Container */
.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem; /* Subheading ile eşit */
    animation: fadeInUp 1.2s ease;
}

.hero-cta-primary,
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--hero-transition-smooth);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.hero-cta-primary {
    background: linear-gradient(135deg, var(--hero-accent-color) 0%, #e67e60 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(243, 138, 106, 0.3);
}

.hero-cta-primary:hover {
    background: linear-gradient(135deg, #e06b50 0%, #D35400 100%);
    transform: scale(1.05) translateY(-2px); /* Daha belirgin hover efekti */
    box-shadow: 0 12px 35px rgba(243, 145, 137, 0.4);
    color: white;
    text-decoration: none;
}

.hero-cta-secondary {
    background: transparent;
    color: var(--hero-primary-color);
    border: 2px solid var(--hero-primary-color);
}

.hero-cta-secondary:hover {
    background: var(--hero-primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 55, 77, 0.3);
    text-decoration: none;
}

/* Hero Features */
.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeInUp 1.4s ease;
}

.hero-feature {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: var(--hero-transition-smooth);
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.hero-feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.hero-feature-icon i {
    color: var(--hero-accent-color);
    font-size: 1.3rem;
}

.hero-feature-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--hero-text-dark);
}

/* Hero Visual */
.hero-visual {
    animation: fadeInRight 1s ease;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--hero-shadow-soft), var(--hero-shadow-medium);
    transition: var(--hero-transition-smooth);
    object-fit: cover;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 55, 77, 0.05) 0%, rgba(243, 145, 137, 0.02) 100%);
    border-radius: 20px;
    pointer-events: none;
}

/* Video Hero */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--hero-shadow-soft), var(--hero-shadow-medium);
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 55, 77, 0.1) 0%, rgba(243, 145, 137, 0.05) 100%);
    border-radius: 20px;
    pointer-events: none;
}

/* Carousel Hero */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--hero-shadow-soft), var(--hero-shadow-medium);
}

.hero-carousel-item {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-carousel-item:hover .hero-carousel-image {
    transform: scale(1.05);
}

/* ========================================
   BANNER CAROUSEL – PREMIUM OKLAR (Masaüstü + Mobil)
   ======================================== */

/* Buton alanı: arka plan yok, geniş tıklama alanı */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    background: none !important;
    border: none;
    border-radius: 0;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease, color 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 20px;
}

.hero-carousel .carousel-control-next {
    right: 20px;
}

/* Masaüstü: belirgin ok boyutu, fare gelmeden de net (opacity 0.8) */
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-image: none !important;
    background-color: transparent !important;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2.5rem;
}

.hero-carousel .carousel-control-prev-icon::before {
    content: "\f053";
}

.hero-carousel .carousel-control-next-icon::before {
    content: "\f054";
}

/* Banner üzerine gelince oklar tam görünür + hafif gölge */
.hero-carousel:hover .carousel-control-prev-icon,
.hero-carousel:hover .carousel-control-next-icon {
    opacity: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Oka tıklanınca/hover: kurumsal turuncu, tam görünür, gölge */
.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-carousel .carousel-control-prev:focus .carousel-control-prev-icon,
.hero-carousel .carousel-control-next:hover .carousel-control-next-icon,
.hero-carousel .carousel-control-next:focus .carousel-control-next-icon {
    color: #f38a6a;
    opacity: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ---- Mobil: minimal ok, kenara yakın, tıklama alanı büyük ---- */
@media (max-width: 991px) {
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }

    .hero-carousel .carousel-control-prev {
        left: 8px;
    }

    .hero-carousel .carousel-control-next {
        right: 8px;
    }

    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        transform: scale(0.7);
        width: 24px;
        height: 24px;
        opacity: 0.8;
    }
}

/* ========================================
   PREMIUM TEKNİK SERVİS FLIP CARDS
   ======================================== */

/* Flip Card Grid */
.services-flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

/* Flip Card Container - Premium */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 320px;
    perspective: 1000px;
    border: none;
    border-radius: 1rem; /* rounded-4 hissi */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.flip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 55, 77, 0.18);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Flip Card Faces */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
}

.flip-card-front {
    background: #ffffff;
    color: #1A374D;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-back {
    background-color: #1A374D;
    color: #ffffff;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Hover Effect */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Premium Flip Card Content */
.flip-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
}

.flip-icon-premium {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #1A374D;
    background: rgba(243, 145, 137, 0.08);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.flip-icon-premium:hover {
    transform: scale(1.05);
    background: rgba(243, 145, 137, 0.12);
}

.flip-title-premium {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    text-align: center;
    color: #1A374D;
}

.flip-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0.25rem 0 2.5rem 0;
    text-align: center;
    opacity: 0.9;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    text-overflow: ellipsis;
    max-height: 4.8rem;
}

.flip-image {
    margin: 0.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.flip-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Premium Contact Container */
.flip-contact-container {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 2rem;
    width: 100%;
}

.flip-contact-btn-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f38a6a 0%, #e67e60 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(243, 145, 137, 0.2);
    width: 100%;
    max-width: 240px;
}

.flip-contact-btn-premium:hover {
    background: linear-gradient(135deg, #e06b50 0%, #D35400 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(243, 145, 137, 0.4);
    color: white;
    text-decoration: none;
    filter: brightness(1.05);
}

.flip-contact-btn-premium:active {
    transform: translateY(-1px) scale(1.02);
}

.flip-contact-btn-premium i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-flip-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .flip-card {
        height: 280px;
    }
    
    .flip-icon-premium {
        font-size: 3.5rem;
        width: 100px;
        height: 100px;
    }
    
    .flip-card-back {
        padding: 1rem;
    }
    
    .flip-description {
        font-size: 0.85rem;
    }
    
    .flip-contact-btn-premium {
        font-size: 0.9rem;
        padding: 0.875rem 1.5rem;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .services-flip-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .flip-card {
        height: 260px;
    }
    
    .flip-icon-premium {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }
    
    .flip-title-premium {
        font-size: 1.3rem;
    }
    
    .flip-contact-btn-premium {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
        max-width: 180px;
    }
}

/* Loading States */
.hero-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-loaded {
    opacity: 1;
}

/* Focus States */
.hero-cta:focus,
.hero-cta-secondary:focus {
    outline: 2px solid var(--hero-accent-color);
    outline-offset: 2px;
}

.hero-cta-secondary:focus {
    outline: 2px solid var(--hero-accent-color);
    outline-offset: 2px;
}

/* Hakkımızda Section */
.hakkimizda-section {
    position: relative;
    overflow: hidden;
}

.about-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.pattern-circle {
    position: absolute;
    border: 2px solid rgba(243, 145, 137, 0.3);
    border-radius: 50%;
}

.pattern-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: -20px;
    right: -20px;
}

.pattern-circle:nth-child(2) {
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: -10px;
}

.pattern-circle:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 50px;
    right: 30px;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #F39189 !important;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 55, 77, 0.3);
    color: white;
    text-decoration: none;
}

.btn-modern:hover i {
    transform: translateX(5px);
}

.main-title {
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #F39189, #F8B195);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem !important;
    }
    
    .about-content {
        padding: 2rem 0 0 0 !important;
    }
    
    .vision-mission-cards .row {
        flex-direction: column;
    }
    
    .vision-mission-cards .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Print Styles */
@media print {
    .hero-section {
        background: white !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .hero-cta {
        display: none;
    }
}
