/* ======================================
   Karahanlı Group A.Ş. - Ana Stil Dosyası
   ====================================== */

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

:root {
    --primary: #1a2744;
    --primary-light: #243558;
    --primary-dark: #0f1a2e;
    --secondary: #2c3e50;
    --accent: #d4a843;
    --accent-light: #e8c36a;
    --accent-dark: #b8922e;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--primary); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

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

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

/* ---- HEADER ---- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(26,39,68,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    transition: var(--transition);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; max-width: 1200px; margin: 0 auto; height: 80px;
}
.header-logo { display: flex; align-items: center; order: 1; margin-right: auto; }
.header-logo img { height: 70px; width: auto; object-fit: contain; }
.header-inner nav { order: 2; }
.menu-toggle { order: 3; }

.nav-menu { display: flex; list-style: none; gap: 5px; }
.nav-menu li a {
    display: block; padding: 10px 16px; color: rgba(255,255,255,0.85);
    font-size: 0.9rem; font-weight: 500; border-radius: var(--radius);
    transition: var(--transition); font-family: var(--font-heading);
}
.nav-menu li a:hover, .nav-menu li a.active {
    color: var(--white); background: rgba(212,168,67,0.2);
}

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 30px; height: 24px; position: relative; z-index: 1001;
    margin-left: auto;
}
.menu-toggle span {
    display: block; width: 100%; height: 3px; background: var(--white);
    border-radius: 2px; transition: var(--transition);
    position: absolute; left: 0;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }
/* Hamburger → X animasyonu */
.menu-toggle.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Mobile menu backdrop */
.nav-backdrop {
    display: none; position: fixed; inset: 0; z-index: 998;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
    opacity: 0; transition: opacity 0.3s ease;
}
.nav-backdrop.active { display: block; opacity: 1; }

/* ---- HERO ---- */
.hero {
    position: relative; min-height: 85vh;
    display: flex; align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.15;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,39,68,0.9) 0%, rgba(44,62,80,0.7) 100%);
}
.hero-content {
    position: relative; z-index: 2; color: var(--white);
    max-width: 700px; padding: 60px 0;
}
.hero-content h1 {
    font-size: 3.2rem; color: var(--white); margin-bottom: 20px;
    line-height: 1.2; font-weight: 800;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
    font-size: 1.15rem; color: rgba(255,255,255,0.85);
    margin-bottom: 35px; line-height: 1.8;
}
.hero-decoration {
    position: absolute; right: -50px; bottom: -50px;
    width: 400px; height: 400px;
    border: 2px solid rgba(212,168,67,0.15);
    border-radius: 50%; z-index: 1;
}
.hero-decoration::after {
    content: ''; position: absolute;
    top: 30px; left: 30px; right: 30px; bottom: 30px;
    border: 2px solid rgba(212,168,67,0.1);
    border-radius: 50%;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius);
    font-family: var(--font-heading); font-weight: 600;
    font-size: 0.95rem; border: 2px solid transparent;
    cursor: pointer; transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--accent); color: var(--primary);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-light); border-color: var(--accent-light);
    color: var(--primary); transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,168,67,0.3);
}
.btn-outline {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: var(--white); color: var(--primary);
    border-color: var(--white);
}
.btn-dark {
    background: var(--primary); color: var(--white);
    border-color: var(--primary);
}
.btn-dark:hover {
    background: var(--primary-light); transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--primary); color: var(--white); }
.section-title {
    text-align: center; margin-bottom: 50px;
}
.section-title h2 { margin-bottom: 15px; font-size: 2.2rem; }
.section-title p { color: var(--gray-600); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-title .accent-line {
    width: 60px; height: 4px; background: var(--accent);
    margin: 15px auto 0; border-radius: 2px;
}

/* ---- CARDS GRID ---- */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- FORM ROW 2 (yan yana iki alan) ---- */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* ---- SERVICE CARDS ---- */
.service-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 40px 30px; text-align: center;
    box-shadow: var(--shadow); transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.service-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.service-card .icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.5rem; color: var(--accent);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--gray-600); }

