/* Ana stiller */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Header yüksekliğine göre ayarlandı */
}

body.overlay-active {
    overflow: hidden;
}

.lang-tr, .lang-en, .lang-pt, .lang-ar {
    transition: opacity 0.3s;
}

/* Arapça için RTL desteği */
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body[dir="rtl"] .container {
    direction: rtl;
}

body[dir="rtl"] .grid {
    direction: rtl;
}

/* Arapça modunda butonların yerini korumak için */
body[dir="rtl"] .flex.items-center.space-x-2 {
    flex-direction: row;
}

body[dir="rtl"] .flex.items-center.space-x-4 {
    flex-direction: row;
}

/* Arapça modunda navigasyon menüsünü düzelt */
body[dir="rtl"] #menu ul {
    flex-direction: row;
}

body[dir="rtl"] #mobile-menu ul {
    flex-direction: column;
}

/* Arapça modunda hero butonlarını düzelt */
body[dir="rtl"] .flex.flex-col.sm\\:flex-row {
    flex-direction: row;
}

/* Arapça modunda sosyal medya ikonlarını düzelt */
body[dir="rtl"] .flex.space-x-4 {
    flex-direction: row;
}

/* Logo stil */
.logo-container img {
    height: 85px;
    width: 300px;
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
}

/* Navigasyon menüsü stilleri */
#menu ul li a, #mobile-menu ul li a {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#menu ul li a:hover, #mobile-menu ul li a:hover {
    transform: translateY(-2px);
}

/* Dil seçici dropdown için stil */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    min-width: 120px;
    justify-content: space-between;
}

.language-toggle-btn:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-toggle-btn.active {
    border-color: #1a237e;
    background-color: #f8fafc;
}

.flag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 15px;
    flex-shrink: 0;
}

.flag-icon svg,
.flag-icon img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.language-name {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    color: #6b7280;
    transition: transform 0.3s ease;
}

.language-toggle-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.language-dropdown.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #374151;
}

.language-option:hover {
    background-color: #f3f4f6;
}

.language-option.selected {
    background-color: #1a237e;
    color: white;
}

.language-option.selected .flag-icon {
    filter: brightness(1.2);
}

/* Header düzeni için ek stiller */
header nav {
    display: flex;
    flex-direction: column;
}

header nav > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mobile-menu {
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

#mobile-menu ul li {
    margin-bottom: 0.5rem;
}

/* Mobile First Responsive Design */
@media (max-width: 640px) {
    /* Extra small devices (phones) */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Header mobile adjustments */
    header nav {
        padding: 0.75rem 0;
    }
    
    header nav > div {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo-container {
        flex: 1;
        min-width: 0;
    }
    
    .logo-container img {
        height: 35px;
        width: auto;
    }
    
    .logo-container .logo-text {
        font-size: 0.875rem;
    }
    
    .logo-container .logo-text h1 {
        font-size: 0.875rem;
    }
    
    .logo-container .logo-text p {
        font-size: 0.75rem;
    }
    
    /* Language selector mobile adjustments */
    .language-selector {
        flex-shrink: 0;
    }
    
    .language-toggle-btn {
        padding: 0.5rem;
        font-size: 0.875rem;
        min-width: auto;
    }
    
    .language-name {
        display: none; /* Hide language name on very small screens */
    }
    
    .flag-icon {
        margin-right: 0;
    }
    
    /* Hero section mobile adjustments */
    .hero {
        padding: 2rem 0;
        min-height: 60vh;
        padding-top: 6rem; /* Account for fixed header */
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.1;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero p {
        font-size: 1rem !important;
        margin-bottom: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero .flex {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .hero button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Small devices (tablets) */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .logo-container img {
        height: 40px;
        width: auto;
    }
    
    .language-name {
        font-size: 0.875rem;
    }
    
    /* Hero section tablet adjustments */
    .hero {
        padding: 3rem 0;
        min-height: 70vh;
        padding-top: 7rem; /* Account for fixed header */
    }
    
    .hero h1 {
        font-size: 3rem !important;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 1.125rem !important;
        margin-bottom: 2.5rem;
    }
    
    .hero .flex {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero button {
        flex: 1;
        min-width: 200px;
        max-width: 250px;
    }
    
    /* Section spacing adjustments */
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .section p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Grid adjustments */
    .grid {
        gap: 1.5rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 1279px) {
    .logo-container img {
        height: 40px;
        width: auto;
    }
    
    #menu {
        display: none;
    }
    
    /* Mobile menu adjustments */
    #mobile-menu {
        padding: 1rem 0;
    }
    
    #mobile-menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #mobile-menu ul li a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

@media (min-width: 1280px) {
    header nav > div:first-child {
        width: 100%;
    }
    
    #menu-toggle {
        display: none;
    }
    
    #menu {
        display: flex;
        justify-content: center;
        margin: 0 2rem;
    }
    
    #menu ul {
        display: flex;
        align-items: center;
    }
}

/* Hero bölümü için arka plan */
.hero-bg {
    background-image: linear-gradient(rgba(26, 35, 126, 0.8), rgba(0, 0, 128, 0.2)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 625px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Header yüksekliği kadar padding ekledim */
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 20%);
    z-index: 1;
}

.hero-bg > div {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 20px; /* İçeriği biraz daha aşağıya indirmek için padding ekledim */
}

/* Hero içeriği için özel stil */
#hero .flex {
    margin-top: 30px; /* İçeriği daha da aşağıya indirmek için margin ekledim */
}

/* Text shadow efekti */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero başlık efekti */
#hero h1 {
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Logo shadow efekti */
.logo-shadow {
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.7));
}

