@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap');
html {
  scroll-behavior: smooth;
}
:root {
  --bg-color: #0d0f1a;
  --accent-color: #00d8ff;
  --text-color: #e0e0e0;
  --btn-bg: rgba(0, 216, 255, 0.1);
  --btn-hover: rgba(0, 216, 255, 0.2);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
}
a { color: var(--accent-color); text-decoration: none; }
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(13, 15, 26, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.navbar .logo {
  height: 100%;
  display: flex;
  align-items: center;
}
.logo img { height: 40px; filter: none; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-menu li a {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.3s;
}
.nav-menu li a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-menu li a:hover {
  color: var(--accent-color);
}
.nav-menu li a:hover::after {
  width: 100%;
  left: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  width: 35px;
  height: 35px;
  padding: 5px;
  z-index: 110;
  transition: all 0.3s ease-in-out;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--accent-color);
  margin: 5px 0;
  position: relative;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.3s;
}

/* Prevent flicker of hamburger spans on scroll */
.nav-toggle, .nav-toggle span {
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
}

/* Hamburger animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: #fff;
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background-color: #fff;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #09121a 0%, #001a2d 100%), url('https://colnes.pl/wp-content/uploads/2020/10/data-e1601766474799.png') center/cover no-repeat;
  text-align: center;
  color: #fff;
}
.hero-content h1 {
  font-size: 4rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.hero-content p {
  font-size: 1.5rem;
  margin: 1rem 0;
}
/* Button default in contact */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--btn-bg);
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 50px;
  transition: 0.3s;
}
.btn:hover {
  background: var(--accent-color);
  color: #fff;
}
.section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.section h2::after {
  content: "";
  position: absolute;
  width: 5rem;
  height: 3px;
  background: var(--accent-color);
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.service-item {
  position: relative;
  background: rgba(13, 15, 26, 0.6);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 216, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 216, 255, 0.05);
  transform: translateY(0);
  opacity: 0;
  animation: service-reveal 0.6s forwards ease-out;
  animation-delay: calc(var(--order) * 0.1s);
}
.service-item:nth-child(1) { --order: 1; }
.service-item:nth-child(2) { --order: 2; }
.service-item:nth-child(3) { --order: 3; }
.service-item:nth-child(4) { --order: 4; }
@keyframes service-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 216, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 216, 255, 0.2);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 216, 255, 0.1),
    0 0 30px rgba(0, 216, 255, 0.1);
}
.service-item:hover::before {
  opacity: 1;
}
.service-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.service-item h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.8rem;
  position: relative;
  font-weight: 600;
}
.service-item p {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  margin: 0;
}
.service-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.service-item:hover::after {
  width: 80%;
}
/* Service item hover effect */
@keyframes service-pulse {
  0%, 100% {
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(0, 216, 255, 0.05);
  }
  50% {
    box-shadow: 
      0 8px 30px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(0, 216, 255, 0.1),
      0 0 20px rgba(0, 216, 255, 0.1);
  }
}
/* Responsive adjustments */
@media (max-width: 1200px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .service-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .service-item {
    padding: 2rem 1.5rem;
  }
  .service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .service-item h3 {
    font-size: 1.3rem;
  }
  .service-item p {
    font-size: 0.95rem;
  }
}
/* Fix for Firefox */
@-moz-document url-prefix() {
  .service-item {
    backdrop-filter: none;
    background: rgba(13, 15, 26, 0.8);
  }
}
/* Fix for Safari */
@supports (-webkit-backdrop-filter: none) {
  .service-item {
    -webkit-backdrop-filter: blur(10px);
  }
}
.about p, .contact p, .cta-realizacje-content p { max-width: 800px; margin: 1rem auto; }
.footer {
  background: rgba(13, 15, 26, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 2rem;
  border-top: 2px solid var(--accent-color);
  font-size: 0.9rem;
  color: var(--text-color);
  text-align: center; /* center footer text */
}
/* Service icons */
.service-icon {
  font-size: 2rem;
  color: var(--accent-color);
  display: block;
  margin: 0 auto 1rem;
}
/* Slider styles */
.slider-container {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  flex: 0 0 100%;
  text-align: center;
  padding: 2rem;
}
.slide i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-color);
  border: none;
  color: var(--accent-color);
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
  transition: background 0.3s;
}
.slider-btn:hover { background: var(--btn-hover); }
.prev { left: 1rem; }
.next { right: 1rem; }
/* Hero slider styles */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero-slider .slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
.hero-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  width: 100%;
  background: linear-gradient(-45deg, #09121a, #001a2d, #09121a);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
}
.hero-slide .hero-content h1 {
  font-size: 4rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
}
.hero-slide .hero-content p {
  font-size: 1.5rem;
  color: #ccc;
  margin-top: 1rem;
}
.hero-slide i {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Hero Banner */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-banner-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}
.code-container {
  margin-top: 2rem;
}
.code-window {
  margin: 2rem auto 0;
  background: #1e1e1e;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.code-header {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: #2d2d2d;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.code-body {
  padding: 1rem;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  /* wrap long lines and hide scroll */
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
}
#typewriter {
  display: inline-block;
  font-family: monospace;
  font-size: 1.2rem;
  color: var(--accent-color);
  white-space: pre;
  overflow-wrap: normal;
  border-right: 0.15em solid var(--accent-color);
}
#typewriter.active {
  border-right-color: transparent;
}
/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}
.form-group {
  position: relative;
  margin-top: 10px;  /* Add space above form groups for the label */
}

