/* style.css - Milling Spare Parts (V5) */

:root {
  /* Brand Colors */
  --primary-color: #0E3552;
  --primary-light: #1A547E;
  --accent-color: #EDB33E;
  --accent-hover: #D89F2A;
  
  /* Neutral Colors */
  --bg-color: #F9F7F1; /* User requested third color */
  --third-color: #F9F7F1;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --white: #FFFFFF;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Effects */
  --shadow-sm: 0 4px 6px -1px rgba(14, 53, 82, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(14, 53, 82, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(14, 53, 82, 0.15);
  --shadow-glow: 0 0 20px rgba(237, 179, 62, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-family); background-color: var(--bg-color);
  color: var(--text-dark); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%;
}



a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2.25rem; color: var(--primary-color); margin-bottom: 0.5rem; font-weight: 800; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ================== TOP BAR ================== */
.top-bar {
  background-color: var(--primary-color); color: var(--white);
  font-size: 0.85rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative; z-index: 1001;
}
.top-bar-container {
  max-width: 1400px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar-left { display: flex; gap: 1.5rem; color: rgba(255,255,255,0.8); }
.top-bar-left span { display: flex; align-items: center; gap: 0.4rem; }
.top-bar-left i { color: var(--accent-color); font-size: 1rem; }
.top-bar-right { display: flex; gap: 1rem; }
.top-bar-right a { font-size: 1.2rem; transition: var(--transition); display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: 4px; padding: 5px; color: #ffffff; }
.top-bar-right a:hover { transform: translateY(-2px); }
.social-linkedin:hover { background: #0077b5 !important; }
.social-instagram:hover { background: #E1306C !important; }
.social-youtube:hover { background: #FF0000 !important; }

/* ================== HEADER ================== */
.site-header {
  background-color: var(--white); box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 1000;
}
.header-container {
  max-width: 1400px; margin: 0 auto; padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.75rem; font-weight: 900; color: var(--primary-color); letter-spacing: -0.5px; display: flex; align-items: center; gap: 0.5rem; }
.logo i { color: var(--accent-color); font-size: 2rem; }
.logo span { color: var(--accent-color); }

.nav-links { display: flex; gap: 2rem; align-items: center; margin: 0; padding: 0; height: 100%;}
.nav-links > li { list-style: none; display: flex; align-items: center;}
.nav-links > li > a {
  font-weight: 600; color: var(--primary-color); transition: var(--transition);
  padding: 1.5rem 0; display: flex; align-items: center; gap: 0.3rem;
}
.nav-links > li > a:hover { color: var(--accent-color); }

/* ================== MEGA MENU V2 (TABBED) ================== */
.has-mega-menu { position: static !important; display: flex; align-items: center; height: 100%; padding-bottom: 25px; margin-bottom: -25px;} 
.mega-menu-v2 {
  position: absolute; top: 100%; left: 0; width: 100%;
  background: var(--white); box-shadow: 0 15px 40px rgba(14,53,82,0.15);
  border-top: 3px solid var(--accent-color);
  opacity: 0; visibility: hidden; transform: translateY(10px); 
  transition: var(--transition); pointer-events: none;
  z-index: 9999;
}
.has-mega-menu:hover .mega-menu-v2 {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.mega-menu-inner {
  display: flex; max-width: 1400px; margin: 0 auto; height: 500px;
}
.mega-title {
  font-size: 0.85rem; font-weight: 700; color: #a0aab2; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem;
}
/* Panel 1: Main Categories */
.mega-panel-1 { flex: 1; min-width: 280px; border-right: 1px solid var(--border-color); padding: 2rem; background: var(--white); }
.mega-main-cats { flex-grow: 1; }
.mega-main-cats li {
  padding: 0.8rem 1rem; margin-bottom: 0.5rem; cursor: pointer; border-radius: 6px;
  font-weight: 600; color: var(--text-dark); display: flex; justify-content: space-between; align-items: center;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.mega-main-cats li:hover, .mega-main-cats li.mega-tab.active {
  background: var(--bg-color); color: var(--primary-color); border-left-color: var(--accent-color); box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.mega-tab i { font-size: 1.2rem; margin-left: auto; color: var(--accent-color); opacity: 0; transition: var(--transition); transform: translateX(-5px); }
.mega-tab.active i { opacity: 1; transform: translateX(0); }

.mega-all-link {
  display: flex; align-items: center; gap: 0.5rem; color: var(--primary-color); font-weight: 700; margin-top: 1rem; padding: 0.5rem 1rem;
}

/* Panel 2: Sub Categories */
.mega-panel-2 {
  width: 300px; padding: 2rem; border-right: 1px solid var(--border-color); overflow-y: auto;
}
.mega-sub-cats { display: none; }
.mega-sub-cats.active { display: block; }
.mega-sub-cats li {
  padding: 0.7rem 0; cursor: pointer; color: var(--text-dark); display: flex; justify-content: space-between; align-items: center;
  font-size: 0.95rem; border-bottom: 1px solid #f0f0f0; transition: color 0.2s;
}
.mega-sub-cats li:hover, .mega-sub-cats li.active {
  color: var(--primary-color); font-weight: 600; padding-left: 5px;
}
.mega-sub-cats li span { color: #999; font-size: 0.85rem; font-weight: 400; }

/* Panel 3: Products Grid */
.mega-panel-3 {
  flex-grow: 1; padding: 2rem 3rem; overflow-y: auto;
}
.mega-products-grid {
  display: none; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 1.5rem;
  align-content: start;
}
.mega-products-grid.active { display: grid; }
.mega-products-grid a {
  color: var(--text-dark); 
  font-size: 0.95rem; 
  padding: 0.75rem 1rem; 
  display: flex; 
  align-items: center;
  transition: all 0.2s;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}
.mega-products-grid a:hover {
  color: var(--primary-color); 
  font-weight: 600;
  border-color: var(--accent-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.header-actions { display: flex; align-items: center; }

/* Buttons */
.btn-primary, .btn-outline {
  padding: 0.8rem 1.75rem; border-radius: 6px; font-weight: 700;
  transition: var(--transition); display: inline-flex; align-items: center;
  gap: 0.5rem; cursor: pointer; text-transform: uppercase; font-size: 0.9rem; border: none;
}
.btn-primary { background: var(--accent-color); color: var(--primary-color); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }

/* ================== HERO ================== */
.hero {
  position: relative;
  min-height: calc(100vh - 120px); /* 100vh minus header heights */
  display: flex; align-items: center; justify-content: center;
  color: var(--white); padding: 5rem 2rem; text-align: center; overflow: hidden;
}

.hero-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(14, 53, 82, 0.65);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; padding: 0 5%; animation: fadeInUp 1s ease-out; width: 100%; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 900; margin-bottom: 1.5rem; line-height: 1.2; text-shadow: 0 4px 10px rgba(0,0,0,0.5); word-break: break-word; }
.hero h1 span { color: var(--accent-color); }
.hero p { font-size: clamp(1.2rem, 4vw, 1.8rem); color: rgba(255,255,255,0.95); margin-bottom: 3rem; font-weight: 400; text-shadow: 0 2px 5px rgba(0,0,0,0.5);}

/* Hero Advanced Filter */
.hero-filter-wrapper {
  background: rgba(255,255,255,0.15); padding: 12px; border-radius: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.hero-filter {
  display: flex; background: var(--white); border-radius: 8px; padding: 5px;
}
.filter-group {
  flex: 1; display: flex; align-items: center; border-right: 1px solid var(--border-color);
  padding: 0 1rem;
}
.filter-group:last-of-type { border-right: none; flex: 1.5;} /* Input gets more space */
.filter-group i { color: var(--primary-color); font-size: 1.2rem; margin-right: 0.5rem; }
.filter-group select, .filter-group input {
  width: 100%; border: none; outline: none; padding: 1rem 0; font-family: var(--font-family);
  font-size: 1rem; color: var(--text-dark); background: transparent; cursor: pointer;
}
.filter-group input { cursor: text; }
.hero-filter button {
  background: var(--accent-color); color: var(--primary-color); border: none;
  padding: 0 2.5rem; font-weight: 800; border-radius: 6px; cursor: pointer;
  transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px;
}
.hero-filter button:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }


/* ================== HAKKIMIZDA ================== */
.about-section { padding: 7rem 2rem; background: var(--third-color); }
.about-container {
  max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 4fr 5fr; gap: 6rem; align-items: center;
}
.about-image-wrapper { position: relative; }
.about-image-main { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image-main img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.about-image-main:hover img { transform: scale(1.05); }

.about-experience-badge {
  position: absolute; bottom: -30px; right: -30px; background: var(--accent-color); color: var(--primary-color);
  padding: 2rem; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem;
  border: 5px solid var(--white);
}
.about-experience-badge .years { font-size: 3.5rem; font-weight: 900; line-height: 1; }
.about-experience-badge .text { font-weight: 700; font-size: 1.1rem; text-transform: uppercase; line-height: 1.2; }

.about-content .section-subtitle {
  color: var(--accent-color); font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  display: block; margin-bottom: 1rem;
}
.about-content h2 { font-size: 2.75rem; color: var(--primary-color); margin-bottom: 1.5rem; font-weight: 800; line-height: 1.2; }
.about-description { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.8; }

.about-features { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.about-features li { display: flex; align-items: center; gap: 1rem; color: var(--text-dark); font-weight: 600; font-size: 1.05rem; }
.about-features i { color: var(--accent-color); font-size: 1.5rem; }

.about-quote {
  padding: 1.5rem; background: var(--bg-color); border-left: 4px solid var(--accent-color);
  border-radius: 0 8px 8px 0; font-style: italic; color: var(--primary-color); font-weight: 600;
  margin-bottom: 2.5rem; font-size: 1.1rem;
}
.catalog-strip {
  background: var(--primary-color); color: var(--white);
  padding: 3rem 2rem; position: relative; overflow: hidden;
}
.catalog-strip::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(237,179,62,0.15) 0%, transparent 40%); pointer-events: none;
}
.catalog-strip-container {
  max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2;
}
.catalog-strip-text { display: flex; align-items: center; gap: 2rem; }
.catalog-strip-text i { font-size: 4rem; color: var(--accent-color); }
.catalog-strip-text h3 { font-size: 2rem; font-weight: 800; margin-bottom: 0.2rem; }
.catalog-strip-text p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

/* ================== ÜRÜNLERİMİZ (KAYAN/MARQUEE) ================== */
.products-section { padding: 5rem 0; background: var(--white); overflow: hidden; }
.products-section .section-header { padding: 0 2rem; }

.marquee-container {
  width: 100%; overflow: hidden; white-space: nowrap; position: relative;
  display: flex; padding: 2rem 0;
}
.marquee-container:hover .marquee-content { animation-play-state: paused; }

.marquee-content {
  display: inline-flex; gap: 2rem; padding-left: 2rem;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1rem)); }
}

.product-card {
  width: 350px; flex-shrink: 0; white-space: normal;
  display: flex; flex-direction: column; background: var(--bg-color); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition);
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--accent-color); }
.product-img {
  width: 100%; height: 220px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; position: relative;
}
.product-img::after { content: '\eb07'; font-family: boxicons; font-size: 5rem; color: rgba(255,255,255,0.2); position: absolute; }
.product-img img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 0.5rem; font-weight: 800; }
.product-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.product-link { color: var(--primary-color); font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition); margin-top: auto;}
.product-link:hover { color: var(--accent-color); gap: 1rem; }

/* ================== HABERLER ================== */
.news-section { padding: 5rem 2rem; max-width: 1400px; margin: 0 auto; background: var(--bg-color);}
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.news-card {
  background: var(--white); padding: 2rem; border-radius: 8px; border-left: 4px solid var(--accent-color);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateX(5px); }
.news-date { color: var(--accent-color); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; display: block; }
.news-card h3 { color: var(--primary-color); font-size: 1.3rem; margin-bottom: 1rem; line-height: 1.3; }
.news-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.news-card a { color: var(--primary-color); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem; }

/* ================== İLETİŞİM ŞERİDİ (CONTACT STRIP) ================== */
.contact-strip-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  padding: 5rem 2rem;
  color: var(--white);
}
.contact-strip-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}
.contact-strip-text {
  flex: 1;
}
.contact-strip-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
}
.contact-strip-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}
.contact-strip-form-wrapper {
  flex: 1.5;
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.contact-strip-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact-strip-form .form-group.full-width {
  grid-column: span 2;
}
.contact-strip-form .form-control {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-family);
  font-size: 1rem;
}
.contact-strip-form textarea.form-control {
  min-height: 100px;
  resize: vertical;
}
.contact-strip-form .btn-submit {
  grid-column: span 2;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.contact-strip-form .btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
@media (max-width: 992px) {
  .contact-strip-container {
    flex-direction: column;
    text-align: center;
  }
  .contact-strip-form {
    grid-template-columns: 1fr;
  }
  .contact-strip-form .form-group.full-width, .contact-strip-form .btn-submit {
    grid-column: span 1;
  }
}

/* ================== FOOTER ================== */
.site-footer { background: var(--primary-color); color: var(--white); padding: 5rem 2rem 2rem; }
.footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--accent-color); font-size: 1.25rem; margin-bottom: 1.5rem; font-weight: 700; }
.footer-col p { color: rgba(255,255,255,0.7); }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: rgba(255,255,255,0.7); display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-color); transform: translateX(5px); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* ================== SCROLL TO TOP ================== */
#scrollTopBtn {
  display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99;
  background: var(--accent-color); color: var(--primary-color); border: none;
  width: 50px; height: 50px; border-radius: 50%; font-size: 24px; box-shadow: var(--shadow-md);
  cursor: pointer; transition: var(--transition); align-items: center; justify-content: center;
}
#scrollTopBtn:hover { background: var(--primary-color); color: var(--white); transform: translateY(-5px); }

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

