/* ============================================
   CSS Variables - Kolory
   ============================================ */
:root {
  --primary-blue: #1a2b4a;
  --accent-yellow: #ffd700;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --text-dark: #1a2b4a;
  --text-light: #ffffff;
  --border-gray: #e0e0e0;
}

/* ============================================
   Loading Screen
   ============================================ */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  width: 200px;
  height: auto;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

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

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  background-color: transparent;
  padding: 1rem 0;
  box-shadow: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-scrolled {
  background-color: rgba(26, 43, 74, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 0.25rem 1rem;
  margin-top: 5px;
}

.navbar-brand {
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

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

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-yellow) !important;
}

.navbar-nav .nav-link.btn-contact {
  background-color: var(--accent-yellow);
  color: var(--text-dark) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 45px;
  font-weight: 600;
}

.navbar-nav .nav-link.btn-contact:hover {
  background-color: #ffed4e;
  color: var(--text-dark) !important;
}

/* Mobile Menu Toggle */
.navbar-toggler {
  border: 2px solid var(--accent-yellow);
  padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 215, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
  background-color: rgba(26, 43, 74, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  margin-top: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: height 0.35s ease, opacity 0.35s ease;
}

.header-scrolled .navbar-collapse {
  background-color: rgba(26, 43, 74, 0.98);
}

@media (min-width: 992px) {
  .navbar-collapse {
    background-color: transparent;
    padding: 0;
    margin-top: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-scrolled .navbar-collapse {
    background-color: transparent;
    border: none;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background-color: var(--primary-blue);
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Particles.js Container */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: transparent;
}

#particles-js canvas {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
  z-index: 3;
}

.hero-hand-img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.hero-content {
  padding: 2rem;
  color: var(--white);
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: var(--accent-yellow);
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.8;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-custom {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 45px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.3px;
}

.btn-primary-custom:hover {
  background-color: #ffed4e;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* ============================================
   Section Styles
   ============================================ */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 3rem;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.5px;
}

.section-title-light {
  color: var(--accent-yellow);
}

/* ============================================
   Nasza Oferta Section
   ============================================ */
.section-offer {
  background-color: var(--white);
}

.offer-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
  height: 100%;
}

.offer-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.offer-card {
  background-color: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.offer-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.offer-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-svg {
  width: 100%;
  height: 100%;
}

.offer-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

/* ============================================
   Portfolio Section
   ============================================ */
.section-portfolio {
  background-color: var(--primary-blue);
  background-image: url("../dlon_Strona_Promates.png");
  background-attachment: fixed;
  background-size: 850px;
  background-position: 100px center;
  background-repeat: no-repeat;
  position: relative;
  overflow: visible;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.section-portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-blue);
  opacity: 0.6;
  z-index: 0;
}

.portfolio-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.section-portfolio .container {
  position: relative;
  z-index: 2;
}

.portfolio-bg-graphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bg-hand {
  position: absolute;
  width: 800px;
  height: 800px;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  background-image: radial-gradient(circle at 20% 30%, var(--primary-blue) 3px, transparent 3px),
    radial-gradient(circle at 50% 20%, var(--primary-blue) 3px, transparent 3px),
    radial-gradient(circle at 80% 25%, var(--primary-blue) 3px, transparent 3px),
    radial-gradient(circle at 30% 50%, var(--primary-blue) 3px, transparent 3px),
    radial-gradient(circle at 70% 55%, var(--primary-blue) 3px, transparent 3px);
  background-size: 50px 50px, 60px 60px, 45px 45px, 55px 55px, 50px 50px;
  background-position: 0 0, 100px 50px, 200px 100px, 50px 150px, 150px 200px;
}

.bg-text {
  position: absolute;
  font-size: 25rem;
  font-weight: 900;
  color: var(--primary-blue);
  opacity: 0.08;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  z-index: 1;
  line-height: 1;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -20px;
}

.portfolio-watermark {
  position: absolute;
  font-size: 40rem;
  font-weight: 900;
  color: var(--accent-yellow);
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  line-height: 1;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2rem;
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ============================================
   Nasz Zespół Section
   ============================================ */
.section-team {
  background-color: var(--white);
}

.team-card {
  text-align: center;
  background-color: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  margin-bottom: 1.5rem;
}

.team-card:hover .team-avatar img {
  border-color: var(--primary-blue);
}

.team-info {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-family: "Montserrat", sans-serif;
}

.team-role {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  color: var(--primary-blue);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: var(--accent-yellow);
  transform: scale(1.2);
}

/* ============================================
   Aktualności Section
   ============================================ */
.section-news {
  background-color: var(--white);
}

.news-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.news-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.news-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-blue);
  padding: 1.5rem;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

/* ============================================
   Kontakt Section
   ============================================ */
.section-contact {
  background-color: var(--light-gray);
  padding: 5rem 0;
}

.contact-info {
  padding: 2rem 0;
}

.company-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 1.5rem;
  font-family: "Montserrat", sans-serif;
}

.contact-detail {
  font-size: 23px;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
}

.contact-bold {
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}

.contact-map {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--light-gray);
  padding: 2rem 0;
  text-align: center;
}

