@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0e7add;
    --primary-gradient: linear-gradient(135deg, #1fc4f0 0%, #0e7add 100%);
    --accent: #1fc4f0;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --text: #475569;
    --text-dark: #0f172a;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

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

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

/* --- Top Bar --- */
.top-bar {
    background-color: #0c65b8;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13.5px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left a {
    color: var(--white);
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.top-bar-left a:hover {
    color: var(--accent);
}

.top-bar-right {
    font-weight: 500;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item a {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: block;
}

.nav-item a:hover,
.nav-item.active a {
    background-color: rgba(14, 122, 221, 0.08);
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* --- Titlebar (Page Banner) --- */
.titlebar {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 50px 0;
    text-align: left;
    position: relative;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.05);
}

.titlebar h1 {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.titlebar p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

.breadcrumb {
    margin-top: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 8px;
    align-items: center;
}

.breadcrumb a {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* --- CSS Slider (Homepage Hero) --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background-color: var(--dark);
}

.slider-wrapper {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slide-animation 15s infinite;
}

.slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--white);
    z-index: 10;
    max-width: 550px;
    background: rgba(14, 122, 221, 0.85);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(5px);
    border-left: 5px solid var(--accent);
}

.slide-content h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 16px;
    opacity: 0.95;
}

@keyframes slide-animation {
    0%, 30% { transform: translateX(0); }
    33%, 63% { transform: translateX(-33.333%); }
    66%, 96% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

/* --- Section Styling --- */
.section {
    padding: 70px 0;
}

.section-grey {
    background-color: #f1f5f9;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 15px;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* --- Portfolio / Products Grid (Systems, Materials) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-media img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 122, 221, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-btn {
    background-color: var(--white);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.portfolio-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

/* --- Corporate Info Card --- */
.corporate-info-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.corporate-info-card p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
}

.corporate-info-card p:first-of-type {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 500;
}

/* --- References Grid --- */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.reference-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.reference-card:hover {
    box-shadow: var(--shadow-lg);
}

.reference-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.reference-name {
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

/* --- Contact & Branches --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.map-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.map-card iframe {
    width: 100%;
    height: 480px;
    display: block;
}

/* Forms styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 122, 221, 0.15);
}

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

.btn-submit {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Branches section */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.branch-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.branch-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
    display: inline-block;
}

.branch-card p {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.5;
}

/* --- Footer --- */
footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 40px 0;
    font-size: 14px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer strong {
    color: var(--white);
}

/* --- Lightbox / Modal Overlay (CSS) --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fade-in 0.3s ease-out;
    backdrop-filter: blur(5px);
}

.lightbox-container {
    background-color: var(--white);
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scale-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-header {
    background-color: var(--light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lightbox-header h3 {
    font-size: 18px;
}

.lightbox-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}

.lightbox-close-btn:hover {
    color: var(--primary);
}

.lightbox-body {
    padding: 0;
    flex-grow: 1;
    position: relative;
    aspect-ratio: 4/3;
    background-color: #000;
}

.lightbox-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Lightbox Animation Out */
.lightbox-overlay.fade-out {
    animation: fade-out 0.3s ease-in forwards;
}

.lightbox-overlay.fade-out .lightbox-container {
    animation: scale-down 0.3s ease-in forwards;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes scale-up {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes scale-down {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.9); opacity: 0; }
}

/* --- Works Detail (Iframe İçeriği İçin Sade Stil) --- */
body.works-detail-body {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
    min-height: 100vh;
}

.works-image-container {
    max-width: 100%;
    margin: 0 auto;
    background-color: #000;
}

.works-image-container img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        border-top: 1px solid var(--border);
    }
    
    .navigation.mobile-active .nav-menu {
        display: flex;
    }
    
    .mobile-nav-toggle {
        display: block;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .corporate-info-card {
        grid-column: span 1;
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .titlebar h1 {
        font-size: 24px;
    }
    
    .top-bar-left {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}
