/* 
   CNC Kart Tamiri - Modern Design System
   Professional, Industrial, High-Conversion
*/

:root {
    --primary: #f39c12;
    /* Warning/Yellow for Industry */
    --primary-dark: #d35400;
    --secondary: #2c3e50;
    /* Dark Navy for Trust */
    --accent: #e74c3c;
    --bg-light: #f8f9fa;
    --text-main: #333;
    --text-muted: #666;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
}

/* Header & Navigation */
.top-bar {
    background: var(--secondary);
    transition: var(--transition);
}

.navbar {
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f0f0f0;
}

.header-ctas {
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: var(--transition);
}

.nav-link {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--secondary) !important;
    padding: 0.5rem 1.2rem !important;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-dark) !important;
}

.dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 5px;
    opacity: 0.5;
}

/* Offcanvas Mobile Menu */
@media (max-width: 991px) {
    .offcanvas-collapse {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 100%;
        width: 85%;
        padding-right: 1rem;
        padding-left: 1rem;
        overflow-y: auto;
        visibility: hidden;
        background-color: var(--white);
        transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
        z-index: 1050;
        display: block !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .offcanvas-collapse.show {
        visibility: visible;
        transform: translateX(-100%);
    }

    .nav-link {
        padding: 1rem !important;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        font-size: 1rem;
    }

    .dropdown-menu {
        box-shadow: none;
        background: #fcfcfc;
        border-radius: 0;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 1rem 0;
}

.dropdown-item {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    color: var(--secondary);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    padding-left: 1.8rem;
}

.btn-warning {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--secondary) !important;
    transition: var(--transition);
}

.btn-warning:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background-color: #25d366;
    border-color: #25d366;
    color: var(--white) !important;
    transition: var(--transition);
}

.btn-success:hover {
    background-color: #128c7e;
    border-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Slider */
.hero-section {
    position: relative;
    background: var(--secondary);
    color: var(--white);
    overflow: hidden;
    margin-top: 0;
}

@media (max-width: 991px) {
    .hero-section {
        margin-top: -1px; /* Subtle fix for potential gaps */
    }
    
    .navbar {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .navbar-brand img {
        width: 160px !important;
    }
}

.carousel-item {
    height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.6);
}

.carousel-caption {
    bottom: 20%;
    text-align: left;
    left: 10%;
    right: 10%;
    z-index: 10;
}

.carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.carousel-caption p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

/* Feature Cards */
.hizmetler {
    margin-top: -50px;
    position: relative;
    z-index: 20;
}

.feature-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Service Grid */
.genel-hizmetler {
    padding: 5rem 0;
}

.expertise-card {
    background: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1);
}

.expertise-content h6 {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.expertise-content p {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.service-content {
    padding: 1.5rem;
    text-align: center;
}

.service-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
}

.service-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.service-img-wrapper {
    height: 200px;
    overflow: hidden;
}

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

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


.service-content p {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

/* Brand Bar Ticker */
.brand-bar {
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
    padding: 0.3rem 0;
    width: 100%;
    position: relative;
    z-index: 5;
}

.brand-ticker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-right: 1px solid #eee;
    height: 100%;
}

.brand-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.brand-desc {
    font-size: 0.65rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
}

.swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Contact Strip */
.iletisim-strip {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a252f 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

/* Footer */
.footer {
    background: #111;
    color: #999;
    padding: 3rem 0;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 991px) {
    .carousel-item {
        height: 480px;
    }

    .carousel-caption {
        bottom: 12%;
        left: 5%;
        right: 5%;
        text-align: center;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.2;
    }

    .hero-text {
        font-size: 0.85rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-btns .btn {
        font-size: 0.8rem !important;
        padding: 0.6rem 1rem !important;
        width: auto;
        min-width: 120px;
        margin: 5px !important;
    }

    .hizmetler {
        margin-top: 1rem;
    }

    .brand-bar {
        padding: 0.2rem 0;
        margin-bottom: 0;
    }
    
    .hero-section {
        margin-top: 0;
        padding-top: 0;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}

/* Content Layout */
.page-content {
    background: var(--white);
    padding: 4rem 0;
}

.seo-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: justify;
}

.seo-text h2,
.seo-text h3 {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.seo-text ul {
    padding-left: 1.2rem;
}

.seo-text li {
    margin-bottom: 0.5rem;
}