/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e23a3a;
  --primary-dark: #c0392b;
  --accent-green: #6abf91;
  --accent-green-dark: #5aad7e;
  --accent-yellow: #f2c94c;
  --accent-coral: #e74c3c;
  --bg-dark: #404040;
  --bg-darker: #2c2c2c;
  --bg-darkest: #1a1a1a;
  --text-dark: #404040;
  --text-light: #ffffff;
  --text-muted: #777;
  --text-body: #666;
  --section-padding: 80px 0;
  --container-width: 1170px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-green-dark);
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 700px;
  margin: 0 auto 50px;
  font-style: italic;
}

.section-subtitle a {
  color: var(--accent-green);
}

.section-tagline {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
}

.btn-primary:hover {
  background: var(--accent-green-dark);
  border-color: var(--accent-green-dark);
  color: #fff;
}

.btn-outline {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: #fff;
  color: var(--text-dark);
  border-color: #fff;
}

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

.btn-github {
  background: var(--accent-coral);
  color: #fff;
  border-color: var(--accent-coral);
  font-size: 15px;
  padding: 14px 35px;
}

.btn-github:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.btn-github i {
  margin-right: 8px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 15px 0;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 8px 0;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.navbar.scrolled .logo-img {
  height: 38px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links li a {
  color: rgba(255,255,255,0.85);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 14px;
  transition: all 0.3s;
  text-decoration: none;
}

.nav-links li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* Parallax layers */
#parallax_move {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 0;
}

#parallax_move .layer {
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

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

.hero-logo-link {
  display: inline-block;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-logo-img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 35px;
  max-width: 700px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
}

.section-light {
  background: #fff;
}

/* ===== REALIZACJA / PROCESS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.process-card {
  text-align: center;
  padding: 30px 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.process-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.process-card:hover .process-icon {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(106, 191, 145, 0.4);
}

.process-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.process-card p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== GITHUB RIBBON ===== */
.section-github {
  background: var(--accent-yellow);
  text-align: center;
  padding: 50px 0;
}

.section-github h3 {
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.section-github .highlight {
  color: var(--primary);
}

/* ===== ABOUT ===== */
.section-about {
  background: var(--bg-dark);
  color: #fff;
}

.section-about .section-title {
  color: #fff;
}

.section-about .section-title::after {
  background: var(--accent-green);
}

.section-about .section-tagline {
  color: rgba(255,255,255,0.6);
}

.about-header {
  margin-bottom: 40px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-text a {
  color: var(--accent-green);
}

.about-text a:hover {
  color: #fff;
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 350px;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  text-align: center;
  padding: 30px 20px;
  background: #f9f9f9;
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.service-tech {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 15px;
  font-style: italic;
}

.service-card ul {
  list-style: none;
  text-align: left;
  padding: 0;
}

.service-card ul li {
  font-size: 13px;
  color: var(--text-body);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.service-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

/* ===== TESTIMONIALS ===== */
.section-dark {
  background: var(--bg-darker);
  color: #fff;
}

.section-dark .section-title {
  color: #fff;
}

.section-dark .section-title::after {
  background: var(--accent-green);
}

.section-dark .section-tagline {
  color: rgba(255,255,255,0.6);
}

.testimonials-header {
  margin-bottom: 50px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  padding: 30px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-text {
  margin-bottom: 25px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--accent-green);
}

.testimonial-text p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-green);
}

.testimonial-author strong {
  display: block;
  font-size: 15px;
}

.testimonial-author a {
  color: #fff;
}

.testimonial-author a:hover {
  color: var(--accent-green);
}

.testimonial-author span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ===== PORTFOLIO ===== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #ddd;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(106, 191, 145, 0.05);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.portfolio-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card.hidden {
  display: none;
}

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

.portfolio-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-logo-img {
  max-height: 120px;
  max-width: 160px;
  object-fit: contain;
  border-radius: 8px;
}

.portfolio-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
}

.portfolio-badge.saas {
  background: var(--accent-green);
  color: #fff;
}

.portfolio-badge.project {
  background: var(--accent-yellow);
  color: var(--text-dark);
}

.portfolio-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-link { color: #00f0ff; }
.logo-meta { color: #ff00aa; }
.logo-page { color: #e0e0e8; }
.logo-shot { color: #00f0ff; }
.logo-my { color: #39ff14; }
.logo-address { color: #e0e0e8; }
.logo-pdf { color: #ff6b6b; }
.logo-spark { color: #ffd93d; }
.logo-og { color: #00f0ff; }
.logo-forge { color: #ff00aa; }
.logo-mg { color: #e23a3a; font-style: italic; }
.logo-flasher { color: #fff; }
.logo-esky { color: #1a4ed8; font-size: 40px; }

.portfolio-info {
  padding: 25px;
}

.portfolio-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.portfolio-info p {
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.portfolio-tags span {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  background: #f0f0f0;
  color: var(--text-muted);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-green);
}

.portfolio-link:hover {
  color: var(--accent-green-dark);
}

.portfolio-link i {
  font-size: 10px;
}

/* ===== CONTACT CTA ===== */
.section-cta {
  background: var(--accent-green);
  text-align: center;
  padding: 70px 0;
}

.section-cta h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-cta .btn-primary {
  background: #fff;
  color: var(--accent-green);
  border-color: #fff;
}

.section-cta .btn-primary:hover {
  background: rgba(255,255,255,0.85);
  color: var(--accent-green-dark);
}

.section-cta .btn-primary i {
  margin-right: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-darkest);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col {
  display: flex;
  align-items: flex-start;
}

.footer-address {
  display: flex;
  gap: 12px;
}

.footer-address i {
  color: var(--accent-green);
  margin-top: 4px;
}

.footer-address p {
  font-size: 13px;
  line-height: 1.7;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact-item i {
  color: var(--accent-green);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.footer-contact-item a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--accent-green);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    padding: 20px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    padding: 12px 20px;
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-logo-img {
    height: 90px;
  }

  .hero h1 {
    font-size: 28px;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    order: -1;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-address,
  .footer-contact-item {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-logo-img {
    height: 70px;
  }

  .hero h1 {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .btn {
    padding: 10px 24px;
    font-size: 12px;
  }

  .section {
    padding: 60px 0;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
