header.site-header.menu-open {
  background: #fff !important;
  box-shadow: 0 6px 25px rgba(0,0,0,0.12);
  z-index: 1050;
}
/* --- Contact Form Feedback Styles (moved from contact.php) --- */
.notice {
  opacity: 0;
  text-align: center;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.4s ease, transform 0.3s ease;
  transform: translateY(6px);
}
.notice.show {
  opacity: 1;
  transform: translateY(0);
}
.notice.success {
  color: #2ecc71;
}
.notice.error {
  color: #d33;
}
.is-valid { border-color: #28a745 !important; }
.is-invalid { border-color: #dc3545 !important; }
/* --- Responsive Improvements for Clients Page --- */
@media (max-width: 767.98px) {
  .glass-card {
    padding: 16px;
    border-radius: 12px;
  }
  .client-logo {
    max-width: 54px;
    max-height: 54px;
    margin-bottom: 10px;
  }
  .client-box {
    font-size: 14px;
    padding: 10px 4px !important;
  }
  .testimonial-card {
    padding: 16px !important;
    font-size: 14px;
  }
  .cta-box {
    padding: 2rem 0.5rem !important;
    border-radius: 10px;
  }
  .cta-box h2 {
    font-size: 1.3rem;
  }
  .cta-box p {
    font-size: 1rem;
  }
  #clients-list > .col-12,
  #clients-list > .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .carousel-inner {
    max-width: 98vw;
  }
}
.cta-box {
  background: linear-gradient(135deg, #fff8e1 0%, #f8f9fa 100%);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}
.cta-bg-icon {
  left: 50%;
  top: 0;
  transform: translate(-50%, -30%);
  pointer-events: none;
  z-index: 1;
}
.cta-btn-focus:focus {
  outline: 3px solid #d32f2f;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #ffe082;
}
/* --- Enhanced Client Logo Styles --- */
.client-logo {
  max-width: 70px;
  max-height: 70px;
  display: block;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  border-radius: 12px;
  border: 2px solid #eee;
  filter: grayscale(100%);
  transition: filter 0.3s, border-color 0.3s;
}
.client-box:hover .client-logo {
  filter: grayscale(0%);
  border-color: #d32f2f;
}
/* --- Clients Page Styles (moved from clients.php) --- */
.glass-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.client-box {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  letter-spacing: .3px;
}

.testimonial-text {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.cta-box {
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.05);
}
/* Custom overlay for career modal to ensure it appears above the site header */
.career-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  z-index: 11000;
}
.modal.show ~ .career-modal-overlay,
#careerModal.show ~ .career-modal-overlay {
  display: block;
}
/* Ensure modal is above overlay */
#careerModal.modal.show {
  z-index: 11010;
}
/* --- About Page Styles (moved from about.php) --- */
.about-section h2,
section h2.fw-bold {
  letter-spacing: .6px;
  font-weight: 800;
  color: #1b1b1b;
}

.about-section .section-text {
  max-width: 780px;
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}

section {
  animation: fadeUp .7s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.glass-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow:
      0 4px 15px rgba(0,0,0,0.06),
      0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow:
      0 12px 30px rgba(0,0,0,0.12),
      0 20px 45px rgba(0,0,0,0.10);
}

.glass-card i {
  color: #d63333 !important;
  font-size: 36px !important;
  padding: 12px;
  border-radius: 12px;
  background: rgba(214,51,51,0.08);
}

.stats-section {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow:
      0 6px 20px rgba(0,0,0,0.05),
      0 10px 30px rgba(0,0,0,0.08);
}

.stats-section h2 {
  font-size: 40px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(214,51,51,0.15);
}

.stats-section p {
  color: #6b6b6b;
  font-weight: 500;
}

section[data-aos="zoom-in"] h2 {
  font-size: 34px;
}

