/* ================ */
/* VARIABLES & BASE */
/* ================ */
:root {
  --forest-green: #1d4e1d;
  --pine-green: #2e6d2e;
  --leaf-green: #4caf50;
  --tech-blue: #00c6ff;
  --bark-brown: #4a3a2a;
  --soil-brown: #6b5a45;
  --light-bg: #f8f9fa;
  --dark-text: #2c3e50;
  --light-text: #ecf0f1;
  --tech-glow: rgba(0, 198, 255, 0.4);
}

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

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.7;
  overflow-x: hidden;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f8f9fa"/><path d="M0,50 L100,50 M50,0 L50,100" stroke="%23e9ecef" stroke-width="0.5"/></svg>');
}

/* ============= */
/* ANIMATIONS    */
/* ============= */
@keyframes leafFlow {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 1500px 1500px, -1500px -1500px; }
}

@keyframes techPulse {
  0% { transform: scale(1); text-shadow: 0 0 8px var(--tech-glow); }
  100% { transform: scale(1.05); text-shadow: 0 0 15px var(--tech-blue); }
}

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

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

@keyframes pulse-blue {
  0% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 102, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}

/* ============= */
/* BACKGROUNDS   */
/* ============= */
.background-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.1) 0px, transparent 2px),
    radial-gradient(circle at 90% 80%, rgba(76, 175, 80, 0.1) 0px, transparent 2px);
  background-size: 150px 150px;
  animation: leafFlow 80s linear infinite;
}

/* ============= */
/* NAVIGATION    */
/* ============= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: rgba(29, 78, 29, 0.95);
  color: var(--light-text);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 0.8rem 5%;
  background: rgba(29, 78, 29, 0.98);
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  gap: 12px;
}

.logo-icon {
  width: 55px;
  height: 55px;
  filter: drop-shadow(0 0 6px var(--tech-glow));
  animation: techPulse 3s infinite alternate;
}

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

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: 0.8px;
}

.nav-links a:hover {
  color: var(--tech-blue);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tech-blue);
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 0 8px var(--tech-glow);
}

.nav-links a:hover::after {
  width: 100%;
}

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

/* ============= */
/* LANGUAGE SWITCHER */
/* ============= */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 20px;
  gap: 10px;
  cursor: pointer;
}

.language-switcher button {
  display: none;
}

.language-switcher button.active {
  display: inline-flex;
}

.language-switcher:hover button {
  display: inline-flex;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  color: initial;
}

.lang-btn::before {
  content: attr(data-emoji);
  font-size: inherit;
  line-height: 1;
  display: block;
  text-align: center;
  color: inherit;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--dark-text, #131313);
  border-color: var(--dark-text, #000000);
  transform: scale(1.2);
  color: rgb(0, 0, 0);
}

/* Keep all language options visible in the navigation switcher. */
.nav-links .language-switcher button {
  display: inline-flex !important;
  margin: 0 5px;
}

/* ============= */
/* HAMBURGER     */
/* ============= */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
}

.hamburger .line {
  width: 100%;
  height: 3px;
  background: var(--light-text);
  transition: all 0.4s;
  border-radius: 2px;
}

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

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ============= */
/* HERO SECTION  */
/* ============= */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000px;
}

.hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  color: var(--light-text);
  text-shadow: 0 0 5px rgba(0,0,0,0.6);
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 6px rgb(55, 160, 67);
  letter-spacing: 1px;
  font-weight: 700;
  animation: fadeInDown 1s ease-out;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 4px rgba(45, 133, 99, 0.3);
  animation: fadeInUp 1s ease-out 0.2s forwards;
}

.cta-button {
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--tech-blue) 0%, #00ff517a 100%);
  color: var(--light-text);
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.9);
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.4s forwards;
  text-decoration: none;
}

.cta-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
}

.cta-button:hover:before {
  left: 100%;
}

