/* style.css - WebAlati Dark Theme */

/* Variables */
:root {
  --bg-color: #09090b;
  /* Deep Zinc / Space */
  --surface-main: rgba(24, 24, 27, 0.45);
  --surface-hover: rgba(39, 39, 42, 0.6);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;

  /* Premium High-Tech Brand Colors */
  --accent-color: #f59e0b;
  /* Amber */
  --accent-glow: rgba(245, 158, 11, 0.15);
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  /* Amber to Fuchsia Gradient */

  /* Social Colors */
  --tiktok-color: #00f2fe;
  /* Electric Blue/Cyan for better contrast with white text */
  --youtube-color: #ff0000;
  --insta-color: #E1306C;

  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  /* Premium Glass Borders */
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --glass-border-hover: 1px solid rgba(255, 255, 255, 0.12);

  --transition-speed: 0.3s;
  --transition-slow: 0.6s;

  /* Refined Shadows */
  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.15);
}

/* Background Decorations Removed */

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

html, body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  background-image:
    radial-gradient(circle at 10% 40%, rgba(236, 72, 153, 0.04), transparent 30%),
    radial-gradient(circle at 90% 60%, rgba(245, 158, 11, 0.04), transparent 30%);
  background-attachment: fixed;
}


h1,
h2,
h3,
h4,
h5,
h6,
.brand-name {
  letter-spacing: -0.03em;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 4rem 0;
}

#category-view .container.section-padding {
  padding-top: 1.5rem;
}

.accent {
  color: var(--accent-color);
}

/* Language Visibility */
.lang-en:not(body),
.lang-hr:not(body) {
  display: none;
}

body.lang-en .lang-en {
  display: inline-block;
}

body:not(.lang-en) .lang-hr {
  display: inline-block;
}

/* Base Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* View Toggling (SPA logic) */
.view {
  display: none;
}

.view.active {
  display: block;
}

.hidden {
  display: none !important;
}

/* Navbar */
.navbar {
  padding: 1.2rem 0;
  border-bottom: var(--glass-border);
  background-color: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-speed);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.lang-btn:hover {
  background: rgba(255, 159, 28, 0.15);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.lang-btn i {
  font-size: 0.9rem;
}

.logo {
  cursor: pointer;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(to right, #ffffff, #a0a0a0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text .accent {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-top-heading {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  position: relative;
  z-index: 5;
}

/* Profile Wrapper (contains image + speech bubble) */
.profile-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 2rem;
  width: fit-content;
}

/* --- Speech Bubble --- */
.speech-bubble {
  position: absolute;
  top: -10px;
  right: -210px;
  width: 190px;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 159, 28, 0.35);
  border-radius: 18px 18px 18px 4px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 159, 28, 0.08);
  animation: bubblePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
  transform-origin: bottom left;
  z-index: 10;
}

/* Bubble tail pointing left (towards profile image) */
.speech-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 20px;
  border-width: 8px 10px 8px 0;
  border-style: solid;
  border-color: transparent rgba(255, 159, 28, 0.35) transparent transparent;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 21px;
  border-width: 7px 9px 7px 0;
  border-style: solid;
  border-color: transparent rgba(30, 30, 30, 0.95) transparent transparent;
}

.speech-bubble p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
}

@keyframes bubblePop {
  from {
    opacity: 0;
    transform: scale(0.4) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bubbleFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 0 4rem;
  position: relative;
}

.profile-img-container {
  width: 240px;
  height: 240px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  padding: 8px;
  background: var(--accent-gradient);
  box-shadow: 0 0 20px var(--accent-glow);
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.profile-img-container::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background: var(--accent-color);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  z-index: -1;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #050505;
}

.brand-name {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
  background: linear-gradient(to bottom right, #ffffff, #888888);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-name .accent {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-description {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* Social Buttons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(255, 255, 255, 0.03);
  border: var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.social-btn i {
  font-size: 1.3rem;
}

.social-btn.tiktok:hover {
  background-color: var(--tiktok-color);
  border-color: transparent;
  color: #000;
  /* Dark text for perfect contrast on bright cyan/blue */
  box-shadow: 0 10px 20px rgba(0, 242, 254, 0.4);
}

.social-btn.youtube:hover {
  background-color: var(--youtube-color);
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 20px rgba(225, 48, 108, 0.3);
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.02);
}

/* English Version Hero Enhancements */
[lang="en"] .brand-name {
  font-size: 5.5rem;
  font-weight: 950;
  letter-spacing: -3.5px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ffffff 30%, #a0a0a0 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

[lang="en"] .brand-description {
  font-size: 1.4rem;
  max-width: 800px;
  line-height: 1.7;
  margin-bottom: 4rem;
  opacity: 0.9;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: #fff;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.25);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 25px 50px rgba(245, 158, 11, 0.45);
}

.hero-cta i {
  font-size: 1.4rem;
}

[lang="en"] .hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vh;
    background: radial-gradient(circle, rgba(236, 72, 120, 0.06) 0%, rgba(245, 158, 11, 0.04) 40%, transparent 70%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    animation: glowPulse 10s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Section Headers */
.section-header {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-header .accent {
  text-shadow: 0 0 8px var(--accent-glow);
}

#trending-container .tool-card {
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 215, 0, 0.15) !important;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.9) 0%, rgba(15, 15, 15, 0.9) 100%) !important;
  position: relative;
}

/* No ::after override here — the base .tool-card::after ("Klikni za detalje") is used for both sections */

#trending-container .tool-card:hover {
  border-color: rgba(255, 215, 0, 0.8) !important;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(255, 215, 0, 0.4) !important;
  transform: translateY(-8px) scale(1.02);
}

