:root {
  /* Color styles */
  --color--secondary--secondary-1100: #0b0406;
  --color--secondary--secondary-1000: #16080d;
  --color--secondary--secondary-900: #2b101a;
  --color--secondary--secondary-800: #411826;
  --color--secondary--secondary-700: #562033;
  --color--secondary--secondary-600: #6c2840;
  --color--secondary--secondary-500: #86495f;
  --color--secondary--secondary-400: #a06b7d;
  --color--secondary--secondary-300: #b98c9c;
  --color--secondary--secondary-200: #d3aeba;
  --color--secondary--secondary-100: #edcfd9;

  --color--primary--primary-1100: #000000;
  --color--primary--primary-1000: #07070d;
  --color--primary--primary-900: #0f0f19;
  --color--primary--primary-800: #161626;
  --color--primary--primary-700: #1e1e32;
  --color--primary--primary-600: #25253f;
  --color--primary--primary-500: #494961;
  --color--primary--primary-400: #6d6d83;
  --color--primary--primary-300: #9292a6;
  --color--primary--primary-200: #b6b6c8;
  --color--primary--primary-100: #dadaea;

  --color--gray--gray-1200: #000000;
  --color--gray--gray-1100: #0a0a0a;
  --color--gray--gray-1000: #141414;
  --color--gray--gray-900: #1b1b1b;
  --color--gray--gray-800: #222222;
  --color--gray--gray-700: #4d4d4d;
  --color--gray--gray-600: #787878;
  --color--gray--gray-500: #a3a3a3;
  --color--gray--gray-400: #cdcdcd;
  --color--gray--gray-300: #e3e3e3;
  --color--gray--gray-200: #f8f8f8;
  --color--gray--gray-100: #ffffff;

  /* Text-size styles */
  --text---sub--paragraph: 0.71rem;
  --text---paragraph: 1rem;
  --text---header-4: 1.43rem;
  --text---header-3: 1.71rem;
  --text---header-2: 2rem;
  --text---header-1: 2.43rem;
  --text---body--header: 1rem;
}

/* Basic Resets & Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: sans-serif;
  background-color: var(--color--gray--gray-100);
  color: var(--color--gray--gray-1200);
  line-height: 1.6;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--color--primary--primary-1100);
  color: var(--color--gray--gray-100);
}
header .logo {
  font-size: var(--text---header-4);
  font-weight: bold;
}
header nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: var(--color--secondary--secondary-600);
  border-radius: 4px;
  transition: background-color 0.3s;
}
/* Header adjustments for the new look */
header {
  background: transparent;
  padding: 2rem 4rem;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
}
header .logo {
  /* Removed bold styling for image-based logo */
  display: flex;
  align-items: center;
}
header .logo img {
  height: 60px; /* Adjust as needed */
  width: auto;
  object-fit: contain;
}
/* Links color dynamic based on background */
/* By default (mobile or fallback) use dark color */
header nav a {
  color: var(--color--primary--primary-800);
  background: transparent;
  font-weight: 500;
}

/* On desktop, the nav is over the image blob. Make it white */
@media (min-width: 901px) {
  header.light-nav nav a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Ensure readability */
  }
  header.light-nav nav a:hover {
    color: var(
      --color--secondary--secondary-100
    ); /* Lighter hover over dark image */
  }
}

/* NEW HERO DESIGN */
.hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75vh; /* Full viewport height like the design */
  width: 100%;
  margin: 0;
  padding: 0 4rem;
  overflow: hidden;
  background-color: var(--color--gray--gray-100);
}

@media (min-width: 1600px) {
  .hero-container {
    min-height: 100vh;
  }
}

/* Blob container for the image */
.hero-image-blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%; /* Większa szerokość, żeby było widać więcej zdjęcia */
  height: 100%;
  z-index: 1;
  display: flex;
  overflow: hidden;

  /* Apply the mask to the container */
  /* Prostsza fala: jedna płynna krzywa C (cubic bezier) */
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 800' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 300 0 L 120 0 C -20 250 180 500 80 800 L 300 800 Z' fill='black'/%3E%3C/svg%3E");
  mask-size: cover;
  mask-repeat: no-repeat;

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 800' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 300 0 L 120 0 C -20 250 180 500 80 800 L 300 800 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
}

