/* ============================================================
   DUD-COM Modern Theme
   Colors: Dark Navy #0F172A, Amber #F59E0B, Slate accents
   Fonts: Poppins (headings), Inter (body)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy: #0F172A;
  --navy-light: #1E293B;
  --navy-medium: #334155;
  --amber: #F59E0B;
  --amber-light: #FBBF24;
  --amber-dark: #D97706;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --gradient-amber: linear-gradient(135deg, #F59E0B, #FBBF24);
  --gradient-navy: linear-gradient(135deg, #0F172A, #1E293B);
  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: var(--transition);
}
a:hover, a:focus {
  color: var(--amber-dark);
  text-decoration: none;
  outline: none;
}

.text-white { color: var(--white) !important; }
.text-light-muted { color: var(--gray-400) !important; }

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: var(--gradient-amber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--gradient-amber);
  border: none;
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-transform: none;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}
.btn-primary i { margin-right: 8px; }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: var(--transition);
  text-transform: none;
}
.btn-outline:hover, .btn-outline:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}
.btn-outline i { margin-right: 8px; }

.btn-xl {
  padding: 16px 40px;
  font-size: 16px;
}

/* ---------- Navigation ---------- */
.navbar-custom {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
  min-height: 70px;
}

.navbar-custom .navbar-brand {
  padding: 12px 15px;
  height: auto;
}

.brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--white);
  letter-spacing: 1px;
}
.brand-accent {
  color: var(--amber);
}

.navbar-custom .navbar-toggle {
  background-color: var(--amber);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 16px;
}
.navbar-custom .navbar-toggle .icon-bar {
  background-color: var(--navy);
  height: 3px;
  border-radius: 2px;
}

.navbar-custom .nav li a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--gray-300);
  padding: 25px 16px;
  transition: var(--transition);
  text-transform: none;
}
.navbar-custom .nav li a:hover,
.navbar-custom .nav li a:focus {
  color: var(--amber);
  background: transparent;
}
.navbar-custom .navbar-nav > .active > a,
.navbar-custom .navbar-nav > .active > a:hover,
.navbar-custom .navbar-nav > .active > a:focus {
  color: var(--amber);
  background: transparent;
  border-radius: 0;
}

.navbar-custom .navbar-collapse {
  border-color: rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
  .navbar-custom {
    background-color: transparent;
    padding: 10px 0;
    border-bottom: none;
  }
  .navbar-custom.affix {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 5px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
  }
}

/* ---------- Hero Section ---------- */
#hero, header {
  position: relative;
  background: var(--gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  text-align: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/header-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.hero-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber);
  padding: 8px 24px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--white);
  text-transform: none;
}
@media (min-width: 768px) {
  .hero-title { font-size: 64px; }
}
@media (min-width: 992px) {
  .hero-title { font-size: 76px; }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-400);
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 2px;
}
@media (min-width: 768px) {
  .hero-subtitle { font-size: 20px; }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
}
.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.stat-number::after {
  content: '+';
}
.stat-label {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator a {
  color: var(--gray-400);
  font-size: 24px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ---------- Sections Common ---------- */
section {
  padding: 100px 0;
  position: relative;
}
@media (min-width: 768px) {
  section { padding: 120px 0; }
}

.section-header {
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  padding: 6px 20px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-badge.light {
  background: rgba(245, 158, 11, 0.15);
}

.section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: none;
}
@media (min-width: 768px) {
  .section-heading { font-size: 44px; }
}

.section-subheading {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-transform: none;
  font-style: normal;
  font-weight: 400;
}

section h2.section-heading {
  font-size: 36px;
  margin-top: 0;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  section h2.section-heading { font-size: 44px; }
}

section h3.section-subheading {
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  font-style: normal;
  font-weight: 400;
  margin-bottom: 60px;
  color: var(--text-secondary);
}

/* ---------- ROZWIĄZANIA Section ---------- */
#rozwiazania {
  background: var(--gray-50);
}

.solutions-grid {
  display: flex;
  flex-wrap: wrap;
}

.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  margin-bottom: 30px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-amber);
  opacity: 0;
  transition: var(--transition);
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.solution-card:hover::before {
  opacity: 1;
}

