@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Mono&display=swap');

:root {
  /* Colors - Premium Dark Edition */
  --bg-black: #000000;
  --bg-dark-gray: #0b0b0c;
  --bg-card: #161617;
  --text-main: #f5f5f7;
  --text-muted: #86868b;
  --accent-amber: #e28a2b; /* Electric Copper */
  --accent-blue: #0071e3;
  --border-light: rgba(255, 255, 255, 0.08);
  
  /* Spacing */
  --nav-height: 72px;
  --section-gap: 80px;
  --bento-radius: 22px;
  
  /* Typography - Architectural Pro Refinement */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace; /* For technical details */
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  overflow-y: scroll; /* Sprječava 'skakanje' sadržaja zbog scrollbara */
}

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.loaded {
  opacity: 1;
  transform: translateY(0);
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
}

.technical-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-amber);
  margin-bottom: 20px;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

/* Navigation - Glassmorphism Dark */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: saturate(180%) blur(25px);
  -webkit-backdrop-filter: saturate(180%) blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@media (hover: hover) {
  .nav-links a:hover {
    opacity: 1;
    color: var(--accent-amber);
  }

  .nav-links a:hover::after {
    width: 100%;
  }
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-amber);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo span, .footer-logo span {
  font-weight: 300;
  opacity: 0.7;
  text-transform: uppercase;
}

.logo img {
  height: 32px;
  width: auto;
  filter: invert(1);
  mix-blend-mode: screen;
}

/* Hero Section — Single Unified Definition */
/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.footer-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
}

.footer-links li:last-child {
  border-bottom: none;
}

.footer-links a {
  font-size: 0.9rem;
  color: #86868b;
  transition: color 0.3s ease;
  display: block;
}

.footer-links a:hover {
  color: #fff;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

.hero {
  /* Accounts for fixed nav bar so content is never hidden behind it */
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  background: var(--bg-black);
}

/* Kontakt info u Hero sekciji */
.hero-contact-info {
  position: absolute;
  right: 5%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 26px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.hero-contact-info:hover {
  transform: translateY(-5px);
  border-color: var(--accent-amber);
}

.hero-contact-info a {
  padding: 6px 0;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.9) !important;
  transition: color 0.3s ease;
}

.hero-contact-info a span {
  font-size: 1.3rem;
  margin-right: 12px;
  filter: drop-shadow(0 0 5px rgba(226,138,43,0.5));
}
}

.hero-contact-info a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-contact-info a:hover {
  color: #fff !important;
}

.hero-contact-info span {
  font-size: 1.2rem;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  opacity: 1;
  pointer-events: none; /* Sprječava da klik na video aktivira kontrole */
}

/* Sakrivanje play ikona i kontrola na svim mobilnim browserima */
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
}

@keyframes ledGlow {
  0% { opacity: 0.3; filter: brightness(0.5); }
  50% { opacity: 0.6; filter: brightness(1.2); }
  100% { opacity: 0.5; filter: brightness(1); }
}

.led-effect {
  animation: ledGlow 4s infinite alternate ease-in-out;
}

/* Sub-page hero: shorter, still respects nav */
.hero-subpage {
  min-height: 65vh;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 70px;
}

/* Cinematic Edge-to-Edge Hero */
.hero-cinematic {
  min-height: 75vh;
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align content to bottom */
  align-items: center; /* Center horizontally */
}
.hero-cinematic .hero-content {
  text-align: left;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  padding: 0 22px;
}
.hero-cinematic .hero-subtitle {
  margin: 0 0 20px 0;
}

/* Interactivity Micro-animations */
.hover-lift {
  top: 0;
  transition: top 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
}
.hover-lift:hover {
  top: -8px !important;
  border-color: rgba(181, 148, 16, 0.5) !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important;
  z-index: 10;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('engineering_discipline_v2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.5;
  filter: grayscale(0.1) brightness(1.0);
  z-index: 0;
}

.hero-content {
  max-width: 1000px;
  padding: 0 22px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  line-height: 0.95;
  margin-bottom: 30px;
  text-shadow: 0 0 80px rgba(0,113,227,0.15);
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-main);
  opacity: 0.85;
  max-width: 800px;
  margin: 0 auto 52px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.hero-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, #fff, transparent);
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0%  { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; }
}

.cta-button {
  display: inline-block;
  background-color: var(--text-main);
  color: #000;
  padding: 16px 36px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.cta-button:active {
  transform: scale(0.96);
}

@media (hover: hover) {
  .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(226, 138, 43, 0.2);
  }
}

