/**
 * Karınca 360 Tanıtım Websitesi CSS
 * Müşteri Renk Paleti - 2025
 * PRIMARY: #0B1C2D (Lacivert - Header & Güven)
 * SECONDARY: #F28C38 (Turuncu - Buton & Aksiyon)
 */

:root {
    /* Ana Renkler */
    --color-primary: #0B1C2D;           /* Lacivert - Header & Güven */
    --color-secondary: #F28C38;         /* Turuncu - Buton & CTA */
    
    /* Arka Plan Renkleri */
    --color-bg-light: #F6F7F9;          /* Sayfa Zemini - Açık Gri */
    --color-bg-white: #FFFFFF;          /* Kart Arka Planı - Beyaz */
    
    /* Metin Renkleri */
    --color-text-primary: #1F2933;      /* Ana Metin - Koyu Gri */
    --color-text-secondary: #6B7280;    /* Açıklama Metni - Orta Gri */
    --color-text-dark: #1F2933;         /* Eski uyumluluk için */
    --color-text-muted: #6B7280;        /* Eski uyumluluk için */
    
    /* Durum Renkleri */
    --color-success: #4CAF50;           /* Başarı - Yeşil */
    
    /* İkon & Placeholder */
    --color-icon-placeholder: #9AA4AF;  /* İkon/Placeholder - Pasif Gri */
    
    /* Gradient Renkleri */
    --gradient-button-start: #F28C38;   /* Buton Gradient Başlangıç */
    --gradient-button-end: #F06A2A;     /* Buton Gradient Bitiş */
    --gradient-header-start: #0B1C2D;   /* Header Gradient Başlangıç */
    --gradient-header-end: #132F4C;     /* Header Gradient Bitiş */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text-primary);
    background-color: var(--color-bg-light);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-primary) !important;
    margin: 0 0.5rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-secondary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #ffffff 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Butonlar */
.btn-primary {
    background: linear-gradient(135deg, var(--gradient-button-start) 0%, var(--gradient-button-end) 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gradient-button-end) 0%, var(--gradient-button-start) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 140, 56, 0.4);
}

.btn-outline-primary {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

/* Kartlar */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gradient-button-start) 0%, var(--gradient-button-end) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Section Spacing */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* İstatistikler */
.stats-section {
    background: linear-gradient(135deg, var(--gradient-header-start) 0%, var(--gradient-header-end) 100%);
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Nasıl Çalışır */
.how-it-works {
    background-color: var(--color-bg-white);
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-button-start) 0%, var(--gradient-button-end) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

/* Video Galerisi */
.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.video-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-button-start) 0%, var(--gradient-button-end) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 4px solid white;
}

.video-play-btn:hover {
    background: linear-gradient(135deg, var(--gradient-button-end) 0%, var(--gradient-button-start) 100%);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Accordion (SSS) */
.accordion-button {
    font-weight: 600;
    color: var(--color-text-primary);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--gradient-header-start) 0%, var(--gradient-header-end) 100%);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(11, 28, 45, 0.25);
}

/* Form */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.25rem rgba(242, 140, 56, 0.25);
}

/* Contact Page Layout Fix */
.section .row {
    margin-left: 0;
    margin-right: 0;
}

.section .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

.section .card {
    overflow: hidden;
    word-wrap: break-word;
}

.section .d-flex {
    flex-wrap: wrap;
}

/* Footer */
footer a:hover {
    color: var(--color-secondary) !important;
    transition: color 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Modern Hero Section with Video Background */
.hero-video-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 28, 45, 0.85) 0%, rgba(19, 47, 76, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--color-secondary);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing-section {
    background: var(--color-bg-white);
    padding: 80px 0;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 40px rgba(242, 140, 56, 0.2);
    border-color: var(--color-secondary);
}

.pricing-card.featured {
    border-color: var(--color-secondary);
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(242, 140, 56, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--gradient-button-start) 0%, var(--gradient-button-end) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 1rem 0;
}

.pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--color-secondary);
    font-size: 1.2rem;
}

/* Portfolio Section */
.portfolio-section {
    background: var(--color-bg-light);
    padding: 80px 0;
}

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

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    color: white;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

/* Stats Section with Background */
.stats-section {
    position: relative;
    background: linear-gradient(135deg, var(--gradient-header-start) 0%, var(--gradient-header-end) 100%);
    color: white;
    padding: 80px 0;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

/* Modern Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card-modern {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(242, 140, 56, 0.15);
    border-color: var(--color-secondary);
}

.feature-icon-modern {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--gradient-button-start) 0%, var(--gradient-button-end) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s;
}

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

/* Contact Page - Prevent Overflow */
.contact-section {
    overflow-x: hidden;
}

.contact-section .container {
    max-width: 100%;
    overflow-x: hidden;
}

.contact-section .row {
    overflow-x: hidden;
    margin-left: 0;
    margin-right: 0;
}

.contact-section .col-lg-4,
.contact-section .col-lg-8 {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.contact-section .card {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
    height: auto !important;
}

.contact-section .d-flex {
    flex-wrap: wrap;
    overflow-x: hidden;
    max-width: 100%;
}

.contact-section .d-flex > div {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    flex: 1;
    max-width: 100%;
}

.contact-section .d-flex i {
    flex-shrink: 0;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Video Modal Styles */
.video-modal-content {
    border-radius: 16px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.video-modal-body {
    padding: 1.5rem;
}

.modal-xl {
    max-width: 1200px;
}

@media (max-width: 1400px) {
    .modal-xl {
        max-width: 90vw;
    }
}

@media (max-width: 768px) {
    .modal-xl {
        max-width: 95vw;
    }
    
    .video-modal-body {
        padding: 1rem;
    }
}

/* Social Share Section */
.social-share-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.social-share-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    flex-shrink: 0;
}

.social-share-btn::before {
    content: '';
    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: width 0.6s, height 0.6s;
}

.social-share-btn:hover::before {
    width: 300px;
    height: 300px;
}

.social-share-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-share-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.social-share-btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

.social-share-btn:hover svg {
    transform: scale(1.15);
}

.video-card-share-buttons .social-share-btn svg,
.portfolio-share-buttons .social-share-btn svg {
    width: 20px;
    height: 20px;
}

/* WhatsApp */
.social-share-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-share-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

/* Facebook */
.social-share-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
}

.social-share-facebook:hover {
    background: linear-gradient(135deg, #0C63D4 0%, #1877F2 100%);
}

/* Twitter */
.social-share-twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
}

.social-share-twitter:hover {
    background: linear-gradient(135deg, #0d8bd9 0%, #1DA1F2 100%);
}

/* Instagram */
.social-share-instagram {
    background: linear-gradient(135deg, #E4405F 0%, #F77737 50%, #FCAF45 100%);
}

.social-share-instagram:hover {
    background: linear-gradient(135deg, #FCAF45 0%, #F77737 50%, #E4405F 100%);
}

/* Video Card Share Buttons */
.video-card-share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.video-card-share-buttons .social-share-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

/* Portfolio Share Buttons */
.portfolio-share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-share-buttons {
    opacity: 1;
}

.portfolio-share-buttons .social-share-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .video-modal-content {
        max-width: 98vw;
    }
    
    .social-share-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .social-share-buttons {
        gap: 0.75rem;
    }
}