.solution-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}
.solution-icon i {
  font-size: 28px;
  color: var(--amber);
}
.solution-icon .icon-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-amber);
  opacity: 0;
  filter: blur(20px);
  transition: var(--transition);
}
.solution-card:hover .icon-glow {
  opacity: 0.3;
}

.solution-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--navy);
  text-transform: none;
}

.solution-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}
.solution-card:hover .tag {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-dark);
}

.solution-link {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.solution-link:hover {
  color: var(--amber-dark);
  gap: 12px;
}

/* ---------- PORTFOLIO Section ---------- */
.bg-dark-section {
  background: var(--navy);
  position: relative;
}
.bg-dark-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
}

.portfolio-card {
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border-color: rgba(245, 158, 11, 0.2);
}

.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(15, 23, 42, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.portfolio-category {
  background: rgba(245, 158, 11, 0.9);
  color: var(--navy);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.portfolio-info {
  padding: 24px;
}
.portfolio-info h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  text-transform: none;
  line-height: 1.3;
}
.portfolio-info p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 16px;
}



.btn-read-more {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-read-more:hover {
  color: var(--amber-light);
  gap: 12px;
}

/* ---------- O NAS Section ---------- */
#about {
  background: var(--white);
}

.about-glass-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 60px;
  position: relative;
}

.about-lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-glass-card p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.values-grid {
  margin-bottom: 60px;
}

.value-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: var(--transition);
  margin-bottom: 30px;
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.value-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.value-icon i {
  font-size: 28px;
  color: var(--amber);
}

.value-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  text-transform: none;
}
.value-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-philosophy {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
}
.about-philosophy h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: none;
}
.about-philosophy p {
  color: var(--gray-400);
  font-size: 16px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 16px;
}

/* ---------- KONTAKT Section ---------- */
section#contact {
  background: var(--navy);
  background-image: none;
  position: relative;
  padding: 100px 0;
}
section#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

section#contact .section-heading {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 44px;
  text-transform: none;
}

.contact-info {
  position: relative;
  z-index: 1;
}
.contact-text {
  font-size: 20px;
  color: var(--gray-300);
  margin-bottom: 30px;
}
.contact-text a {
  color: var(--amber);
  font-weight: 600;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
  padding-bottom: 2px;
}
.contact-text a:hover {
  border-bottom-color: var(--amber);
}

.contact-address {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 30px 50px;
  backdrop-filter: blur(10px);
}
.contact-address p {
  color: var(--gray-300);
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}
.contact-address strong {
  color: var(--white);
  font-size: 18px;
}

/* ---------- RODO Section ---------- */
.rodo-section {
  background: var(--gray-50);
  padding: 80px 0;
}

.rodo-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 30px;
  text-transform: none;
}

.rodo-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--gray-200);
}
.rodo-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer span.copyright {
  color: var(--gray-500);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 40px;
  text-transform: none;
}

ul.social-buttons {
  margin-bottom: 0;
}
ul.social-buttons li a {
  display: block;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  height: 44px;
  width: 44px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 44px;
  color: var(--gray-400);
  transition: var(--transition);
}
ul.social-buttons li a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ---------- Modals ---------- */
.portfolio-modal .modal-dialog {
  margin: 0;
  height: 100%;
  width: auto;
}
.portfolio-modal .modal-content {
  border-radius: 0;
  border: none;
  min-height: 100%;
  padding: 100px 0;
  text-align: center;
  background: var(--white);
  box-shadow: none;
}
.portfolio-modal .modal-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5em;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  text-transform: none;
}
.portfolio-modal .modal-content p.item-intro {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 16px;
  color: var(--amber);
  font-weight: 600;
  margin: 10px 0 30px;
}
.portfolio-modal .modal-content p {
  text-align: left;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.portfolio-modal .modal-content h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 12px;
  text-align: left;
  text-transform: none;
}
.portfolio-modal .modal-content ul {
  text-align: left;
  margin-bottom: 20px;
  padding-left: 20px;
}
.portfolio-modal .modal-content ul li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.portfolio-modal .modal-content .tech-stack {
  background: var(--gray-50);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  border-left: 4px solid var(--amber);
}
.portfolio-modal .modal-content .case-study-content {
  text-align: left;
  margin-bottom: 30px;
}

