/* Genel Stiller */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #334d5c;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    background-color: #5e8b7e;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #334d5c;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #334d5c;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links li a {
    padding: 10px 0;
    font-weight: bold;
    color: #555;
    position: relative;
    transition: color 0.3s;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #5e8b7e;
    transition: width 0.3s;
}

.nav-links li a:hover, .nav-links li a.active {
    color: #334d5c;
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content li a {
    padding: 12px 16px;
    display: block;
    color: #555;
    font-weight: normal;
}

.dropdown-content li a::after {
    display: none; /* Remove underline effect from dropdown items */
}

.dropdown-content li a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Allow touch/click toggling on mobile when .open class is added by JS */
.dropdown.open .dropdown-content {
    display: block;
}

.header-contact .contact-button {
    background-color: #5e8b7e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.header-contact .contact-button:hover {
    background-color: #334d5c;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Slider */
.slider {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide .container {
    position: relative;
    z-index: 2;
}

.slide h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.slide p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Services Section */
.services {
    padding: 80px 0;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    font-size: 1.5rem;
    color: #334d5c;
    margin: 20px 0 10px;
}

.card p {
    padding: 0 20px;
    color: #666;
}

.card .card-link {
    display: inline-block;
    margin: 20px 0;
    font-weight: bold;
    color: #5e8b7e;
}

/* About Us Home Section */
.about-us-home {
    background-color: #fff;
    padding: 80px 0;
}

.about-us-home .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #334d5c;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content ul {
    margin-bottom: 30px;
}

.about-content ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-content ul li i {
    color: #5e8b7e;
    margin-right: 10px;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Footer */
footer {
    background-color: #334d5c;
    color: #f4f4f4;
    padding-top: 60px;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #5e8b7e;
}

.footer-col p {
    color: #ccc;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #5e8b7e;
}

.contact-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info li i {
    margin-right: 10px;
    color: #5e8b7e;
}

.contact-info a:hover {
    color: #5e8b7e;
}

.footer-col ul li a:hover {
    color: #5e8b7e;
    padding-left: 5px;
    transition: all 0.3s;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #4a6572;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin-bottom: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .header-contact {
        display: none;
    }

    .about-us-home .container {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile: make dropdown content behave well in vertical nav */
@media (max-width: 992px) {
    .nav-links .dropdown-content {
        position: static;
        box-shadow: none;
        background: none;
        padding: 0;
        display: none; /* default hidden until .open added */
    }

    .nav-links .dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown-content li a {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .slide h2 {
        font-size: 2.5rem;
    }

    .slide p {
        font-size: 1.2rem;
    }
}

/* Page Specific Styles */
.page-header {
    background-color: #334d5c;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin: 0;
}

.content-section {
    padding: 80px 0;
}

.content-section .container {
    display: flex;
    gap: 40px;
}

.content-section .main-content {
    flex: 2;
}

.content-section .main-content h2 {
    color: #334d5c;
    font-size: 2rem;
    margin-bottom: 20px;
}

.content-section .main-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.content-section .sidebar {
    flex: 1;
}

.sidebar .widget {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar .widget h3 {
    color: #334d5c;
    margin-bottom: 15px;
}

.sidebar .widget ul li {
    margin-bottom: 10px;
}

.sidebar .widget ul li a {
    color: #555;
    transition: color 0.3s;
}

.sidebar .widget ul li a:hover {
    color: #5e8b7e;
}

.referanslar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.referans-item {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.referans-item img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.referans-item:hover img {
    filter: grayscale(0);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    width: auto;
    align-self: flex-start;
}

.contact-details {
    line-height: 2;
}

.contact-details i {
    margin-right: 15px;
    color: #5e8b7e;
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .content-section .container {
        flex-direction: column;
    }
}
