:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666;
  --accent: #2563eb;
}

[data-theme="dark"] {
  --bg: #0f0f0f;
  --text: #f1f1f1;
  --muted: #aaa;
  --accent: #3b82f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* NAVBAR */
.header {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
}

.logo-img {
  height: 40px; /* prilagodi po želji */
  width: auto;
  display: block;
}


.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 2;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - 80px); /* zauzima visinu ekrana */
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertikalno centriranje */
  align-items: center; /* horizontalno */
  text-align: center;
  padding: 0 20px; /* padding sa strane za mobile */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/background.jpg') center/cover;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}


.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.8;
}

 .hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
 }

 .hero-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
 }

 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
 }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  color: yellow;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.15);
}

.btn-outline:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(255,255,255,0.08);
}

 [data-theme="dark"] .btn-outline {
  border-color: rgba(255,255,255,0.2);
 }

 .section {
  padding: 70px 0;
  position: relative;
  z-index: 1;
 }

 .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
 }

 .section-header p {
  color: var(--muted);
  max-width: 680px;
  margin: 0.8rem auto 0;
 }

 .about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
 }

 .about-card {
  padding: 2rem;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
 }

 .about-card h3 {
  margin-bottom: 0.8rem;
  color: yellow;
 }

 .about-card p {
  color: var(--muted);
  line-height: 1.4;
 }

 [data-theme="dark"] .about-card {
  background: rgba(255,255,255,0.05);
 }

 .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  padding-top: 0;
 }

 .stat-number {
  font-size: 2.2rem;
  font-weight: 700;
 }

 .stat-label {
  display: block;
  color: var(--muted);
  margin-top: 0.4rem;
 }

 .process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
 }

 .process-step {
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
 }

 .process-step h3 {
  margin-bottom: 0.8rem;
  margin-top: 0.2rem;
  color: var(--accent);
 }

 .process-step p {
  color: var(--muted);
  line-height: 1.4;
 }

 [data-theme="dark"] .process-step {
  border-color: rgba(255,255,255,0.15);
 }

 .step-number {
  font-weight: 700;
  color: red;
  line-height: 1.4rem;
 }

 .featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
 }

 .featured-card h3 {
  margin-bottom: 0.8rem;
  color: var(--accent);
 }

 .featured-card {
  padding: 2rem;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(37,99,235,0.12), rgba(37,99,235,0.02));
  border: 1px solid rgba(37,99,235,0.2);
 }

 [data-theme="dark"] .featured-card {
  background: linear-gradient(140deg, rgba(59,130,246,0.18), rgba(59,130,246,0.04));
 }

 .cta {
  padding-top: 20px;
 }

 .cta-inner {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(0,0,0,0));
  border: 1px solid rgba(37,99,235,0.2);
 }

 .cta-inner h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
 }

 .cta-inner p {
  color: var(--muted);
  margin-bottom: 1.5rem;
 }

/* FOOTER */
.footer {
  margin-top: 60px;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--muted);
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.5);
 }

 [data-theme="dark"] .footer {
  border-color: rgba(255,255,255,0.15);
  background-color: rgba(0, 0, 0, 0.7);
 }

 .footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding: 2.5rem 0;
 }

 .footer-brand p {
  margin-top: 0.8rem;
  color: var(--muted);
 }

 .footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
 }

 .footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
 }

 .footer-col h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.4rem;
 }

 .social-link::before {
  content: "●";
  margin-right: 8px;
  color: var(--accent);
  font-size: 0.7rem;
 }

 .footer-bottom {
  padding: 1rem 0 2rem;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--muted);
 }

 [data-theme="dark"] .footer-bottom {
  border-color: rgba(255,255,255,0.15);
}

/* BACK TO TOP */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
}

.call-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
  color: white;
  transition: 0.3s ease;
  margin-left: 6rem;
}

.call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--bg);
    width: 70%;
    height: 100%;
    padding: 2rem;
    transition: right 0.3s;
    z-index: 1;
  }

  .logo-img {
    height: 28px;
  }
  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }
}

.services {
  padding-top: 60px
}

.services h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] .service-card {
  background: rgba(255,255,255,0.05);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* PROJECTS */

/* PAGE HEADER */
.page-header {
  padding: 80px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--muted);
  max-width: 600px;
  margin: auto;
}

/* PROJECTS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 100px;
}

.project-card {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(102, 102, 102, 1);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-info {
  padding: 1.2rem;
  background: var(--bg);
}

.project-info h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.project-info span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 220px;
  }
}
.project-card {
  position: relative;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.project-overlay span {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.8rem;
}

.project-overlay p {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Mobile: overlay uvijek vidljiv */
@media (max-width: 768px) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.8),
      rgba(0,0,0,0.2)
    );
  }
}

/* CONTACT */

/* CONTACT */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 100px;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  margin-bottom: 0.6rem;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  border-color: rgba(255,255,255,0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text);
  opacity: 0.7;
}

.contact-form button {
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .stats,
  .process-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* NAV BUTTONS */
.nav-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
}

.nav-btn:hover {
  background: rgba(0,0,0,0.05);
}

/* Dark mode */
[data-theme="dark"] .nav-btn {
  border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .nav-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* GLOBAL HOVER FEEL */
a:hover {
  color: var(--accent);
  transition: color 0.2s;
}

main {
  min-height: 70vh;
  position: relative;
  z-index: 1;
}

/* FADE IN ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 40px;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.project-info {
  padding: 16px;
  text-align: center;
}

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.project-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  color: yellow;
}
