/* 
   Web Adı: Triport Kara Taşıma ve Gümrükleme
   Tasarım: Referans (Medura Concept) Birebir Uyarlama
   Ana Renkler: Kırmızı (#E3021B), Koyu Gri (#282828), Beyaz (#FFFFFF)
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #082c48;
    /* Brand Navy Blue */
    --footer-bg: #282828;
    /* Medura Footer Dark Grey */
    --text-color: #333333;
    --nav-text-color: #082c48;
    --white: #ffffff;
    --light-grey-text: rgba(255, 255, 255, 0.75);
    --font-primary: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}



a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navbar */
header {
    background-color: var(--white);
    height: 101px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 70px;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links li {
    margin-left: 25px;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Nav Link Styling & Active State */
.nav-links a {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--nav-text-color);
    /* #E3021B */
    letter-spacing: 0.5px;
    padding: 0 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.lang-switch {
    margin-left: 30px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
}

.lang-switch span.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

/* Mobile Menu Icon */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 510px;
    overflow: hidden;
    padding: 0;
    /* Override section padding */
    background: #000;
    /* Fallback */
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    /* Center vertically */
    overflow: hidden;
    /* Ensure video doesn't overflow */
}

/* Video Background Styling */
/* Video Background Styling */
.slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    /* Ensures video covers exactly without distortion */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.slide.active video {
    animation: slowZoom 18s linear infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Slightly darker for better text contrast if needed */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #f7f7f7;
    text-align: start;
    max-width: 800px;
    padding-left: 15px;
}

.hero-slider h1 {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.2;
    /* Slide in animation for text */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out 0.5s;
    /* Delay to sync with slide fade */
}

.slide.active h1 {
    transform: translateY(0);
    opacity: 1;
}

.hero-slider p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0;
    /* No button below anymore */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out 0.7s;
}

.slide.active p {
    transform: translateY(0);
    opacity: 1;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

/* Decorative underline for section title */
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

/* Corporate / Features Section */
.corporate-section {
    background-color: #fff;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card a {
    display: block;
}

.feature-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 9.6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Stronger base shadow */
    margin-bottom: 15px;
    position: relative;
    transition: all 0.4s ease;
    /* Ensure shadow transitions smoothly */
}

.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* Overlapping Border Effect specifically for feature cards */
.feature-img-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
    pointer-events: none;
    /* Let clicks pass through */
}

.feature-card:hover .feature-img-wrapper::after {
    opacity: 1;
    transform: scale(1);
}

.feature-card:hover .feature-img-wrapper img {
    transform: scale(1.1);
    /* Slightly stronger zoom */
    filter: brightness(0.9);
    /* Dims image slightly to make text/border pop */
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-top: 10px;
    transition: all 0.3s ease;
}

/* Enhanced Hover Effects */
.feature-card:hover {
    transform: translateY(-10px);
    /* Lift the whole card */
}

.feature-card:hover .feature-img-wrapper {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    /* Much deeper shadow on hover */
}

.feature-card:hover h3 {
    letter-spacing: 1px;
    /* Spread text slightly */
    color: #E3021B;
    /* Ensure distinct red */
}

/* Services / Grid */
.services-section {
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    /* Adjusted for 5 items: smaller min-width and gap */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Force 5 columns on desktop to keep them on one line as requested */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.service-item {
    background: #fff;
    padding: 35px 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer border */
    border-radius: 12px;
    /* Modern rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft floating shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    /* Center align content */
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Uniform height */
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(8, 44, 72, 0.15);
    /* Navy-tinted deep shadow */
    border-color: rgba(8, 44, 72, 0.2);
}

.service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.service-item:hover::after {
    transform: scaleX(1);
}

.service-icon {
    font-size: 32px;
    color: var(--primary-color);
    background: rgba(8, 44, 72, 0.06);
    /* Light navy background */
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    /* Center horizontally */
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(0deg);
    box-shadow: 0 10px 20px rgba(8, 44, 72, 0.3);
}

.service-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    transition: color 0.3s;
}

