/* ========================================
   BÜBTAM LABORATUVAR WEB UYGULAMASI
   Profesyonel, Minimal, Sade Tasarım
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Profesyonel Renk Paleti */
:root {
    /* Ana Renkler - Laboratuvar Profesyonelliği */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    
    /* Metin Renkleri */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    
    /* Arka Plan */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    /* Border & Shadow */
    --border-color: #e5e7eb;
    --border-dark: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    /* Transitions */
    --transition: 0.2s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 1em;
}

/* ========== HEADER / NAVBAR ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.brand-logo-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.688rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.2;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.header-nav .nav-link i {
    font-size: 1rem;
}

/* Dropdown */
.nav-dropdown { 
    position: relative; 
}

.dropdown-arrow {
    font-size: 0.625rem;
    transition: transform var(--transition);
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 100;
}

.nav-dropdown.open .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}

.dropdown-item-custom:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.dropdown-item-custom i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) { 
    transform: rotate(45deg) translate(6px, 6px); 
}

.mobile-toggle.active span:nth-child(2) { 
    opacity: 0; 
}

.mobile-toggle.active span:nth-child(3) { 
    transform: rotate(-45deg) translate(6px, -6px); 
}

@media (max-width: 991px) {
    .mobile-toggle { 
        display: flex; 
    }
    
    .header-nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }
    
    .header-nav.open { 
        transform: translateY(0); 
    }
    
    .header-nav .nav-link { 
        width: 100%; 
        justify-content: flex-start;
    }
    
    .nav-dropdown { 
        width: 100%; 
    }
    
    .nav-dropdown .dropdown-toggle { 
        width: 100%; 
        justify-content: flex-start;
    }
    
    .dropdown-menu-custom {
        position: static;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--border-color);
        margin-top: 4px;
        display: none;
    }
    
    .nav-dropdown.open .dropdown-menu-custom {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    background: var(--primary-dark);
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge i {
    font-size: 1rem;
}

.hero-badge-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    margin-top: 0;
    letter-spacing: -0.02em;
}

.hero-title .text-gradient {
    color: white;
    display: block;
    margin-top: 0.5rem;
}

.hero-logo-left {
    margin-bottom: 1.5rem;
}

.hero-left-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.hero-logo-top {
    margin-bottom: 1.5rem;
}

.hero-top-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.hero-brand-line {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    margin-bottom: 2.5rem;
}

.hero-brand-text {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-brand-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    margin-top: 0;
    letter-spacing: -0.02em;
}
.hero-description {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    background: var(--bg-primary);
    color: var(--primary-dark);
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.938rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.938rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item { 
    text-align: left; 
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Hero Visual Cards */
.hero-visual {
    position: relative;
    height: 400px;
}

.hero-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

.hero-main-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    opacity: 0.9;
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.938rem;
    z-index: 2;
}

.hero-card i { 
    font-size: 1.25rem; 
}

.card-1 { top: 5%; left: 10%; }
.card-2 { top: 30%; right: 0%; }
.card-3 { bottom: 30%; left: 0%; }
.card-4 { bottom: 5%; right: 10%; }

@media (max-width: 768px) {
    .hero-title { 
        font-size: 2rem; 
    }
    
    .hero-description {
        font-size: 0.938rem;
    }
    
    .hero-stats { 
        gap: 24px;
        flex-wrap: wrap;
    }
    
    .stat-number { 
        font-size: 1.5rem; 
    }
    
    .hero-actions { 
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .btn-hero-primary, 
    .btn-hero-outline { 
        width: 100%;
        justify-content: center;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .services-slider-wrapper {
        padding: 0 10px;
    }
    
    .services-slider-wrapper .swiper-button-prev,
    .services-slider-wrapper .swiper-button-next {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .stat-item {
        flex: 1 1 45%;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-tagline {
        font-size: 0.625rem;
    }
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.section-header { 
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-subtext {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Services Slider */
.services-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.services-slider-wrapper .swiper {
    padding-bottom: 50px;
}

.services-slider-wrapper .swiper-button-prev,
.services-slider-wrapper .swiper-button-next {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    top: 45%;
    transition: all var(--transition);
}

.services-slider-wrapper .swiper-button-prev:hover,
.services-slider-wrapper .swiper-button-next:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.services-slider-wrapper .swiper-button-prev::after,
.services-slider-wrapper .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 700;
}

.services-slider-wrapper .swiper-button-prev {
    left: 0;
}

.services-slider-wrapper .swiper-button-next {
    right: 0;
}

.services-slider-wrapper .swiper-pagination {
    bottom: 0;
}

.services-slider-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--border-dark);
    opacity: 1;
}

.services-slider-wrapper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

/* Service Card */
.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all var(--transition);
    text-align: center;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.service-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    color: white;
}

.icon-earth      { background: linear-gradient(135deg, #8B6914, #D4A543); }
.icon-fertilizer { background: linear-gradient(135deg, #27ae60, #6fcf97); }
.icon-honey      { background: linear-gradient(135deg, #e67e22, #f39c12); }
.icon-dairy      { background: linear-gradient(135deg, #3498db, #85c1e9); }
.icon-tea        { background: linear-gradient(135deg, #6d4c41, #a97b5f); }
.icon-chemistry  { background: linear-gradient(135deg, #8e44ad, #bb6bd9); }
.icon-icp        { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.icon-uvvis      { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.icon-flame      { background: linear-gradient(135deg, #e74c3c, #f39c12); }
.icon-fluoro     { background: linear-gradient(135deg, #00b894, #55efc4); }
.icon-photo      { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.icon-plant      { background: linear-gradient(135deg, #2d6a4f, #52b788); }
.icon-water      { background: linear-gradient(135deg, #0077b6, #48cae4); }
.icon-env        { background: linear-gradient(135deg, #1a5276, #2980b9); }
.icon-toc        { background: linear-gradient(135deg, #117a65, #1abc9c); }
.icon-micro      { background: linear-gradient(135deg, #7d3c98, #c39bd3); }
.icon-lcms       { background: linear-gradient(135deg, #1b4f72, #5dade2); }
.icon-material   { background: linear-gradient(135deg, #566573, #aeb6bf); }
.icon-wetchem    { background: linear-gradient(135deg, #b7950b, #f4d03f); }
.icon-service    { background: linear-gradient(135deg, #1e8449, #82e0aa); }
.service-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.063rem;
}

.service-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    transition: gap var(--transition);
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
}

.footer-top {
    padding: 4rem 0 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand i {
    font-size: 1.3rem;
    color: white;
}

.footer-logo-img {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.footer-about {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.footer-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { 
    margin-bottom: 10px; 
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary-light);
    font-size: 1rem;
    margin-top: 2px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-contact a:hover { 
    color: white; 
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.footer-bottom a:hover { 
    color: white; 
}

/* Custom scrollbar */
::-webkit-scrollbar { 
    width: 8px; 
}

::-webkit-scrollbar-track { 
    background: var(--bg-tertiary); 
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Utility Classes */
.button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.button:disabled:hover {
    background: var(--text-muted);
    transform: none;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .services-slider-wrapper {
        padding: 0 10px;
    }
    
    .services-slider-wrapper .swiper-button-prev,
    .services-slider-wrapper .swiper-button-next {
        display: none;
    }
}

.servicesSwiper .swiper-slide {
    height: auto;
}

/* Additional Utility Classes */
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-5 { margin-top: var(--spacing-lg); }

.small {
    font-size: 0.813rem;
    font-weight: 600;
}
