/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

h1, h2, h3 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
header {
  background: #1a1a1a;
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
}

.logo-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}

.contact-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.contact-info a {
  background: #585858;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.contact-info a:hover {
  background: #646464;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

nav a {
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s;
}

nav a:hover, nav a.active {
  background: #007bff;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}

/* Hero Section (for index.html) */
.hero {
  background: linear-gradient(rgba(0,123,255,0.7), rgba(0,123,255,0.7)), url('images/hero-bg.jpg'); /* Add a hero image here */
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 120px 2rem 80px;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Sections */
section {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  text-decoration: underline;
  color: #1a1a1a;
}

.about-text, .services-text, .why-us {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-grid img {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Machine Park Cards (for masinski-park.html) */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.machine-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: box-shadow 0.3s;
}

.machine-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.machine-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.machine-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #007bff;
}

.machine-card p {
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Map Section */
.map-section {
  text-align: center;
}

.map-embed {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
  margin-top: 2rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form button {
  background: #007bff;
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #0056b3;
}

.contact-details {
  text-align: left;
}

.contact-details p {
  margin: 1rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-details i {
  color: #007bff;
  width: 20px;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .contact-info {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  nav ul {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: #1a1a1a;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    transition: 0.3s;
  }

  nav ul.active {
    left: 0;
  }

  .hamburger {
    display: flex;
    order: 2;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .machine-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}