/* ==================== RESET & BASE ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #C62828;
  --red-dark: #A31D1D;
  --red-light: #FFEBEE;
  --dark: #1a1a2e;
  --gray-900: #1a1a1a;
  --gray-700: #424242;
  --gray-500: #757575;
  --gray-300: #E0E0E0;
  --gray-100: #F7F7F7;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-700);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

/* Tags & Titles */
.section-tag {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-title { font-size: 34px; font-weight: 800; color: var(--gray-900); line-height: 1.2; margin-bottom: 14px; }
.section-desc { font-size: 16px; color: var(--gray-500); max-width: 580px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 8px; font-weight: 600;
  font-size: 15px; border: 2px solid transparent; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(198,40,40,0.3); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: var(--white); color: var(--red); border-color: var(--white); }
.btn-outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: var(--white); }
.btn-sm { padding: 9px 22px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ==================== TOP BAR ==================== */
.top-bar { background: var(--dark); color: rgba(255,255,255,0.8); font-size: 13px; padding: 9px 0; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 24px; }
.top-bar a { color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 6px; }
.top-bar a:hover { color: var(--white); }
.top-bar i { color: var(--red); }

/* ==================== LANG SWITCHER ==================== */
.lang-switcher { display: flex; align-items: center; gap: 3px; margin-left: 12px; }
.lang-btn { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 5px; color: var(--gray-700); border: 1.5px solid var(--gray-300); transition: var(--transition); letter-spacing: 0.5px; text-decoration: none; }
.lang-btn:hover { border-color: var(--red); color: var(--red); }
.lang-btn--active { background: var(--red); color: var(--white) !important; border-color: var(--red); }
@media (max-width: 768px) { .lang-switcher { margin-left: auto; margin-right: 10px; order: 2; } .nav-toggle { order: 3; } }

/* ==================== HEADER ==================== */
.header { background: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 70px; width: auto; }
.nav-menu { display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 16px; font-size: 14px; font-weight: 600;
  color: var(--gray-700); border-radius: 7px; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--red); background: var(--red-light); }
.nav-link i { font-size: 11px; transition: transform 0.3s; }

/* Dropdown */
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); min-width: 210px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0;
  visibility: hidden; transform: translateY(-8px); transition: var(--transition);
  z-index: 200;
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .nav-link i { transform: rotate(180deg); }
.dropdown-item {
  display: block; padding: 10px 14px; font-size: 14px; font-weight: 500;
  color: var(--gray-700); border-radius: 6px; transition: var(--transition);
}
.dropdown-item:hover, .dropdown-item.active { background: var(--red-light); color: var(--red); }
.dropdown-toggle { display: none; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 23px; height: 2px; background: var(--gray-900); border-radius: 2px; transition: var(--transition); }

/* ==================== PAGE HERO (inner pages) ==================== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2d2d44 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.05;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: 38px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.7); }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--red); font-weight: 500; }

/* ==================== HERO SLIDER (homepage) ==================== */
.hero { position: relative; height: 74vh; min-height: 465px; max-height: 645px; overflow: hidden; z-index: 1; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease; }
.hero-slide--1 { background-image: url('../public/images/yilmazlarmakine.webp'); }
.hero-slide--2 { background-image: url('../public/images/Ana.webp'); }
.hero-slide--3 { background-image: url('../public/images/H.webp'); }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(26,26,46,0.88) 0%, rgba(26,26,46,0.45) 100%); }
.hero .container { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-content { max-width: 620px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-badge { display: inline-block; background: var(--red); color: var(--white); padding: 6px 18px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 22px; letter-spacing: 0.5px; }
.hero h1, .hero h2 { font-size: 54px; font-weight: 900; color: var(--white); line-height: 1.1; margin: 0 0 18px; min-height: 118px; }
.hero h1 span, .hero h2 span { color: #ef9a9a; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.8); margin: 0 0 32px; max-width: 480px; min-height: 58px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-controls { position: absolute; top: 50%; transform: translateY(-50%); left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; padding: 0 20px; pointer-events: none; }
.hero-prev, .hero-next { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); color: white; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; pointer-events: all; transition: var(--transition); }
.hero-prev:hover, .hero-next:hover { background: var(--red); border-color: var(--red); }
.hero-dots { position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%); z-index: 12; display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 999px; background: rgba(15,15,25,0.28); backdrop-filter: blur(10px); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.8); cursor: pointer; transition: var(--transition); appearance: none; -webkit-appearance: none; }
.dot.active { background: var(--red); width: 32px; border-radius: 5px; }
.hero-counter { margin-left: 12px; color: rgba(255,255,255,0.82); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; align-self: center; }

