:root {
  --navy: #0a192f;
  --light-navy: #112240;
  --lightest-navy: #233554;
  --slate: #8892b0;
  --light-slate: #a8b2d1;
  --lightest-slate: #ccd6f6;
  --white: #e6f1ff;
  --green: #64ffda;
  --font-sans: 'Calibre', 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --fz-xxs: 12px;
  --fz-xs: 13px;
  --fz-sm: 14px;
  --fz-md: 16px;
  --fz-lg: 18px;
  --fz-xl: 20px;
  --fz-xxl: 22px;
  --fz-heading: 32px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  counter-reset: section;
  background-color: var(--navy);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: var(--fz-md);
  line-height: 1.3;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--lightest-slate);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--green);
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

.highlight {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: var(--fz-sm);
}

.main-container {
  padding: 0 150px;
  margin: 0 auto;
  min-height: 100vh;
  max-width: 1600px;
}

/* HEADER STYLING */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  padding: 0 50px;
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.logo {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: bold;
}


@media (max-width: 768px) {
  .logo {
    display: none;
  }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

nav ul li a {
  padding: 10px;
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
}

nav ul li a span {
  color: var(--green);
  margin-right: 5px;
}

.resume-button {
  color: var(--green);
  background-color: transparent;
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.resume-button:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

/* MAIN SECTIONS */
section {
  margin: 0 auto;
  padding: 100px 0;
  max-width: 1000px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.hero .highlight {
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 80px);
  margin: 0;
}

.hero h2 {
  font-size: clamp(40px, 8vw, 80px);
  color: var(--slate);
  margin: 0;
}

.hero h3 {
  font-size: clamp(var(--fz-sm), 5vw, var(--fz-md));
  margin-top: 10px;
  max-width: 540px;
}

.hero p {
  margin: 20px 0 0;
  max-width: 540px;
  color: var(--slate);
}

.hero-button {
  margin-top: 50px;
}

/* ABOUT SECTION */
.numbered-heading {
  display: flex;
  align-items: center;
  position: relative;
  margin: 10px 0 40px;
  width: 100%;
  font-size: clamp(26px, 5vw, var(--fz-heading));
  white-space: nowrap;
}

.numbered-heading::before {
  position: relative;
  counter-increment: section;
  content: "0" counter(section) ".";
  margin-right: 10px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: clamp(var(--fz-md), 3vw, var(--fz-xl));
  font-weight: 400;
}

.numbered-heading::after {
  content: "";
  display: block;
  position: relative;
  width: 300px;
  height: 1px;
  margin-left: 20px;
  background-color: var(--lightest-navy);
}

.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
}

.about-text p {
  margin-bottom: 15px;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 200px));
  gap: 0 10px;
  padding: 0;
  margin: 20px 0 0 0;
  overflow: hidden;
  list-style: none;
}

.skills-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
}

.skills-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: var(--fz-sm);
  line-height: 12px;
}

.about-pic {
  position: relative;
  max-width: 250px;
}

.about-pic .wrapper {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 4px;
}

.about-pic .wrapper::before {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.img:hover,
.img:focus {
  filter: none;
  mix-blend-mode: normal;
}

/* WORK SECTION */
.jobs {
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr;
  gap: 40px;
}

.tab-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.tab-button {
  text-align: left;
  padding: 0 20px;
  height: 42px;
  background: transparent;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: var(--fz-sm);
  border: none;
  border-left: 2px solid var(--lightest-navy);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.tab-button:hover {
  background-color: var(--light-navy);
  color: var(--green);
}

.tab-button.active {
  color: var(--green);
  border-left: 2px solid var(--green);
  background-color: var(--light-navy);
}

.tab-panel {
  display: none;
  padding: 10px 5px;
  position: relative;
}

.tab-panel.active {
  display: block;
}

.job-title {
  font-size: var(--fz-xxl);
  font-weight: 500;
  margin-bottom: 5px;
}

.job-company {
  color: var(--green);
}

.job-range {
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
  color: var(--light-slate);
  margin-bottom: 25px;
}

.job-duties {
  padding-left: 20px;
  list-style: none;
}

.job-duties li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--slate);
}

.job-duties li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--green);
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .jobs {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .tab-list {
    flex-direction: row;
    overflow-x: auto;
    margin-bottom: 25px;
  }

  .tab-button {
    border-left: none;
    border-bottom: 2px solid var(--lightest-navy);
    padding: 15px 15px;
    height: auto;
    white-space: nowrap;
  }

  .tab-button.active {
    border-left: none;
    border-bottom: 2px solid var(--green);
  }

  .tab-panel {
    padding: 20px 0;
  }

  /* Dostosowania dla głównego kontenera na mobile */
  .main-container {
    padding: 0 25px;
  }

  /* Dostosowania dla nagłówka na mobile */
  header {
    padding: 0 25px;
  }

  /* Dostosowania dla sekcji na mobile */
  section {
    padding: 80px 0;
  }
}

/* Dodatkowe poprawki dla bardzo małych ekranów */
@media (max-width: 480px) {
  .tab-button {
    padding: 10px 10px;
    font-size: var(--fz-xs);
  }

  .job-title {
    font-size: var(--fz-lg);
  }

  .job-duties li {
    padding-left: 20px;
  }
}


/* PROJECTS SECTION */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  position: relative;
  margin-top: 50px;
}

.project-card {
  position: relative;
  cursor: default;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.project-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  height: 100%;
  padding: 2rem 1.75rem;
  border-radius: 4px;
  background-color: var(--light-navy);
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.project-inner:hover {
  transform: translateY(-5px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 35px;
}

.folder-icon {
  color: var(--green);
  font-size: 40px;
}

.external-links {
  display: flex;
  align-items: center;
  margin-right: -10px;
  color: var(--light-slate);
  font-size: 22px;
}

.external-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.project-title {
  margin: 0 0 10px;
  color: var(--lightest-slate);
  font-size: var(--fz-xxl);
}

.project-description {
  color: var(--light-slate);
  font-size: var(--fz-md);
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0 0;
  list-style: none;
}

.project-tech-list li {
  font-family: var(--font-mono);
  font-size: var(--fz-xxs);
  color: var(--slate);
}

/* CONTACT SECTION */
.contact {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact .highlight {
  margin-bottom: 20px;
  font-size: var(--fz-md);
}

.contact h2 {
  font-size: clamp(40px, 5vw, 60px);
  margin-bottom: 20px;
}

.contact p {
  margin-bottom: 50px;
}

/* FOOTER */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: auto;
  min-height: 70px;
  padding: 15px;
  text-align: center;
}

footer .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

footer .social-links a {
  padding: 10px;
  font-size: 18px;
  color: var(--light-slate);
}

footer .social-links a:hover {
  color: var(--green);
  transform: translateY(-3px);
}

footer .footer-text {
  font-family: var(--font-mono);
  font-size: var(--fz-xxs);
  color: var(--light-slate);
}

footer .footer-text a {
  color: var(--light-slate);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .main-container {
    padding: 0 100px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 0 50px;
  }

  .about-content {
    display: block;
  }

  .about-pic {
    margin: 50px auto 0;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 0 25px;
  }

  .numbered-heading::after {
    width: 100px;
  }
}

.company-github {
  color: var(--light-slate);
  transition: color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.company-github:hover {
  color: var(--green);
}

.company-github svg {
  width: 20px;
  height: 20px;
}