.cta-amber {
  background-color: var(--accent-amber);
  color: #000;
}

.hero-image-container {
  width: 100%;
  max-width: 500px;
  padding: 0 22px;
  position: relative;
}

.hero-main-img {
  width: 100%;
  border-radius: var(--bento-radius);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  display: block;
  opacity: 0.9;
}

/* Bento Grid Dark */
.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 80px;
}

/* Desktop specific layout */
@media (min-width: 861px) {
  .bento-main-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }

  /* Asymmetric 4-Card Bento Layout for Desktop */
  .bento-main-grid .bento-card-main:nth-child(1) { grid-column: span 2 !important; grid-row: span 2 !important; height: 600px !important; }
  .bento-main-grid .bento-card-main:nth-child(2) { grid-column: span 1 !important; grid-row: span 1 !important; height: 288px !important; }
  .bento-main-grid .bento-card-main:nth-child(3) { grid-column: span 1 !important; grid-row: span 1 !important; height: 288px !important; }
  .bento-main-grid .bento-card-main:nth-child(4) { grid-column: span 3 !important; height: 320px !important; }

  .service-banner-card {
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center !important;
  }
  
  /* Hover effects for Desktop Only */
  .bento-card-main:hover .card-img-bg {
    transform: scale(1.08);
  }
  .bento-card-main:hover {
    border-color: var(--accent-amber);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
}


.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto var(--section-gap);
  padding: 0 22px;
}

.bento-item {
  position: relative;
  grid-column: span 6;
  height: 520px;
  background: var(--bg-card);
  border-radius: var(--bento-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
}

.bento-item:hover {
  transform: translateY(-8px);
  border-color: rgba(181, 148, 16, 0.4);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.bento-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.5;
  transition: transform 1.2s cubic-bezier(0.2, 1, 0.2, 1);
}

.bento-item:hover .bento-img-bg {
  transform: scale(1.08);
  opacity: 0.7;
}

.bento-content {
  position: relative;
  z-index: 2;
  height: 100%;
}

.bento-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: #fff;
}

.bento-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 320px;
}

/* Animation Utilities */
/* --- Unified Directional Reveals --- */
.reveal, .reveal-left, .reveal-right, .reveal-top, .reveal-scale {
  opacity: 0 !important;
  transition: opacity 2.2s cubic-bezier(0.19, 1, 0.22, 1), transform 2.2s cubic-bezier(0.19, 1, 0.22, 1), filter 1.0s ease-out !important;
  will-change: transform, opacity, filter;
  filter: blur(8px);
  backface-visibility: hidden;
}

/* Cinematic Corner-Slide Initial States */
.reveal { transform: translateY(120px) !important; }
.reveal-left { transform: translate(-100px, 60px) !important; } /* Dolazi iz donjeg lijevog kuta */
.reveal-right { transform: translate(100px, 60px) !important; }  /* Dolazi iz donjeg desnog kuta */
.reveal-top { transform: translateY(-100px) !important; }
.reveal-scale { transform: scale(0.8) translateY(40px) !important; }

/* Active States */
.reveal.active, 
.reveal-left.active, 
.reveal-right.active, 
.reveal-top.active, 
.reveal-scale.active {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
  filter: blur(0);
}

/* Staggered delay for Bento Cards & Grids */
.reveal-scale.active:nth-child(1), .reveal.active:nth-child(1) { transition-delay: 0.1s; }
.reveal-scale.active:nth-child(2), .reveal.active:nth-child(2) { transition-delay: 0.25s; }
.reveal-scale.active:nth-child(3), .reveal.active:nth-child(3) { transition-delay: 0.4s; }
.reveal-scale.active:nth-child(4), .reveal.active:nth-child(4) { transition-delay: 0.55s; }
.reveal-scale.active:nth-child(5), .reveal.active:nth-child(5) { transition-delay: 0.7s; }

/* Footer Stagger */
.footer-col.reveal-top.active:nth-child(1) { transition-delay: 0.1s; }
.footer-col.reveal-top.active:nth-child(2) { transition-delay: 0.25s; }
.footer-col.reveal-top.active:nth-child(3) { transition-delay: 0.4s; }

/* Footer */
.main-footer {
  background: #f5f5f7;
  padding: 80px 22px 40px;
  border-top: 1px solid var(--border-light);
}

.footer-container {
  max-width: 980px;
  margin: 0 auto;
}

/* HDR / Emissive Text Glow */
.text-hdr {
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(255,255,255,0.4),
    0 2px 6px rgba(0,0,0,0.9);
}

