* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-bg:#2C3E50;
    --text-color: #439104;
    --accent-color: #2C3E50;
    --light-bg: #f4f4f4;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #439104;
    background-color: #f9f9f9;
    padding-top: 90px; /* Header yüksekliğinden biraz daha fazla boşluk */
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape iOS */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: var(--main-bg);
    color: #439104;
    border: 2px solid var(--text-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    background: var(--text-color);
    color: var(--main-bg);
    border-color: var(--main-bg);
}

section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--main-bg);
    font-size: 2.5rem;
}

/* Header and Logo */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #FAF7F0;
    color: #439104;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: visible; /* Changed from hidden to prevent cutoff */
    height: auto; /* Allow content to determine height */
    min-height: 90px; /* Ensure minimum height */
    -webkit-transform: translateZ(0); /* Improve fixed positioning on iOS */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden; /* Fix rendering issues */
    backface-visibility: hidden;
}

.header::before {
    display: none;
}

.header-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    width: 100%;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.logo-section {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 20px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    min-height: 60px; /* Ensure minimum height for logo */
}

.logo-icon {
    width: 90px;
    height: 90px;
    position: relative;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo-text h1 {
    color: #333;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-right: 12px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    font-family: 'Georgia', serif;
    text-transform: uppercase;
}

.company-name {
    display: flex;
    flex-direction: column;
}

.company-name p {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1px;
    font-family: 'Arial Narrow', sans-serif;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.main-nav ul {
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
    margin-left: auto;
}

.main-nav ul li {
    margin: 0 18px;
}

.main-nav ul li a {
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 6px 12px;  
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav ul li a:hover {
    color: #0099ff;
}

/* Dil Değiştirme Butonları */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--main-bg);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 2px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #013294;
    border-color: #013294;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    color: #013294;
    border-color: #013294;
    font-weight: 700;
}

.lang-divider {
    color: #333;
    margin: 0 2px;
}

/* Services Section with Tabs */
.services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-btn {
    background-color: transparent;
    border: 2px solid var(--main-bg);
    color: var(--main-bg);
    padding: 12px 25px;
    margin: 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background-color: #e7d4a7;
    color: #333;
}

.about-tabs-buttons .tab-btn.about-tab-btn {
    background-color: #f2e9e9;
    border: 2px solid #ffffff;
    color: #2C3E50;
    padding: 12px 25px;
    margin: 0 10px;
    font-size: 1.1rem;  
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-tabs-buttons .tab-btn.about-tab-btn:hover,
.about-tabs-buttons .tab-btn.about-tab-btn.active {
    background-color: #FAF7F0;
    color: #013294;
    border-color: #00e5ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.section-description {
    color: #000;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

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

/* References Section */
.references {
    padding: 80px 0;
    background-color: var(--main-bg);
    color: #090909;
    position: relative;
}

.references::before {
    display: none;
}

.references .container {
    position: relative;
    z-index: 2;
}

.references h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.references-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.reference-item {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.reference-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-color);
}

.reference-logo img {
    max-width: 200%;
    max-height: 200%;
    object-fit: contain;
}

.reference-item h3 {
    color: var(--main-bg);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.reference-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 4px solid var(--main-bg);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--text-color);
}

.service-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    height: 180px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-card h3 {
    color: var(--main-bg);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Hero Section */
.hero {
    background-image: url('images/nakliye.png');
    background-size: cover;
    background-position: center;    
    height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #333;
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: white;
}

/* About Section */
.about {
    background-color: #fff;
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--main-bg), var(--text-color), var(--main-bg));
}

.about h2 {
    color: var(--main-bg);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: #333;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
    color: #333;
    line-height: 1.7;
}

.about-text ul {
    margin: 20px 0;
    padding-left: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: auto;
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-placeholder:hover {
    transform: scale(1.02);
}

.image-placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 20px;
}


/* Contact Section */
.contact {
    background-color: #f9f9f9;
    position: relative;
}

.contact-banner {
    background-color: var(--main-bg);
    color: #333;
    padding: 20px 0;
    position: relative;
}

.contact-banner::before {
    display: none;
}

.contact-banner h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 3px;
}

.contact-slogan {
    width: 100%;
    text-align: center;
    position: relative;
}

.contact-slogan p {
    color: #333;
    font-size: 1.1rem;
    letter-spacing: 5px;
    font-weight: 300;
    opacity: 0.8;
    position: relative;
}

.contact-slogan p::before,
.contact-slogan p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background-color: #333;
    opacity: 0.5;
}

.contact-slogan p::before {
    left: 30%;
}

.contact-slogan p::after {
    right: 30%;
}

.contact-container {
    padding-top: 50px;
    padding-bottom: 50px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(to bottom right, rgba(139, 0, 0, 0.05), rgba(255, 255, 255, 1));
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--main-bg);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
}

.contact-info h3,
.contact-form h3 {
    color: var(--main-bg);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.contact-info h3::after,
.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #333;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--main-bg);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.info-item p, .info-item a {
    color: #444;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--main-bg);
    text-decoration: underline;
}

.social-media {
    display: flex;
    margin-top: 30px;
    justify-content: flex-start;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--main-bg);
    color: #ffffff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.social-icon i {
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(to bottom left, rgba(139, 0, 0, 0.05), rgba(255, 255, 255, 1));
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-right: 4px solid var(--text-color);
    position: relative;
    overflow: hidden;
}

.contact-form::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(139, 0, 0, 0.1);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-bg);
    font-size: 1.2rem;
}

.form-group textarea + i {
    top: 20px;
    transform: none;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-bg);
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
    background-color: white;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.contact-form .btn:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--main-bg);
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #333;
}

footer p {
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 999;
    margin-left: auto;
    margin-right: 20px;
}

.hamburger-icon {
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #968787;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-icon.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .header {
        /* iOS Safari specific fixes */
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    body {
        /* Account for top safe area insets */
        padding-top: calc(90px + env(safe-area-inset-top, 0));
    }
    
    @media (max-width: 480px) {
        body {
            padding-top: calc(70px + env(safe-area-inset-top, 0));
        }
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hamburger-menu {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: rgba(255, 255, 255, 0.95);
        transition: all 0.4s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 998;
    }
    
    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    .main-nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .main-nav ul li a {
        font-size: 1.2rem;
        padding: 12px 0;
        display: block;
    }
    
    .language-switcher {
        position: fixed;
        bottom: 20px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active + .language-switcher {
        opacity: 1;
    }

    .header-container {
        justify-content: flex-start;
        padding: 15px;
    }
    
    .logo-section {
        margin-right: 0;
    }
}

@media (max-width: 768px) {    
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .company-name p {
        font-size: 0.9rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .services-grid,
    .about-content, 
    .contact-content,
    .vision-mission-content {
        flex-direction: column;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        margin: 5px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .reference-item {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    .header {
        min-height: 70px;
        height: auto;
        padding: 5px 0;
        position: fixed; /* Reinforce fixed positioning */
        width: 100vw; /* Use viewport width */
    }
    
    .logo-image {
        width: 100px;
        height: 100px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .company-name p {
        font-size: 0.8rem;
    }
    
    .main-nav {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
}