/* ---- PROJECT CARDS ---- */
.project-card {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    background: var(--white);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-card-img {
    height: 220px; overflow: hidden; position: relative;
}
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card-body { padding: 25px; }
.project-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-card-body p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 12px; }
.project-status {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
}
.status-completed { background: #d4edda; color: #155724; }
.status-ongoing { background: #fff3cd; color: #856404; }
.status-planned { background: #d1ecf1; color: #0c5460; }

/* ---- STATS ---- */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0; position: relative;
}
.stat-item {
    text-align: center; color: var(--white); padding: 30px;
}
.stat-item .stat-value {
    font-size: 3rem; font-weight: 800; color: var(--accent);
    font-family: var(--font-heading); display: block; margin-bottom: 5px;
}
.stat-item .stat-label {
    font-size: 1rem; color: rgba(255,255,255,0.8); font-weight: 500;
}
.stat-item i { font-size: 2rem; color: var(--accent); margin-bottom: 10px; display: block; }

/* ---- CTA ---- */
.cta-section {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    padding: 80px 0; text-align: center;
}
.cta-section h2 { color: var(--primary); font-size: 2.2rem; margin-bottom: 15px; }
.cta-section p { color: var(--primary-light); font-size: 1.1rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 30px; }

/* ---- NEWS CARDS ---- */
.news-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card-img { height: 200px; overflow: hidden; background: var(--gray-200); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 25px; }
.news-card-body .date { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.news-card-body h3 { font-size: 1.05rem; margin-bottom: 10px; }
.news-card-body p { font-size: 0.9rem; color: var(--gray-600); }

/* ---- REFERENCES ---- */
.ref-grid {
    display: flex; flex-wrap: wrap; gap: 30px;
    justify-content: center; align-items: center;
}
.ref-item {
    background: var(--white); padding: 20px 30px;
    border-radius: var(--radius); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    min-width: 180px; min-height: 80px; transition: var(--transition);
}
.ref-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ref-item img { max-height: 50px; object-fit: contain; }
.ref-item span { font-weight: 600; color: var(--primary); font-size: 0.9rem; }

/* ---- CONTACT FORM ---- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 600; margin-bottom: 6px;
    font-size: 0.9rem; color: var(--gray-700);
}
.form-control {
    width: 100%; padding: 12px 16px; border: 2px solid var(--gray-300);
    border-radius: var(--radius); font-family: var(--font-body);
    font-size: 0.95rem; transition: var(--transition); background: var(--white);
}
.form-control:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}
textarea.form-control { resize: vertical; min-height: 120px; }

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-group input[type="checkbox"] { margin-top: 4px; }
.checkbox-group label { font-weight: 400; font-size: 0.85rem; }

/* ---- ALERTS ---- */
.alert {
    padding: 15px 20px; border-radius: var(--radius);
    margin-bottom: 20px; font-size: 0.9rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ---- PAGE HEADER ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0; text-align: center; position: relative;
}
.page-header h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 10px; }
.page-header .breadcrumb {
    display: flex; justify-content: center; gap: 10px;
    list-style: none; color: rgba(255,255,255,0.7); font-size: 0.9rem;
}
.page-header .breadcrumb a { color: var(--accent); }
.page-header .breadcrumb span { color: rgba(255,255,255,0.5); }

/* ---- FOOTER ---- */
.site-footer {
    background: var(--primary-dark); color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-col h4 {
    color: var(--white); font-size: 1.1rem; margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.footer-col p { font-size: 0.9rem; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.7); font-size: 0.9rem;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.footer-logo img { height: 45px; margin-bottom: 15px; object-fit: contain; }
.footer-social {
    display: flex; gap: 10px; margin-top: 15px;
}
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--primary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0; text-align: center; font-size: 0.85rem;
}

/* ---- PAGE CONTENT ---- */
.page-content { padding: 60px 0; }
.page-content .content-area { max-width: 800px; margin: 0 auto; }
.page-content .content-area p { margin-bottom: 15px; }
.page-content .content-area h3 { margin: 25px 0 10px; }

/* ---- GALLERY ---- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: var(--radius); overflow: hidden;
    position: relative; cursor: pointer; height: 250px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(26,39,68,0.6); opacity: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-weight: 600; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---- LIGHTBOX ---- */
.lightbox-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-overlay img {
    max-width: 90vw; max-height: 85vh; border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); object-fit: contain;
}
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    background: none; border: none; color: var(--white);
    font-size: 2.5rem; cursor: pointer; line-height: 1;
    transition: var(--transition); z-index: 10000;
}
.lightbox-close:hover { color: var(--accent); transform: scale(1.2); }
.lightbox-caption {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: var(--white); font-size: 1rem; font-weight: 500;
    background: rgba(0,0,0,0.5); padding: 8px 24px; border-radius: 30px;
}
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: none; color: var(--white);
    width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); color: var(--primary); }