/* ==================== STATS ==================== */
.stats { padding: 0; margin-top: -48px; position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat-item { text-align: center; padding: 36px 16px; border-right: 1px solid var(--gray-300); transition: var(--transition); }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--red-light); }
.stat-icon { font-size: 26px; color: var(--red); margin-bottom: 10px; }
.stat-number { font-size: 38px; font-weight: 900; color: var(--gray-900); line-height: 1; margin-bottom: 4px; }
.stat-number::after { content: '+'; font-size: 24px; color: var(--red); }
.stat-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }

/* ==================== ABOUT SECTION ==================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image { position: relative; }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: 480px; object-fit: cover; }
.about-experience { position: absolute; bottom: -20px; right: -20px; background: var(--red); color: var(--white); padding: 22px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-lg); }
.exp-number { display: block; font-size: 40px; font-weight: 900; line-height: 1; }
.exp-text { font-size: 13px; font-weight: 500; opacity: 0.9; }
.about-text { font-size: 15px; margin-bottom: 14px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.about-feature { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 14px; }
.about-feature i { color: var(--red); }

/* ==================== PRODUCT CARDS ==================== */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }


.product-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column;
  border: 1px solid var(--gray-300);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--red); }

@keyframes machineFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

.product-image {
  position: relative;
  background: #f2f2f2;
  padding: 28px 24px 20px;
  display: flex; justify-content: center; align-items: center;
  min-height: 260px; overflow: hidden;
}



.product-image img {
  max-height: 220px; object-fit: contain;
  position: relative; z-index: 2;
  animation: machineFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.15));
  transition: filter 0.4s ease;
}
.product-card:hover .product-image img {
  animation-play-state: paused;
  transform: scale(1.13) translateY(-4px);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.22));
  transition: transform 0.4s ease, filter 0.4s ease;
}

@keyframes machineFloatAngled {
  0%, 100% { transform: perspective(700px) rotateY(12deg) translateY(0px); }
  50%       { transform: perspective(700px) rotateY(12deg) translateY(-9px); }
}
img.img-angled { animation: machineFloatAngled 3.5s ease-in-out infinite; }
.product-card:hover img.img-angled {
  animation-play-state: paused;
  transform: perspective(700px) rotateY(12deg) scale(1.1) translateY(-4px);
}

.product-image-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s ease; z-index: 3;
}
.product-image-overlay span {
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 10px 24px; border-radius: 50px; letter-spacing: 0.5px;
  transform: translateY(12px); transition: transform 0.35s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.product-card:hover .product-image-overlay { opacity: 1; }
.product-card:hover .product-image-overlay span { transform: translateY(0); }


.product-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 14px; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; flex: 1; }
.spec-table tr { border-bottom: 1px solid var(--gray-300); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 7px 0; font-size: 13px; }
.spec-table td:first-child { color: var(--gray-500); }
.spec-table td:last-child { text-align: right; font-weight: 600; color: var(--gray-900); }

/* ==================== SERVICES GRID ==================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); padding: 36px 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: var(--transition); text-align: center; border: 2px solid transparent; }
.service-card:hover { transform: translateY(-5px); border-color: var(--red); }
.service-icon { width: 66px; height: 66px; background: var(--red-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; color: var(--red); transition: var(--transition); }
.service-card:hover .service-icon { background: var(--red); color: var(--white); }
.service-card h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ==================== REFERENCES ==================== */
.ref-item { background: var(--white); padding: 20px; border-radius: var(--radius); text-align: center; font-weight: 600; font-size: 14px; color: var(--gray-700); box-shadow: var(--shadow); transition: var(--transition); border: 2px solid transparent; }
.ref-item:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); }

/* ==================== CTA BANNER ==================== */
.cta { position: relative; background: var(--dark); padding: 72px 0; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); opacity: 0.92; }
.cta-content { position: relative; z-index: 2; text-align: center; color: var(--white); }
.cta h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.cta p { font-size: 17px; opacity: 0.9; margin-bottom: 30px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==================== COMPARISON TABLE ==================== */
.comp-section { background: var(--dark); padding: 80px 0; }
.comp-section .section-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.comp-section .section-title { color: white; }
.comp-section .section-desc { color: rgba(255,255,255,0.55); }

.comp-table-wrap { overflow-x: auto; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.comp-table { width: 100%; border-collapse: collapse; min-width: 700px; background: #1a1a2e; }

/* Header */
.comp-table thead tr { background: transparent; }
.comp-table th { padding: 20px 16px; text-align: center; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.08); vertical-align: bottom; }
.comp-table th.comp-feature-col { text-align: left; padding-left: 24px; color: rgba(255,255,255,0.4); font-size: 12px; letter-spacing: 0.5px; }
.comp-table th.comp-feature-col i { margin-right: 6px; }
.comp-ton { display: block; font-size: 26px; font-weight: 900; color: white; line-height: 1; }
.comp-ton-label { display: block; font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.4); margin-top: 3px; letter-spacing: 1px; text-transform: uppercase; }


/* Body */
.comp-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
.comp-table tbody tr:last-child { border-bottom: none; }
.comp-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.comp-table td { padding: 14px 16px; text-align: center; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.75); }
.comp-table td.comp-label { text-align: left; padding-left: 24px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.4); white-space: nowrap; }
.comp-table td.comp-label i { margin-right: 8px; color: rgba(255,255,255,0.25); width: 14px; }