.desc-hdr {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* =====================================================
   RESPONSIVE — Mobile & Tablet
   ===================================================== */

/* --- Hamburger Nav Toggle (hidden by default) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Tablet (≤ 960px) --- */
@media (max-width: 960px) {
  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 22px 40px;
  }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.97);
    backdrop-filter: blur(20px);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    padding: 80px 22px 40px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.4rem;
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    text-align: center;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Hero */
  .hero {
    min-height: 100vh !important;
    padding-top: 125px !important;
    padding-bottom: 60px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    text-align: center !important;
  }

  .hero .reveal {
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .hero h1 {
    text-align: center !important;
  }

  .hero p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero div[style*="display: flex; gap: 16px"] {
    justify-content: center !important;
  }

  .hero-contact-info {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 32px auto 0 !important;
    padding: 10px 18px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 50px !important;
    width: fit-content !important;
    max-width: 90% !important;
  }

  .hero-contact-info a {
    font-size: 0.85rem !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .hero-contact-info a + a {
    border-top: none !important;
  }

  .hero-subpage {
    min-height: 55vh;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 2.6rem;
    line-height: 1.05;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 36px;
  }

  .hero-image-container {
    max-width: 260px;
    padding: 0;
    margin: 0 auto;
  }

  .hero-indicator {
    display: none;
  }

  /* Index: Asymmetric services */
  .services-asymmetric-row {
    grid-template-columns: 1fr !important;
  }

  /* Section headings */
  .section-title {
    font-size: 2rem;
    padding: 0 16px;
  }

  /* Value pillars: 4-col → 1-col */
  .value-pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Process steps: 4-col → 2-col */
  .process-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }

  /* Why ROHAM: 2-col → 1-col */
  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* CTA buttons */
  .cta-button {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 16px 24px;
  }

  /* Bento items */
  .bento-item {
    grid-column: span 12;
    height: 360px;
  }

  /* --- MOBILNI FOOTER RE-STYLING --- */
  .site-footer {
    background: #0d0d0e !important; /* Mrvicu svjetlija crna */
    padding: 60px 22px 40px !important;
    border-top: 2px solid var(--accent-amber) !important;
  }

  .footer-brand p {
    color: #a1a1a6 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  .footer-col h5 {
    color: var(--accent-amber) !important;
    font-size: 1.1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px !important;
  }

  .footer-col ul li a {
    color: #eee !important;
    font-size: 1rem !important;
    padding: 8px 0 !important;
    display: block;
  }

  .footer-contact-item {
    background: rgba(255,255,255,0.03) !important;
    padding: 12px 15px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    border: 1px solid rgba(181,148,16,0.1) !important;
  }

  .footer-contact-item span:first-child {
    color: var(--accent-amber) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
  }

  .footer-contact-item span:last-child {
    color: #fff !important;
    font-size: 1rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 20px !important;
    text-align: center !important;
    padding-top: 30px !important;
  }

  .footer-bottom-links {
    gap: 16px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  /* Service list on usluge.html */
  .service-row {
    grid-template-columns: 40px 1fr !important;
    gap: 16px !important;
    padding: 36px 0 !important;
  }

  .service-body h3 {
    font-size: 1.4rem !important;
  }

  /* Contact form */
  .form-row {
    grid-template-columns: 1fr !important;
  }

  /* Sub-page 2-col layouts (inline grids) */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1.6fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1fr 1.5fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Sub-page content sections */
  [style*="max-width: 860px"],
  [style*="max-width: 1100px"],
  [style*="max-width: 1200px"],
  [style*="max-width: 1000px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Padding adjustments for all editorial sections */
  section[style*="padding: 140px"],
  section[style*="padding: 120px"] {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  /* Process steps and value pillars inline grids */
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }

  /* Sub-page content sections */
  [style*="max-width: 860px"],
  [style*="max-width: 1100px"],
  [style*="max-width: 1000px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Horizontal service row strip (Video nadzor) */
  [style*="height: 180px"] > div[style*="flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 24px !important;
    text-align: left !important;
  }

  [style*="height: 180px"] {
    height: auto !important;
    min-height: 200px !important;
  }

  /* Feature service card on index */
  [style*="height: 480px"] {
    height: 380px !important;
  }

  /* Padding adjustments */
  section[style*="padding: 120px"] {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }

  section[style*="padding: 100px"] {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  section[style*="padding: 80px"] {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  /* Feature row on index */
  [style*="grid-template-columns: 1.4fr"] {
    grid-template-columns: 1fr !important;
  }

  /* About page process steps */
  [style*="flex-direction: column;"] [style*="display: flex; gap: 30px"] {
    gap: 16px !important;
  }
}

/* --- Small mobile (≤ 400px) --- */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2.1rem;
  }

  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  .process-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===========================
   PREMIUM FOOTER
   =========================== */
.site-footer {
  background: var(--bg-black);
  border-top: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: var(--font-main);
  padding-bottom: 40px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 22px 80px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 80px;
}

@media (min-width: 1024px) {
  .footer-brand, .footer-col:not(:last-child) {
    border-right: 1px solid rgba(226, 138, 43, 0.2);
    padding-right: 40px;
  }
}

.footer-brand .footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .footer-logo img {
  height: 32px;
  width: auto;
  filter: invert(1);
  mix-blend-mode: screen;
}

.footer-brand .footer-logo span {
  font-weight: 300;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: 28px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-amber);
  border: 1px solid rgba(181,148,16,0.3);
  padding: 6px 14px;
  border-radius: 999px;
}

.footer-col h5 {
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  color: var(--text-main);
  font-size: 0.92rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.footer-col ul li a:hover {
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 18px;
}

.footer-contact-item span:first-child {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.footer-contact-item span:last-child {
  font-size: 0.92rem;
  color: var(--text-main);
  opacity: 0.8;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.footer-bottom-links a:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 22px 40px !important;
    gap: 32px !important;
  }
  
  .footer-col h5 {
    margin-bottom: 12px !important;
  }

  .footer-contact-item {
    margin-bottom: 8px !important;
    gap: 4px !important;
  }

  .footer-brand {
    align-items: center;
    margin-bottom: 10px !important;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  
  .footer-contact-item {
    align-items: center;
  }
  
  .footer-bottom {
    justify-content: center;
    text-align: center;
    padding-top: 24px !important;
    padding-bottom: 80px; /* Space for WhatsApp gumb */
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 20px !important;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-10px);
    overscroll-behavior: none;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.4rem !important;
    font-weight: 600;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.open a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.open a:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.open a:nth-child(5) { transition-delay: 0.3s; }
  .nav-links.open a:nth-child(6) { transition-delay: 0.35s; }
  .nav-links.open a:nth-child(7) { transition-delay: 0.4s; }
  .nav-links.open a:nth-child(8) { transition-delay: 0.45s; }

  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .footer-bottom-links {
    justify-content: center;
    width: 100%;
  }

  /* Methodology Grid Mobile Optimization */
  .methodology-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    padding-bottom: 20px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    margin-left: -22px !important;
    margin-right: -22px !important;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
  }

  .methodology-grid > .reveal {
    flex: 0 0 78% !important;
    scroll-snap-align: center !important;
    /* Force immediate reveal for the group on mobile */
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
  }

  /* Hide scrollbar but keep functionality */
  .methodology-grid::-webkit-scrollbar {
    display: none;
  }
}

/* Services Grid Responsive */
.services-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid-asym-left { grid-template-columns: 1.4fr 1fr; }
.grid-asym-right { grid-template-columns: 1fr 1.4fr; }

@media (max-width: 860px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .grid-asym-left, .grid-asym-right {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  /* 1-1-2-1 Raspored za Index (Novi objedinjeni grid) */
  .bento-main-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .bento-card-main.featured, .bento-card-main.span-2 {
    grid-column: 1 / -1 !important;
  }

  .bento-card-main {
    position: relative;
    height: 230px !important; 
    margin-bottom: 8px !important;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 18px 22px !important;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    text-decoration: none;
  }

  .bento-card-main .card-body {
    position: relative !important;
    margin-top: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  /* Uklonjeni fiksni spanovi za mobitel kako bi se izbjeglo preklapanje */
  .bento-card-main {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    height: 230px !important;
    margin-bottom: 12px !important;
  }

  /* Slike i overlayi na mobitelu */
  .card-img-bg {
    position: absolute;
    inset: 0;
    background-size: 130% auto !important; 
    background-position: center !important;
    opacity: 0.35;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 70%, transparent 100%);
    z-index: 1;
  }

  .hero-video {
    opacity: 1 !important;
  }

  .hero-service-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.4) 100%) !important;
  }

  #heroOverlay1, #heroOverlay2 {
    opacity: 0.55 !important;
  }

  /* Unified styles moved to end of file */
}

/* Global Mobile Refinements */
@media (max-width: 860px) {
  /* Smanjenje razmaka između sekcija */
  section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  
  /* Smanjenje gapova u gridovima */
  .reveal[style*="display: grid"] {
    gap: 32px !important;
  }
  
  /* Hero naslovi na mobitelu */
  .hero-title {
    font-size: 2.8rem !important;
    line-height: 1.1 !important;
  }
  
  /* Posebna sekcija Vision na indexu */
  #visionBg {
    height: 350px !important;
  }
  
  div[style*="height: 600px"] {
    height: 350px !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem !important;
  }
  
  .technical-tag {
    font-size: 9px !important;
    letter-spacing: 0.1em !important;
  }
}

