/* 
  İMC OTOMAT - Master Stylesheet
  Renk Paleti ve Tipografi
*/

:root {
    --primary-blue: #1A365D;
    --primary-blue-hover: #122847;
    --accent-teal: #2A8B9D;
    --accent-teal-hover: #217282;
    --light-bg: #F5F7FA;
    --text-dark: #333333;
    --text-gray: #666666;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 54, 93, 0.08);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.99) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 40px;
}

/* Logo Wrapper */
.logo-wrapper {
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 60px;
    overflow: hidden;
}

.logo-img {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 200px;
    display: block;
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    padding: 30px 18px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 22px;
    left: 18px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-teal));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.menu-link:hover {
    color: var(--accent-teal);
}

.menu-link:hover::after {
    width: calc(100% - 36px);
}

/* Contact Link Styling */
.menu-link-contact {
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 6px;
    padding: 12px 24px;
    margin-left: 10px;
    margin-right: 10px;
    height: auto;
    transition: all 0.3s ease;
}

.menu-link-contact::after {
    display: none;
}

.menu-link-contact:hover {
    background: var(--primary-blue-hover);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
    transform: translateY(-2px);
}

/* Header Actions & Language Selector */
.header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-selector {
    display: flex;
    gap: 8px;
    background: var(--light-bg);
    padding: 4px 8px;
    border-radius: 25px;
    border: 1.5px solid var(--border-color);
}

.lang-btn {
    background: transparent;
    border: 1.5px solid transparent;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--primary-blue);
    background: rgba(26, 54, 93, 0.05);
}

.lang-btn-active {
    background: var(--white);
    color: var(--accent-teal);
    border-color: var(--accent-teal);
    box-shadow: 0 2px 8px rgba(42, 139, 157, 0.15);
}

.lang-btn-active:hover {
    background: var(--white);
    border-color: var(--accent-teal-hover);
    color: var(--accent-teal-hover);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    gap: 5px;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../img/gorsel.jpg') no-repeat center center/cover;
    background-color: var(--light-bg); /* Fallback */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Koyu overlay soldan sağa, metni ve buton'u belirgin hale getir */
    background: linear-gradient(90deg, rgba(26,54,93,0.88) 0%, rgba(26,54,93,0.75) 35%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin-left: 0;
    padding-left: 80px;
    pointer-events: auto;
}

.hero-content h1 {
    font-size: 2.2rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
}

/* Button Primary Styling */
a.btn-primary,
button.btn-primary {
    display: inline-block !important;
    padding: 16px 40px;
    background-color: var(--accent-teal) !important;
    color: var(--white) !important;
    text-decoration: none !important;
    border: 2px solid var(--accent-teal);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(42, 139, 157, 0.4);
    transition: all 0.35s ease-out;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

a.btn-primary i,
button.btn-primary i {
    margin-left: 10px;
    transition: transform 0.35s ease-out;
    display: inline-block;
}

a.btn-primary:hover,
button.btn-primary:hover {
    background-color: var(--accent-teal-hover) !important;
    border-color: var(--accent-teal-hover);
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(42, 139, 157, 0.6);
}

a.btn-primary:hover i,
button.btn-primary:hover i {
    transform: translateX(6px);
}

a.btn-primary:active,
button.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(42, 139, 157, 0.4);
}

/* --- TYPOGRAPHY & TITLES --- */
.section-title {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.title-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-teal);
    margin-bottom: 30px;
    border-radius: 2px;
}

.center-line {
    margin: 0 auto 30px auto;
}

.section-subtitle {
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

/* --- HAKKIMIZDA --- */
.about-intro {
    margin-bottom: 60px;
}

.about-intro p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-align: justify;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--accent-teal);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-card .icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 139, 157, 0.1);
    color: var(--accent-teal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.vision-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
    color: var(--white);
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.2);
}

.vision-box h3 {
    color: var(--accent-teal);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.vision-box p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* --- HİZMETLERİMİZ --- */
.services-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: stretch;
}

.service-card {
    background: var(--white);
    padding: 25px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 0;
    word-break: break-word;
    flex: 1 1 25%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 0;
    background-color: var(--accent-teal);
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover h3,
.service-card:hover .service-icon {
    color: var(--white);
}

.service-icon {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card h3 {
    color: var(--primary-blue);
    font-size: 1rem;
    line-height: 1.3;
    transition: var(--transition);
}

/* --- SEKTÖRLER --- */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.sector-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sector-item:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.15);
}

.sector-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.sector-header i {
    font-size: 24px;
    color: var(--primary-blue);
}

.sector-header h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.sector-item p {
    color: var(--primary-blue);
    font-size: 0.95rem;
}

/* --- ÜRÜNLER --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(42, 139, 157, 0.15);
}

.product-image {
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(42, 139, 157, 0.05) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-placeholder {
    font-size: 60px;
    color: var(--accent-teal);
    opacity: 0.8;
}

.product-item h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    padding: 20px 20px 10px 20px;
}

.product-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    padding: 0 20px 20px 20px;
    line-height: 1.6;
}

/* --- İLETİŞİM & FORM --- */
#iletisim {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 100px;
}