section[data-aos="zoom-in"] p {
  font-size: 16px;
  color: #666;
}
/* --- Compact Enhanced Service Card for Consistency with Index Page --- */
.enhanced-service-card {
  background: linear-gradient(135deg, #f6e8bb 0%, #e3f0ff 100%);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(31,59,77,0.09), 0 1px 2px rgba(220,53,69,0.07);
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid #e3e3e3;
  padding: 1.05rem 0.7rem 0.9rem 0.7rem !important;
}
.enhanced-service-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 5px 16px rgba(31,59,77,0.13), 0 1.5px 6px rgba(220,53,69,0.10);
  border-color: #dc3545;
}
.enhanced-icon {
  background: linear-gradient(135deg, #dc3545 0%, #f6e8bb 100%);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 32px;
  box-shadow: 0 6px 15px rgba(220,53,69,0.10);
  margin: 0 auto 18px auto;
  align-items: center;
  justify-content: center;
  display: flex;
  position: relative;
  top: 0;
}
.enhanced-title {
  color: #1f3b4d;
  letter-spacing: 0.2px;
  font-size: 1.01rem;
  margin-bottom: 0.3rem !important;
}
.enhanced-desc {
  color: #444;
  font-size: 0.89rem;
  font-weight: 500;
  margin-bottom: 0.45rem !important;
}
.enhanced-list {
  font-size: 0.96rem;
  color: #222;
  padding-left: 0.5rem;
  margin-bottom: 0;
  margin-top: 0.5rem;
  list-style: none;
}
.enhanced-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7em;
  margin-bottom: 0.28rem;
  padding-left: 0.2em;
}
.enhanced-bullet {
  color: #dc3545;
  font-size: 1.1em;
  font-weight: bold;
  line-height: 1.2;
  margin-top: 0.2em;
}
.enhanced-service-card .text-muted.small {
  font-size: 0.78rem;
  margin-top: 0.5rem !important;
}
/* Finance Service Page Custom Styles */
.finance-title {
  font-size: 2.5rem;
}
.finance-lead {
  max-width: 900px;
  margin: auto;
  color: #6c757d;
}
.finance-cta-section p {
  max-width: 900px;
  margin: auto;
}
/* Header Styles Moved from header.php */
header.site-header { 
  background: #fff; 
  border-bottom: 1px solid rgba(0,0,0,0.05); 
  padding: 12px 0; 
  transition: all .35s; 
  z-index: 9999; 
  position: fixed; 
  top: 0; 
  width: 100%; 
}
header.site-header.scrolled { 
  padding: 10px 0; 
  box-shadow: 0 6px 25px rgba(0,0,0,0.07); 
  backdrop-filter: blur(10px); 
}
.logo { 
  height: 62px; 
  transition: .35s; 
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12)); 
}
header.site-header.scrolled .logo { 
  height: 48px; 
}
.brand { 
  font-weight: 800; 
  letter-spacing: 2.2px; 
  font-size: 32px; 
  color: #0f0f0f; 
}
.nav-link { 
  font-weight: 600; 
  font-size: 16px; 
  color: #222 !important; 
  margin: 0 14px; 
  padding-bottom: 6px; 
  opacity: .95; 
}
.nav-link:hover { 
  color: #dc3545 !important; 
  opacity: 1; 
}
.nav-cta .btn { 
  border-radius: 28px; 
  padding: 10px 22px; 
  background: linear-gradient(135deg,#dc3545,#b72a34); 
  color: #fff; 
  font-weight: 600; 
  border: none; 
  box-shadow: 0 5px 16px rgba(220,53,69,0.35); 
}
.navbar-toggler { 
  border: none; 
  padding: 6px 10px; 
}
.navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}
.navbar-toggler i { 
  font-size: 32px; 
  color: #dc3545; 
}

/* Mobile Navigation Dropdown Styles */
@media (max-width: 991.98px) {
  #mainNav { 
    background: #fff; 
    border-radius: 14px; 
    padding: 20px 15px; 
    box-shadow: 0 12px 28px rgba(0,0,0,0.12); 
    margin-top: 10px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .nav-link { 
    margin: 10px 0 !important; 
    font-size: 17px !important; 
    padding: 12px 15px !important;
    border-radius: 8px;
    transition: background 0.2s;
  }
  
  .nav-link:hover,
  .nav-link:focus {
    background: rgba(220, 53, 69, 0.08);
  }
  
  .nav-link.active {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
  }
  
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 5px 0;
    padding: 10px;
  }
  
  .dropdown-item {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 15px;
  }
  
  .dropdown-item:hover {
    background: rgba(220, 53, 69, 0.08);
  }
  
  .nav-cta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  
  .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  
  /* Header scrolled state on mobile */
  header.site-header.scrolled {
    padding: 8px 0;
  }
  
  header.site-header.scrolled .logo {
    height: 40px;
  }
}