/* ===========================
   BENTO GRID & PARALLAX
   =========================== */
.bento-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 22px;
  position: relative;
}




.bento-card-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .bento-card-main:hover {
    border-color: rgba(226, 138, 43, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
  }
}

.bento-card-main .card-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: transform 0.8s ease, opacity 0.4s ease;
}

.bento-card-main:hover .card-img-bg {
  transform: scale(1.04);
  opacity: 0.45;
}

/* Uklonjeni stari overrides za poravnanje */


.bento-card-main .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.67) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  z-index: 1;
}

.bento-card-main .card-tag {
  position: absolute;
  top: 32px;
  left: 36px;
  z-index: 2;
}

.bento-card-main .card-tag span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent-amber);
  text-transform: uppercase;
}

.bento-card-main .card-body {
  position: absolute;
  bottom: 36px;
  left: 36px;
  right: 36px;
  z-index: 2;
}

.bento-card-main.featured .text-hdr {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.bento-card-main .text-hdr {
  font-size: 1.2rem !important;
  margin-bottom: 6px !important;
}

.bento-card-main .desc-hdr {
  font-size: 0.75rem !important;
  line-height: 1.3 !important;
}


  .bento-card-main .learn-more {
    display: inline-block !important;
    margin-top: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #f5a623 !important; /* Slightly brighter amber for mobile */
  }

  .card-tag span {
    font-size: 10px !important;
    color: #f5a623 !important;
    font-weight: 700 !important;
  }



.bento-card {
  position: relative;
  height: 322px; 
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;     
  text-align: center;      
  padding: 40px;
  transition: border-color 0.4s ease, transform 0.4s ease;
  background-repeat: no-repeat;
}

.bento-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-8px);
  z-index: 2;
}

