/* General styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    color: var(--text-color); /* Using CSS Variable */
    line-height: 1.6; /* Improved Readability */
    font-size: 16px;    /* Base Font Size */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif; /* Using Montserrat for Headings */
    font-weight: 700; /* Bolder Headings */
    margin-top: 0;
    text-transform: uppercase; /* Uppercase Headings */
    letter-spacing: 0.05em;   /* Letter Spacing */
}

h1 {
    font-size: 3rem; /* Larger heading */
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}
h3{
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
}
/* --- Colors (Using CSS Variables) --- */
:root {
    --primary-color: #0056b3;
    --secondary-color: #ff7f00; /* Example */
    --text-color: #333;
    --text-color-light: #777;
    --background-color: #fff;
}

/* Header */
header {
    background-color: #f4f4f4;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.language-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang-btn {
    border: none;
    background-color: transparent;
    color: var(--text-color); /* Using CSS Variable */
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease; /* Added Transition */
}

.lang-btn.active {
    color: var(--primary-color); /* Using CSS Variable */
}

/* Hero Section */
#hero {
    background-image: url("images/hero-background.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0; /* Increased Padding */
    text-align: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.button {
  display: inline-block;
  background-color: var(--primary-color); /*Using CSS variables*/
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  -webkit-transition: background-color 0.3s ease, transform 0.3s ease;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background-color: var(--secondary-color); /* Use the secondary color */
  color: #fff;
}

.button:hover {
    background-color: var(--secondary-color); /* Use the secondary color */
    color: #fff; /* Keep text color white, or change to another contrasting color */
    transform: scale(1.05); /* Added slight scale on hover */
}

/* About Section */
#about {
    padding: 80px 0; /* Increased Padding */
    text-align: center;
}

#about h2 {
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.about-image-container {
    flex: 1 1 400px;  /* Grow, shrink, base width */
    /* Removed border/shadow from here, applied to image directly */
}
.about-image {
    display: block; /* Important for consistent image behavior */
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.about-text {
    flex: 2 1 500px;  /* Grow more, shrink, base width */
    text-align: left; /* Left-align text */
}
.about-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px auto;
    width: 50%;
}
.about-text p {
    text-align: justify;
    hyphens: auto;
    margin-bottom: 1.5rem;
}

/* Services Section */
#services {
    background-color: var(--secondary-color); /* Light background */
    padding: 80px 0; /* Increased Padding */
    text-align: center;
}

#services h2, #contact h2, #about h2 {
    margin-bottom: 40px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* More pronounced shadow */
    -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.service:hover {
    transform: translateY(-10px); /* More pronounced lift */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); /* Stronger shadow */
    border-color: var(--secondary-color);
}

.service img {
    margin: 0 auto 20px;
    height: 70px;
    width: auto;
}

.service h3 {
    margin-bottom: 15px;
}

.service p {
    font-size: 0.95rem;
}

/* --- Service Link Styles --- */
.service-link {
    text-decoration: none; /* Remove underlines from the link */
    color: inherit;      /* Inherit text color from parent */
    display: block;      /* Make the link fill the entire service box */
}

/* Contact Section */
#contact {
    padding: 80px 0;
    text-align: center;
}

.branches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.branch-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-box:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.branch-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.branch-box h3 {
    margin-top: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start; /* Keep this for overall alignment */
    margin-bottom: 10px;
}

.contact-item i {
    margin-right: 10px;
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    /* NEW: Use line-height and vertical-align */
    line-height: 1.6;  /* Match the line-height of the paragraph text */
    vertical-align: top; /* Align to the top of the line box */
}

/* More specific rule to override a conflicting style */
#contact .contact-item i {
    line-height: 3;
    vertical-align: top;
}

.contact-item p {
    display: flex;
    flex-direction: column;
}

.contact-item span.en,
.contact-item span.tr {
    font-weight: bold;
    color: var(--text-color-light);
    margin-bottom: 2px;
    display: inline-block;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease; /* Added Transition */
}

.social-icons a:hover {
    color: #ddd;
}

/* Link Hover */
a:hover {
    color: var(--secondary-color); /* Or primary, depending on the palette */
    border-bottom-color: var(--secondary-color);
}

/* Hidden content */
.tr {
    display: none;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
     .about-image-container{
        width: 100%;
    }

    .branches-container {
        flex-direction: column;
    }
    footer .container{
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) { /* Added Media Query for Smaller Screens */
    h1 {
        font-size: 2.5rem; /* Smaller font size on very small screens */
    }
    .button {
        padding: 12px 25px; /* Smaller padding on very small screens */
    }
}

/* --- Navigation Styles --- */
.main-nav {
    margin: 0 20px; /* Add some space between logo/lang switcher and nav */
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* --- Dropdown Styles --- */

/* NEW: Add relative positioning to the parent LI */
.dropdown {
    position: relative;
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: none;     /* Hide by default */
    z-index: 10;
    min-width: 160px;
}

/* NEW: Use > to target direct children */
.dropdown:hover > .dropdown-menu {
    display: block; /* Show on hover of the LI */
}

.dropdown-menu li {
    padding: 10px 15px;
    transition: background-color 0.3s ease;
     white-space: nowrap; /* Prevent text wrapping */
}
.dropdown-menu .nav-link{
  border-bottom: none;
}

.dropdown-menu li:hover {
    background-color: #f0f0f0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .main-nav{
        margin: 0;
    }
    .nav-list {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    header .container{
        flex-direction: column;
    }

    /* Dropdown adjustments for mobile */
    .dropdown-menu {
        position: static; /* Override absolute positioning */
        display: none; /* Hide by Default */
        box-shadow: none;
        border-radius: 0;
        width: 100%;
    }
     .dropdown:hover > .dropdown-menu{
        display: block;
    }
    .dropdown-menu li {
        text-align: center; /* Center text on mobile */
        padding: 8px 12px;
    }
}