@media (max-width: 576px) {
  header.site-header {
    padding: 12px 0;
  }
  
  .navbar-brand {
    max-width: 70%;
  }
  
  .logo {
    height: 45px !important;
  }
  
  .brand {
    font-size: 18px !important;
    letter-spacing: 1px;
  }
  
  #mainNav {
    padding: 15px 12px;
    border-radius: 12px;
  }
  
  .nav-link {
    font-size: 15px !important;
    padding: 10px 12px !important;
  }
  
  .navbar-toggler i {
    font-size: 28px;
  }
}
/* Enhanced Service Card Styles */
.enhanced-service-card {
  background: linear-gradient(135deg, #f6e8bb 0%, #e3f0ff 100%);
  border-radius: 1.5rem;
  box-shadow: 0 6px 32px rgba(31,59,77,0.10), 0 1.5px 6px rgba(220,53,69,0.08);
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1.5px solid #e3e3e3;
}
.enhanced-service-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 36px rgba(31,59,77,0.16), 0 3px 12px rgba(220,53,69,0.12);
  border-color: #dc3545;
}
.enhanced-icon {
  background: linear-gradient(135deg, #dc3545 0%, #f6e8bb 100%);
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 2.2rem;
  box-shadow: 0 2px 12px rgba(220,53,69,0.10);
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
  display: flex;
}
.enhanced-title {
  color: #1f3b4d;
  letter-spacing: 0.5px;
}
.enhanced-desc {
  color: #444;
  font-size: 1.08rem;
  font-weight: 500;
}
.enhanced-list {
  font-size: 0.98rem;
  color: #2d2d2d;
  padding-left: 0.5rem;
}
.enhanced-list li {
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
}
.enhanced-bullet {
  color: #dc3545;
  font-size: 1.1em;
  margin-right: 0.5em;
  font-weight: bold;
}
/* -------------------------------
   HERO CTA BUTTON (already used)
-------------------------------- */
.glow-btn {
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
  transition: 0.3s ease;
}
.glow-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* ================================
   PREMIUM HERO ENHANCEMENT (UI ONLY)
   — Figma layout unchanged —
================================ */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* Gradient fallback */
  background-color: #0f2027;
  /* Image with gradient overlay */
  background-image: 
    linear-gradient(135deg, rgba(15,32,39,0.85) 0%, rgba(32,58,67,0.75) 50%, rgba(44,83,100,0.7) 100%),
    url('/assets/img/tekstrafin-hero-gradient.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 100px 20px 80px 20px;
}

/* Soft atmospheric glow */
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 140%;
  background: radial-gradient(
      circle at center,
      rgba(255,255,255,0.07),
      transparent 70%
  );
  transform: translateX(-50%);
  animation: heroGlow 10s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.5;
}

/* Floating particles overlay - using CSS gradient instead of missing image */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%, rgba(255,255,255,0.02) 100%);
  opacity: 0.5;
  animation: slowFloat 18s linear infinite;
  pointer-events: none;
}

/* Enhanced overlay */
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,59,77,0.25), rgba(15,32,39,0.28));
  pointer-events: none;
}

/* Title */
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .8px;
  color: #fff !important; /* Force white, override global */
  text-shadow: 0 4px 16px rgba(0,0,0,0.7);
}

/* Subtitle */
.hero p.lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #e0e0e0; /* Light gray for good contrast */
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

/* Buttons */
.hero a.btn {
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all .35s ease;
  background-color: #E50914 !important; /* Red */
  color: #FFFFFF !important; /* White text, max contrast */
  text-shadow: 0 2px 8px rgba(0,0,0,0.6); /* Add shadow for button text contrast */
  border: none;
}