.card-overlay {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background-color: rgba(0, 0, 0, 0.55); 
  background-image: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
  transition: all 0.4s ease;
}



/* Spanning Utilities */
.span-2 { grid-column: span 2; }
.tall { 
  grid-row: span 2;
  height: 660px; 
} 

.thin { height: 180px; }



/* Parallax Background Container */
.parallax-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.parallax-img {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* This "stitches" the image across cards */
  opacity: 0.35;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.bento-card:hover .parallax-img {
  opacity: 0.45;
}

.bento-card:hover .card-overlay {
  background-color: rgba(0, 0, 0, 0.65);
  background-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 100%);
}





/* Content inside card */
.card-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-amber);
  margin-bottom: 12px;
  opacity: 0.8;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

/* Specific styling for thin cards to feel more like banners */
.thin .card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}



/* Mobile adjustments for Bento */
@media (max-width: 860px) {
  .bento-service-grid {
    grid-template-columns: repeat(2, 1fr); /* Keep the 2-column look for stitching */
    gap: 15px;
    padding: 0 15px;
  }
  
  .bento-service-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 15px !important;
  }

  .bento-card, .bento-card.tall, .bento-card.thin, .bento-card.span-2 {
    height: 180px !important; 
    min-height: 180px !important;
    grid-column: span 1 !important; 
    grid-row: span 1 !important;
    width: 100% !important;
    padding: 18px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
    background-size: auto; 
    background-position: center;
  }

  .card-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 4px !important; 
    height: 100% !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .card-tag {
    font-size: 11px !important;
    color: #f5a623 !important; 
    letter-spacing: 0.08em !important;
  }
  
  /* Resetiramo bilo kakve specifične spanove */
  .bento-service-grid > *:nth-child(n) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  /* Dodajemo narančastu strelicu ili akcent na podstranice da se vidi */
  .bento-card::after {
    content: '→';
    position: absolute;
    bottom: 16px;
    right: 16px;
    color: #f5a623;
    font-size: 1.2rem;
    font-weight: bold;
  }



  .hero-service {
    padding-top: 200px !important;
    min-height: 65vh !important;
    display: flex !important;
    align-items: flex-start !important;
  }
}