.form-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 1.2rem;
  z-index: 1;
}

.form-group label {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: 0.3s;
  color: var(--text-color);
  background: transparent;
  padding: 0 0.25rem;
  z-index: 1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: transparent;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  color: var(--text-color);
  transition: border-color 0.3s;
  position: relative;
  z-index: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #fff;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  transform: translateY(0);
  font-size: 0.85rem;
  color: var(--accent-color);
  background-color: #080910;
  z-index: 2;
}
.contact-form button[type="submit"] {
  cursor: pointer;
}
/* Restrict contact textarea resizing */
.contact-form textarea {
  resize: vertical;
  overflow-y: auto;
}
.contact-form textarea::-webkit-scrollbar {
  width: 12px;
  background: #181d29;
  border-radius: 8px;
}
.contact-form textarea::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 8px;
  border: 2px solid #181d29;
}
.contact-form textarea::-webkit-scrollbar-thumb:hover {
  background: #00b8d8;
}
.contact-form textarea::-webkit-scrollbar-corner {
  background: #181d29;
}
.contact-form textarea {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) #181d29;
}
/* Contact details (email & phone) styling */
.contact-details {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.contact-details p {
  font-size: 1rem;
  color: var(--text-color);
}
.contact-details a {
  color: var(--accent-color);
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}
.contact-details a:hover {
  text-decoration: underline;
}
.contact-details i {
  margin-right: 0.5rem;
  /* icon inherits link color */
}
@media (min-width: 768px) {
  .contact-details {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}
/* Matrix canvas behind hero */
#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
/* --- REALISATIONS PAGE --- */
.realisations-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.realisations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.realisation-card {
  background: #181f2a;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.realisation-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}
.realisation-card img, .realisation-card .realisation-icon-area {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #232b3a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.realisation-card .realisation-icon-area {
  font-size: 3.5rem;
  color: var(--accent-color);
}
.realisation-info {
  padding: 1.2rem 1rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.realisation-info h3 {
  margin: 0 0 0.5rem 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}
.realisation-link {
  color: var(--accent-color, #00d8ff);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  transition: color 0.2s;
}
.realisation-link:hover {
  color: #fff;
}
.realisation-link.disabled {
  color: #888;
  pointer-events: none;
}
/* --- PARTNERS --- */
.partners {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 2rem 1rem 1rem 1rem;
  text-align: center;
}
.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}
.partner-logo img {
  height: 56px;
  filter: grayscale(1) brightness(1.3);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
}
.partner-logo img:hover {
  filter: none;
  opacity: 1;
}
/* --- PAGE HEADER --- */
.page-header.realizacje-header {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #09121a 0%, #001a2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px; /* Offset Realizacje header from fixed navbar */
}
.page-header-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('img/realizacje-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 1;
}
.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2.5rem 1rem 1.5rem 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.realizacje-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.realizacje-underline {
  width: 70px;
  height: 4px;
  background: var(--accent-color);
  margin: 0 auto 1.2rem auto;
  border-radius: 2px;
  opacity: 0.85;
}
.realizacje-desc {
  font-size: 1.08rem;
  color: #b7c3d2;
  max-width: 600px;
  margin: 0 auto;
}
/* CTA Realizacje section uses default section spacing */
.cta-realizacje {
  text-align: center;
  padding: 6rem 2rem;
  margin: 0 auto;
  position: relative;
}
.cta-realizacje h2 {
  margin-bottom: 2rem;
}
.cta-realizacje p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.cta-realizacje .btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cta-realizacje .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.text-center {
  text-align: center;
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(13, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    padding: 2rem 0;
  }
  
  .nav-menu li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0s;
  }
  
  .nav-menu li a {
    font-size: 1.2rem;
    padding: 0.5rem 2rem;
    display: block;
    position: relative;
  }
  
  .nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
  }
  
  .nav-menu li a:hover::after {
    width: 100%;
  }
  
  /* Show menu */
  .nav-menu.active {
    right: 0;
  }
  
  /* Animate menu items when active */
  .nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Add delay to each menu item for cascade effect */
  .nav-menu.active li:nth-child(1) { transition-delay: 0.15s; }
  .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-menu.active li:nth-child(3) { transition-delay: 0.25s; }
  .nav-menu.active li:nth-child(4) { transition-delay: 0.3s; }
  .nav-menu.active li:nth-child(5) { transition-delay: 0.35s; }
  
  /* Menu backdrop overlay */
  .menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .menu-backdrop.active {
    visibility: visible;
    opacity: 1;
  }
  
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 8px;
  }
  
  .nav-toggle span {
    background-color: #fff; /* Brighter color for better visibility */
    height: 2px;
    width: 22px;
    margin: 3px 0;
  }
  
  .hero-banner {
    min-height: 100vh;
    height: 100vh;
    padding: 0;
  }
  .hero-banner-content {
    padding: 0 0.5rem;
  }
  .code-window {
    max-width: 98vw;
    min-width: 0;
    font-size: 0.95rem;
    margin: 1rem auto 0;
  }
  .code-body {
    padding: 0.5rem;
  }
  #typewriter {
    font-size: 1rem;
    word-break: break-all;
  }
  #matrix-canvas { display: block; }
  .realisations-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .realisation-card img, .realisation-card .realisation-icon-area {
    height: 160px;
  }
  .page-header.realizacje-header {
    min-height: 200px;
  }
  .page-header-content {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
  }
  .realizacje-title {
    font-size: 1.38rem;
  }
  .realizacje-underline {
    height: 3px;
    width: 44px;
    margin-bottom: 0.8rem;
  }
  .realizacje-desc {
    font-size: 0.97rem;
  }
}

