/*
 * @license
 * Copyright (c) 2024 Božidar Mišković. All rights reserved.
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 */

:root {
  --primary-blue: #003366; /* Duboka teget iz logoa */
  --accent-red: #cc0000;   /* Crvena iz zupčanika */
  --bg-light: #ffffff;
  --bg-grey: #f4f4f4;
  --text-dark: #1a1a1a;
  --text-muted: #555555;
  --text-light: #ffffff;
  --border-light: #dddddd;
  --transition-fast: 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Global Typography Alignment */
h1, h2, h3, p {
  text-align: center;
}

/* Navbar */
.navbar {
  height: 130px;
  display: flex;
  align-items: center;
  background: white;
  border-bottom: 2px solid var(--primary-blue);
  position: sticky;
  top: 0;
  z-index: 900;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--primary-blue);
}
.nav-btn {
  border: 2px solid var(--primary-blue);
  padding: 10px 25px;
  transition: all var(--transition-fast);
}
.nav-btn:hover {
  background: var(--primary-blue);
  color: white !important;
}

/* Hero Split Screen */
.split-screen {
  display: flex;
  height: calc(100vh - 130px);
  width: 100%;
}
.panel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: white;
  border: 1px solid white;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s ease;
}
.panel:hover {
  flex: 2;
  z-index: 50;
}
.panel:hover .content {
  transform: scale(1.1);
  transition: transform 0.6s ease;
}
.panel.radionica {
  background-image: url('/small-works.png');
}
.panel.objekti {
  background-image: url('/large-works.png');
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.content {
  position: relative;
  z-index: 10;
  padding: 40px;
}
.content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.content p {
  font-size: 1rem;
  margin-bottom: 25px;
  max-width: 400px;
}
.btn {
  display: inline-block;
  padding: 12px 35px;
  background: white;
  color: var(--primary-blue);
  font-weight: bold;
  text-transform: uppercase;
  border: none;
}
.btn-red {
  background: var(--accent-red);
  color: white;
}

/* Page Sections */
.section {
  padding: 100px 0;
}
.grey-bg {
  background: var(--bg-grey);
}
.page-header {
  padding: 120px 0;
  background: var(--primary-blue);
  color: white;
}
.page-header h1 {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.radionica-bg {
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('/small-works.png');
  background-size: cover;
  background-position: center;
}
.objekti-bg {
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('/large-works.png');
  background-size: cover;
  background-position: center;
}

/* Service Cards */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.service-item {
  background: white;
  padding: 40px;
  border: 1px solid var(--border-light);
}
.service-item h3 {
  color: var(--primary-blue);
  margin-bottom: 15px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.gallery-item {
  aspect-ratio: 16/9;
  background: #eee;
  border: 1px solid #ddd;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-info-premium {
  text-align: left;
}
.contact-info-premium h2, .contact-info-premium p, .contact-info-premium h3 {
  text-align: left;
}
.info-card {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.info-card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent-red);
}
.contact-link {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-blue);
}

.contact-form-premium {
  text-align: left;
}
.contact-form-premium h2, .contact-form-premium p, .contact-form-premium label {
  text-align: left;
}
.form-group {
  margin-bottom: 25px;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 0.8rem;
}
input, textarea, select {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-light);
  background: var(--bg-grey);
  font-family: inherit;
}
.submit-btn-premium {
  width: 100%;
  padding: 20px;
  background: var(--primary-blue);
  color: white;
  border: none;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
}

/* Video Background (About Page) */
.video-background-container {
  width: 100%;
}
.bg-video {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.about-card {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}
.about-card p {
  max-width: 800px;
  margin: 20px auto 0;
}

/* Footer */
.footer {
  background: var(--primary-blue);
  color: white;
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.footer h3 {
  margin-bottom: 25px;
  text-transform: uppercase;
  font-size: 1rem;
  text-align: left;
}
.footer p, .footer li, .footer a {
  text-align: left;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.copyright {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations & Reveal Effects */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Hover effects for cards */
.service-item, .info-card, .about-card, .portfolio-card {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.service-item:hover, .info-card:hover, .about-card:hover, .portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 51, 102, 0.1);
}

/* Portfolio & Testimonials */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}
.portfolio-card {
  background: white;
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.portfolio-img {
  height: 250px;
  background: #eee;
}
.portfolio-info {
  padding: 25px;
  text-align: left;
}
.portfolio-info h3 {
  text-align: left;
  color: var(--primary-blue);
  margin-bottom: 10px;
}
.portfolio-info p {
  text-align: left;
  font-size: 0.9rem;
}

.testimonials {
  margin-top: 80px;
}
.testimonial-card {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 40px;
  background: var(--bg-grey);
  border-left: 5px solid var(--accent-red);
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}
.testimonial-card span {
  font-weight: bold;
  color: var(--primary-blue);
}

@media (max-width: 768px) {
  .split-screen {
    flex-direction: column;
    height: auto;
  }
  .panel {
    height: 60vh;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

