:root {
  --bg-primary: #0a192f;
  --bg-secondary: #112240;
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --accent: #64ffda;
  --accent-glow: rgba(100, 255, 218, 0.1);
  --white: #e6f1ff;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --nav-height: 70px;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  --light-navy: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), rgba(100, 255, 218, 0.5));
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(40px, 8vw, 80px);
}

h2 {
  font-size: clamp(26px, 5vw, 42px);
}

h3 {
  font-size: 24px;
}

p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.highlight {
  color: var(--accent);
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

section:nth-of-type(even) {
  background-color: var(--bg-secondary);
}

/* Background Overlay Base for Sections with Images */
section[id]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax Effect */
  opacity: 0.15;
  /* Subtle image visibility */
}

#about::before {
  background-image: url("../images/about_bg.jpg");
}

#projects::before {
  background-image: url("../images/services_bg.jpg");
}

#contact::before {
  background-image: url("../images/contact_bg_vintage.jpg");
}

/* Overlays to ensure readability */
#about,
#projects,
#contact {
  background-color: rgba(10, 25, 47, 0.85);
}

#blog {
  background-color: #040b16;
  /* Darker than bg-primary as requested */
}

/* Exclude sections that shouldn't have background images */
#services::before,
#clients::before,
#blog::before {
  display: none;
}

/* --- Header --- */
/* Google Translate Hiding */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0 !important;
  position: static !important;
}

.goog-te-gadget-icon {
  display: none !important;
}

header {
  position: sticky; /* Fallback for browsers that don't support fixed well */
  position: fixed; /* Main positioning - always on top */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 25, 47, 0.98);
  /* Slightly more opaque for better contrast */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  /* High z-index to ensure it's always on top */
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 40px;
  /* Add padding directly to header */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  /* Subtle shadow for depth */
}

/* Override container for header to be fluid */
header .container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  /* Removed margin-right: auto to rely on space-between */
}

.logo-img {
  height: 40px;
  /* Adjust based on navbar height (70px) */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  /* Removed margin-left: auto */
}

.nav-links a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Flag Icons */
.lang-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 10px;
}

.flag-icon svg,
.flag-icon img {
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  vertical-align: middle;
}

.flag-icon:hover svg,
.flag-icon:hover img {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(100, 255, 218, 0.6);
}

.btn-contact {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 8px 16px;
  border-radius: 4px;
}

.btn-contact:hover {
  background: var(--accent-glow);
}

/* --- Hero Slider --- */
.hero {
  position: relative;
  height: 80vh;
  /* Reduced from 100vh as requested */
  min-height: 600px;
  padding: 0;
  /* Clear padding, using internal containers */
  overflow: hidden;
}

.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Gradient handled inline for different images or here if generic */
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-height);
  /* Ensures content aligns nicely */
}

.hero-subtitle {
  color: var(--accent);
  font-family: monospace;
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.3s;
}

.hero h1 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.5s;
}

.hero-description {
  max-width: 540px;
  font-size: 18px;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.7s;
}

.hero .btn-main {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.9s;
}

/* Slide Content Animation */
.slide.active .hero-subtitle,
.slide.active h1,
.slide.active .hero-description,
.slide.active .btn-main {
  opacity: 1;
  transform: translateY(0);
}

.btn-main {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 18px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-family: monospace;
  cursor: pointer;
  display: inline-block;
}