@media (min-width: 768px) {
  .footer {
    flex-direction: row;
    justify-content: center; /* center content on desktop */
    padding: 1.5rem 3rem;
  }
}

@media (max-width: 767px) {
  /* Increased form field size on mobile */
  .form-group input,
  .form-group textarea {
    padding: 1.2rem 1rem 1.2rem 3rem;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  /* Ensure hero container works with fixed matrix */
  .hero-banner {
    position: relative;
    z-index: 0;
  }

  /* Make room at the bottom to accommodate fixed matrix */
  .hero-banner-content {
    padding-bottom: 30px;
  }
  
  /* Smaller code window font size on mobile */
  #typewriter {
    font-size: 1rem;
  }
  
  /* Improve form submit button size */
  .contact-form button[type="submit"] {
    padding: 1rem;
    font-size: 1.1rem;
  }
  
  /* Make scroll indicator more visible */
  .scroll-down {
    bottom: 3rem;
    font-size: 2.2rem;
  }
}

/* Back to Top button styling */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-color);
  color: var(--bg-color);
  border: none;
  border-radius: 50%;
  width: 3rem; /* reduced size */
  height: 3rem; /* reduced size */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem; /* adjusted icon size */
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 200;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  transform: translateY(-3px);
}

/* Form feedback messages */
#form-feedback {
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: 500;
  width: 100%;
  text-align: center;
}

.success-message {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

.error-message {
  background-color: rgba(244, 67, 54, 0.1);
  color: #F44336;
  border: 1px solid #F44336;
}

/* Hide reCAPTCHA v3 badge */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Scroll down indicator */
.scroll-down {
  position: absolute;
  bottom: 5rem; /* Increased from bottom to be visible on iOS Safari */
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--text-color);
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 3;
  background-color: rgba(13, 15, 26, 0.5); /* Semi-transparent background */
  padding: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.scroll-down i {
  pointer-events: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Highlight service section headings */
#uslugi .service-item h3 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fff; /* jasny, kontrastowy nagłówek */
}

/* About section with animations */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  text-align: justify;
  color: #e0e0e0;
}

