/* 
  ==============================================
  LAZER VE ABKANT - Core CSS 
  ==============================================
  Project Color Palette:
  Primary Brand: #b01501 (Industrial Red)
  Secondary Dark: #0f172a (Slate 900)
  Text Base: #334155 (Slate 700)
  Text Light: #64748b (Slate 500)
  Background Light: #f8fafc (Slate 50)
  Surface/Cards: #ffffff
  Border/Divider: #e2e8f0 (Slate 200)
  ==============================================
*/

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

/* --- CSS Variables --- */
:root {
  --header-height: 5rem;
  
  /* Colors */
  --primary-color: #b01501;
  --primary-color-alt: #8e1000;
  --secondary-color: #0f172a;
  --text-color: #334155;
  --text-light: #64748b;
  --body-color: #ffffff;
  --bg-light: #f8fafc;
  --container-color: #ffffff;
  --border-color: #e2e8f0;
  
  /* Typography */
  --body-font: 'Inter', sans-serif;
  --title-font: 'Montserrat', sans-serif;
  
  --biggest-font-size: 2.5rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;
  
  /* Font weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  
  /* Z Index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Responsive Typography Setup */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 3rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1.125rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--title-font);
  color: var(--secondary-color);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* --- Reusable CSS Classes --- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
}

.section-title-wrapper {
  margin-bottom: 3rem;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--primary-color);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

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

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

.mt-4 {
  margin-top: 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--title-font);
  font-weight: var(--font-bold);
  border-radius: 4px;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(176, 21, 1, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--body-color);
  border: 2px solid var(--body-color);
}

.btn-outline:hover {
  background-color: var(--body-color);
  color: var(--secondary-color);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* ====== COMPONENT STYLES ====== */
/* We will build the individual components (Header, Hero, Services etc) in the next steps */

/* --- Header --- */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-normal);
}

.navbar {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: baseline;
}

.logo-text {
  font-family: var(--title-font);
  font-weight: var(--font-bold);
  font-size: 1.5rem;
  color: var(--secondary-color);
  letter-spacing: -0.5px;
}

.logo-dot {
  color: var(--primary-color);
  font-size: 2rem;
  line-height: 0;
}

.nav-list {
  display: flex;
  column-gap: 2rem;
}

.nav-link {
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle, .nav-close {
  display: none;
  font-size: 1.5rem;
  color: var(--secondary-color);
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  background-color: var(--secondary-color);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%), url('../img/hero-bg.jpg') center/cover no-repeat;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-title {
  color: var(--body-color);
  font-size: var(--biggest-font-size);
  margin-bottom: 1.5rem;
}

.text-highlight {
  color: var(--primary-color);
}

.hero-description {
  color: #cbd5e1;
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  grid-template-columns: repeat(3, max-content);
  gap: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.stat-item {
  text-align: left;
}

.stat-number {
  color: var(--body-color);
  font-size: var(--h2-font-size);
  margin-bottom: 0.25rem;
}

.stat-text {
  color: #94a3b8;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services-container {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media screen and (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: var(--container-color);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(176, 21, 1, 0.1);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background-color: var(--primary-color);
  color: #fff;
}

.service-title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-light);
  font-size: var(--small-font-size);
}

/* --- Responsive Layout Adjustments --- */
@media screen and (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--body-color);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    padding: 6rem 3rem;
    transition: right 0.4s;
    z-index: var(--z-modal);
  }

  .nav-menu.show-menu {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    row-gap: 2rem;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .nav-toggle {
    display: block;
  }
  
  .nav-actions .btn {
      display: none; /* Hide button on small screens in header, let menu toggle take space */
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn {
        width: 100%;
    }
}

/* --- Machine Park --- */
.machine-park {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.machine-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.machine-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.machine-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-color);
}

.machine-features i {
  color: var(--primary-color);
  font-size: 1.5rem;
  line-height: 1;
}

.machine-images {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.m-img-wrapper {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.large-img {
  grid-column: 1 / 3;
}

.machine-img {
  width: 100%;
  transform: scale(1.05);
  transition: transform 0.6s ease;
}

.m-img-wrapper:hover .machine-img {
  transform: scale(1);
}

@media screen and (max-width: 968px) {
    .machine-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- Gallery --- */
.gallery-container {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-title {
  color: #fff;
  font-size: var(--normal-font-size);
  font-family: var(--title-font);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s;
}

.gallery-item:hover .gallery-icon,
.gallery-item:hover .gallery-title {
  transform: translateY(0);
  opacity: 1;
}


/* --- Lightbox Modal --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--primary-color);
}

/* --- Contact --- */
.contact-grid {
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-description {
  margin-bottom: 3rem;
  color: var(--text-light);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(176, 21, 1, 0.1);
  color: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-card-title {
  display: block;
  font-family: var(--title-font);
  font-size: var(--normal-font-size);
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.contact-card-detail {
  color: var(--text-light);
  font-size: var(--small-font-size);
}

.contact-form-wrapper {
  background-color: var(--container-color);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--title-font);
  font-size: var(--small-font-size);
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--body-color);
  box-shadow: 0 0 0 3px rgba(176, 21, 1, 0.1);
}

/* File Upload Styles */
.file-upload-group {
  margin-bottom: 2rem;
}

.file-help-text {
  font-size: var(--smaller-font-size);
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.file-upload-wrapper {
  position: relative;
  width: 100%;
  border: 2px dashed var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-light);
  padding: 2rem 1rem;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
}

.file-upload-wrapper:hover,
.file-upload-wrapper.dragover {
  border-color: var(--primary-color);
  background-color: rgba(176, 21, 1, 0.02);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.file-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.file-placeholder i {
  font-size: 2.5rem;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.file-upload-wrapper:hover .file-placeholder i {
  color: var(--primary-color);
  transform: translateY(-5px);
}

.file-name-display {
  margin-top: 0.5rem;
  font-size: var(--small-font-size);
  color: var(--primary-color);
  font-weight: var(--font-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-submit {
  width: 100%;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  font-size: var(--small-font-size);
  display: none;
}

.form-message.success {
  display: block;
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-message.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media screen and (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media screen and (max-width: 576px) {
  .form-group.row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--secondary-color);
  color: #94a3b8;
  padding-top: 4rem;
}

.footer-container {
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
  color: #ffffff;
}

.footer-description {
  max-width: 350px;
}

.footer-title {
  color: #ffffff;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-info i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.footer-bottom {
  padding-block: 1.5rem;
  text-align: center;
}

.copyright {
  font-size: var(--small-font-size);
}

@media screen and (max-width: 968px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-content:first-child {
    grid-column: 1 / 3;
  }
}

@media screen and (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-content:first-child {
    grid-column: 1 / 2;
  }
}