.footer-text {
  color: #999;
  margin: 0;
  font-size: 0.9rem;
}

/* ============================================
   Responsive Styles - Mobile
   ============================================ */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .logo-img {
    height: 40px;
  }

  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar-nav {
    text-align: center;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    display: block;
    width: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-link.btn-contact {
    margin-top: 0.5rem;
    display: block;
    width: 100%;
    border-radius: 45px;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-graphic {
    margin-bottom: 2rem;
  }

  .hero-hand-img {
    max-width: 100%;
    height: auto;
  }

  /* Reduce particles on mobile for better performance */
  #particles-js {
    opacity: 0.8;
  }

  .hero-title {
    font-size: 1.75rem;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary-custom {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .offer-card {
    margin-bottom: 1.5rem;
  }

  .team-avatar img {
    width: 150px;
  }

  .contact-map iframe {
    height: 300px;
  }

  /* Portfolio mobile improvements */
  .section-portfolio {
    min-height: 400px;
    background-attachment: scroll;
    overflow: hidden;
    padding: 3rem 0;
  }

  .section-portfolio::before {
    opacity: 0.7;
  }

  .bg-text {
    font-size: 8rem;
    letter-spacing: -10px;
    right: -10%;
  }

  .bg-hand {
    width: 300px;
    height: 300px;
    left: 10%;
    opacity: 0.1;
  }

  .portfolio-watermark {
    font-size: 15rem;
    letter-spacing: 0.5rem;
    opacity: 0.03;
  }

  .portfolio-bg-graphic {
    opacity: 0.1;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .offer-icon {
    width: 120px;
  }

  .team-avatar img {
    width: 120px;
  }

  .section-portfolio {
    min-height: 300px;
    background-attachment: scroll;
    padding: 2rem 0;
  }

  .section-portfolio .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .bg-text {
    font-size: 4rem;
    letter-spacing: -3px;
    right: -20%;
    opacity: 0.05;
  }

  .bg-hand {
    width: 200px;
    height: 200px;
    left: 5%;
    opacity: 0.08;
  }

  .portfolio-watermark {
    font-size: 10rem;
    letter-spacing: 0.3rem;
    opacity: 0.02;
  }

  .portfolio-bg-graphic {
    opacity: 0.08;
  }

  .contact-map iframe {
    height: 250px;
  }
}

/* ============================================
   Smooth Scrolling
   ============================================ */
html {
  scroll-behavior: smooth;
}

/* ============================================
   Mobile Menu Animations
   ============================================ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.navbar-nav .nav-link.active {
  color: var(--accent-yellow) !important;
}

/* ============================================
   Additional Utilities
   ============================================ */
.min-vh-100 {
  min-height: 100vh;
}
