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

/* ==============================
ROOT
================================ */
:root {
    --color-text: #111;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-bg: #ffffff;
    --color-soft: #f9fafb;

    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;

    --shadow-sm: 0 8px 20px rgba(0,0,0,0.06);
    --shadow-md: 0 20px 50px rgba(0,0,0,0.12);
    --shadow-lg: 0 30px 70px rgba(0,0,0,0.18);
}

/* ==============================
BASE
================================ */
body {
background: var(--color-bg);
color: var(--color-text);
font-family: "Inter", system-ui, -apple-system, sans-serif;
line-height: 1.7;
-webkit-font-smoothing: antialiased;
}

/* ==============================
   TYPOGRAPHY
================================ */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 3.4rem; }
h2 { font-size: 2rem; }

p {
  font-size: 16px;
}

.muted {
  color: var(--color-muted);
  font-size: 14px;
}

/* ==============================
   BUTTON
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* NAVBAR */
.navbar{
display:grid;
grid-template-columns: 1fr auto 1fr;
align-items:center;
padding:18px 32px;
border-bottom:1px solid var(--color-border);
background:#fff;
z-index:1000;
}

/* LEFT SIDE */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  font-size: 18px;
}

.logo img {
    height: 100px;
    margin-top: -15px;
    margin-bottom: -15px;
}

/* CENTER MENU */
.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  transition: opacity .2s ease;
}

.nav a:hover {
  opacity: .6;
}

/* RIGHT SIDE */
.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-right a {
  display: flex;
  align-items: center;
}

.navbar-right img {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  transition: opacity .2s ease, transform .2s ease;
}

.navbar-right img:hover {
  opacity: 1;
  transform: translateY(-2px);
}
/* ==============================
   HOME HERO (CZYSTY)
================================ */
.hero-home {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: url("/static/images/homewallpaper.jpg");
  background-size: cover;
  
}

.hero-home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.hero-left h1 {
  margin-bottom: 20px;
}

.hero-left p {
  font-size: 18px;
  color: var(--color-muted);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-right img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.home-blocks-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.home-block-text {
    margin: 40px auto;
    font-size: 18px;
    line-height: 1.6;
}
/* ==============================
   HERO WALLPAPER (SUBPAGES ONLY)
================================ */
.hero-wallpaper {
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.hero-wallpaper.blog { background-image: url("/static/images/blogwallpaper.jpg"); }
.hero-wallpaper.projects { background-image: url("/static/images/projectwallpaper.jpg"); }
.hero-wallpaper.about { background-image: url("/static/images/aboutwallpaper.jpg"); }
.hero-wallpaper.contact { background-image: url("/static/images/contactwallpaper.jpg"); }
.hero-wallpaper.industrial { background-image: url("/static/images/industrialwallpaper.jpg"); }
.hero-wallpaper.imprint { background-image: url("/static/images/imprintwallpaper.jpg"); }
.hero-wallpaper.privacy { background-image: url("/static/images/privacypolicywallpaper.jpg"); }

/* ==============================
   SECTION
================================ */
.section {
  padding: 120px 0;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================
   CONTACT – CLEAN PRO VERSION
================================ */

.hero-wallpaper.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px;
}

/* WRAPPER (centrowanie) */
.contact-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* CARD */
.contact-box {
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  padding: 90px 80px;
  border-radius: var(--radius-xl);
  box-shadow: 0 50px 100px rgba(0,0,0,0.12);
}

/* HEADER */
.contact-header {
  margin-bottom: 60px;
}

.contact-header h1 {
  font-size: 2.6rem;
  margin-bottom: 14px;
}

.contact-header .muted {
  font-size: 16px;
  line-height: 1.6;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* GROUP */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* INPUTS */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 15px;
  font-family: inherit;
  background: #f9fafb;
  transition: all .25s ease;
}

.contact-form textarea {
  min-height: 190px;
  resize: vertical;
}

/* FOCUS EFFECT */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

/* BUTTON */
.contact-btn {
  width: 100%;
  margin-top: 20px;
  padding: 20px;
  font-size: 15px;
  border-radius: 999px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-box {
    padding: 60px 30px;
  }

  .contact-header h1 {
    font-size: 2rem;
  }
}
/* tablet */

@media (max-width: 1000px) {

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

}

/* mobile */

@media (max-width: 700px) {

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

  .project-card img {
    height: 240px;
  }

}
/* ==============================
   FOOTER
================================ */
footer {
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

/* ==============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {

  .navbar {
    padding: 20px 24px;
  }

  .hero-home-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-right img {
    width: 260px;
    height: 260px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .contact-box {
    padding: 50px 28px;
  }
}

/* ==============================
   INDUSTRIAL – DYNAMIC BLOCKS
================================ */

.industrial-section {
  padding: 120px 20px;
  background: #f7f7f7;
}

.industrial-container {
  max-width: 1100px;
  margin: 0 auto;
}


/* BLOCK WRAPPER */

.industrial-block {
  margin-bottom: 100px;
}


/* IMAGE BLOCK */

.industrial-image {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.industrial-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform .35s ease, box-shadow .35s ease;
}


/* TEXT BLOCK */

.industrial-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
}

.industrial-text p {
  margin-bottom: 20px;
}


/* HEADINGS INSIDE TEXT */

.industrial-text h2,
.industrial-text h3 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 600;
}


/* RESPONSIVE */

@media (max-width: 768px) {

  .industrial-section {
    padding: 80px 20px;
  }

  .industrial-image img {
    height: 280px;
  }

  .industrial-text {
    font-size: 16px;
  }

}
.hero-wallpaper {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 140px 20px 120px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.75);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-title {
  font-size: 52px;
  margin-bottom: 24px;
}

.hero-description {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
}

.hero-description h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.hero-description p {
  margin-bottom: 14px;
}
/* ==============================
   ABOUT HERO PREMIUM
================================ */

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

.about-subtitle {
    max-width: 720px;
    margin: 24px auto 0;
    line-height: 1.7;
    font-size: 17px;
}

.hero-cv-buttons {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
/* ==============================
   PROJECTS INTRO
================================ */

.projects-intro{
  max-width:700px;
  margin:40px auto 20px;
  text-align:center;
  color:#666;
  font-size:18px;
  line-height:1.6;
}

/* ==============================
   FEATURED PROJECTS
================================ */
.featured-project{
  text-align:center;
  margin:60px 0 30px;
  font-size:18px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#999;
}
/* ==============================
   PROJECTS GRID
================================ */

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 40px;
  width: 100%;
}

/* PROJECT CARD */

.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display:block;
  transition: transform .5s ease;
}