/* CSS Logo */
.css-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.css-logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid #d4af37;
    transform: rotate(45deg);
}

.css-logo::after {
    content: 'İG';
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* İthalat ve İhracat bölümleri için özel stiller */
.section-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding-top: 0;
    margin-top: 0;
}

#ithalat .grid, #ihracat .grid {
    align-items: flex-start;
}

.section-content-wrapper p:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* İthalat ve İhracat görsel efektleri */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-container img {
    width: 100%;
    display: block;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to right, rgba(26, 35, 126, 0.5), rgba(26, 35, 126, 0.2), rgba(26, 35, 126, 0.5)),
        linear-gradient(to bottom, rgba(26, 35, 126, 0.5), rgba(26, 35, 126, 0.15) 30%, rgba(26, 35, 126, 0.15) 70%, rgba(26, 35, 126, 0.5));
    background-blend-mode: multiply;
    z-index: 1;
    opacity: 0.7;
}

.image-container.export::before {
    background: 
        linear-gradient(to left, rgba(26, 35, 126, 0.5), rgba(26, 35, 126, 0.2), rgba(26, 35, 126, 0.5)),
        linear-gradient(to bottom, rgba(26, 35, 126, 0.5), rgba(26, 35, 126, 0.15) 30%, rgba(26, 35, 126, 0.15) 70%, rgba(26, 35, 126, 0.5));
    background-blend-mode: multiply;
}

/* Tailwind eklentileri için özel stiller */
/* Bu kısım tailwind.config.js dosyasından taşındı */ 

/* İletişim formu başarılı mesajı stilleri */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.overlay.show {
    display: block;
}

.success-message {
    display: none;
    background-color: rgba(255, 255, 255, 0.95);
    color: #1a237e;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease;
    max-width: 90%;
    width: 400px;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background-color: #d4af37;
    position: relative;
    animation: scaleIn 0.5s ease;
}

/* Tik işaretinin sağ tarafı (kısa çizgi) */
.success-icon::before {
    content: '';
    position: absolute;
    top: 45%;
    left: 29%;
    width: 25%;
    height: 12%;
    background-color: white;
    transform: rotate(45deg);
    transform-origin: left center;
    border-radius: 10px;
    animation: checkFirst 0.4s ease 0.3s forwards;
    opacity: 0;
}

/* Tik işaretinin sol tarafı (uzun çizgi) */
.success-icon::after {
    content: '';
    position: absolute;
    top: 60%;
    left: 40%;
    width: 45%;
    height: 12%;
    background-color: white;
    transform: rotate(-45deg);
    transform-origin: left center;
    border-radius: 10px;
    animation: checkLast 0.4s ease 0.5s forwards;
    opacity: 0;
}

.success-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a237e;
}

.success-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.success-close {
    background-color: #1a237e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.success-close:hover {
    background-color: #2a337e;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes checkFirst {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes checkLast {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
} 