.btn-main:hover {
  background: var(--accent-glow);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active,
.dot:hover {
  background: var(--accent);
}

/* --- Services (Oferta) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.service-card {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 4px;
  transition: var(--transition);
  cursor: default;
}

section:nth-of-type(even) .service-card {
  background: var(--bg-primary);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-icon {
  color: var(--accent);
  font-size: 40px;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--white);
}

.services-cta {
  margin: 40px auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-primary);
  max-width: 800px;
  padding: 25px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  line-height: 1.6;
  transition: var(--transition);
  cursor: default;
}

.services-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px var(--accent-glow);
  background: rgba(17, 34, 64, 0.8);
}

/* --- Clients (Zaufali nam) --- */
.clients {
  background: var(--bg-primary);
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.clients h2 {
  margin-bottom: 10px;
}

.clients p {
  margin-bottom: 40px;
}

.logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

/* Gradient fade on edges */
.logo-slider::before,
.logo-slider::after {
  content: "";
  height: 100%;
  position: absolute;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.logo-slider::before {
  left: 0;
  top: 0;
  background: linear-gradient(to right, inherit 0%, rgba(10, 25, 47, 0) 100%);
}

.logo-slider::after {
  right: 0;
  top: 0;
  background: linear-gradient(to left, inherit 0%, rgba(10, 25, 47, 0) 100%);
}

/* Specific override if section background is secondary */
section:nth-of-type(even) .logo-slider::before {
  background: linear-gradient(
    to right,
    var(--bg-secondary) 0%,
    rgba(17, 34, 64, 0) 100%
  );
}

section:nth-of-type(even) .logo-slider::after {
  background: linear-gradient(
    to left,
    var(--bg-secondary) 0%,
    rgba(17, 34, 64, 0) 100%
  );
}

.logo-track {
  display: flex;
  width: calc(250px * 10);
  /* 250px per logo * 10 logos total (5 unique * 2 sets) */
  animation: scroll 20s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-slide {
  height: 100px;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.logo-slide img {
  max-width: 180px;
  max-height: 60px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  /* Forces logos to white for dark background */
  opacity: 0.6;
  transition: var(--transition);
}

.logo-slide:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 5));
    /* Move by width of one set (5 logos) */
  }
}

/* --- Blog --- */

/* --- Blog Filters --- */
.blog-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.blog-search-input {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  width: 100%;
  max-width: 300px;
  background: transparent;
  color: var(--accent);
  font-family: monospace;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.blog-search-input::placeholder {
  color: rgba(100, 255, 218, 0.5);
}

.blog-search-input:focus {
  background: var(--accent-glow);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.1);
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-family: monospace;
  font-size: 14px;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-glow);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.1);
}

.blog-card.hidden {
  display: none;
}

/* --- Blog Carousel --- */
.blog-carousel-wrapper {
  position: relative;
  max-width: 100%;
}

.blog-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  /* Space for scrollbar if visible, though we'll hide it */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
  margin-top: 50px;
  padding-left: 5px;
  /* Tiny padding for shadow cutoff */
  padding-right: 5px;
}

.blog-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.blog-card {
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  min-width: 350px;
  width: 350px;
  height: 480px; /* Fixed height for consistent layout */
  /* Explicitly lock width */
  flex-shrink: 0;
  /* Prevent shrinking */
  /* Fixed width for carousel items */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

section:nth-of-type(even) .blog-card {
  background: var(--bg-primary);
}

.blog-img-container {
  width: 100%;
  height: 180px; /* Matching the inline JS height for consistency */
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background-size: cover;
  background-position: center;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.1);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.blog-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 300px; /* 480px total - 180px image = 300px content area */
  box-sizing: border-box;
}

.blog-date {
  font-family: monospace;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 5px;
  display: block;
}

.blog-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  height: 2.8rem; /* Fixed height for title (approx 2 lines) */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.read-more {
  display: inline-block;
  margin-top: auto; /* Anchors it to the bottom of the flex container */
  padding-top: 15px; /* Adds space above the link */
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.read-more:hover {
  text-decoration: underline;
}

.read-more.disabled {
  color: var(--text-secondary);
  cursor: default;
  pointer-events: none;
  opacity: 0.7;
}

.read-more.disabled:hover {
  text-decoration: none;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 25, 47, 0.7);
  color: var(--accent);
  border: 1px solid var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 18px;
}

.carousel-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.prev-btn {
  left: -20px;
}

.next-btn {
  right: -20px;
}

@media (max-width: 768px) {
  .blog-card {
    min-width: 280px;
  }

  .carousel-btn {
    display: none;
    /* Hide buttons on mobile where touch scroll is natural */
  }
}

/* --- Contact --- */
#contact .container {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
  text-align: left;
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.phone-icon-large {
  font-size: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.3));
}

.info-item-side {
  font-size: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--white);
  font-family: monospace;
}

.info-item-side a {
  color: var(--accent);
  transition: var(--transition);
}

.info-item-side a:hover {
  color: var(--white);
  text-shadow: 0 0 10px var(--accent-glow);
}

