/* Custom CSS - TailwindCSS ile birlikte kullanılabilir */

/* Container genişlik ayarları - %80 genişlik */
.container {
    max-width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

@media (min-width: 1536px) {
    .container {
        max-width: 1280px !important; /* Çok büyük ekranlarda max genişlik */
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 95% !important; /* Mobilde biraz daha geniş */
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Body ve HTML full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

body { 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

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

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

.animate-on-scroll {
    opacity: 0;
}

/* Parallax */
.parallax-bg {
    transition: transform 0.1s ease-out;
}

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

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}


/* ── Ana Sayfa Kompakt Görünüm ── */

/* Hero section - daha fazla boşluk */
.home-hero { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.home-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem) !important; line-height: 1.15 !important; margin-bottom: 1.5rem !important; }
.home-hero p  { font-size: clamp(1rem, 2vw, 1.2rem) !important; margin-bottom: 2rem !important; }
.home-hero .stat-val { font-size: 2rem !important; }

/* Projeler section - daha fazla boşluk */
.home-projects { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.home-projects .section-title { font-size: clamp(1.8rem, 4vw, 2.8rem) !important; margin-bottom: 1rem !important; }
.home-projects .section-sub  { font-size: 1.1rem !important; margin-bottom: 3rem !important; }
.home-projects .project-card { padding: 2.5rem !important; margin-bottom: 2rem !important; }
.home-projects .project-card h3 { font-size: 1.6rem !important; margin-bottom: 1rem !important; }
.home-projects .project-card p  { font-size: 1rem !important; line-height: 1.6 !important; }
.home-projects .stat-big { font-size: 2.2rem !important; }
.home-projects .icon-box { width: 3.5rem !important; height: 3.5rem !important; margin-bottom: 1rem !important; }
.home-projects .icon-box i { font-size: 1.5rem !important; }
.home-projects .statsbar { padding: 2.5rem !important; margin-top: 2rem !important; }
.home-projects .statsbar .stat-val { font-size: 2.5rem !important; }

/* Ürünler section - daha fazla boşluk */
.home-products { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.home-products .section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important; margin-bottom: 3rem !important; }
.home-products .product-card { padding: 2rem !important; margin-bottom: 2rem !important; }
.home-products .product-card h3 { font-size: 1.2rem !important; margin-bottom: 0.75rem !important; }
.home-products .product-price { font-size: 1.8rem !important; margin-top: 1rem !important; }
.home-products .product-icon { width: 3rem !important; height: 3rem !important; margin-bottom: 1rem !important; }
.home-products .product-icon i { font-size: 1.2rem !important; }

/* Service Content HTML Styling - SEO Optimized */
.service-content {
    line-height: 1.8 !important;
}

.service-content h1,
.service-content h2,
.service-content h3,
.service-content h4,
.service-content h5,
.service-content h6 {
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
}

.service-content h1 { font-size: 2.5rem !important; }
.service-content h2 { font-size: 2rem !important; color: #4f46e5 !important; }
.service-content h3 { font-size: 1.75rem !important; color: #6366f1 !important; }
.service-content h4 { font-size: 1.5rem !important; }
.service-content h5 { font-size: 1.25rem !important; }
.service-content h6 { font-size: 1.1rem !important; }

.service-content p {
    margin-bottom: 1.25rem !important;
    color: #4b5563 !important;
}

.service-content strong,
.service-content b {
    font-weight: 700 !important;
    color: #1f2937 !important;
}

.service-content em,
.service-content i {
    font-style: italic !important;
}

.service-content u {
    text-decoration: underline !important;
}

.service-content ul,
.service-content ol {
    margin-left: 2rem !important;
    margin-bottom: 1.5rem !important;
    color: #4b5563 !important;
    padding-left: 0 !important;
}

.service-content ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
}

.service-content ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
}

.service-content li {
    margin-bottom: 0.75rem !important;
    line-height: 1.7 !important;
    margin-left: 0 !important;
    padding-left: 0.5rem !important;
}

.service-content li::marker {
    color: #6366f1 !important;
    font-weight: bold !important;
}

.service-content a {
    color: #6366f1 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.service-content a:hover {
    color: #4f46e5 !important;
}

.service-content blockquote {
    border-left: 4px solid #6366f1 !important;
    padding-left: 1.5rem !important;
    margin: 2rem 0 !important;
    font-style: italic !important;
    color: #6b7280 !important;
    background: #f9fafb !important;
    padding: 1.5rem !important;
    border-radius: 0.5rem !important;
}

.service-content code {
    background: #f3f4f6 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.9em !important;
    color: #dc2626 !important;
}

.service-content pre {
    background: #1f2937 !important;
    color: #f9fafb !important;
    padding: 1.5rem !important;
    border-radius: 0.5rem !important;
    overflow-x: auto !important;
    margin: 1.5rem 0 !important;
}

.service-content pre code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
}

.service-content div {
    margin-bottom: 1rem !important;
}

/* Colored boxes for special content */
.service-content .info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-left: 4px solid #3b82f6 !important;
    padding: 1.5rem !important;
    border-radius: 0.5rem !important;
    margin: 1.5rem 0 !important;
}

.service-content .success-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border-left: 4px solid #10b981 !important;
    padding: 1.5rem !important;
    border-radius: 0.5rem !important;
    margin: 1.5rem 0 !important;
}

.service-content .warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border-left: 4px solid #f59e0b !important;
    padding: 1.5rem !important;
    border-radius: 0.5rem !important;
    margin: 1.5rem 0 !important;
}

.service-content .danger-box {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    border-left: 4px solid #ef4444 !important;
    padding: 1.5rem !important;
    border-radius: 0.5rem !important;
    margin: 1.5rem 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-content h1 { font-size: 2rem !important; }
    .service-content h2 { font-size: 1.75rem !important; }
    .service-content h3 { font-size: 1.5rem !important; }
    .service-content h4 { font-size: 1.25rem !important; }
    .service-content h5 { font-size: 1.1rem !important; }
    .service-content h6 { font-size: 1rem !important; }
    
    .service-content ul,
    .service-content ol {
        margin-left: 1.5rem !important;
    }
    
    .service-content blockquote {
        padding-left: 1rem !important;
        padding: 1rem !important;
    }
}