.hero a.btn:hover {
  transform: translateY(-4px);
  background-color: #C40812 !important; /* Slightly darker red on hover */
  color: #FFFFFF !important;
  box-shadow: 0 10px 22px rgba(255,255,255,0.18);
}

/* Floating animation */
.hero .container {
  position: relative;
  z-index: 2;
  animation: heroFloat 6s ease-in-out infinite;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes heroGlow {
  0% { transform: translateX(-50%) scale(1); opacity: 0.45; }
  50% { transform: translateX(-50%) scale(1.08); opacity: 0.65; }
  100% { transform: translateX(-50%) scale(1); opacity: 0.45; }
}

@keyframes slowFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-5%); }
}

@keyframes heroFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* -------------------------------
   SECTION HEADINGS
-------------------------------- */
#services h2,
#why-us h2,
#testimonials h2,
#blog h2 {
  letter-spacing: .6px;
  font-weight: 800;
  color: #1b1b1b;
}

/* -------------------------------
   GLASS CARDS BASE
-------------------------------- */
.glass {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow:
      0 4px 14px rgba(0,0,0,0.05),
      0 10px 28px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}

/* Hover Scale on service cards */
.hover-scale:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
      0 10px 32px rgba(0,0,0,0.16),
      0 16px 40px rgba(0,0,0,0.12);
}

/* Service card content */
.service-card h4 {
  font-weight: 700;
  margin-top: 8px;
  color: #222;
}
.service-card p {
  font-size: 14px;
  color: #555;
}

/* Why-us cards subtle hover */
.why-card {
  position: relative;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow:
      0 10px 30px rgba(0,0,0,0.12),
      0 16px 40px rgba(0,0,0,0.10);
}

/* Icon circle (already used) */
.icon-circle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg,#4b6b81,#31506a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  margin: 0 auto 18px auto;
  box-shadow: 0 6px 15px rgba(0,0,0,0.18);
  position: relative;
  top: 0;
}

/* -------------------------------
   STATS SECTION
-------------------------------- */
#stats h2 {
  font-size: 38px;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(214,51,51,0.18);
}
#stats p {
  color: #666;
  font-weight: 500;
}

/* -------------------------------
   TESTIMONIALS CAROUSEL
-------------------------------- */
#testimonials {
  background: #f9fafb;
}
#testimonialCarousel .carousel-item {
  padding: 20px 40px;
}
#testimonialCarousel p {
  max-width: 720px;
  margin: 0 auto;
  color: #444;
}
#testimonialCarousel h6 {
  color: #222;
}

/* Control buttons slightly softer */
#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
  filter: invert(1) grayscale(1);
}

/* -------------------------------
   BLOG CARDS
-------------------------------- */
.blog-card {
  border-radius: 16px;
}
.blog-card h5 {
  font-weight: 700;
  margin-bottom: 8px;
}
.blog-card a {
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow:
      0 12px 30px rgba(0,0,0,0.14),
      0 18px 40px rgba(0,0,0,0.12);
}

/* -------------------------------
   BOTTOM CTA
-------------------------------- */
.home-bottom-cta {
  position: relative;
  overflow: hidden;
}
.home-bottom-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}
.home-bottom-cta > * {
  position: relative;
  z-index: 1;
}

/* -------------------------------
   RESPONSIVE TWEAKS
-------------------------------- */
@media (max-width: 576px) {
  #services .service-card,
  #blog .blog-card,
  #why-us .why-card {
    padding: 24px 18px;
  }

  #testimonialCarousel .carousel-item {
    padding: 10px 15px;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: 38vh;
    padding: 40px 8px;
    background-image: none, url('../img/tekstrafin-hero-gradient-mobile.png');
    background-size: cover;
    background-position: center;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p.lead {
    font-size: 1rem;
  }
}