/* HOVER */

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.18);
}

.project-card:hover img {
  transform: scale(1.08);
}

/* OVERLAY */

.project-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

.project-overlay h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.project-overlay p {
  font-size: 14px;
  opacity: 0.9;
}

/* ==============================
   PROJECTS RESPONSIVE
================================ */

/* tablet */

@media (max-width:1000px){

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

}

/* mobile */

@media (max-width:768px){

.projects-container{
padding:0 16px;
}

.projects-grid{
grid-template-columns:1fr;
gap:24px;
}

.project-card{
width:100%;
}

.project-card img{
height:220px;
}

}
/* ==============================
   THANK YOU PAGE
================================ */

.thankyou-wrapper {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  animation: fadeInUp 0.8s ease forwards;
}

.thankyou-box {
  max-width: 600px;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
}

.thankyou-box h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.thankyou-box p {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 35px;
  line-height: 1.6;
}

/* SVG animation */

.checkmark circle {
  stroke: #4CAF50;
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s ease forwards;
}

.checkmark path {
  stroke: #4CAF50;
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.4s 0.6s ease forwards;
}

@keyframes stroke {
  to { stroke-dashoffset: 0; }
}

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

/* ==========================
   PAGINATION (PILL STYLE)
========================== */

.blog-pagination {
    margin-top: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.pagination-pill {
    display: inline-block;
    padding: 10px 22px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-pill:hover {
    background: #222;
    transform: translateY(-2px);
}

.pagination-current {
    font-size: 14px;
    color: #777;
}

/* ==============================
   FORM ERRORS (DJANGO BACKEND)
================================ */

.field-error {
  color: #e11d48;               /* ładny czerwony */
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
}

.form-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #b91c1c;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

/* ==============================
   PRIVACY HERO FIX (PREMIUM)
================================ */

.hero-wallpaper.privacy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dark overlay */
.hero-wallpaper.privacy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Hero content */
.hero-wallpaper.privacy .legal-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

/* Heading style */
.hero-wallpaper.privacy .legal-hero h1 {
  color: #ffffff;
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ==============================
   IMPRINT HERO FIX
================================ */

.hero-wallpaper.imprint {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55vh; /* trochę mniejsze niż default 75vh */
  text-align: center;
}

/* overlay tylko dla imprint */
.hero-wallpaper.imprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* tekst */
.hero-wallpaper.imprint .legal-hero {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-wallpaper.imprint .legal-hero h1 {
  color: #ffffff;
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ==============================
   FOOTER – PREMIUM MINIMAL
================================ */

.footer {
  padding: 50px 20px;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-copy {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.6;
}

/* ==============================
   BACK TO BLOG BUTTON
================================ */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #111;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* HAMBURGER */

.hamburger{
display:none;
flex-direction:column;
gap:5px;
background:none;
border:none;
cursor:pointer;
}

.hamburger span{
width:24px;
height:2px;
background:black;
display:block;
transition:0.3s;
}

/* MOBILE NAV */

@media (max-width:768px){

.featured-project{
  width: 100%;
  max-width: 100%;
} 
.project-card{
  width: 100%;
}

.hamburger{
display:flex;
}

.nav{
position:fixed;
top:70px;
left:0;
width:100%;
background:white;

display:none;
flex-direction:column;
align-items:center;

gap:40px;
padding:40px 0;

border-bottom:1px solid #eee;

z-index:999;
}

.nav a{
font-size:20px;
}

.nav.active{
display:flex;
}

}

/* ==============================
   ERROR PAGES
================================ */

.error-page {
display: flex;
justify-content: center;
align-items: center;
min-height: 70vh;
text-align: center;
padding: 60px 20px;
}

.error-container {
max-width: 500px;
margin: auto;
}

.error-code {
font-size: 120px;
font-weight: 700;
margin-bottom: 10px;
}

.error-title {
font-size: 32px;
margin-bottom: 15px;
}

.error-text {
color: #666;
margin-bottom: 30px;
line-height: 1.6;
}

.btn-primary {
display: inline-block;
padding: 14px 28px;
background: #111;
color: #fff;
border-radius: 30px;
text-decoration: none;
font-weight: 500;
transition: all 0.25s ease;
}

.btn-primary:hover {
background: #333;
transform: translateY(-2px);
}

/* =========================
   SKILLS SECTION
========================= */

.skills-section{
    padding:120px 20px;
    background:#f8f8f8;
}

.skills-wrapper{
    max-width:1200px;
    margin:auto;
    text-align:center;
}

.skills-title{
    font-size:42px;
    font-weight:700;
    margin-bottom:10px;
}

.skills-subtitle{
    color:#666;
    font-size:16px;
    margin-bottom:70px;
}


/* =========================
   CATEGORY TITLE
========================= */

.skills-category{
    margin-top:80px;
    margin-bottom:40px;

    font-size:30px;
    font-weight:700;

    text-align:center;
    letter-spacing:1px;
    text-transform:uppercase;
}

.skills-category::after{
    content:"";
    display:block;

    width:60px;
    height:3px;

    background:#111;

    margin:14px auto 0 auto;
    border-radius:2px;
}


/* =========================
   GRID
========================= */

.skills-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:35px;
}


/* =========================
   CARD
========================= */

.skill-card{
    background:white;
    padding:35px 30px;

    border-radius:14px;

    box-shadow:0 10px 25px rgba(0,0,0,0.06);

    text-align:center;

    transition:all 0.25s ease;
}


/* =========================
   ICON / IMAGE
========================= */

.skill-icon img{
    width:100%;
    height:250px;
    object-fit:contain;

    margin-bottom:20px;
}


/* =========================
   TEXT
========================= */

.skill-name{
    font-size:20px;
    font-weight:600;
    margin-bottom:12px;
}

.skill-description{
    font-size:14px;
    color:#666;
    line-height:1.6;
}
/* ==============================
   BLOG ARTICLE IMAGES
================================ */

.blog-container{
    max-width:820px;
    margin:auto;
    padding:0 24px;
}
.blog-article img{
  max-width:100% !important;
  width:100% !important;
  height:auto !important;
  display:block;
  margin:40px auto;
  border-radius:14px;
}

.blog-image-block{
    width:100%;
}

.blog-image-block img{
    width:100%;
    height:auto;
    object-fit:contain;
}

@media (max-width:768px){

.logo span{
display:none;
}

}