/* ============= */
/* SECTIONS      */
/* ============= */
.section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234caf50" opacity="0.03"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>');
  background-size: 100px;
  opacity: 0.1;
  z-index: -1;
}

.section h2 {
  text-align: center;
  margin-bottom: 70px;
  font-size: 2.8rem;
  color: var(--forest-green);
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section h2:after {
  content: '';
  display: block;
  width: 100px;
  height: 5px;
  background: linear-gradient(to right, var(--tech-blue), var(--leaf-green));
  margin: 20px auto 0;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 198, 255, 0.3);
}

.dark-section {
  background: linear-gradient(135deg, var(--pine-green) 0%, var(--forest-green) 100%);
  color: var(--light-text);
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.dark-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/45-degree-fabric-light.png');
  opacity: 0.05;
  z-index: 0;
}

.dark-section h2 {
  color: var(--light-text);
}

.dark-section h2:after {
  background: linear-gradient(to right, var(--tech-blue), #4caf50);
}

/* ============= */
/* ABOUT SECTION */
/* ============= */
.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-text {
  flex: 1;
  font-size: 1.15rem;
  line-height: 1.8;
  padding-right: 20px;
}

.about-text p {
  margin-bottom: 25px;
  position: relative;
  padding-left: 20px;
}

.about-text p:before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  height: 8px;
  width: 8px;
  background: var(--leaf-green);
  border-radius: 50%;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 320px; /* Limit image width for balanced layout on large screens. */
  display: block;
  margin: 0 auto;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  border: 5px solid white;
}

.about-image:hover img {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(76, 175, 80, 0.3);
}

/* ============= */
/* CV SECTION    */
/* ============= */
.cv-container, #cv .cv-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.cv-brief, #cv .cv-brief {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 20px;
  margin: 0 auto 30px;
  width: auto;
  max-width: 900px;
  text-align: center;
  grid-column: 1 / -1;
}

.cv-brief h3, #cv .cv-brief h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--tech-blue);
}

.cv-content, #cv .cv-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  grid-column: 1 / -1;
}

.cv-column, #cv .cv-column {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cv-column:hover, #cv .cv-column:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.cv-header {
  text-align: center;
  margin-bottom: 40px;
}

.cv-header h3 {
  font-size: 2.2rem;
  color: var(--light-text);
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.cv-header p {
  font-size: 1.25rem;
  color: var(--tech-blue);
  font-weight: 300;
}

.cv-section h4 {
  color: var(--tech-blue);
  margin: 25px 0 15px;
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 198, 255, 0.3);
  position: relative;
}

.cv-section h4:after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--tech-blue);
}

h4 {
  color: var(--tech-blue);
  margin: 25px 0 15px;
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 198, 255, 0.3);
}

.experience-item, .education-item {
  margin-bottom: 25px;
  padding-left: 25px;
  position: relative;
}

.experience-item:before, .education-item:before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tech-blue);
  box-shadow: 0 0 10px var(--tech-glow);
}

.experience-date, .education-date {
  font-weight: 600;
  color: var(--tech-blue);
  margin-bottom: 5px;
  display: block;
}

.experience-company, .education-school {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 8px;
  display: block;
}

.experience-description, .education-description {
  margin-top: 10px;
}

/* SKILLS GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-category {
  background: rgba(0, 198, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--tech-blue);
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  background: rgba(0, 198, 255, 0.15);
}

.skill-category h5 {
  margin-bottom: 15px;
  color: var(--tech-blue);
  font-size: 1.2rem;
}

.skill-category ul {
  list-style-type: none;
}

.skill-category li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.skill-category li:before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--tech-blue);
}

/* CV ACTION BUTTONS */
.cv-actions, #cv .cv-actions {
  display: inline-flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cv-btn, #cv .cv-btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--tech-blue) 0%, #0072ff 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cv-btn:hover, #cv .cv-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 114, 255, 0.3);
}

