/* Slider Styles */
.slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-controls {
    z-index: 20;
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #16a34a !important;
    transform: scale(1.2);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-content h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.service-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Section Dividers */
.section-divider {
    height: 100px;
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
}

.section-divider-bottom::before {
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}

.section-divider-top::before {
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-stats {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(22, 163, 74, 0.9);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.about-stats h4 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.about-stats p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-title {
    font-size: 3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 2px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: white;
    font-size: 1.2rem;
}

.feature-content h4 {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.feature-content p {
    color: #6b7280;
    font-size: 0.9rem;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.3);
}

.about-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(22, 163, 74, 0.4);
    color: white;
}

/* News Section */
.bg-gradient-white {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(22, 163, 74, 0.9);
    color: white;
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.news-content h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.news-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-info {
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    pointer-events: none;
}

.contact-form {
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    pointer-events: none;
}

.form-group label {
    color: #374151;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer-info p {
    line-height: 1.8;
}

.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.footer-links h4::after {
    transition: width 0.3s ease;
}

/* Başlıklardaki yeşil çizgi sabit uzunlukta kalsın */
.footer-links:hover h4::after {
    width: 3rem; /* 48px -> Tailwind w-12 karşılığı */
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .about-stats {
        bottom: 1rem;
        right: 1rem;
        padding: 1rem;
    }
    
    .about-stats h4 {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #15803d, #16a34a);
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.box-shadow-custom {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Menu Styles */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.translate-x-full {
    transform: translateX(100%);
}

.mobile-menu:not(.translate-x-full) {
    transform: translateX(0);
}

/* Header Scroll Effect */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-scrolled .nav-link span {
    color: #374151 !important;
}

.header-scrolled .logo a {
    color: #1f2937 !important;
}

.header-scrolled .mobile-menu-button {
    color: #374151 !important;
}

/* Light themed header (for white hero pages) */
.header-light header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.header-light .nav-link span,
.header-light .logo a,
.header-light .mobile-menu-button {
    color: #1f2937 !important;
}
.header-light .nav-link:hover span {
    color: #16a34a !important;
}
.header-light .nav-link div {
    background-color: #16a34a !important;
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus States */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .slider,
    .slider-controls,
    .mobile-menu,
    .contact-form {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .news-card,
    .contact-info {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}





/* Header Dropdown Scroll Bar Styles */
.header-dropdown::-webkit-scrollbar {
    width: 8px;
}

.header-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.header-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.header-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox Scroll Bar */
.header-dropdown {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Dropdown Hover State - Keep Open */
.header-dropdown-container:hover .header-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Smooth Scroll Behavior */
.header-dropdown {
    scroll-behavior: smooth;
}

/* Mobile Products Dropdown Scroll */
.mobile-products-content {
    /* WebKit browsers (Chrome, Safari, newer versions of Opera) */
    scrollbar-width: thin;
    scrollbar-color: #16a34a #f3f4f6;
}

.mobile-products-content::-webkit-scrollbar {
    width: 6px;
}

.mobile-products-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.mobile-products-content::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 3px;
}

.mobile-products-content::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Mobile Products Content Smooth Transition */
.mobile-products-content {
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.mobile-products-content.hidden {
    max-height: 0 !important;
    opacity: 0;
    overflow: hidden;
}

.mobile-products-content:not(.hidden) {
    opacity: 1;
}

/* Lightbox Styles */
#lightbox {
    transition: opacity 0.3s ease-in-out;
}

#lightbox.hidden {
    opacity: 0;
    pointer-events: none;
}

#lightbox:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

#lightbox-image {
    transition: transform 0.3s ease-in-out;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

#lightbox-close,
#lightbox-prev,
#lightbox-next {
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-close:hover,
#lightbox-prev:hover,
#lightbox-next:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

#lightbox-info {
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

/* Lightbox Animation */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#lightbox:not(.hidden) #lightbox-image {
    animation: lightboxFadeIn 0.3s ease-out;
}

/* Mobile Lightbox Adjustments */
@media (max-width: 768px) {
    #lightbox-close,
    #lightbox-prev,
    #lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    #lightbox-prev {
        left: 10px;
    }
    
    #lightbox-next {
        right: 10px;
    }
    
    #lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    #lightbox-image {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    #lightbox-info {
        padding: 1rem;
    }
    
    #lightbox-title {
        font-size: 1rem;
    }
    
    #lightbox-counter {
        font-size: 0.8rem;
    }
}