/* Divider Arrow (IT Services) */
.divider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 32px auto 24px auto;
  width: 100%;
  max-width: 420px;
}
.divider-arrow .divider-line {
  flex: 1 1 60px;
  height: 3px;
  background: #d33;
  border-radius: 2px;
  max-width: 90px;
}
.divider-arrow .divider-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  box-shadow: 0 0 0 2px #fff;
  position: relative;
  z-index: 1;
}
.divider-arrow svg {
  display: block;
}
/* Colorful IT Service Cards (it_services.php) */
.it-services-cards .service-card:nth-child(1) {
  background: linear-gradient(135deg, #fbbf24 0%, #f8fafc 100%) !important;
}
.it-services-cards .service-card:nth-child(2) {
  background: linear-gradient(135deg, #60a5fa 0%, #f8fafc 100%) !important;
}
.it-services-cards .service-card:nth-child(3) {
  background: linear-gradient(135deg, #34d399 0%, #f8fafc 100%) !important;
}
.it-services-cards .service-card:nth-child(4) {
  background: linear-gradient(135deg, #f472b6 0%, #f8fafc 100%) !important;
}
/*********************************
  DESIGN SYSTEM (ENHANCED)
**********************************/
:root {
  --primary: #d33;
  --primary-dark: #b22;
  --accent: #f0b04b;

  --dark: #111;
  --text: #2a2a2a;
  --text-light: #555;

  --light-bg: #f8f9fa;
  --glass: rgba(255,255,255,0.85);

  /* Better premium shadows */
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-strong: 0 18px 45px rgba(0,0,0,0.12);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

/*********************************
  GLOBAL REFINEMENTS
**********************************/
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #ffffff, #f4f6f8);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--dark);
}

.lead {
  font-size: 1.18rem;
  opacity: 0.95;
}

/*********************************
  NAVBAR — Smoother Transitions
**********************************/
.navbar {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: var(--glass);
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
}

/*********************************
  LOGO
**********************************/
.logo {
  width: 64px;
  transition: transform .35s ease, filter .35s ease;
}

.logo:hover {
  transform: scale(1.12) rotate(-2deg);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
}

/*********************************
  HERO — Deeper Gradient + Subtle Glow
**********************************/
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
  background: url('../img/tekstrafin-hero-gradient.png') center center/cover no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  color: #fff !important;
  text-shadow: 0 6px 24px rgba(0,0,0,0.85), 0 2px 4px #000 !important;
}
.hero p,
  .hero .lead,
  .hero h2 {
    color: #fff !important;
    text-shadow: 0 8px 32px rgba(0,0,0,0.95), 0 2px 4px #000 !important;
    font-size: 1.60rem;
    line-height: 1.7;
    font-weight: 500;
  }
.hero .btn,
.hero a.btn {
  background: #E50914 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(229,9,20,0.12);
  font-weight: 600;
  font-size: 1.18rem;
  padding: 14px 36px;
  border-radius: 50px;
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
  text-shadow: 0 4px 18px rgba(0,0,0,0.85), 0 2px 4px #000 !important;
}
.hero .btn:hover,
.hero a.btn:hover {
  background: #C40812 !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(229,9,20,0.18);
}


/*********************************
  FLOAT
**********************************/
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.floating { animation: float 6s ease-in-out infinite; }

/*********************************
  BUTTONS — More Crisp & Modern
**********************************/
.btn {
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(211,51,51,0.08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  filter: brightness(1.08);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg, 
    transparent 0%, 
    rgba(255,255,255,0.35) 50%, 
    transparent 100%
  );
  transform: translateX(-120%);
  transition: 0.55s ease;
}

.btn:hover::after {
  transform: translateX(120%);
}

/*********************************
  SERVICE CARDS — Crisp Edges
**********************************/
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: 0.35s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-strong);
}

.service-card i {
  font-size: 32px;
  margin-bottom: 0;
  transition: 0.4s ease;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card:hover i {
  transform: rotate(8deg) scale(1.25);
  color: var(--accent);
}

/*********************************
  CLIENT LOGOS — More Premium Hover
**********************************/
.client-logo {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  transition: 0.4s ease;
}

.client-logo:hover {
  transform: translateY(-8px) scale(1.07);
  box-shadow: var(--shadow-strong);
}

/*********************************
  TESTIMONIALS — Softer Look
**********************************/
.testimonial-card {
  background: linear-gradient(145deg,#ffffff,#f2f2f2);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: 0.45s cubic-bezier(.23,1,.32,1);
}

.testimonial-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 55px rgba(0,0,0,0.18);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -18px;
  left: 18px;
  font-size: 72px;
  opacity: 0.18;
  color: var(--primary);
}

/*********************************
  SCROLL TOP — Smoother
**********************************/
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 18px;
  border-radius: 50%;
  color: #fff;
  display: none;
  cursor: pointer;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-strong);
  transition: 0.35s ease;
  /* Enhanced button hover effects */
  .btn-danger,
  .btn-lg {
    transition: all 0.3s cubic-bezier(.23,1,.32,1);
    box-shadow: 0 4px 16px rgba(211,51,51,0.08);
  }
  .btn-danger:hover,
  .btn-lg:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 18px 40px rgba(211,51,51,0.15);
  }
  z-index: 1000;
}
img,
.gallery-img {
  transition: transform 0.4s cubic-bezier(.23,1,.32,1), box-shadow 0.3s;
}
img:hover,
.gallery-img:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.scroll-top-btn:hover {
  transform: translateY(-6px) scale(1.12);
}
a {
  transition: color 0.25s, text-shadow 0.3s;
}
a:hover {
  color: var(--primary);
  text-shadow: 0 2px 8px rgba(211,51,51,0.08);
}