/* ==================== PRODUCT DETAIL PAGE ==================== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.product-detail-image {
  background: #f2f2f2;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px;
  min-height: 400px;
  position: sticky; top: 100px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}
.product-detail-video {
  width: 100%; border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.product-detail-image img {
  max-height: 360px; object-fit: contain;
  animation: machineFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.18));
}
.product-detail-info h2 { font-size: 30px; font-weight: 800; color: var(--gray-900); margin-bottom: 14px; }
.product-features-list { margin: 24px 0; }
.product-features-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-300); font-size: 15px; }
.product-features-list li:last-child { border-bottom: none; }
.product-features-list i { color: var(--red); margin-top: 3px; flex-shrink: 0; }
/* ==================== CONTACT PAGE ==================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-card { display: flex; gap: 16px; padding: 22px; background: var(--gray-100); border-radius: var(--radius); transition: var(--transition); }
.contact-card:hover { background: var(--red-light); }
.contact-icon { width: 50px; height: 50px; background: var(--red); color: var(--white); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-card h4 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--gray-500); margin: 0; }
.contact-card a { color: var(--gray-700); }
.contact-card a:hover { color: var(--red); }

.contact-form-wrapper { background: var(--gray-100); border-radius: var(--radius-lg); padding: 40px; }
.contact-form h3 { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 2px solid var(--gray-300);
  border-radius: 8px; font-size: 14px; font-family: inherit;
  transition: var(--transition); background: var(--white); color: var(--gray-900);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(198,40,40,0.08);
}
.form-group textarea { resize: vertical; }
.map-container { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 48px; }
.map-container iframe { border: 0; width: 100%; height: 420px; display: block; }

/* ==================== ABOUT PAGE ==================== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--gray-300); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 5px; width: 14px; height: 14px; background: var(--red); border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--red); }
.timeline-year { font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.timeline-item h4 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--gray-500); }

/* ==================== CUSTOM CTA (Standart Dışı) ==================== */
.custom-cta-section { background: white; padding: 80px 0; border-top: 1px solid var(--gray-300); }
.custom-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.custom-cta-left .section-tag { margin-bottom: 20px; }
.custom-cta-title { font-size: 36px; font-weight: 900; color: var(--gray-900); line-height: 1.2; margin-bottom: 20px; }
.custom-cta-desc { font-size: 15px; color: var(--gray-500); line-height: 1.8; margin-bottom: 32px; }

.custom-cta-right { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.custom-cta-stat {
  display: flex; align-items: center; gap: 16px;
  background: var(--gray-100); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--gray-300);
  transition: var(--transition);
}
.custom-cta-stat:hover { border-color: var(--red); background: var(--red-light); }
.custom-cta-stat > i { font-size: 22px; color: var(--red); flex-shrink: 0; }
.cta-stat-val { display: block; font-size: 17px; font-weight: 800; color: var(--gray-900); }
.cta-stat-lbl { display: block; font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ==================== REFERANSLAR ==================== */
.refs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ref-item { background: white; border-radius: var(--radius); padding: 24px 32px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: var(--transition); min-height: 100px; }
.ref-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ref-item img { max-height: 60px; max-width: 160px; object-fit: contain; filter: grayscale(1); transition: var(--transition); }
.ref-item:hover img { filter: grayscale(0); }
.ref-item--invert img { filter: invert(1); }

/* ==================== FOOTER ==================== */
.footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-products-layout { display: flex; gap: 32px; }
.footer-products-list { flex: none; white-space: nowrap; }
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-about p { font-size: 14px; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 14px; }
.footer-links a:hover { color: var(--red); padding-left: 4px; }
.footer-contact p { font-size: 13px; margin-bottom: 9px; display: flex; align-items: flex-start; gap: 9px; }
.footer-contact i { color: var(--red); width: 14px; flex-shrink: 0; margin-top: 3px; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding: 22px 0; font-size: 13px; }

/* ==================== WHATSAPP / BACK TO TOP ==================== */
.phone-btn { display: none; }
.whatsapp-btn { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; background: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 999; transition: var(--transition); animation: pulse 2.5s infinite; }
.whatsapp-btn:hover { transform: scale(1.1); color: white; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(37,211,102,0.4)}50%{box-shadow:0 0 0 14px rgba(37,211,102,0)} }