/* Modern Tech Sphere Animation */
.tech-sphere-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-sphere {
  position: relative;
  width: 100%;
  min-height: 350px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  box-shadow: 
    0 4px 25px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 216, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  animation: subtle-pulse 8s infinite ease-in-out;
}

.tech-sphere:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 216, 255, 0.2),
    0 0 30px rgba(0, 216, 255, 0.1);
  animation-play-state: paused;
}

@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 
      0 4px 25px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(0, 216, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 8px 30px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(0, 216, 255, 0.2),
      0 0 20px rgba(0, 216, 255, 0.1);
  }
}

#network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.tech-sphere-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem;
}

.tech-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  border: 1px solid rgba(0, 216, 255, 0.2);
  margin: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 3s infinite;
  animation-delay: calc(var(--i, 0) * 0.5s);
  box-shadow: 0 0 15px rgba(0, 216, 255, 0.05);
  backdrop-filter: blur(5px);
}

.tech-badge:nth-child(1) { --i: 1; }
.tech-badge:nth-child(2) { --i: 2; }
.tech-badge:nth-child(3) { --i: 3; }
.tech-badge:nth-child(4) { --i: 4; }
.tech-badge:nth-child(5) { --i: 5; }

.tech-badge i {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 0 5px rgba(0, 216, 255, 0.5));
}

.tech-badge span {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-badge:hover, .tech-badge.active {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--accent-color);
  box-shadow: 
    0 0 20px rgba(0, 216, 255, 0.3),
    0 0 60px rgba(0, 216, 255, 0.1);
}

.tech-badge:hover i, .tech-badge.active i {
  animation: levitate 1s ease-in-out infinite alternate;
}

.tech-info-panel {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(0, 216, 255, 0.1);
  padding: 1.2rem 1.5rem;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 216, 255, 0.05);
  height: 150px; /* Increased from 130px to allow for more text */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

.tech-info {
  opacity: 0;
  position: absolute;
  width: 100%;
  transition: all 0.5s ease;
  transform: translateY(20px);
  pointer-events: none;
}

.tech-info.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

.tech-info h3 {
  color: var(--accent-color);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 216, 255, 0.1);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.tech-info p {
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 216, 255, 0.4);
  }
}

@keyframes levitate {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3px);
  }
}

/* Responsive adjustments for about section */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .tech-sphere-container {
    width: 100%;
  }
  
  .tech-sphere {
    min-height: 300px;
  }
  
  .tech-badge {
    width: 70px;
    height: 70px;
    margin: 0.5rem;
  }
  
  .tech-badge i {
    font-size: 1.5rem;
  }
  
  .tech-info-panel {
    height: 180px; /* Further increased for mobile to make sure text fits */
  }
  
  .tech-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  
  .tech-info p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Tech Showcase - Modern Card Grid */
.tech-showcase {
  position: relative;
  background: linear-gradient(to bottom, rgba(13, 15, 26, 0.8), rgba(13, 15, 26, 0.95));
  padding-top: 7rem;
  padding-bottom: 7rem;
  overflow: hidden;
}

.tech-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 216, 255, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(0, 216, 255, 0.03) 0%, transparent 20%);
  z-index: 0;
}

.tech-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.tech-card {
  height: 280px;
  perspective: 1000px;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  animation: card-reveal 0.8s forwards ease-out;
  animation-delay: calc(var(--order, 0) * 0.1s + 0.2s);
  transform-style: preserve-3d;
}

@keyframes card-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tech-card-front,
.tech-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 
    0 5px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  overflow: hidden;
}

.tech-card-front {
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
  border: 1px solid rgba(0, 216, 255, 0.1);
  background-size: 400% 400%;
  animation: gradientPosition 15s ease infinite;
  /* Each card gets a slightly different animation timing */
  animation-delay: calc(var(--order, 0) * -3s);
  transform: rotateY(0);
}

.tech-card[data-tech="frontend"] { --order: 1; }
.tech-card[data-tech="backend"] { --order: 2; }
.tech-card[data-tech="ai"] { --order: 3; }
.tech-card[data-tech="design"] { --order: 4; }
.tech-card[data-tech="security"] { --order: 5; }
.tech-card[data-tech="responsive"] { --order: 6; }