.contact-form-side {
  background: rgba(17, 34, 64, 0.4);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: var(--transition);
}

.contact-form-side:hover {
  border-color: rgba(100, 255, 218, 0.3);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.main-contact-form .form-group {
  margin-bottom: 20px;
}

.main-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.main-contact-form input,
.main-contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(10, 25, 47, 0.5);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
}

.main-contact-form input:focus,
.main-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(10, 25, 47, 0.8);
  box-shadow: 0 0 10px var(--accent-glow);
}

.main-contact-form .btn-main {
  width: 100%;
  padding: 15px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .main-contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* AI Assistant Widget Pulse Animation */
@keyframes ai-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(100, 255, 218, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

/* --- Footer Redesign --- */
.main-footer {
  background-color: var(--bg-secondary);
  padding: 80px 0 0 0;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
  margin-top: 80px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.2));
}

.footer-desc {
  max-width: 350px;
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

/* Footer References */
.footer-references {
  margin-bottom: 30px;
}
.footer-ref-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.05);
}
.footer-ref-item:last-child {
  border-bottom: none;
}
.footer-ref-logo {
  max-height: 40px;
  max-width: 120px;
  display: block;
  margin-bottom: 10px;
  filter: brightness(0) invert(1) opacity(0.8);
  transition: var(--transition);
}
.footer-ref-item:hover .footer-ref-logo {
  filter: none;
  opacity: 1;
}
.footer-ref-sentence {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-style: italic;
}
.footer-ref-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-family: monospace;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.footer-ref-link:hover {
  gap: 10px;
  color: var(--white);
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.links-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links-col ul li {
  padding-left: 0;
}

.links-col ul li::before {
  display: none;
}

.links-col ul li a {
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 0.95rem;
}

.links-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.contact-info i {
  color: var(--accent);
  width: 20px;
  text-align: center;
}

.footer-bottom {
  padding: 30px 0;
  border-top: 1px solid rgba(100, 255, 218, 0.05);
  background: rgba(2, 12, 27, 0.7);
  text-align: center;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: #555;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #555;
}

.footer-meta a:hover {
  color: var(--accent);
}

.footer-meta .sep {
  opacity: 0.3;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .brand-col {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-bottom .container {
    flex-direction: column;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* simple mobile hide for now, JS can toggle */
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    right: 0;
    background: var(--bg-secondary);
    width: 100%;
    padding: 20px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
  }

  .mobile-toggle {
    display: block;
    color: var(--accent);
    font-size: 24px;
    cursor: pointer;
  }
}

@media (min-width: 769px) {
  .mobile-toggle {
    display: none;
  }
}

/* Admin Link in Header */
.admin-top-link {
  color: var(--accent) !important;
  font-weight: 700 !important;
  border: 1px dashed var(--accent);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.admin-top-link:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Admin Link in Side Nav */
.admin-side-nav .dot {
  background-color: var(--accent) !important;
  box-shadow: 0 0 8px var(--accent);
}

.admin-side-nav .label {
  color: var(--accent) !important;
  font-weight: 700;
}

/* Why Us section - Graphical Redesign */
.why-us {
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin: 50px 0;
}

.benefit-card {
  background: rgba(17, 34, 64, 0.4);
  backdrop-filter: blur(10px);
  padding: 40px 25px;
  border-radius: 16px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(100, 255, 218, 0.3),
    transparent
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.benefit-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(17, 34, 64, 0.7);
  border-color: rgba(100, 255, 218, 0.4);
  box-shadow:
    0 20px 40px -15px rgba(2, 12, 27, 0.8),
    0 0 20px rgba(100, 255, 218, 0.05);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  font-size: 45px;
  color: var(--accent);
  margin-bottom: 25px;
  filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.3));
  transition: transform 0.4s;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--white);
  letter-spacing: 0.5px;
}

.benefit-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Footer Tag Cloud */
.footer-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  max-width: 400px;
}

.footer-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  transition: var(--transition);
}

.footer-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-tag-cloud {
    justify-content: center;
    max-width: 100%;
  }
}