.cv-btn:active, #cv .cv-btn:active {
  transform: translateY(1px);
}

.cv-download-btn, #cv .cv-download-btn {
  background: linear-gradient(135deg, var(--tech-blue) 0%, #0066cc 100%);
}

.cv-download-btn:hover, #cv .cv-download-btn:hover {
  animation: pulse-blue 1.5s infinite;
}

/* ============= */
/* PROJECTS      */
/* ============= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 40px rgba(76, 175, 80, 0.2);
}

.project-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s ease;
}

.project-img-1 {
  background-image: url('kamery.png');
}

.project-img-2 {
  background-image: url('drony.jpg');
}

.project-img-3 {
  background-image: url('proximity.png');
}

.project-img-4 {
  background-image: url('etl.png');
}

.project-img-5 {
  background-image: url('mapy.jpg');
}

.project-img-6 {
  background-image: url('air.png');
}

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

.project-tech {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  z-index: 2;
}

.project-tech span {
  display: inline-flex;
  background: rgba(29, 78, 29, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.project-card:hover .project-tech span {
  background: var(--tech-blue);
  transform: translateY(-5px);
}

.project-info {
  padding: 25px;
  position: relative;
  z-index: 2;
}

.project-info h3 {
  margin-bottom: 12px;
  color: var(--forest-green);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
  color: var(--tech-blue);
}

.project-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--tech-blue);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 3px;
}

.project-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tech-blue);
  transition: width 0.4s ease;
}

.project-link:hover:after {
  width: 100%;
}

/* ============= */
/* CONTACT       */
/* ============= */
.contact-container {
  display: grid;
  grid-template-columns: minmax(0, 840px);
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 198, 255, 0.4);
}

.contact-card i {
  font-size: 2.8rem;
  color: var(--tech-blue);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.contact-card p {
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* ============= */
/* FOOTER        */
/* ============= */
footer {
  background: var(--forest-green);
  color: var(--light-text);
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
  overflow: hidden;
}

footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--tech-blue), var(--leaf-green));
  z-index: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  font-size: 1.5rem;
  border-radius: 50%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.footer-links a:hover {
  background: var(--tech-blue);
  transform: translateY(-8px) scale(1.1);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

footer p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-top: 20px;
}

/* ============================ */
/* CARTOGRAPHIC PROJECTS PAGE  */
/* ============================ */
.carto-page {
  min-height: 100vh;
}

.carto-nav-links {
  gap: 0;
}

.carto-main {
  padding-top: 150px;
  max-width: 100%;
  padding-left: 2%;
  padding-right: 2%;
}

.carto-header {
  max-width: 1200px;
  margin: 0 auto 50px;
  text-align: center;
}

.carto-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  color: var(--forest-green);
  margin-bottom: 16px;
}

.carto-header p {
  font-size: 1.15rem;
  color: var(--dark-text);
}

.carto-projects-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.carto-project {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  max-width: 1320px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.carto-project:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 0 24px rgba(76, 175, 80, 0.16);
}

.carto-project-image {
  width: 100%;
  background: linear-gradient(140deg, rgba(29, 78, 29, 0.08), rgba(0, 198, 255, 0.08));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.carto-project-image img {
  display: block;
  width: 100%;
  height: auto;
}

.carto-project-description {
  padding: 34px;
}

.carto-project-description h2 {
  font-size: 2.1rem;
  color: var(--forest-green);
  margin-bottom: 12px;
  line-height: 1.25;
}

.carto-project-description p {
  font-size: 1.16rem;
  line-height: 1.8;
  max-width: 100%;
}

/* ======================================= */
/* AIR QUALITY DASHBOARD PROJECT SUBPAGE   */
/* ======================================= */
.aq-page {
  min-height: 100vh;
}

.aq-main {
  padding-top: 150px;
  max-width: 1640px;
  padding-left: 2%;
  padding-right: 2%;
}

.aq-header {
  text-align: center;
  margin-bottom: 42px;
}

.aq-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  color: var(--forest-green);
  margin-bottom: 12px;
}