/* Different accent color for each card */
.tech-card[data-tech="frontend"] .tech-card-front { background-image: linear-gradient(135deg, rgba(0, 149, 255, 0.1), rgba(0, 89, 178, 0.05)); }
.tech-card[data-tech="backend"] .tech-card-front { background-image: linear-gradient(135deg, rgba(102, 51, 153, 0.1), rgba(138, 43, 226, 0.05)); }
.tech-card[data-tech="ai"] .tech-card-front { background-image: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(27, 94, 32, 0.05)); }
.tech-card[data-tech="design"] .tech-card-front { background-image: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(173, 20, 87, 0.05)); }
.tech-card[data-tech="security"] .tech-card-front { background-image: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(230, 81, 0, 0.05)); }
.tech-card[data-tech="responsive"] .tech-card-front { background-image: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(0, 131, 143, 0.05)); }

/* Glow effect for icons */
.tech-card-front i {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 216, 255, 0.3));
  animation: icon-pulse 3s infinite ease-in-out;
  animation-delay: calc(var(--order, 0) * 0.5s);
}

.tech-card-front h3 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

@keyframes icon-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(0, 216, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(0, 216, 255, 0.5));
  }
}

@keyframes gradientPosition {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tech-card-back {
  background: rgba(13, 15, 26, 0.95);
  transform: rotateY(180deg);
  border: 1px solid rgba(0, 216, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  backdrop-filter: blur(5px);
  z-index: 1;
}

.tech-card-back h4 {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin: 0;
  font-weight: 600;
}

.tech-card-back p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding-top: 0.5rem;
}

.tech-tags span {
  background: rgba(0, 216, 255, 0.1);
  color: var(--accent-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 216, 255, 0.2);
  white-space: nowrap;
}

/* Card flip effect on hover */
.tech-card:hover .tech-card-front {
  transform: rotateY(180deg);
  z-index: 1;
}

.tech-card:hover .tech-card-back {
  transform: rotateY(0deg);
  z-index: 2;
}

.tech-card:hover .tech-card-front i {
  transform: translateY(-10px);
}

/* Glowing effect when hovering the section */
.tech-showcase:hover::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 216, 255, 0.05) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .tech-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-card {
    height: 260px;
  }
  
  .tech-card-front,
  .tech-card-back {
    padding: 1.5rem;
  }
  
  .tech-card-back h4 {
    font-size: 1.1rem;
  }
  
  .tech-card-back p {
    font-size: 0.85rem;
  }
  
  .tech-tags span {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .tech-grid-container {
    grid-template-columns: 1fr;
  }
  
  .tech-card {
    height: 240px;
  }
  
  .tech-card-front,
  .tech-card-back {
    padding: 1.25rem;
  }
}

/* Fix for Firefox */
@-moz-document url-prefix() {
  .tech-card-front, .tech-card-back {
    backface-visibility: hidden;
    transform-style: preserve-3d;
  }
}

/* Fix for Edge/IE */
@supports (-ms-ime-align:auto) {
  .tech-card:hover .tech-card-front {
    opacity: 0;
  }
}

/* Fix for older browsers that might not support backface-visibility */
.tech-card:hover .tech-card-front {
  transform: rotateY(180deg);
  z-index: 1;
  opacity: 0; /* Ensure it completely disappears */
}

.tech-card:hover .tech-card-back {
  transform: rotateY(0deg);
  z-index: 2;
  opacity: 1; /* Ensure it's fully visible */
}

/* Ensure card backs are invisible when not flipped */
.tech-card:not(:hover) .tech-card-back {
  opacity: 0;
}

/* Services Section Styles */
.services {
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 216, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 216, 255, 0.03) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-item {
  position: relative;
  background: rgba(13, 15, 26, 0.6);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 216, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 216, 255, 0.05);
  transform: translateY(0);
  opacity: 0;
  animation: service-reveal 0.6s forwards ease-out;
  animation-delay: calc(var(--order) * 0.1s);
}

.service-item:nth-child(1) { --order: 1; }
.service-item:nth-child(2) { --order: 2; }
.service-item:nth-child(3) { --order: 3; }
.service-item:nth-child(4) { --order: 4; }

@keyframes service-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 216, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 216, 255, 0.2);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 216, 255, 0.1),
    0 0 30px rgba(0, 216, 255, 0.1);
}