/* Trending Vertical Layout */
.trending-section {
  background: radial-gradient(circle at top right, rgba(255, 159, 28, 0.08), transparent 40%),
    radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.05), transparent 40%);
  padding: 5rem 2rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 6rem;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.trending-section::before {
  content: 'HOT';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent-color);
  color: #000;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.5rem 3rem;
  transform: rotate(45deg);
  letter-spacing: 2px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.tools-scroll-container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 2rem;
}

/* Base tool card settings for both trending & grid */
.tool-card {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(15, 15, 15, 0.95));
  border-radius: var(--border-radius-lg);
  padding: 0;
  width: calc((100% - (1.5rem * 4)) / 5);
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Better separation */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  /* Premium depth */
  transition: all var(--transition-speed);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.tool-card:hover {
  z-index: 10;
  transform: translateY(-8px) scale(1.02);
  border: var(--glass-border-hover);
  box-shadow: var(--shadow-hover);
  background-color: var(--surface-hover);
  cursor: pointer;
}

/* Shimmer line on top edge */
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0;
  transition: opacity var(--transition-speed);
  z-index: 5;
  pointer-events: none;
}

.tool-card:hover::before {
  opacity: 1;
}

/* "Klikni za detalje" hover label */
.tool-card::after {
  content: var(--card-hover-text, 'Klikni za više detalja');
  position: absolute;
  bottom: 65px;
  /* Positioned above the button */
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-color);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 10px var(--accent-glow);
  z-index: 10;
}

.tool-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Card Image Area ---- */
.tool-card-image {
  position: relative;
  width: 100%;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(15, 15, 15, 0.8);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.tool-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.tool-card:hover .tool-card-image img {
  transform: scale(1.06);
}

/* Gradient overlay on image for readability */
.tool-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(5, 5, 5, 0.55) 100%);
  pointer-events: none;
}

/* Fallback when no image */
.tool-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease;
}

.tool-card:hover .tool-img-fallback {
  transform: scale(1.06);
}

/* Badge overlaid on top-right of image */
.badge-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Card Body ---- */
.tool-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.1rem 1rem;
  gap: 0.55rem;
}

.tool-card-body .tool-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 0;
}

.tool-card-body .tool-desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-height: 2.46rem;
  /* 2 lines * 1.5 line height = 2.46rem approximately */
  white-space: normal;
}

.tool-card-body .tool-tags {
  margin-bottom: 0.5rem;
}

.tool-card-body .btn-primary {
  margin-top: auto;
  /* Pushes button to exactly the bottom */
  padding: 0.75rem;
  font-size: 0.85rem;
}


/* Skeleton Loaders */
.skeleton {
  pointer-events: none;
  background: var(--surface-main);
  border-color: rgba(255, 255, 255, 0.05);
}

.skeleton-box {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.03) 25%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite linear;
  border-radius: 4px;
}

@keyframes skeletonLoading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.error-msg {
  text-align: center;
  color: #f87171;
  padding: 2rem;
  width: 100%;
  font-weight: 500;
}

/* tool-header & tool-logo kept for modal backwards compat */
.tool-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
  width: 100%;
}