.portfolio-modal .close-modal {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 20px;
  right: 20px;
  cursor: pointer;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.portfolio-modal .close-modal:hover {
  background: var(--gray-200);
  transform: rotate(90deg);
}
.portfolio-modal .close-modal .lr {
  height: 30px;
  width: 2px;
  margin-left: 0;
  background-color: var(--navy);
  transform: rotate(45deg);
  position: absolute;
  z-index: 1051;
}
.portfolio-modal .close-modal .lr .rl {
  height: 30px;
  width: 2px;
  background-color: var(--navy);
  transform: rotate(90deg);
  z-index: 1052;
}

/* ---------- Animations ---------- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}
.animate-fade-down {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeDown 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* Scroll-triggered animations */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Particles (decorative dots in hero) ---------- */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--amber);
  border-radius: 50%;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-20px) translateX(10px); }
  66% { transform: translateY(10px) translateX(-10px); }
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 767px) {
  .hero-content { padding: 100px 0 60px; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 15px; letter-spacing: 1px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 32px; }
  
  section { padding: 70px 0; }
  .section-heading { font-size: 28px; }
  section h2.section-heading { font-size: 28px; }
  .section-subheading { font-size: 16px; }
  
  .about-glass-card { padding: 24px; }
  .about-philosophy { padding: 30px 24px; }
  .contact-address { padding: 20px 30px; }
  .rodo-content { padding: 24px; }
  
  .portfolio-modal .modal-content { padding: 60px 0; }
  .portfolio-modal .modal-content h2 { font-size: 1.8em; }
}

@media (max-width: 991px) and (min-width: 768px) {
  .hero-title { font-size: 54px; }
  .solution-card { padding: 28px 22px; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-medium);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--amber);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--amber);
  color: var(--navy);
  text-shadow: none;
}
::-moz-selection {
  background: var(--amber);
  color: var(--navy);
  text-shadow: none;
}

/* ---------- Misc Legacy Overrides ---------- */
.bg-light-gray {
  background-color: var(--gray-50);
}
.text-muted {
  color: var(--gray-500);
}
.text-primary {
  color: var(--amber);
}
.img-centered {
  margin: 0 auto;
}

.btn:focus,
.btn:active,
.btn.active,
.btn:active:focus {
  outline: none;
  box-shadow: none;
}

/* fa-brain fallback (Font Awesome 4 doesn't have brain) */
.fa-brain:before {
  content: "\f0eb"; /* lightbulb as fallback */
}
.fa-handshake-o:before {
  content: "\f2b5"; /* handshake */
}

/* ==================== Language Switcher (PL / EN) ==================== */
.lang-switcher {
  position: relative;
}
.navbar-custom .nav li.lang-switcher > a.lang-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 22px 14px;
  cursor: pointer;
}
.flag-icon {
  display: inline-block;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 1px 3px rgba(0,0,0,0.4);
  vertical-align: middle;
  flex: 0 0 auto;
}
.flag-pl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Crect width='5' height='3' fill='%23ffffff'/%3E%3Crect width='5' height='1.5' y='1.5' fill='%23dc143c'/%3E%3C/svg%3E");
}
.flag-gb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23ffffff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23ffffff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E");
}
.lang-caret {
  font-size: 12px;
  color: var(--gray-300);
  transition: var(--transition);
}
.lang-toggle.open .lang-caret {
  transform: rotate(180deg);
  color: var(--amber);
}

/* Dropdown menu */
.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 1050;
}
.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(6px);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--gray-300);
  transition: var(--transition);
}
.lang-option:hover {
  background: rgba(245, 158, 11, 0.12);
  color: var(--white);
}
.lang-option.active {
  background: rgba(245, 158, 11, 0.18);
  color: var(--amber);
}
.lang-option.active .lang-name {
  font-weight: 600;
}
.lang-option .lang-name {
  line-height: 1;
}

/* Mobile: switcher stacks within collapsed navbar */
@media (max-width: 767px) {
  .navbar-custom .nav li.lang-switcher > a.lang-toggle {
    padding: 12px 16px;
  }
  .lang-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255,255,255,0.04);
    box-shadow: none;
    border: none;
    margin: 4px 0 8px 16px;
    max-height: 0;
    overflow: hidden;
    padding: 0 6px;
    transition: max-height 0.28s ease, padding 0.28s ease;
  }
  .lang-menu.open {
    max-height: 200px;
    padding: 6px;
    transform: none;
  }
}