.service-item:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.8rem;
  position: relative;
  font-weight: 600;
}

.service-item p {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  margin: 0;
}

.service-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.service-item:hover::after {
  width: 80%;
}

/* Service item hover effect */
@keyframes service-pulse {
  0%, 100% {
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(0, 216, 255, 0.05);
  }
  50% {
    box-shadow: 
      0 8px 30px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(0, 216, 255, 0.1),
      0 0 20px rgba(0, 216, 255, 0.1);
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .service-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .service-item {
    padding: 2rem 1.5rem;
  }
  .service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .service-item h3 {
    font-size: 1.3rem;
  }
  .service-item p {
    font-size: 0.95rem;
  }
}
/* Fix for Firefox */
@-moz-document url-prefix() {
  .service-item {
    backdrop-filter: none;
    background: rgba(13, 15, 26, 0.8);
  }
}
/* Fix for Safari */
@supports (-webkit-backdrop-filter: none) {
  .service-item {
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Active menu item indicator */
.nav-menu li a.active {
  color: var(--accent-color);
}

.nav-menu li a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
}

/* Enhanced Realizations Page Styles */
.realizacje-header {
  position: relative;
  min-height: 400px;
  background: linear-gradient(135deg, #09121a 0%, #001a2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.page-header-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    linear-gradient(45deg, rgba(0, 216, 255, 0.1) 0%, transparent 100%),
    radial-gradient(circle at 20% 30%, rgba(0, 216, 255, 0.05) 0%, transparent 100%);
  opacity: 0.5;
  z-index: 1;
  animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.realizacje-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleReveal 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

.realizacje-underline {
  width: 100px;
  height: 4px;
  background: var(--accent-color);
  margin: 0 auto 1.5rem auto;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.realizacje-underline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  animation: underlineShine 3s ease-in-out infinite;
}

@keyframes underlineShine {
  to {
    left: 200%;
  }
}

.realizacje-desc {
  font-size: 1.2rem;
  color: #b7c3d2;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: descReveal 1s ease forwards 0.3s;
}

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

/* Enhanced realisation cards */
.realisations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.realisation-card {
  background: rgba(13, 15, 26, 0.6);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(30px);
  animation: cardReveal 0.8s forwards ease-out;
  animation-delay: calc(var(--order, 0) * 0.1s + 0.2s);
  border: 1px solid rgba(0, 216, 255, 0.1);
  backdrop-filter: blur(10px);
}

.realisation-card:nth-child(1) { --order: 1; }
.realisation-card:nth-child(2) { --order: 2; }
.realisation-card:nth-child(3) { --order: 3; }
.realisation-card:nth-child(4) { --order: 4; }
.realisation-card:nth-child(5) { --order: 5; }
.realisation-card:nth-child(6) { --order: 6; }
.realisation-card:nth-child(7) { --order: 7; }

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

.realisation-card img, 
.realisation-card .realisation-icon-area {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.realisation-card:hover img {
  transform: scale(1.05);
}

.realisation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(13, 15, 26, 0.8) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.realisation-info {
  padding: 1.5rem;
  background: rgba(13, 15, 26, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 216, 255, 0.1);
}

.realisation-info h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.realisation-type {
  font-size: 0.9rem;
  color: var(--accent-color);
  opacity: 0.8;
}

.realisation-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent-color);
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

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

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

.realisation-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 216, 255, 0.2),
    0 0 30px rgba(0, 216, 255, 0.1);
}

.realisation-icon-area {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 216, 255, 0.1), transparent);
  color: var(--accent-color);
  font-size: 3rem;
}

.realisation-icon-area i {
  filter: drop-shadow(0 0 10px rgba(0, 216, 255, 0.3));
  animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Applications section specific styles */
.applications {
  position: relative;
  background: linear-gradient(to bottom, rgba(13, 15, 26, 0.8), rgba(13, 15, 26, 0.95));
  padding-top: 7rem;
  padding-bottom: 7rem;
  overflow: hidden;
}

.applications::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 216, 255, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(0, 216, 255, 0.03) 0%, transparent 20%);
  z-index: 0;
}

@media (max-width: 768px) {
  .realizacje-header {
    min-height: 300px;
  }
  
  .realizacje-title {
    font-size: 2rem;
  }
  
  .realizacje-desc {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .realisations-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .realisation-card img, 
  .realisation-card .realisation-icon-area {
    height: 180px;
  }
}