.location-banner {
  background: linear-gradient(
    90deg,
    rgba(100, 255, 218, 0.02) 0%,
    rgba(100, 255, 218, 0.08) 50%,
    rgba(100, 255, 218, 0.02) 100%
  );
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-left: 5px solid var(--accent);
  padding: 20px 30px;
  margin: 4rem auto 0;
  border-radius: 8px;
  text-align: center;
  max-width: 900px;
}

.location-banner p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.location-banner strong {
  color: var(--accent);
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Projects (Realizacje) --- */
.projects-carousel-wrapper {
  position: relative;
  margin-top: 50px;
}

/* Kontener kart */
.projects-grid {
  display: flex;
  gap: 35px;
  overflow-x: hidden;
  /* desktop: sterowane przyciskami */
  scroll-behavior: smooth;
  padding: 10px 0;
}

/* Karta */
.project-card {
  background: rgba(17, 34, 64, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.5);
  width: calc(40% - 17.5px);
  min-height: 520px; /* Force consistent height */
  flex-shrink: 0;
}

.project-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
  position: relative;
}

.project-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--bg-secondary));
}

.project-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Consolidated duplicate block removed */

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(100, 255, 218, 0.3);
  box-shadow: 0 20px 50px -20px rgba(2, 12, 27, 0.8);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

/* Nazwa klienta */
.client-name {
  color: var(--accent);
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.featured-card {
  border-top: 3px solid var(--accent);
  background: rgba(100, 255, 218, 0.05);
  position: relative;
}

.featured-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
    180deg,
    rgba(100, 255, 218, 0.08) 0%,
    transparent 100%
  );
  pointer-events: none;
}

/* Opis w karcie */
.project-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
  flex-grow: 1;
  color: var(--text-secondary);
}

/* Czytaj więcej link */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 25px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: gap 0.2s ease;
  gap: 8px;
  width: fit-content;
}

.read-more:hover {
  gap: 12px;
  text-decoration: underline;
}

/* Detale */
.project-details {
  margin: 20px 0;
  text-align: left;
}

.project-details h4 {
  color: var(--text-primary);
  font-size: 15px;
  margin-bottom: 8px;
  margin-top: 15px;
  border-bottom: 1px solid var(--light-navy);
  padding-bottom: 3px;
  display: inline-block;
}

.project-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-details li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.project-details li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  line-height: 1.4;
}

/* Tagi tech */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-tag {
  font-family: "Fira Code", monospace;
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--light-navy);
  border-radius: 4px;
  color: var(--text-secondary);
  background: rgba(17, 34, 64, 0.5);
  transition: var(--transition);
  cursor: pointer;
  pointer-events: auto; /* Ensure individual interaction */
}

.tech-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* Group tag hover removed as requested */

/* Tło kart w sekcjach parzystych - zachowujemy przeźroczystość */
section:nth-of-type(even) .project-card {
  background: rgba(10, 25, 47, 0.6);
}

