/* ========================================
   KromcuAdam - Ana Stil Dosyası
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #d35400;
    --secondary-color: #ca6f1e;
    --accent-color: #e67e22;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #d35400;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.mt-40 {
    margin-top: 40px;
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.top-bar {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    color: var(--bg-white);
    margin-right: 20px;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.social-links a {
    color: var(--bg-white);
    margin-left: 15px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.navbar {
    padding: 20px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #d35400;
    transition: var(--transition);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

/* Ana Sayfa Bant */
.home-banner {
    background: linear-gradient(90deg, rgba(211,84,0,0.06), rgba(255,200,100,0.04));
    padding: 28px 0;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.home-banner-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.home-banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}
.home-banner-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

@media (min-width: 768px) {
    .home-banner {
        padding: 36px 0;
    }
    .home-banner-title { font-size: 2rem; }
    .home-banner-subtitle { font-size: 1.125rem; }
}

@media (max-width: 480px) {
    .home-banner-title { font-size: 1.25rem; }
    .home-banner-subtitle { font-size: 0.95rem; }
}
.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .slide-content {
        top: 40%;
        transform: translateY(-40%);
        padding: 0 20px;
    }
    .hero-slider { padding-bottom: 30px; }
}

/* Smaller screens: scale down hero text for better fit */
@media (max-width: 480px) {
    .slide-title { font-size: 2rem; }
    .slide-description { font-size: 1rem; }
}

/* Builder custom sections */
.custom-hero { background-size: cover; background-position: center; padding: 140px 0; color: #fff; }
.custom-hero .hero-content { text-align: center; }
.custom-hero .hero-content h1 { font-size: 3rem; font-weight:700; margin-bottom:10px; }
.builder-content { background: #fff; padding: 60px 0; }
.builder-cta { padding: 60px 0; color: #fff; }
.builder-cta .btn-white { background: #fff; color: #d35400; padding: 12px 25px; border-radius: 6px; text-decoration: none; }
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    color: var(--bg-white);
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.slide-description {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.animate-up {
    animation: slideUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp floating CTA */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 110px;
    background: #25d366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.25);
    z-index: 9999;
    transition: transform 0.15s ease;
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:hover { transform: translateY(-4px); }

@media (max-width: 768px) {
    .whatsapp-float { right: 14px; bottom: 90px; width: 64px; height: 64px; font-size: 26px; }
    .whatsapp-float svg { width: 30px; height: 30px; }
}

/* Small screens: move WhatsApp above bottom nav and back-to-top to avoid overlap */
@media (max-width: 480px) {
    /* If mobile bottom nav is present (70px height), place whatsapp above it + an extra offset */
    .whatsapp-float {
        right: 20px !important;
        bottom: 140px !important; /* safe vertical spacing */
        width: 62px !important;
        height: 62px !important;
        font-size: 24px !important;
        z-index: 10010 !important; /* ensure above other UI */
        box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
    }

    /* Make sure up button stays visible and slightly left so they don't overlap horizontally */
    .back-to-top {
        right: 20px !important;
        bottom: 20px !important;
        z-index: 10005 !important;
    }

    /* Add slight separation animation to avoid visual collision when both appear */
    .whatsapp-float {
        transition: transform 0.18s ease, bottom 0.18s ease;
    }
    .back-to-top.show + .whatsapp-float,
    .whatsapp-float + .back-to-top.show {
        transform: translateY(-6px);
    }
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    background: var(--primary-color);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--bg-white);
    width: 30px;
    border-radius: 6px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--bg-light);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg-white);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.check-list {
    margin-bottom: 30px;
}

.check-list li {
    padding: 10px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list i {
    color: var(--success-color);
}

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

.feature-box {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background: var(--primary-color);
    color: var(--bg-white);
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--text-light);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.blog-content h3 a {
    color: var(--text-dark);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column p {
    color: #9ca3af;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
}

.contact-list i {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: #9ca3af;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-menu li {
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
}