/*********************************
  FORM NOTICES — Cleaner Fade
**********************************/
.notice {
  opacity: 0;
  text-align: center;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.4s ease, transform 0.3s ease;
  transform: translateY(6px);
}

.notice.show {
  opacity: 1;
  transform: translateY(0);
}

.notice.success { color: #2ecc71; }
.notice.error { color: #e63946; }

/*********************************
  RESPONSIVE - COMPREHENSIVE MOBILE STYLES
**********************************/

/* ============================================
   LARGE TABLETS & SMALL DESKTOPS (max 992px)
============================================ */
@media (max-width: 992px) {
  .container { 
    padding: 30px 20px; 
  }
  
  .hero { 
    min-height: 60vh;
    padding: 60px 15px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p.lead {
    font-size: 1.1rem;
  }
  
  /* Navigation adjustments */
  .navbar-collapse {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }
  
  .nav-link {
    margin: 10px 0 !important;
    font-size: 17px !important;
    padding: 8px 15px !important;
    display: block;
    text-align: center;
  }
  
  .nav-cta {
    margin-top: 15px;
    text-align: center;
  }
  
  .nav-cta .btn {
    width: 100%;
    max-width: 250px;
  }
  
  /* Service cards grid */
  .service-card {
    padding: 30px 24px;
  }
  
  /* Stats section */
  #stats .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 20px;
  }
  
  /* Testimonials */
  #testimonialCarousel .carousel-item {
    padding: 20px 30px;
  }
  
  /* Blog cards */
  .blog-card {
    margin-bottom: 20px;
  }
  
  /* About page glass cards */
  .glass-card {
    padding: 24px;
  }
  
  /* Stats section on about page */
  .stats-section .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ============================================
   TABLETS (max 768px)
============================================ */
@media (max-width: 768px) {
  .container { 
    padding: 25px 15px; 
  }
  
  .hero {
    min-height: 50vh;
    padding: 50px 12px;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .hero p.lead {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  .hero .btn {
    padding: 10px 24px;
    font-size: 1rem;
  }
  
  /* Header brand */
  .logo {
    height: 50px !important;
  }
  
  .brand {
    font-size: 20px !important;
    letter-spacing: 1px;
  }
  
  /* Section headings */
  h2.fw-bold,
  section h2 {
    font-size: 1.6rem !important;
  }
  
  h3.fw-bold {
    font-size: 1.35rem !important;
  }
  
  /* Service cards - 2 column on tablet */
  .col-md-4, .col-lg-3, .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .service-card {
    padding: 24px 18px;
    min-height: auto;
  }
  
  .icon-circle,
  .enhanced-icon {
    width: 54px;
    height: 54px;
    font-size: 26px;
  }
  
  /* Stats section - 2 columns */
  #stats .row .col-md-3,
  .stats-section .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 20px;
  }
  
  #stats h2 {
    font-size: 30px;
  }
  
  /* Contact section */
  .contact-section .row {
    flex-direction: column;
  }
  
  .contact-section .col-lg-5,
  .contact-section .col-lg-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .contact-card {
    margin-bottom: 15px;
  }
  
  /* Career page job cards */
  .job-card {
    margin-bottom: 20px;
  }
  
  /* Core values - 2 columns */
  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Gallery images */
  .gallery-img {
    height: auto;
    max-height: 250px;
    object-fit: cover;
  }
  
  /* Enhanced service cards */
  .enhanced-service-card {
    padding: 20px 15px !important;
    margin-bottom: 20px;
  }
  
  .enhanced-title {
    font-size: 1.1rem !important;
  }
  
  .enhanced-list {
    font-size: 0.9rem;
  }
}

/* ============================================
   MOBILE PHONES (max 576px)
============================================ */
@media (max-width: 576px) {
  body {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .container { 
    padding: 20px 12px; 
  }
  
  /* Hero section mobile */
  .hero {
    min-height: 45vh;
    padding: 40px 10px;
  }
  
  .hero h1 {
    font-size: 1.5rem !important;
    line-height: 1.35;
    margin-bottom: 15px;
  }
  
  .hero p.lead {
    font-size: 0.95rem !important;
    line-height: 1.5;
    padding: 0 5px;
  }
  
  .hero .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  
  /* Header mobile */
  header.site-header {
    padding: 12px 0;
  }
  
  .logo {
    height: 42px !important;
  }
  
  .brand {
    font-size: 16px !important;
    letter-spacing: 0.5px;
  }
  
  .navbar-toggler i {
    font-size: 28px;
  }
  
  /* Navigation mobile */
  .navbar-collapse {
    padding: 15px;
    margin-top: 10px;
  }
  
  .nav-link {
    font-size: 16px !important;
    margin: 8px 0 !important;
    padding: 10px 12px !important;
  }
  
  /* Section headings mobile */
  h2.fw-bold,
  section h2,
  .fw-bold.mb-3,
  .fw-bold.mb-4,
  .fw-bold.mb-5 {
    font-size: 1.4rem !important;
    line-height: 1.3;
  }
  
  h3.fw-bold {
    font-size: 1.2rem !important;
  }
  
  p.lead {
    font-size: 1rem !important;
  }
  
  /* All columns to full width on mobile */
  .col-md-3,
  .col-md-4,
  .col-md-6,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  /* Service cards mobile */
  .service-card {
    padding: 24px 18px;
    margin-bottom: 15px;
    min-height: auto;
  }
  
  .service-card h3,
  .service-card h4,
  .service-card h5 {
    font-size: 1.15rem;
  }
  
  .service-card p {
    font-size: 0.9rem;
  }
  
  .icon-circle,
  .enhanced-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  /* Enhanced service cards mobile */
  .enhanced-service-card {
    padding: 18px 14px !important;
    margin-bottom: 15px;
  }
  
  .enhanced-title {
    font-size: 1rem !important;
    min-height: auto !important;
  }
  
  .enhanced-desc {
    font-size: 0.85rem;
  }
  
  .enhanced-list {
    font-size: 0.88rem;
  }
  
  .enhanced-list li {
    margin-bottom: 8px;
  }
  
  /* Glass cards mobile */
  .glass-card {
    padding: 20px 16px;
    border-radius: 14px;
    margin-bottom: 15px;
  }
  
  .glass-card i {
    font-size: 28px !important;
  }
  
  .glass-card h3,
  .glass-card h5 {
    font-size: 1.1rem;
  }
  
  /* Stats section mobile */
  #stats h2,
  .stats-section h2 {
    font-size: 28px;
  }
  
  #stats p,
  .stats-section p {
    font-size: 0.9rem;
  }
  
  .stats-section {
    padding: 25px 15px !important;
  }
  
  /* Testimonials mobile */
  #testimonials {
    padding: 30px 0;
  }
  
  #testimonialCarousel .carousel-item {
    padding: 15px 10px;
  }
  
  #testimonialCarousel p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  #testimonialCarousel h6 {
    font-size: 0.9rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }
  
  /* Blog cards mobile */
  .blog-card {
    padding: 20px 16px;
    margin-bottom: 15px;
  }
  
  .blog-card h5 {
    font-size: 1.05rem;
  }
  
  .blog-card p {
    font-size: 0.9rem;
  }
  
  /* Contact section mobile */
  .contact-section {
    padding: 30px 0;
  }
  
  .contact-section h2,
  .contact-section h3 {
    font-size: 1.3rem !important;
  }
  
  .contact-card {
    padding: 15px !important;
    margin-bottom: 12px;
  }
  
  .contact-card h6 {
    font-size: 1rem;
  }
  
  .contact-card p {
    font-size: 0.9rem;
  }
  
  #contactForm .form-control {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  
  #contactForm .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  /* Career page mobile */
  .benefit-card {
    padding: 20px 15px;
    margin-bottom: 15px;
  }
  
  .benefit-card h5 {
    font-size: 1rem;
  }
  
  .job-card {
    padding: 18px 15px;
    margin-bottom: 15px;
  }
  
  .gallery-box {
    margin-bottom: 15px;
  }
  
  .gallery-img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
  }
  
  /* About section mobile */
  .about-section .section-text {
    font-size: 0.95rem;
    padding: 0 5px;
  }
  
  /* CTA sections mobile */
  .home-bottom-cta,
  .cta-box {
    padding: 30px 15px !important;
  }
  
  .home-bottom-cta h2 {
    font-size: 1.3rem !important;
  }
  
  .home-bottom-cta p {
    font-size: 0.95rem;
  }
  
  /* Buttons mobile */
  .btn-lg {
    padding: 10px 22px;
    font-size: 0.95rem;
  }
  
  .btn-danger.btn-lg {
    padding: 12px 25px;
  }
  
  /* Modals mobile */
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .modal-content {
    border-radius: 14px;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 15px;
  }
  
  /* IT Services page specific */
  .divider-arrow {
    max-width: 280px;
    margin: 20px auto;
  }
  
  .divider-arrow .divider-line {
    max-width: 60px;
  }
  
  /* Finance service page */
  .finance-title {
    font-size: 1.8rem !important;
  }
  
  .finance-lead {
    font-size: 0.95rem;
  }
  
  /* Scroll to top button mobile */
  .scroll-top-btn,
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