section:nth-of-type(even) .project-img::after {
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

/* --- RESPONSIVE: mobile = 1 karta na pełną szerokość + swipe --- */
@media (max-width: 768px) {
  .projects-grid {
    overflow-x: hidden;
    /* Hide scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .project-card {
    width: 100%;
    scroll-snap-align: start;
    flex: 0 0 100%;
    /* Ensure full width on mobile */
  }

  .projects-carousel-wrapper .carousel-btn {
    display: flex;
    /* Show buttons */
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .projects-carousel-wrapper .prev-btn {
    left: -10px;
  }

  .projects-carousel-wrapper .next-btn {
    right: -10px;
  }

  /* Blog Mobile Enhancements */
  .blog-grid {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .blog-grid::-webkit-scrollbar {
    display: none;
  }

  .blog-card {
    width: 100%;
    min-width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .blog-carousel-wrapper .carousel-btn {
    display: flex;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .blog-carousel-wrapper .prev-btn {
    left: -10px;
  }

  .blog-carousel-wrapper .next-btn {
    right: -10px;
  }
}

/* --- RESPONSIVE: tablet (opcjonalnie) --- */
@media (min-width: 769px) and (max-width: 1100px) {
  .project-card {
    width: calc(60% - 17.5px);
    /* większa karta na tablet, czytelniej */
  }
}

/* Detailed Project Card Styles */
/* Consolidated duplicate client-name removed */

.project-details {
  margin: 20px 0;
  text-align: left;
}

.project-details h4 {
  color: var(--text-primary);
  font-size: 15px;
  margin-bottom: 8px;
  margin-top: 15px;
  border-bottom: 1px solid var(--light-navy);
  padding-bottom: 3px;
  display: inline-block;
}

.project-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-details li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.project-details li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  line-height: 1.4;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-tag {
  font-family: "Fira Code", monospace;
  font-size: 10px;
  /* Small text as requested */
  padding: 3px 8px;
  border: 1px solid var(--light-navy);
  border-radius: 4px;
  color: var(--text-secondary);
  background: rgba(17, 34, 64, 0.5);
  transition: var(--transition);
}

.project-card:hover .tech-tag {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- About Section --- */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.about-text {
  flex: 1;
}

.about-photo {
  flex: 0 0 300px;
  /* Fixed width for photo container */
  max-width: 100%;
}

.profile-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 10px;
  border: 2px solid var(--accent);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  transition: var(--transition);
}

.profile-img:hover {
  transform: translateY(-5px);
  border-color: var(--white);
  box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

/* Responsive for About Section */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-photo {
    flex: auto;
    width: 80%;
    max-width: 300px;
    order: -1;
    /* Move photo to top on mobile */
    margin-bottom: 20px;
  }
}

.project-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
  color: var(--text-secondary);
  /* Pushes tech list to the bottom */
}

.project-tech li {
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
}

.project-tech li i {
  color: var(--accent);
  font-size: 12px;
}

/* Background override for cards in sections with index even */
section:nth-of-type(even) .project-card {
  background: var(--bg-primary);
}

section:nth-of-type(even) .project-img::after {
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

/* ============================
   WYKLUCZENIE MENU
   ============================ */

header ul li::before,
nav ul li::before,
.menu ul li::before,
.nav ul li::before {
  content: none !important;
}

/* ============================
   Globalne bulletsy UL / LI
   ============================ */

ul {
  list-style: none;
  /* zostaje */
  padding-left: 0;
  margin-left: 0;
}

ul li {
  position: relative;
  padding-left: 18px;
}

ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--accent-color, #64ffda);
  font-weight: 600;
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
  /* Subtle glowing feel */
}

@media (max-width: 900px) {
  .cursor-dot {
    display: none !important;
  }
}

/* Side Navigation */
.side-nav {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 10000;
  display: none;
  width: auto;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

/* Show side nav when not on homepage */
.side-nav.visible {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .side-nav {
    display: block;
  }
}

.side-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.side-nav ul li::before {
  content: none !important;
  /* Disable bullets */
}

.side-nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  padding: 5px;
}

.side-nav-link .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(10, 25, 47, 0.3);
  border: 2px solid #64ffda;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  display: block;
  /* Ensure it's visible */
}

/* Active state with jump animation */
.side-nav-link.active .dot {
  background-color: #64ffda;
  border-color: #64ffda;
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.8);
  animation: dotJump 0.5s ease;
}

/* Hover state */
.side-nav-link:hover .dot {
  background-color: #64ffda;
  border-color: #64ffda;
  transform: scale(1.2);
}

/* Jump animation for dots */
@keyframes dotJump {
  0% {
    transform: scale(1) translateX(0);
  }

  30% {
    transform: scale(1.3) translateX(8px);
  }

  50% {
    transform: scale(1.4) translateX(5px);
  }

  70% {
    transform: scale(1.3) translateX(2px);
  }

  100% {
    transform: scale(1.3) translateX(0);
  }
}

.side-nav-link .label {
  position: absolute;
  left: 30px;
  background-color: #0a192f;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.side-nav-link:hover .label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Connector line effect */
.side-nav::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  width: 1px;
  background-color: rgba(100, 255, 218, 0.3);
  z-index: -1;
}

/* AI Assistant Widget */
.ai-assistant {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ai-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--accent);
  border: 2px solid var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ai-pulse 2s infinite;
}

.ai-toggle:hover {
  transform: scale(1.1) rotate(5deg);
  background: var(--bg-secondary);
  box-shadow: 0 8px 20px rgba(100, 255, 218, 0.3);
}

.ai-chat-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 350px;
  height: 500px;
  background: rgba(17, 34, 64, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: bottom right;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ai-chat-window.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.ai-chat-header {
  background: rgba(10, 25, 47, 0.9);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
}

.ai-chat-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.ai-chat-close:hover {
  color: var(--accent);
}

.ai-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
}

.ai-message {
  background: rgba(100, 255, 218, 0.1);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.user-message {
  background: var(--navy-light);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  border: 1px solid rgba(100, 255, 218, 0.05);
}

.ai-chat-input {
  padding: 1rem;
  display: flex;
  gap: 10px;
  background: rgba(10, 25, 47, 0.5);
  border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.ai-chat-input input {
  flex: 1;
  background: var(--navy);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.ai-chat-input input:focus {
  border-color: var(--accent);
}

.ai-chat-send {
  background: var(--accent);
  color: var(--navy);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(100, 255, 218, 0.2);
}

@media (max-width: 480px) {
  .ai-chat-window {
    bottom: 80px;
    right: -10px;
    width: calc(100vw - 40px);
    height: 450px;
  }
}

/* AI Assistant Action Buttons */
.ai-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
}

.ai-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg-primary) !important;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(100, 255, 218, 0.2);
}

.ai-action-button:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.ai-action-button:active {
  transform: translateY(0);
}

/* Make AI messages with buttons look better */
.ai-message {
  white-space: pre-line;
}

/* Quick Reply Chips */
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ai-chip {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ai-chip:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(100, 255, 218, 0.3);
}

.ai-chip:active {
  transform: translateY(0);
}

/* Typing Indicator */
.ai-typing {
  font-style: italic;
  opacity: 0.7;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.9;
  }
}