.aq-header p {
  font-size: 1.1rem;
}

.aq-panel {
  background: white;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 34px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.aq-panel h2 {
  margin-bottom: 8px;
  color: var(--forest-green);
  font-size: 1.7rem;
}

.aq-note {
  margin-bottom: 18px;
}

.aq-dashboard-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.aq-dashboard-wrap iframe {
  width: 100%;
  min-height: 760px;
  border: 0;
}

.aq-code-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.aq-code-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 247, 0.98) 100%);
  border: 1px solid rgba(29, 78, 29, 0.18);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.aq-code-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--tech-blue), var(--leaf-green));
}

.aq-code-card h3 {
  color: var(--forest-green);
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.aq-code-meta {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 29, 0.18);
  background: rgba(29, 78, 29, 0.06);
  color: #2b5e2b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.aq-code-area {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 16px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.62;
  tab-size: 2;
  color: #e6eef9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, #111827 0%, #0b1220 100%);
  background-size: 100% 1.62em, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  caret-color: transparent;
  overflow-x: auto;
}

.aq-code-area:focus {
  outline: none;
  border-color: rgba(0, 198, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.18), inset 0 0 0 1px rgba(0, 198, 255, 0.12);
}

.aq-code-area::selection {
  background: rgba(0, 198, 255, 0.25);
  color: #ffffff;
}

.aq-code-area::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

.aq-code-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

.aq-code-area::-webkit-scrollbar-thumb {
  background: rgba(0, 198, 255, 0.45);
  border-radius: 20px;
  border: 2px solid rgba(13, 25, 43, 0.9);
}

.aq-code-python::before {
  background: linear-gradient(90deg, #4caf50, #00c6ff);
}

.aq-code-arcade::before {
  background: linear-gradient(90deg, #fbc02d, #ef6c00);
}

.aq-code-html::before {
  background: linear-gradient(90deg, #8b5cf6, #00c6ff);
}

.aq-code-map::before {
  background: linear-gradient(90deg, #00c6ff, #2e6d2e);
}

/* ============= */
/* RESPONSYWNOŚĆ */
/* ============= */
@media (max-width: 1024px) {
  .cv-container, .contact-container, #cv .cv-container {
    grid-template-columns: 1fr;
  }

  .about-content {
    flex-direction: column;
  }

  .about-text {
    padding-right: 0;
  }

  #cv .cv-brief {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--pine-green);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    transition: left 0.5s ease;
    gap: 35px;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

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

  .hero p {
    font-size: 1.3rem;
  }

  .section {
    padding: 80px 5%;
  }

  .section h2 {
    font-size: 2.3rem;
    margin-bottom: 50px;
  }

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

  .language-switcher {
    margin-left: 20px;
    margin-top: 100px;
    width: auto;
    justify-content: center;
    display: flex;
  }

  .cv-header h3 {
    font-size: 1.8rem;
  }

  #cv .cv-content {
    grid-template-columns: 1fr;
  }

  .carto-main {
    padding-top: 120px;
  }

  .carto-header h1 {
    font-size: 2.2rem;
  }

  .carto-project-description {
    padding: 24px;
  }

  .carto-project-description h2 {
    font-size: 1.6rem;
  }

  .carto-project-description p {
    font-size: 1.05rem;
  }

  .aq-main {
    padding-top: 120px;
  }

  .aq-header h1 {
    font-size: 2.1rem;
  }

  .aq-panel {
    padding: 20px;
  }

  .aq-dashboard-wrap iframe {
    min-height: 520px;
    height: 520px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .cv-actions, #cv .cv-actions {
    flex-direction: column;
    align-items: center;
  }

  .cv-btn, #cv .cv-btn {
    width: 100%;
    text-align: center;
  }

  .lang-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}