.hero-image-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Cleanup old classes */
.hero-bg-shape,
.hero-image-wrapper {
  display: none;
}

/* Remove old definitions of hero-bg-shape that clutter the file */
/* Old shapes removed for clarity */

/* Left side content */
.hero-content {
  flex: 1;
  max-width: 50%;
  z-index: 2;
  padding-right: 2rem;
  padding-top: 4rem; /* space for header */
}

.role-label {
  display: block;
  font-weight: bold;
  color: var(--color--secondary--secondary-600); /* Accent color */
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--text---sub--paragraph);
}

.hero-content h1 {
  font-family: serif; /* Using serif to match the design vibe */
  font-size: 4rem; /* Large Headline */
  line-height: 1.1;
  color: var(--color--primary--primary-1000);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--color--gray--gray-600);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.6;
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(
    --color--sectionary--secondary-500,
    #86495f
  ); /* Fallback or var */
  background-color: var(--color--secondary--secondary-500);
  color: #fff;
  border: 2px solid var(--color--secondary--secondary-500);
}
.btn-primary:hover {
  background-color: var(--color--secondary--secondary-600);
  border-color: var(--color--secondary--secondary-600);
}

.btn-outline {
  background-color: transparent;
  color: var(--color--primary--primary-1000);
  border: 2px solid var(--color--primary--primary-1000);
}
.btn-outline:hover {
  background-color: var(--color--primary--primary-1000);
  color: #fff;
}

/* Right side image */
.hero-image-wrapper {
  position: relative;
  z-index: 2;
  width: 45%;
  height: 80vh;
  display: flex;
  align-items: flex-end; /* Align bottom like design usually */
  justify-content: center;
}

.person-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Drop shadow to make it pop off the shape */
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    min-height: auto;
    /* Center content vertically if screen is tall enough, else just top padding */
    justify-content: center;
  }

  /* Move image to top */
  .hero-image-blob {
    position: relative;
    width: 250px;
    height: 250px;
    order: -1; /* visually first */
    margin-bottom: 2rem;

    /* Reset mask */
    mask-image: none;
    -webkit-mask-image: none;

    /* Make it round */
    border-radius: 50%;
    overflow: hidden;

    /* Centering */
    margin-left: auto;
    margin-right: auto;
    right: auto;
    top: auto;

    /* Add a subtle border or shadow to make it pop */
    border: 4px solid var(--color--secondary--secondary-300);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    padding-right: 0;
    padding-top: 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    margin: 0 auto 2rem;
  }

  .cta-buttons {
    justify-content: center;
  }
}

/* Projects Section */
.projects-section {
  padding: 5rem 2rem;
  background-color: var(--color--gray--gray-100);
}

.projects-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-section h2 {
  font-family: serif;
  font-size: var(--text---header-2);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color--primary--primary-1000);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem 2rem;
}

.project-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: none;
  box-shadow: none;
}

.card-image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: var(--color--gray--gray-300);
  margin-bottom: 1rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.05); /* Only scale image */
}

.card-content {
  padding: 0;
  text-align: left;
}

.card-content h3 {
  font-size: var(--text---header-4);
  margin-bottom: 0.25rem;
  color: var(--color--primary--primary-1000);
  font-weight: bold;
}

.card-content p {
  font-size: var(--text---paragraph);
  color: var(--color--gray--gray-600);
}

/* Contact Page Styles */
main.contact {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
main.contact h1 {
  font-size: var(--text---header-2);
  margin-bottom: 2rem;
}
.contact-info {
  margin-top: 2rem;
  font-size: var(--text---header-4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.contact-info p a {
  color: var(--color--secondary--secondary-600);
  text-decoration: none;
}
.contact-info p a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 3rem;
}
.social-links a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  background-color: var(--color--primary--primary-800);
  color: var(--color--gray--gray-100);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.social-links a:hover {
  background-color: var(--color--primary--primary-700);
}