.service-item p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* NEW Footer Design - Medura Concept Style */
footer {
    width: 100%;
    background: linear-gradient(to top, #082c48, #104874);
    color: var(--white);
    padding: 80px 0 40px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    /* Logo size in footer */
    /* Filter to make logo white if it's not already, or use a white version */
    filter: brightness(0) invert(1);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 50px;
}

.footer-contact-info p {
    margin: 0;
}

.footer-contact-info a {
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #E3021B;
    text-decoration: underline;
}

.footer-social {
    margin-bottom: 40px;
}

.footer-social a {
    color: #fff;
    font-size: 20px;
    margin: 0 15px;
    opacity: 0.8;
    display: inline-block;
    /* Required for transform */
    transition: all 0.3s ease;
}

.footer-social a:hover {
    opacity: 1;
    color: #E3021B;
    /* Red hover */
    transform: translateY(-3px) scale(1.2);
    /* Lift and grow */
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Page Specific - Split Layout */
.contact-page-wrapper {
    display: flex;
    flex-wrap: wrap;
    min-height: calc(100vh - 101px - 400px);
    /* Adjust based on header/footer */
}

.contact-map-section {
    flex: 6.5;
    /* Approx 65% */
    min-height: 500px;
    position: relative;
    min-width: 300px;
}

.contact-map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.contact-info-section {
    flex: 3.5;
    /* Approx 35% */
    background-color: #fff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

.contact-page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #333;
}

.contact-list {
    margin-top: 30px;
}

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

.contact-list-item i {
    color: #333;
    /* Dark icons as seen in analysis */
    font-size: 18px;
    margin-right: 20px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.contact-details h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.contact-details p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Page Headers (for other pages) */
.page-header {
    height: 400px;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 60px;
    position: relative;
}

/* Vision & Mission Page Styling */
.vm-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 80px;
}

.vm-image {
    flex: 0 0 40%;
    /* Fixed 40% width */
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Elegant shadow */
    transition: transform 0.4s ease;
}

.vm-image:hover {
    transform: translateY(-10px);
    /* Subtle lift */
}

.vm-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.vm-content {
    flex: 1;
    /* Takes remaining space */
    padding: 30px;
    background: #fff;
    border-left: 5px solid var(--primary-color);
    /* Decorative accent */
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Light shadow for text */
}



.vm-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.vm-section.reverse {
    flex-direction: row-reverse;
}

.vm-section.reverse .vm-content {
    border-left: none;
    border-right: 5px solid var(--primary-color);
    border-radius: 10px 0 0 10px;
    text-align: right;
}

/* Mobile Responsiveness for VM */
@media (max-width: 768px) {

    .vm-section,
    .vm-section.reverse {
        flex-direction: column !important;
        gap: 30px;
    }

    .vm-image {
        flex: 0 0 100%;
        width: 100%;
        max-height: 300px;
    }

    .vm-content,
    .vm-section.reverse .vm-content {
        text-align: center;
        border: none;
        border-top: 5px solid var(--primary-color);
        border-radius: 0 0 10px 10px;
    }
}

.page-header h1 {
    position: relative;
    z-index: 1;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        height: 80px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
        height: auto;
    }

    .features-grid {
        flex-direction: column;
    }

    .feature-img-wrapper {
        height: 200px;
    }

    .hero {
        height: 400px;
    }



    .hero h1 {
        font-size: 24px;
    }

    .contact-page-wrapper {
        flex-direction: column;
    }

    .contact-map-section {
        height: 300px;
        min-height: 300px;
    }
}

/* Global Styled Heading (Red Underline) */
.styled-heading {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.styled-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Clean Links in values grid */
.value-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card-link:hover .value-card {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(8, 44, 72, 0.15);
    /* Navy shadow */
    border-color: var(--primary-color);
    background: #fff;
}

.value-card {
    height: 100%;
    /* Ensure equal height */
    background: #f9f9f9;
    padding: 40px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 8px;
    /* Slight roundness */
}

/* Content Protection Styles */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Allow selection in input fields if needed */
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Print Protection */
@media print {

    html,
    body {
        display: none !important;
    }
}

/* Refactored Utility Styles*/
/* Service Detail Cards */
.service-detail-card {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-detail-card.row-reverse {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    /* For image zoom */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Base shadow */
    transition: all 0.4s ease;
    z-index: 1;
    /* Ensure shadow sits on top */
}

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

/* Hover Effect for Service Images - Matching Homepage */
.service-detail-card:hover .service-img {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    /* Deep shadow on hover */
}

.service-detail-card:hover .service-img img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.service-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-img {
    float: right;
    margin: 0 0 20px 30px;
    max-width: 45%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.service-list-header {
    color: var(--primary-color);
    margin-top: 10px;
}

.service-list {
    color: #555;
    list-style-type: disc;
    padding-left: 20px;
}

/* Helper for Services reverse layout */
.row-reverse {
    flex-direction: row-reverse;
}

.quality-title {
    text-align: center;
    margin-top: 50px;
    font-size: 24px;
}

.vision-divider {
    border: 0;
    border-top: 1px solid #eee;
}

.vision-list {
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
    margin-bottom: 20px;
}

/* Map Popup Styles (Contact Page) */
.popup-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    min-width: 200px;
}

.popup-title {
    color: #E3021B;
    margin: 0 0 10px;
    font-weight: 700;
}

.popup-item {
    margin: 5px 0;
}

.popup-icon {
    color: #E3021B;
    width: 20px;
}

/* Quote Button in Navbar */
.quote-btn {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 15px !important;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.quote-btn:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

.quote-btn::after {
    display: none;
    /* Remove underline effect for button */
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding-top: 20px;
    /* Ensure space from top */
    padding-bottom: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    /* Reduced margin */
    padding: 30px;
    /* Reduced vertical padding */
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    /* Increased width */
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.3s;
    z-index: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 24px;
    text-align: center;
}

.modal p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

/* Form Grid Layout */
#quoteForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
    /* Managed by grid gap */
}

/* Full width for specific items */
.form-group.full-width,
.submit-btn,
#formStatus {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    /* Slightly compacted */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--primary-color);
}

/* Success/Error Message Styling */
.form-success {
    color: green;
    text-align: center;
    font-weight: 600;
    grid-column: 1 / -1;
}

.form-error {
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
    grid-column: 1 / -1;
}

/* Mobile responsive for modal grid */
@media (max-width: 600px) {
    #quoteForm {
        grid-template-columns: 1fr;
    }
}