.back-to-top { position: fixed; bottom: 24px; left: 24px; width: 44px; height: 44px; background: var(--red); color: var(--white); border: none; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; box-shadow: var(--shadow); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--red-dark); transform: translateY(-3px); }

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

/* ==================== UTIL BACKGROUNDS ==================== */
.bg-gray  { background: var(--gray-100); }
.bg-white { background: white; }

/* ==================== SECTION TITLE MODIFIER ==================== */
.section-title--left { text-align: left; }

/* ==================== ABOUT STATS ==================== */
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.stat-box { background: var(--gray-300); padding: 20px; border-radius: var(--radius); text-align: center; }
.stat-box-value { font-size: 32px; font-weight: 900; color: var(--red); }
.stat-box-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.about-body-text p { margin-bottom: 14px; font-size: 15px; }
.about-body-text p:last-child { margin-bottom: 0; }

/* ==================== BUTTON MODIFIER ==================== */
.btn-primary.btn-primary-white { background: white; color: var(--red); border-color: white; }

/* ==================== PRODUCT DETAIL ==================== */
.product-desc { margin: 14px 0 20px; font-size: 15px; color: var(--gray-500); }
.spec-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; color: var(--gray-900); }
.spec-title--mt { margin-top: 24px; }
.cta-note {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-top: 28px;
  margin-bottom: -12px;
  padding: 10px 14px;
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cta-note i { color: #dc2626; font-size: 13px; flex-shrink: 0; }
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.related-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 32px; color: var(--gray-900); }
.product-card--all { justify-content: center; align-items: center; text-align: center; min-height: 200px; }
.product-card--all .product-card-inner { padding: 40px 20px; }
.product-card-all-icon { font-size: 48px; color: var(--red); margin-bottom: 12px; }
.product-card--all h3 { margin-bottom: 8px; }

/* ==================== MISC ==================== */
.text-center-mt { text-align: center; margin-top: 40px; }
.section-tag--promo { background: rgba(220,38,38,0.15); color: var(--red); }
.wa-form-btn { display: flex; align-items: center; gap: 14px; padding: 18px; background: #25D366; border-radius: var(--radius); color: white; font-weight: 600; font-size: 15px; transition: var(--transition); }
.wa-form-btn:hover { background: #1ebe5d; }
.wa-form-icon { font-size: 26px; }
.form-feedback-icon { font-size: 20px; }
.form-hint { text-align: center; margin-top: 10px; font-size: 12px; color: var(--gray-500); }
.form-feedback { margin-top: 16px; padding: 14px 18px; border-radius: 8px; font-weight: 600; align-items: center; gap: 10px; display: flex; }
.form-feedback--success { background: #e6f9ee; border: 1px solid #25D366; color: #1a7a3f; }
.form-feedback--error { background: #fef2f2; border: 1px solid #ef4444; color: #991b1b; }
[hidden] { display: none !important; }

/* ==================== VIDEO PLAYER ==================== */
.video-note { font-size: 0.8rem; color: #666; margin-top: 12px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
#videoWrapper { position: relative; margin-top: 16px; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
#presVideo { width: 100%; display: block; }
#playBtn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); transition: opacity 0.6s ease, background 0.6s ease; }
#playBtnCircle { width: 64px; height: 64px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--red); }
#volControl { display: none; position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.55); border-radius: 8px; padding: 8px 12px; align-items: center; gap: 8px; z-index: 10; }
#volControl i { color: white; font-size: 14px; }
#volSlider { width: 80px; accent-color: var(--red); cursor: pointer; }
@media (max-width: 1024px) { #volControl { display: none !important; } }
#progressBar { position: absolute; bottom: 0; left: 0; right: 0; height: 8px; background: rgba(255,255,255,0.25); cursor: pointer; transition: height 0.15s; z-index: 10; }
#progressBar:hover, #progressBar.dragging { height: 12px; }
#progressFill { height: 100%; background: var(--red); width: 0%; pointer-events: none; position: relative; }
#progressHover { position: absolute; top: 0; left: 0; height: 100%; background: rgba(255,255,255,0.4); width: 0%; pointer-events: none; }
#progressThumb { position: absolute; top: 50%; right: 0; transform: translate(50%,-50%); width: 16px; height: 16px; background: white; border-radius: 50%; box-shadow: 0 0 4px rgba(0,0,0,0.4); pointer-events: none; display: none; }
#progressBar:hover #progressThumb, #progressBar.dragging #progressThumb { display: block; }
#timeTooltip { position: absolute; bottom: 18px; transform: translateX(-50%); background: rgba(0,0,0,0.75); color: white; font-size: 12px; padding: 3px 7px; border-radius: 4px; pointer-events: none; white-space: nowrap; display: none; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }

  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-image { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .refs-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }
  .top-bar { display: none; }
  .top-bar-left { gap: 14px; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav { height: 62px; }
  .logo img { height: 52px; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 270px; height: 100vh;
    background: var(--white); flex-direction: column; padding: 80px 20px 30px;
    box-shadow: var(--shadow-lg); transition: right 0.3s ease; z-index: 1001; overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-link { padding: 13px 16px; font-size: 15px; border-bottom: 1px solid var(--gray-300); border-radius: 0; }
  .has-dropdown { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
  .has-dropdown > .nav-link { grid-column: 1; }
  .has-dropdown > .nav-link i { display: none; }
  .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    border: none;
    border-bottom: 1px solid var(--gray-300);
    background: transparent;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
  }
  .dropdown-toggle:hover { background: var(--red-light); color: var(--red); }
  .dropdown-toggle i { font-size: 12px; transition: transform 0.3s ease; }
  .has-dropdown.open .dropdown-toggle i { transform: rotate(180deg); }
  .dropdown-menu {
    grid-column: 1 / -1;
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--gray-100);
    margin: 4px 0;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .has-dropdown:hover .nav-link i { transform: none; }

  .hero { height: 59vh; min-height: 330px; }
  .hero .container {
    align-items: center;
    padding-top: 0;
  }
  .hero-content {
    max-width: 100%;
    width: min(100%, 520px);
  }
  .hero h1, .hero h2 { font-size: 30px; min-height: 66px; }
  .hero p { font-size: 15px; min-height: 66px; }
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-buttons .btn {
    padding: 12px 22px;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--gray-300); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--gray-300); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-image img { height: 320px; }
  .about-experience { bottom: -10px; right: 10px; }
  .exp-number { font-size: 30px; }

  .products-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .custom-cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .custom-cta-title { font-size: 28px; }
  .refs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ref-item { padding: 16px; min-height: 80px; }
  .ref-item img { max-height: 48px; max-width: 120px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .page-hero h1 { font-size: 28px; }
  .section-title { font-size: 26px; }
  .cta h2 { font-size: 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .phone-btn {
    position: fixed;
    right: 92px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(198,40,40,0.35);
    z-index: 999;
    transition: var(--transition);
  }
  .phone-btn:hover { color: var(--white); transform: scale(1.08); }
}

@media (max-width: 480px) {
  .hero h1, .hero h2 { font-size: 24px; min-height: 54px; }
  .hero p { margin-bottom: 22px; min-height: 72px; }
  .refs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ref-item { padding: 12px; min-height: 70px; }
  .ref-item img { max-height: 40px; max-width: 100px; }
  .stat-number { font-size: 30px; }
}

@media (max-width: 768px) {
  .hero-controls { display: none; }
  .hero-dots {
    bottom: 72px;
    gap: 10px;
    padding: 8px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  }
  .dot {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255,255,255,0.8);
    touch-action: manipulation;
  }
  .dot.active { width: 30px; }
  .hero-counter { font-size: 12px; margin-left: 2px; }
  .mobile-hidden { display: none; }
}

/* ===== Ürün Detay: Teknik Özellikler — spec-tiles ===== */
.spec-tiles {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.spec-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-bottom: 3px solid #dc2626;
  border-radius: 10px;
}
.spec-tile-value {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.spec-tile-value small { font-size: 12px; }
.spec-tile-unit {
  font-size: 11px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 2px;
}
.spec-tile-label {
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 6px;
  line-height: 1.3;
}

/* ===== Ürün Detay: Donanım Özellikleri — feat-grid ===== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.feat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feat-card:hover {
  border-color: #fca5a5;
  box-shadow: 0 4px 16px rgba(220,38,38,0.08);
}
.feat-card-icon {
  width: 30px;
  height: 30px;
  background: #fef2f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feat-card-icon i { color: #dc2626; font-size: 12px; }
.feat-card-title { font-size: 13px; font-weight: 700; color: #111827; }
.feat-card-desc { font-size: 12px; color: #6b7280; line-height: 1.5; }

@media (max-width: 540px) {
  .spec-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
}