/* Hero Service Base Styles (Global - Fix for PC) */
.hero-service {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: #000 !important;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  padding-top: 120px; /* Razmak od navigacije na PC-u */
  width: 100%;
}

.hero-service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.6 !important;
  z-index: 1;
}

.hero-service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.35) 50%, transparent 100%);
  z-index: 2;
}

.hero-service-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 40%);
  pointer-events: none;
  z-index: 2;
}


/* --- FINAL MOBILE BENTO UNIFICATION (Last Rule Wins) --- */
/* --- INDEX GRID MOBILE EDIT --- */
@media (max-width: 860px) {
  .bento-card-main {
    box-sizing: border-box !important;
    height: 220px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 20px !important; /* Centriranje paddingom */
    text-align: center !important;
    position: relative !important;
    text-decoration: none !important;
    overflow: hidden !important;
  }

  .bento-card-main .card-tag {
    display: none !important;
  }

  /* Čistimo kontejner od bilo kakvih pomaka */
  .bento-card-main .card-body {
    position: relative !important;
    inset: auto !important; /* Poništava top/left/bottom/right */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    z-index: 10 !important;
  }

  .bento-card-main .text-hdr {
    display: block !important;
    width: 100% !important;
    font-size: 24px !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .bento-card-main .desc-hdr {
    display: block !important;
    width: 100% !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    text-align: center !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .bento-card-main .learn-more {
    display: inline-block !important;
    font-size: 14px !important;
    color: #f5a623 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-decoration: none !important;
    text-align: center !important;
  }
}

/* --- SUBPAGE GRID MOBILE EDIT --- */
@media (max-width: 860px) {
  .bento-card {
    box-sizing: border-box !important;
    height: 180px !important; /* Možemo smanjiti jer nema taga */
    width: 100% !important;
    padding: 24px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* Mičemo bakreni tag na podstranicama */
  .bento-card .card-tag {
    display: none !important;
  }

  .bento-card .card-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    width: 100% !important;
    position: relative !important;
    z-index: 5 !important;
    margin: 0 !important;
    padding: 0 !important;
    inset: auto !important;
  }

  .bento-card .card-title {
    font-size: 24px !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }

  .bento-card .card-desc {
    font-size: 15px !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    margin: 0 !important;
    opacity: 1 !important;
    width: 100% !important;
    text-align: center !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    overflow: hidden !important;
  }

  .bento-card::after {
    display: none !important;
  }
}

/* Methodology BG Card Hover */
.methodology-bg-card:hover .bg-zoom {
  transform: scale(1.08) !important;
}
.methodology-bg-card {
  border-color: rgba(255, 255, 255, 0.05) !important;
}
.methodology-bg-card:hover {
  border-color: rgba(226, 138, 43, 0.4) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Philosophy Section Mobile Optimization */
@media (max-width: 768px) {
  #philosophyContainer {
    padding: 30px 20px 20px !important;
    min-height: auto !important;
  }
  #philosophyContainer .reveal-left {
    gap: 20px !important;
  }
  #philosophyContainer p {
    font-size: 1.1rem !important;
    margin-top: 10px !important;
  }
}

/* Custom Hero Animations (Independent of global reveals) */
.hero .hero-title, .hero .hero-subtitle, .hero .hero-ctas, .hero .technical-tag {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.loaded .hero .hero-title, 
body.loaded .hero .hero-subtitle, 
body.loaded .hero .hero-ctas, 
body.loaded .hero .technical-tag {
  opacity: 1;
  transform: translateY(0);
}

body.loaded .hero .technical-tag { transition-delay: 0.2s !important; }
body.loaded .hero .hero-title { transition-delay: 0.4s !important; }
body.loaded .hero .hero-subtitle { transition-delay: 0.6s !important; }
body.loaded .hero .hero-ctas { transition-delay: 0.8s !important; }

.hero-video {
  opacity: 0;
  transition: opacity 2s ease-in-out !important;
}
body.loaded .hero-video {
  opacity: 1;
}

/* Fix for Android Red Highlights/Buttons */
a, button, .cta-button, .bento-card-main {
  -webkit-tap-highlight-color: transparent !important; /* Miče highlight kod klika */
}

a:active, a:focus, button:active, button:focus, .cta-button:active, .cta-button:focus {
  outline: none !important;
  color: inherit;
}

.cta-amber:active, .cta-amber:focus {
  background-color: var(--accent-amber) !important;
  color: #000 !important;
}
