@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Custom Styles */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-in-out;
}

/* Swiper Styles */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.3);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff !important;
}

/* Hero Swiper */
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    transition: all 0.3s ease;
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* News Swiper */
.newsSwiper {
    border-radius: 0.5rem;
    overflow: hidden;
}

.newsSwiper .swiper-pagination {
    bottom: 20px !important;
}

/* Project Swiper */
.projectSwiper {
    padding: 20px 0;
}

.projectSwiper .swiper-slide {
    transition: transform 0.3s ease;
}

.projectSwiper .swiper-slide-active {
    transform: scale(1.05);
}

/* Custom hover effects */
.hover-scale {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-scale:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dropdown Menu Styles */
.group:hover .group-hover\:block {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.group:hover > a {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        z-index: 50;
        padding: 1rem;
        overflow-y: auto;
    }

    .mobile-menu.hidden {
        display: none;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* Özel Efektler */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

/* Custom Shadows */
.shadow-custom {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Section Styles */
.heroSwiper {
    height: 100%;
}

.heroSwiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

/* Overlay kaldırıldı - slider resmi direkt görünecek */

.heroSwiper .swiper-slide img {
    transition: transform 8s ease;
}

.heroSwiper .swiper-slide-active img {
    transform: scale(1.1);
}

.heroSwiper .swiper-slide-active h1 {
    animation: fadeInUp 1s ease forwards;
}

.heroSwiper .swiper-slide-active p {
    animation: fadeInUp 1s ease 0.3s forwards;
}

/* Quick Menu Bar Styles */
.bg-gradient-radial {
    background: radial-gradient(circle at center, #007d32 0%, #00352b 100%);
}

.group > a {
    transition: all 0.3s ease;
    position: relative;
}

.group:hover > a {
    background-color: rgba(255, 255, 255);
    color: #004d2e;
    
}


/* Dropdown Menu Styles */
.group-hover\:block {
    animation: slideUp 0.3s ease-out;
    transform-origin: bottom;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px 8px 0 0;
}

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

/* Menu Items Hover Effect */
.group-hover\:block a {
    transition: all 0.2s ease;
    position: relative;
    padding-left: 1rem;
}

.group-hover\:block a:hover {
    background-color: #f3f4f6;
    padding-left: 1.5rem;
    color: #004d2e;
}

.group-hover\:block a:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #004d2e;
}

/* Border Styles */
.border-green-700 {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hover Effects */
.hover\:bg-\[\#004d2e\]:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Menu Bar Styles */
.animate-slide-up {
    animation: slideUp 0.3s ease-out;
    transform-origin: bottom;
}

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

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


/* Custom Shadow */
.shadow-custom {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
} 
 /* TT Norms Pro Font */
 @font-face {
    font-family: 'TT Norms Pro';
    src: url('fonts/TT Norms Pro Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'TT Norms Pro';
    src: url('fonts/TT Norms Pro Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'TT Norms Pro';
    src: url('fonts/TT Norms Pro Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Montserrat Font */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Poppins Font */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Gotham Font */
@font-face {
    font-family: 'Gotham';
    src: url('fonts/Gotham-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

/* Ana başlıklar ve logo için */
.logo,
.slogan {
    font-family: 'Gotham', sans-serif;
    font-weight: 500;
}

/* Üst menü ve navigasyon için */
.nav-menu {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Ana içerik başlıkları için */
h1,
h2 {
    font-family: 'TT Norms Pro', sans-serif;
    font-weight: 700;
}

/* Alt başlıklar ve önemli metinler için */
h3,
.font-semibold {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Normal metinler için */
body,
p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* Orta kalınlıkta metinler için */
.font-medium {
    font-family: 'TT Norms Pro', sans-serif;
    font-weight: 500;
}

/* Menü öğeleri için */
.menu-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Butonlar için */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.servicesSwiper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #004d2e;
}

.servicesSwiper .swiper-button-prev,
.servicesSwiper .swiper-button-next {
    top: 45%;
}

@media (max-width: 640px) {

    .servicesSwiper .swiper-button-prev,
    .servicesSwiper .swiper-button-next {
        display: none;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

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

@keyframes slide-down {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

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

.animate-slide-up {
    animation: slide-up 0.2s ease-out;
}

.animate-slide-down {
    animation: slide-down 0.2s ease-out;
}

/* Quick Menu Bar için özel stiller */
.quick-menu-bar {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.quick-menu-bar .menu-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.quick-menu-bar .menu-item {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* Swiper Buton Stilleri */
.swiper-button-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #e5e7eb !important;
    border: 2px solid #d1d5db !important;
}

.custom-swiper-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #004d2e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.custom-swiper-button:hover:not(.swiper-button-disabled) {
    background: #003d24;
}

.custom-swiper-button.swiper-button-disabled {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px !important;
}

/* Quick Menu Bar Dropdown Stilleri */
.quick-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 4px;
    width: calc(100% - 8px);
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    transition-delay: 800ms;
    z-index: 59;
    border-bottom: 2px solid #004d2e;
}

.group:hover .quick-menu-dropdown,
.quick-menu-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0ms;
}

/* Dropdown'a hover edildiğinde gecikmesiz görünür kal */
.quick-menu-dropdown:hover {
    transition-delay: 0ms !important;
}

/* Hover alanını genişletmek için invisible padding */
.quick-menu-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: -1;
}

/* Ana menü grubu için hover alanı genişletme */
.quick-menu-section .group {
    position: relative;
}

.quick-menu-section .group::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
}

.quick-menu-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.quick-menu-dropdown a:last-child {
    border-bottom: none;
}

.quick-menu-dropdown a:hover {
    color: #004d2e;
    background-color: #f9fafb;
}



/* Quick Menu Bar Dropdown Animation */
.quick-menu-dropdown {
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    transition-delay: 800ms;
}

.group:hover .quick-menu-dropdown,
.quick-menu-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0ms;
}

/* Quick Menu Bar Styles */
.quick-menu-bar {
    font-family: 'Poppins', sans-serif;
}

.quick-menu-bar .menu-title {
    font-weight: 600;
}

.quick-menu-bar .menu-item {
    font-weight: 500;
}

/* Quick Menu Hover Effects */
.quick-menu-bar a:hover {
    background-color: white !important;
}

.quick-menu-bar a:hover .material-icons,
.quick-menu-bar a:hover span,
.quick-menu-bar a:hover div span {
    color: black !important;
}

.quick-menu-bar a:hover div span:last-child {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Dropdown Menu Item Hover Animation */
.quick-menu-dropdown a {
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}


.quick-menu-dropdown a:hover {
    padding-left: 2rem;
    background-color: #f3f4f6;
}

.quick-menu-dropdown a:hover::before {
    opacity: 1;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .quick-menu-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #003d24;
        width: 100%;
        margin: 0;
        display: none;
    }

    .group.active .quick-menu-dropdown {
        display: block;
    }

    .quick-menu-dropdown a {
        color: white;
        padding: 12px 16px;
    }

    .quick-menu-dropdown a:hover {
        background-color: #004d2e;
        color: white;
    }

    .quick-menu-dropdown a::before {
        color: white;
    }
}

/* Mega Menu Styles - Tamamen Yeniden Düzenlendi */
.mega-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: #f9fafb;
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    z-index: 50;
    pointer-events: none;
    border-bottom: 3px solid #007d32;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Normal hover durumu */
.group:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Scroll sırasında tüm mega menüleri gizle */
body.is-scrolling .mega-menu,
body.is-scrolling .group:hover .mega-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* Force-hide sınıfı - JavaScript tarafından eklenir */
.mega-menu.force-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.mega-menu-content {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    background: transparent;
    box-sizing: border-box;
}

/* Kurumsal mega menü özel stilleri */
.mega-menu-kurumsal {
    background-color: transparent;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    width: 100%;
    max-width: 1280px;
}

/* Mega menu item'lar için düzeltme */
.mega-menu-content .grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
    max-width: 100%;
    width: 100%;
}

/* Mega menü kategori kartları için stiller */
.mega-menu-category {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(240, 245, 242, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
    min-width: 0; /* Taşmayı önlemek için */
}

.mega-menu-category ul {
    flex-grow: 1;
    margin-top: 0.15rem;
}

.mega-menu-category h3 {
    color: #00352b;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    padding: 0.35rem 0.5rem;
    font-weight: 600;
    text-transform: none;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: 8px;
    position: relative;
    padding-left: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-left: 3px solid #007d32;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.8rem;
    color: #4b5563;
    position: relative;
    line-height: 1.2;
    border-left: 2px solid transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mega-menu-link:hover {
    background-color: #f0f8f4;
    color: #007d32;
    transform: translateX(3px);
    border-left: 2px solid #007d32;
    padding-left: 8px;
}

.mega-menu-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 125, 50, 0.15);
    transform: translateY(-2px);
}

.mega-menu-category:hover h3 {
    background: linear-gradient(135deg, #f0f9f4, #e6f7ec);
    color: #006428;
}

/* Mega menü sadece fade efekti */

.mega-menu-link-icon {
    color: #007d32;
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.25s ease;
}

/* Header Section Styles */
.header-section {
    position: relative;
    width: 100%;
    z-index: 40 !important;
}

/* Header Fix */
.head {
    position: relative;
    width: 100%;
    z-index: 40 !important;
    background: white;
}

/* Container styles */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1536px) {
    .container {
        max-width: 1440px;
    }
    
    .mega-menu-content,
    .mega-menu-kurumsal {
        max-width: 1440px;
    }
}

/* Yeni eklenen düzeltmeler - dropdown menüler için */
.group {
    position: relative;
}

.group > a {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 45;
}

/* Mobil native uygulama benzeri tab butonları için stiller */
.hide-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer/Edge */
    overflow-x: auto;
    padding-bottom: 5px;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Tab butonları için aktif durumundaki ikon rengi */
.tab-btn.tab-active .material-icons {
    color: white;
    opacity: 1;
}

/* Tab hover animasyonu */
.tab-btn {
    position: relative;
    overflow: hidden;
    height: 90px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tab-btn .material-icons {
    font-size: 26px;
    transition: all 0.25s ease;
}

.tab-btn.tab-active {
    box-shadow: 0 4px 8px rgba(0, 123, 50, 0.2);
    transform: translateY(-2px);
}

.tab-btn.tab-active .material-icons {
    transform: scale(1.1);
}

.tab-btn:hover:not(.tab-active) {
    transform: translateY(-2px);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #007b32;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.tab-btn:hover:not(.tab-active)::after {
    transform: scaleX(0.6);
}

/* Tab tab-content animasyonu */
.tab-content .tab-pane {
    animation: fadeTabContent 0.3s ease;
}

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

/* Kare ikon gösterimi ve responsive uyarlamalar */
@media (max-width: 768px) {
    .tab-btn {
        height: 75px;
        padding: 8px 5px;
    }
    
    .tab-btn .material-icons {
        font-size: 22px;
    }
    
    .tab-btn span:not(.material-icons) {
        font-size: 11px;
    }
}

/* Yeni hover kontrolü - JavaScript ile sınıf ekleniyor */
.group.hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    background: transparent;
    box-sizing: border-box;
}