/* ---- DOCUMENT LIST ---- */
.doc-list { list-style: none; }
.doc-item {
    display: flex; align-items: center; gap: 20px;
    padding: 20px; background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 15px; transition: var(--transition);
}
.doc-item:hover { box-shadow: var(--shadow-lg); }
.doc-item .doc-icon {
    width: 50px; height: 50px; border-radius: var(--radius);
    background: var(--primary); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.doc-item .doc-info h4 { font-size: 1rem; margin-bottom: 4px; }
.doc-item .doc-info p { font-size: 0.85rem; color: var(--gray-600); }

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-item {
    display: flex; gap: 15px; margin-bottom: 25px;
}
.contact-info-item .icon-box {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1.2rem; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.9rem; color: var(--gray-600); }

/* ---- FILTER TABS ---- */
.filter-tabs {
    display: flex; justify-content: center; gap: 10px;
    margin-bottom: 40px; flex-wrap: wrap;
}
.filter-tab {
    padding: 10px 24px; border-radius: 30px; border: 2px solid var(--gray-300);
    background: transparent; cursor: pointer; font-weight: 600;
    font-size: 0.9rem; transition: var(--transition); color: var(--gray-700);
}
.filter-tab:hover, .filter-tab.active {
    background: var(--primary); color: var(--white); border-color: var(--primary);
}

/* ---- CAREER FORM ---- */
.file-upload-area {
    border: 2px dashed var(--gray-300); border-radius: var(--radius);
    padding: 30px; text-align: center; cursor: pointer;
    transition: var(--transition);
}
.file-upload-area:hover { border-color: var(--accent); }
.file-upload-area i { font-size: 2rem; color: var(--gray-500); margin-bottom: 10px; }
.file-upload-area p { font-size: 0.85rem; color: var(--gray-500); }

/* ---- WHATSAPP FLOATING BUTTON ---- */
.whatsapp-float {
    position: fixed; bottom: 25px; right: 25px; z-index: 1000;
    width: 62px; height: 62px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    animation: wp-pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 25px rgba(37,211,102,0.55);
    color: #fff;
}
/* Mobil menü açıkken WhatsApp butonunu gizle */
body.menu-open .whatsapp-float {
    opacity: 0;
    pointer-events: none;
}
@keyframes wp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 0; right: 0; width: 280px;
        height: 100vh; background: var(--primary-dark);
        flex-direction: column; padding: 80px 20px 20px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(.4,0,.2,1); z-index: 999;
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    }
    .nav-menu.active { transform: translateX(0); }
    .menu-toggle { display: block; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .hero { min-height: 70vh; }
    .section { padding: 50px 0; }
    .stat-item { padding: 15px 10px; }
    .stat-item .stat-value { font-size: 1.8rem; }
    .stat-item .stat-label { font-size: 0.8rem; }
    .stat-item i { font-size: 1.4rem; margin-bottom: 5px; }
    .stats-section { padding: 35px 0; }
    .page-header h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.2rem; }
    .whatsapp-float { width: 58px; height: 58px; bottom: 20px; right: 20px; z-index: 1000; }
    .whatsapp-float svg { width: 26px; height: 26px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.6rem; }
    .btn { padding: 12px 24px; font-size: 0.85rem; }
    .header-inner { height: 65px; }
    .header-logo img { height: 52px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stat-item .stat-value { font-size: 1.5rem; }
    .stat-item .stat-label { font-size: 0.75rem; }
}