/* Certificates Box - Added by Assistant */
.certificates-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px solid var(--accent);
  /* Visible border */
  border-radius: 8px;
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.certificates-box:hover {
  background: rgba(100, 255, 218, 0.05);
  /* Light green tint on hover */
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
  /* Ensure accent color */
}

.certificates-box h5 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.certificates-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.certificates-box ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.certificates-box ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.certificates-box a.cert-link {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(100, 255, 218, 0.5);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.certificates-box a.cert-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* About Section Layout Fixes */
.about-content {
  display: flex;
  align-items: flex-start;
  /* Align photo to top of text */
  gap: 40px;
  flex-direction: row;
}

.about-photo {
  flex: 0 0 300px;
  /* Fixed width for photo column */
  display: flex;
  justify-content: center;
  /* Center image within its column if needed */
}

.about-text {
  flex: 1;
  /* Take remaining space */
}

/* Responsive adjustment for About */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-photo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
  }
}

/* Article Footer CTA */
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
  gap: 20px;
  flex-wrap: wrap;
}

.article-footer .read-more {
  margin-top: 0 !important;
  display: flex;
  align-items: center;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-cta:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

@media (max-width: 600px) {
  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta {
    width: 100%;
  }
}

/* RAID Calculator */
.raid-calc-container {
  background: rgba(17, 34, 64, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin: 30px 0;
  font-family: "Inter", sans-serif;
}

.raid-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.raid-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.raid-calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.raid-calc-field label {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.raid-calc-field input,
.raid-calc-field select {
  background: var(--bg-primary);
  border: 1px solid rgba(100, 255, 218, 0.3);
  color: var(--text-primary);
  padding: 10px;
  border-radius: 4px;
  outline: none;
  transition: var(--transition);
}

.raid-calc-field select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.raid-calc-field input:focus,
.raid-calc-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.1);
}

.raid-calc-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.raid-result-bar {
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  margin-bottom: 2rem;
}

.bar-segment {
  height: 100%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-available {
  background: var(--accent);
}

.bar-protection {
  background: #3b82f6;
}

.bar-unused {
  background: #64748b;
}

.raid-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-available {
  background: var(--accent);
}

.dot-protection {
  background: #3b82f6;
}

.dot-unused {
  background: #64748b;
}

.dot-total {
  background: var(--text-primary);
}

.stat-value {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .raid-calc-grid {
    grid-template-columns: 1fr;
  }
}
