/* --- Genel Ayarlar ve Sıfırlamalar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    width: 100%;
    overflow-x: hidden;
}

/* --- Üst Menü (Navbar) Stilleri --- */
.navbar {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
}

/* --- Logo Stilleri --- */
.logo {
    display: flex;
    align-items: center;
    justify-self: center;
}

.logo-img {
    height: 73px;
    margin-right: 10px;
}

.logo-text h1 {
    font-size: 24px;
    color: #2c3e50;
    letter-spacing: 1px;
    font-weight: 500;
}

.logo-text p {
    font-size: 10px;
    color: #7f8c8d;
    letter-spacing: 2px;
    margin-top: -5px;
}

/* --- Navigasyon Linkleri --- */
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #34495e;
    font-size: 16px;
    font-weight: 400;
    padding: 10px 0;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #000000;
}

.nav-sol {
    justify-self: start;
    padding-left: 20px;
}

.nav-sag {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 20px;
}

/* --- Arama Kutusu --- */
.search-lang-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    border: 1px solid #d1d1d1;
    border-radius: 25px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #ffffff;
}

.search-bar input {
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    width: 180px;
    background: none;
}

.search-bar input::placeholder {
    color: #aaa;
}

.search-bar button {
    border: none;
    background: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    color: #555555;
    transition: color 0.3s;
}

.search-bar button:hover {
    color: #000000;
}

/* --- Dil Seçici --- */
.lang-switch {
    display: flex;
    gap: 6px;
}

.lang {
    background: none;
    border: 1px solid #ccc;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lang:hover {
    background: #f0f0f0;
}

.lang.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* --- Hero Section - Video ve Overlay --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

.hero-overlay h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 12px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
}

.hero-overlay p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    max-width: 800px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Machines Section --- */
.machines-section {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}

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

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: #2c3e50;
    display: inline-block;
    position: relative;
    margin-bottom: 70px;
}

.section-title a {
    text-decoration: none;
    color: inherit;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 80px;
    bottom: -20px;
    width: 100%;
    height: 13px;
    background-image: url('cizgi.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* --- Gallery --- */
.gallery-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-arrow {
    border: 2px solid #96230e;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #96230e;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-arrow:hover {
    background-color: #96230e;
    border-color: #96230e;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(150, 35, 14, 0.3);
}

.image-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 15px 0;
    flex: 1;
    max-width: 1000px;
    position: relative;
    /* Scroll çakışmasını önlemek için */
    overscroll-behavior-x: contain;
}

.image-gallery::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.gallery-item {
    flex: 0 0 auto;
    width: 380px;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.gallery-item p {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.gallery-item img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* --- About Section --- */
.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 40px;
    padding: 0 20px;
}

.about-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.about-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 1 1 300px;
    max-width: 400px;
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Features Grid --- */
.features-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-card {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 50px 30px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fff 50%, #e0e0e0 51%);
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #9b59b6;
}

.card-icon {
    font-size: 50px;
    margin-bottom: 25px;
    color: #cb4335;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    color: #cb4335;
}

/* --- Goals Section --- */
.goals-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.goal-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.goal-card:hover {
    transform: translateY(-5px);
}

.goal-card i {
    font-size: 40px;
    color: #0066cc;
    margin-bottom: 15px;
}

.goal-card p {
    font-size: 16px;
    font-weight: 500;
}

/* --- CAD/CAM Section --- */
.cadcam-section {
    padding: 40px 0;
    background: #fff;
}

.cadcam-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cadcam-image img {
    width: 380px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cadcam-content {
    flex: 1;
    max-width: 600px;
}

.cadcam-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cadcam-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.highlight-blue,
.highlight-orange {
    color: #96230e;
    font-weight: 600;
}

.highlight {
    font-weight: 600;
}

/* --- Products Section --- */
.products-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 0 40px;
}

.products-row.center {
    justify-content: center;
}

.product-card {
    width: 420px;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-body {
    padding: 25px;
    text-align: left;
    width: 100%;
}

.product-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0056b3;
    text-align: left;
}

.product-text {
    font-size: 14px;
    color: #444;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.6;
}

.product-text ul {
    text-align: left;
    padding-left: 20px;
    margin: 10px 0;
    list-style-type: disc;
}

.product-text li {
    margin-bottom: 6px;
}

.full-text {
    display: none;
    text-align: left;
}

.full-text.open {
    display: block;
}

.toggle-btn {
    background: #8b1c0f;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    margin-top: 10px;
}

.toggle-btn:hover {
    background: #b32616;
}

/* --- Footer --- */
.synmotion-full-header {
    width: 100%;
    padding: 40px 0;
    background-color: #ffffff;
    text-align: center;
}

.synmotion-full-header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: -12px auto;
    margin-bottom: -55px;
}

.synmotion-footer {
    background-color: #96230e;
    color: #ffffff;
    padding-top: 50px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.synmotion-footer h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-basis: 300px;
}

.footer-logo-img {
    height: 200px;
    width: auto;
    filter: brightness(0) invert(1);
}

.synmotion-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.synmotion-footer ul li {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.synmotion-footer ul li i {
    margin-right: 10px;
    font-size: 16px;
    color: #ffd700;
    margin-top: 3px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background-color: #96230e;
}

.footer-copyright p {
    font-size: 12px;
    margin: 0;
    font-weight: 300;
}

.powered-by img {
    height: auto;
    display: block;
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    font-size: 26px;
    color: #333;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #ffffff;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    border-top: 1px solid #ddd;
    z-index: 999;
    padding: 15px 0;
}

.mobile-nav a {
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 17px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.mobile-nav a:hover {
    background: #f5f5f5;
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* === RESPONSIVE DESIGN === */
/* ============================================= */

@media (max-width: 992px) {
    .navbar .container {
        grid-template-columns: 1fr auto;
        position: relative;
    }

    .nav-sol,
    .nav-sag {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    .logo {
        justify-self: start;
    }

    .goals-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .hero-section {
        height: 70vh;
    }

    .hero-overlay h1 {
        font-size: 2.5rem;
        letter-spacing: 6px;
        margin-bottom: 1rem;
    }

    .hero-overlay p {
        font-size: 1.2rem;
        letter-spacing: 1px;
        padding: 0 20px;
    }

    .gallery-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .gallery-arrow {
        display: none;
    }

    .image-gallery {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 0;
        gap: 15px;
    }

    .gallery-item {
        width: 280px;
        flex-shrink: 0;
    }

    .gallery-item img {
        height: 200px;
        width: 100%;
    }

    .products-row {
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        width: 90%;
    }

    .product-card img {
        height: auto;
    }

    .about-cards {
        flex-direction: column;
        align-items: center;
    }

    .about-card {
        width: 90%;
        max-width: 400px;
    }

    .cadcam-container {
        flex-direction: column;
    }

    .cadcam-image img {
        width: 100%;
        max-width: 350px;
    }

    .features-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 90%;
        max-width: 350px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo-area {
        justify-content: center;
    }

    .footer-copyright {
        flex-direction: column;
        padding: 20px 15px;
        gap: 10px;
        text-align: center;
    }

    .goals-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .goal-card {
        width: 90%;
        margin: 0 auto;
    }

    .section-container,
    .machines-section {
        padding-left: 10px;
        padding-right: 10px;
        overflow:hidden;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 60px;
        margin-top: -10px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 24px;
    }

    .product-body h3 {
        font-size: 16px;
    }

    .toggle-btn {
        font-size: 12px;
    }

    .goal-card i {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .footer-copyright {
        flex-direction: column;
        padding: 20px 15px;
        gap: 10px;
        text-align: center;
    }
}