.tool-logo {
  width: 54px;
  height: 54px;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.badge-free {
  background: linear-gradient(135deg, rgba(5, 150, 90, 0.88), rgba(16, 185, 129, 0.82));
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.badge-paid {
  background: linear-gradient(135deg, rgba(161, 114, 8, 0.92), rgba(217, 165, 32, 0.86));
  color: #ffffff;
  border: 1px solid rgba(253, 210, 80, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 10px rgba(212, 160, 23, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.badge-freemium {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(124, 58, 237, 0.85));
  color: #ffffff;
  border: 1px solid rgba(167, 139, 250, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tool-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0;
  letter-spacing: -0.3px;
  width: 100%;
}

.tool-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100%;
}

/* Tool Tags */
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
  width: 100%;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.tool-card:hover .tag {
  border-color: rgba(255, 159, 28, 0.3);
  background: rgba(255, 159, 28, 0.05);
  color: var(--text-primary);
}

.btn-primary {
  margin-top: auto;
  flex-shrink: 0;
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.8rem;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-speed);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  filter: brightness(1.05);
}

/* Categories Section */
.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.category-card {
  background-color: var(--surface-main);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  border: var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
  width: 200px;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-speed);
  z-index: -1;
}

.category-card:hover {
  transform: translateY(-8px);
  border: var(--glass-border-hover);
  box-shadow: var(--shadow-hover);
}

.category-card:hover .cat-icon {
  transform: scale(1.1) translateY(-5px);
  text-shadow: 0 0 10px var(--accent-glow);
}

.cat-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
  transition: transform var(--transition-speed);
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* Category View specific */
.back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: var(--glass-border);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.back-btn:hover {
  background: var(--surface-hover);
  color: var(--accent-color);
  transform: translateX(-5px);
  border-color: rgba(255, 159, 28, 0.3);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem 1.25rem;
}

.loading-spinner {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 2rem;
  width: 100%;
}

/* Filters and Search UI */
.filters-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  background-color: var(--surface-main);
  border: var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.search-box input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-speed);
}

.search-box input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.4);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px var(--accent-glow);
}

.filter-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  padding: 0.8rem 1.2rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a0a0a0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem top 50%;
  background-size: 0.65rem auto;
  padding-right: 2.5rem;
  transition: all var(--transition-speed);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.filter-select option {
  background-color: var(--bg-color);
  /* Fallback dropdown color */
  color: white;
}

.filter-select option[value="all"] {
  color: var(--accent-color);
}



/* Secondary Button (Load More) */
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-speed);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

/* Newsletter Section */
.newsletter-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.04) 0%, rgba(245, 158, 11, 0.03) 100%);
  border-top: var(--glass-border);
  border-bottom: var(--glass-border);
}

.newsletter-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--surface-main);
  border: var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 159, 28, 0.04);
  padding: 2.5rem 3rem;
  position: relative;
  flex-wrap: wrap;
}

.newsletter-card .newsletter-icon {
  font-size: 3rem;
  color: var(--accent-color);
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(255, 159, 28, 0.4));
  animation: float 4s ease-in-out infinite;
}

.newsletter-content {
  flex: 1;
  min-width: 200px;
}

.newsletter-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.newsletter-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 460px;
}

.newsletter-cta .btn-primary,
.btn-newsletter {
  width: auto !important;
  padding: 1rem 2.5rem !important;
  min-width: 220px;
  display: inline-flex;
  justify-content: center;
  margin-top: 1rem;
}

.btn-newsletter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(255, 159, 28, 0.3);
  transition: all var(--transition-speed);
  font-family: inherit;
}

.btn-newsletter:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(255, 159, 28, 0.45);
  filter: brightness(1.1);
}

/* Contact CTA Section */
.contact-cta {
  padding: 6rem 0;
  background: linear-gradient(to bottom, transparent, rgba(255, 159, 28, 0.03));
}

.contact-card {
  background: var(--surface-main);
  border: 1px solid rgba(255, 159, 28, 0.2);
  border-radius: 30px;
  padding: 4rem 2rem;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 159, 28, 0.05);
  max-width: 900px;
  margin: 0 auto;
}

.contact-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.contact-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.8rem;
  width: auto !important;
  padding: 1.2rem 3rem !important;
  font-size: 1.1rem !important;
  border-radius: 50px !important;
  box-shadow: 0 10px 25px rgba(255, 159, 28, 0.3) !important;
  cursor: pointer;
  font-family: inherit;
}

.contact-btn i {
  font-size: 1.2rem;
}

/* ---- Form Modals (Newsletter + Contact) ---- */
.form-modal-content {
  max-width: 500px;
  padding: 0;
}

.form-modal-body {
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.form-modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 16px currentColor);
}

.newsletter-icon-color {
  color: var(--accent-color);
}

.contact-icon-color {
  color: #6C63FF;
}

.form-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.form-modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.form-modal-body form {
  width: 100%;
  text-align: left;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 159, 28, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(160, 160, 160, 0.5);
}