/* ============================================
   EXTRA SMALL PHONES (max 400px)
============================================ */
@media (max-width: 400px) {
  .container {
    padding: 15px 10px;
  }
  
  .hero {
    min-height: 40vh;
    padding: 35px 8px;
  }
  
  .hero h1 {
    font-size: 1.3rem !important;
  }
  
  .hero p.lead {
    font-size: 0.9rem !important;
  }
  
  .brand {
    font-size: 14px !important;
  }
  
  .logo {
    height: 38px !important;
  }
  
  h2.fw-bold,
  section h2 {
    font-size: 1.25rem !important;
  }
  
  .service-card,
  .glass-card,
  .blog-card {
    padding: 16px 12px;
  }
  
  .icon-circle,
  .enhanced-icon {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
  
  #stats h2,
  .stats-section h2 {
    font-size: 24px;
  }
  
  .btn-lg {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}

/* ============================================
   LANDSCAPE MOBILE ORIENTATION
============================================ */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
    padding: 30px 20px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p.lead {
    font-size: 0.95rem;
  }
  
  .navbar-collapse {
    max-height: 250px;
    overflow-y: auto;
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
============================================ */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .glass-card:hover,
  .blog-card:hover,
  .hover-lift:hover,
  .hover-scale:hover {
    transform: none;
  }
  
  .nav-link:hover,
  .btn:hover {
    transform: none;
  }
  
  /* Larger touch targets */
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn {
    min-height: 44px;
  }
  
  .footer-social-link {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero,
  .hero .container,
  .hero::before,
  .hero::after {
    animation: none !important;
  }
  
  .floating {
    animation: none !important;
  }
  
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* SHAKE EFFECT */
.shake-error {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* BUTTON SPINNER */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: spin .6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fallback for missing hero background image */
.hero {
  background-color: #1f3b4d;
}

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero .container,
  .hero::before,
  .hero::after {
    animation: none !important;
    transition: none !important;
  }
}