/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* Enable smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #007aff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #007aff;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 15px;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #007aff;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: #005dc0;
}

.separator {
    font-size: 0.85rem;
    color: #6c6c6c;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    color: #ffffff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Grouping of hero subtitles */
.hero-subtext {
    margin-bottom: 20px;
}

.cta-btn {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    background-color: #007aff;
    color: #ffffff;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #005dc0;
}

/* Section common styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a1a;
}

/* Services Section */
.services {
    background-color: #f7f9fc;
}

/* Ensure service card titles and descriptions are on separate lines */
.services .card h3 {
    display: block;
    margin-bottom: 12px;
}

.services .card p {
    display: block;
}

.cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 calc(33.333% - 20px);
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.icon-wrapper {
    font-size: 2rem;
    color: #007aff;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    display: block;
}

.card-text {
    font-size: 0.95rem;
    color: #555;
    display: block;
}

/* Projects Section */
.projects {
    background-color: #ffffff;
}

.project-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-card {
    background-color: #f7f9fc;
    border-radius: 8px;
    overflow: hidden;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
    display: block;
}

.project-info p {
    font-size: 0.95rem;
    color: #555;
    display: block;
}

/* Contact Section */
.contact {
    background-color: #f7f9fc;
}

/* Center the heading and tagline in contact section */
.contact .section-title {
    text-align: center;
}

.contact-text {
    display: block;
    text-align: center;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
}

.submit-btn {
    align-self: center;
    background-color: #007aff;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #005dc0;
}

.contact-details {
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: #f7f9fc;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* Language control: hide Turkish by default */

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .cards {
        flex-direction: column;
    }
    .card {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }
    .lang-toggle {
        margin-left: 0;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .cta-btn {
        font-size: 0.9rem;
        padding: 10px 24px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .project-card {
        max-width: 100%;
    }
}

/* Language visibility control using data attribute */
/*
 * Only hide the elements for the inactive language. Do not explicitly set
 * the display property on the active language elements because the
 * initial value of display is "inline", which breaks block-level
 * elements like headings and paragraphs. Without specifying a display
 * value, the elements will retain their natural display type (e.g. h2
 * remains block, p remains block, nav links remain inline) and the
 * layout stays intact.  We simply hide the opposite language using
 * display: none.
 */
html[data-lang="en"] .lang-tr { display: none !important; }
html[data-lang="tr"] .lang-en { display: none !important; }