/* Terms Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1rem 0 1.4rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--accent-color);
  cursor: pointer;
  margin-top: 2px;
}

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.4;
}

.terms-link {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit-btn {
  width: 100%;
  padding: 0.95rem;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-speed);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.form-error {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #f87171;
  text-align: center;
  min-height: 1.2em;
  font-weight: 600;
}

/* ---- Success Modal ---- */
.success-modal-content {
  max-width: 420px;
}

.success-modal-body {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.success-icon {
  font-size: 4rem;
  color: #4ade80;
  filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.5));
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPop {
  from {
    transform: scale(0.3);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-modal-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.success-modal-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}


.contact-card {
  background: var(--surface-main);
  border: 1px solid rgba(255, 159, 28, 0.2);
  border-radius: 30px;
  padding: 4rem 2rem;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 159, 28, 0.05);
  max-width: 900px;
  margin: 0 auto;
}

.contact-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.contact-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.8rem;
  width: auto !important;
  padding: 1.2rem 3rem !important;
  font-size: 1.1rem !important;
  border-radius: 50px !important;
  box-shadow: 0 10px 25px rgba(255, 159, 28, 0.3) !important;
}

.contact-btn i {
  font-size: 1.4rem;
}

/* Language Toggles for Blogs */
.lang-en:not(body) {
  display: none;
}

body.lang-en .lang-hr {
  display: none;
}

body.lang-en .lang-en {
  display: block;
}

span.lang-en {
  display: none;
}

body.lang-en span.lang-hr {
  display: none;
}

body.lang-en span.lang-en {
  display: inline;
}

@media (max-width: 768px) {
  .contact-card h2 {
    font-size: 1.8rem;
  }

  .contact-card p {
    font-size: 1rem;
  }
}

/* ---- Custom Language Switcher ---- */
.custom-lang-switcher {
  position: relative;
  display: inline-block;
  margin-left: 1.5rem;
  z-index: 1000;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 159, 28, 0.3);
}

.lang-flag {
  width: 24px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.lang-dropdown-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown-list.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: rgba(255, 159, 28, 0.1);
}

.lang-option span {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1.4rem;
  }
  .custom-lang-switcher {
    margin: 0;
  }
  .lang-current {
    padding: 0.4rem 0.8rem;
    gap: 0.4rem;
  }
  .lang-dropdown-list {
    right: 0;
    width: 150px;
  }
  .nav-right {
    gap: 0.8rem;
    margin-right: 5px; /* Tiny buffer to prevent edge-touching */
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  background-color: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
}

/* Responsive */

/* Tablet & Smaller Laptops */
@media (max-width: 992px) {
  .brand-name {
    font-size: 2.7rem;
  }

  .profile-img-container {
    width: 180px;
    height: 180px;
  }

  .tools-scroll-container {
    gap: 1rem;
  }

  /* Tablet cards */
  .tool-card {
    width: calc((100% - (1rem * 2)) / 3);
    min-width: 200px;
  }

  .tool-card-image {
    height: 140px;
  }

  /* Newsletter on tablet: stack vertically */
  .newsletter-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .newsletter-content p {
    max-width: 100%;
  }

  .categories-grid {
    gap: 1rem;
  }

  /* On tablet, move bubble below the image */
  .speech-bubble {
    position: static;
    width: auto;
    max-width: 260px;
    margin: 1rem auto 0;
    border-radius: 18px;
    transform-origin: center top;
  }

  .speech-bubble::before,
  .speech-bubble::after {
    display: none;
  }
}