/* Responsive */
@media (max-width: 992px) {
  .top-bar { display: none; }
  .catalog-strip-container { flex-direction: column; text-align: center; gap: 2rem; }
  .catalog-strip-text { flex-direction: column; gap: 1rem; }
  .mega-menu { display: none !important; }
  .hero { min-height: 80vh; }
  .hero-filter { flex-direction: column; gap: 5px; }
  .filter-group { border-right: none; border-bottom: 1px solid var(--border-color); padding: 0.5rem 1rem;}
  .hero-filter button { padding: 15px; border-radius: 6px; width: 100%; margin-top: 5px; }
  .about-container { grid-template-columns: 1fr; gap: 4rem; }
  .about-experience-badge { bottom: -20px; right: 20px; padding: 1.5rem; }
  .about-content h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .site-footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-container { gap: 2rem; }
  #scrollTopBtn { bottom: 15px; right: 15px; width: 40px; height: 40px; font-size: 20px; }
  .footer-bottom { padding-bottom: 30px; } /* Space for scroll button */
}

/* Missing Mega Menu Styles */
.mega-menu-inner {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    gap: 40px;
    justify-content: space-between;
}
.mega-col {
    flex: 1;
    min-width: 250px;
}
.mega-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 20px;
    border-bottom: 2px solid #F1F5F9;
    padding-bottom: 10px;
}
.mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-list li {
    margin-bottom: 12px;
}
.mega-list li a {
    color: #475569;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.3s;
    display: block;
}
.mega-list li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}
.mega-image-col {
    flex: 1.5;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.mega-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}
.mega-image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(14,53,82,0.9), transparent);
    padding: 30px 20px 20px;
    color: white;
    display: flex;
    flex-direction: column;
}
.mega-image-text strong {
    font-size: 1.4rem;
    margin-bottom: 5px;
}
.mega-image-text span {
    font-size: 0.9rem;
    opacity: 0.9;
}