/* Contact Info Card - Sol Taraf */
.contact-info {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a365d 100%);
    border-radius: 20px;
    padding: 50px;
    color: var(--white);
    box-shadow: 0 10px 50px rgba(26, 54, 93, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: rgba(42, 139, 157, 0.1);
    border-radius: 50%;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-teal);
    position: relative;
    z-index: 1;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 18px;
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-list i {
    font-size: 22px;
    color: var(--accent-teal);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.info-list span {
    flex: 1;
}

/* Contact Form Card - Sağ Taraf */
.contact-form {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    position: relative;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--primary-blue);
    background-color: var(--light-bg);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-teal);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(42, 139, 157, 0.1);
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: var(--accent-teal);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

textarea.form-control:focus {
    min-height: 150px;
}

.form-group button.btn-primary {
    width: 100%;
    margin-top: 15px;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    display: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* --- FOOTER --- */
footer {
    background-color: var(--primary-blue-hover);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* --- ANIMATIONS (SCROLL REVEAL) --- */
.reveal {
    position: relative;
    opacity: 0;
    transition: 0.8s all ease;
}

.reveal.active {
    opacity: 1;
}

/* Hero section hemen görünür */
.hero .reveal {
    opacity: 1;
}

/* Hakkımızda bölümü hemen görünür */
#hakkimizda .reveal {
    opacity: 1;
}

/* Hizmetlerimiz bölümü hemen görünür */
#hizmetlerimiz .reveal {
    opacity: 1;
    min-width: 0;
    transform: none !important;
}

/* Sektörler bölümü hemen görünür */
#sektorler .reveal {
    opacity: 1;
}

/* Ürünler bölümü hemen görünür */
#urunlerimiz .reveal {
    opacity: 1;
}

/* İletişim bölümü hemen görünür */
#iletisim .reveal {
    opacity: 1;
}

.active.fade-bottom {
    transform: translateY(0);
}
.fade-bottom {
    transform: translateY(50px);
}

.active.fade-left {
    transform: translateX(0);
}
.fade-left {
    transform: translateX(-50px);
}

.active.fade-right {
    transform: translateX(0);
}
.fade-right {
    transform: translateX(50px);
}

.active.fade-up {
    transform: scale(1);
}
.fade-up {
    transform: scale(0.9);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 800px) {
    .header-inner {
        padding: 0 30px;
        gap: 20px;
    }
    
    .menu-link {
        padding: 25px 14px;
        font-size: 13px;
    }
    
    .menu-link::after {
        bottom: 18px;
        left: 14px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }

    .services-grid {
        flex-wrap: wrap;
    }

    .service-card {
        flex: 1 1 calc(50% - 5px);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
        gap: 10px;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop nav, show mobile nav */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(245, 247, 250, 1) 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(26, 54, 93, 0.08);
        flex-direction: column;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 20px 0;
    }
    
    .menu-item {
        width: 100%;
    }
    
    .menu-link {
        padding: 16px 30px;
        font-size: 15px;
        border-bottom: 1px solid rgba(26, 54, 93, 0.05);
    }
    
    .menu-link::after {
        display: none;
    }
    
    .menu-link:hover {
        background: rgba(42, 139, 157, 0.08);
        padding-left: 40px;
    }
    
    .menu-link-contact {
        background: var(--primary-blue);
        color: var(--white);
        margin: 20px 30px 0 30px;
        border-radius: 6px;
        width: calc(100% - 60px);
        padding: 14px 20px;
        text-align: center;
        height: auto;
    }
    
    .menu-link-contact:hover {
        background: var(--primary-blue-hover);
    }
    
    /* Logo adjustment for mobile */
    .logo-img {
        max-height: 50px;
        max-width: 150px;
    }
    
    .logo-link {
        height: 50px;
    }
    
    /* Language selector mobile */
    .language-selector {
        gap: 4px;
        padding: 2px 4px;
    }
    
    .lang-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .lang-btn span {
        display: none;
    }
    
    /* Section padding */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding-left: 50px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        padding: 40px 30px;
    }
    
    .contact-form {
        padding: 40px 30px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-info {
        padding: 20px;
    }

    .services-grid {
        flex-wrap: wrap;
    }

    .service-card {
        flex: 1 1 calc(50% - 5px);
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 15px;
        height: 70px;
        gap: 8px;
    }
    
    .logo-img {
        max-height: 45px;
        max-width: 120px;
    }
    
    .logo-link {
        height: 45px;
    }
    
    .menu-link {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .menu-link-contact {
        margin: 15px 20px 0 20px;
        width: calc(100% - 40px);
    }
    
    .header {
        border-bottom: 1px solid rgba(26, 54, 93, 0.08);
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.1;
    }
    
    .hero-content {
        padding-left: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn-primary {
        padding: 14px 25px;
        font-size: 14px;
    }

    .services-grid {
        flex-wrap: wrap;
    }

    .service-card {
        flex: 1 1 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