/* Large Phones */
@media (max-width: 768px) {
  .brand-name {
    font-size: 2.2rem;
  }

  .brand-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* 768px: newsletter & contact */
  .newsletter-card {
    flex-direction: column;
    text-align: center;
    padding: 1.8rem 1.2rem;
    gap: 1.2rem;
  }

  .contact-card h2 {
    font-size: 1.8rem;
  }

  .contact-card p {
    font-size: 1rem;
  }

  .contact-btn {
    padding: 1rem 2rem !important;
  }
  /* ---- Mobile Adjustments ---- */
  .mobile-menu-btn {
    display: flex;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    line-height: 1;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 159, 28, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Form modals on mobile */
  .form-modal-content {
    width: 95%;
    max-width: 95%;
  }

  .form-modal-body {
    padding: 1.8rem 1.2rem 1.5rem;
  }

  .form-modal-title {
    font-size: 1.3rem;
  }

  .success-modal-content {
    width: 90%;
  }

  .profile-img-container {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .social-links {
    gap: 0.8rem;
  }

  .social-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .tools-scroll-container {
    justify-content: center;
    gap: 1.65rem; /* ~10% more blank space */
  }

  .tool-card {
    width: calc((100% - 1rem) / 2);
    min-width: 160px;
  }

  .tool-card-image {
    height: 130px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .category-card {
    padding: 1.5rem 1rem;
  }

  .cat-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .category-card h3 {
    font-size: 1rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Speech bubble below image on phone */
  .speech-bubble {
    position: static;
    width: auto;
    max-width: 100%;
    margin: 0.8rem auto 0;
    border-radius: 14px;
  }

  .speech-bubble::before,
  .speech-bubble::after {
    display: none;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  .brand-name {
    font-size: 1.8rem;
  }

  .profile-img-container {
    width: 130px;
    height: 130px;
  }

  .social-links {
    flex-direction: column;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }

  .tools-scroll-container {
    flex-direction: column;
    width: 100%;
  }

  .tool-card {
    width: 100%;
    min-width: 100%;
  }

  .tool-card-image {
    height: 140px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* Media query for smaller mobile screens */
@media (max-width: 480px) {
  .logo-text {
    font-size: 1.5rem;
  }
}

/* ---- Modal Tags ---- */
.modal-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
}

.modal-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition-speed);
  backdrop-filter: blur(5px);
}

.modal-tag:hover {
  background: rgba(255, 159, 28, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  background: var(--surface-main);
  border: 1px solid rgba(255, 159, 28, 0.3);
  border-radius: 24px;
  z-index: 1001;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 159, 28, 0.1);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-modal:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: #f87171;
  transform: rotate(90deg);
}

.modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-premium-header {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.modal-premium-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, var(--surface-main) 100%);
  pointer-events: none;
}

.modal-premium-content {
  padding: 0 3rem 3rem 3rem;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: -30px; /* Shifted down from -60px to avoid logo overlap */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-premium-content .tool-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.modal-premium-content .tool-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  text-align: left;
}

.modal-body .tool-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  font-size: 2.2rem;
}

.modal-body .tool-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.modal-body .tool-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  -webkit-line-clamp: unset;
  line-clamp: unset;
  /* Remove truncation in modal */
  margin-bottom: 2.5rem;
}

.modal-body .btn-primary {
  width: auto;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
    border-radius: 20px;
  }

  .modal-premium-header {
    height: 180px;
  }

  .modal-premium-content {
    padding: 0 1.5rem 2rem 1.5rem;
    margin-top: -20px;
  }

  .modal-premium-content .tool-title {
    font-size: 1.8rem;
  }

  .modal-premium-content .tool-desc {
    font-size: 0.95rem;
    text-align: center;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .close-modal {
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 159, 28, 0.3);
  padding: 1rem 0;
  z-index: 9999;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 250px;
}

.cookie-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  filter: drop-shadow(0 0 5px var(--accent-glow));
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.cookie-link {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 600;
}

.btn-sm {
  padding: 0.6rem 1.5rem !important;
  font-size: 0.85rem !important;
}

/* ---- Legal Page Styling ---- */
.legal-page {
  padding: 8rem 0 4rem;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface-main);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.legal-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
}

.legal-content .last-updated {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  opacity: 0.7;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 159, 28, 0.1);
  padding-bottom: 0.5rem;
}

.legal-section p,
.legal-section ul {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--accent-color);
  margin-left: 10px;
  font-weight: 600;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cookie-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-content {
    flex-direction: column;
  }

  .legal-content {
    padding: 2rem 1.5rem;
    border-radius: 0;
  }

  .legal-content h1 {
    font-size: 1.8rem;
  }
}

/* ---- Mission Section ---- */
.mission-section {
  padding: 6rem 0;
  background: radial-gradient(circle at center, rgba(255, 159, 28, 0.03), transparent 70%);
}

.mission-card {
  background: linear-gradient(145deg, rgba(25, 25, 25, 0.7) 0%, rgba(10, 10, 10, 0.8) 100%);
  border: 1px solid rgba(255, 159, 28, 0.15);
  border-radius: 32px;
  padding: 4rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 159, 28, 0.03);
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 159, 28, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mission-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 159, 28, 0.1);
  border: 1px solid rgba(255, 159, 28, 0.2);
  border-radius: 50px;
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.mission-text h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
}

.mission-lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.mission-details p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.mission-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 159, 28, 0.05);
  border-color: rgba(255, 159, 28, 0.2);
  transform: translateX(10px);
}

.stat-item i {
  font-size: 2rem;
  color: var(--accent-color);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.stat-item span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mission-card {
    padding: 3rem 2rem;
  }

  .mission-text h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .mission-section {
    padding: 4rem 0;
  }

  .mission-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    flex: 1;
    min-width: 160px;
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }
}