:root {
  --teal: #148f6c;
  --teal-2: #0f6b57;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #111;
  --muted: #4b515c;
  --primary: #148f6c;
  --radius: 14px;
  --max-width: 1200px;
  --gap: 28px;
  --ease: cubic-bezier(.2,.9,.2,1);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

html.dark {
  --bg: #0f0f10;
  --surface: #1a1b1d;
  --ink: #f5f5f5;
  --muted: #9ca3af;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  margin-top: 15px;
}

header {
  position: sticky;
  top: 25px; 
  z-index: 1000;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); 
  border: 2px solid rgba(20, 143, 108, 0.1);
  max-width: calc(var(--max-width) - 40px);
  margin: 20px auto; 
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px; 
  transition: all 0.3s var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.monogram {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
}

.btn-primary {
  background: linear-gradient(90deg,var(--teal),var(--teal-2));
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20,143,108,0.25);
}

nav.primary {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav.primary a {
  font-weight: 500;
  color: var(--muted);
  padding: 5px 7px;
  border-radius: 10px;
  transition: all 0.2s var(--ease);
}

nav.primary a:hover {
  color: var(--teal);
  background: rgba(20,143,108,0.08);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.06);
  background: white;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px; 
}

.hero-left h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.15;
  font-weight: 700;
}

.hero-left .lead {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 18px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art {
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(180deg, rgba(20,143,108,0.05), rgba(59,130,246,0.04)); 
  display: grid;
  place-items: center;
  box-shadow: 0 16px 36px rgba(0,0,0,0.05);
  width: 100%;
  height: 340px; 
  overflow: hidden;
  position: relative;
}

.hero-art .shape svg {
  width: 120%;
  height: auto;
  transform-origin: center;
  transform: scale(1.05); 
  transition: transform 0.4s var(--ease);
}

.hero-art:hover .shape svg {
  transform: scale(1.1); 
}


.hero-art img,
.hero-art .shape,
.hero-art .shape svg {
  display: block;
  width: 85%;          
  max-width: none;      
  height: auto;
  transform-origin: center; 
  transform: translateX(5%) scale(1.05); 
  transition: transform 0.4s var(--ease);
}

.hero-art:hover img,
.hero-art:hover .shape,
.hero-art:hover .shape svg {
  transform: translateX(5%) scale(1.12);
}


section {
  padding: 80px 0;
}

h2.section-title {
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 40px;
  font-weight: 600;
}

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

.service {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  margin-bottom: 40px;
  cursor: pointer;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.06);
}

.service h3 {
  margin: 0 0 12px;
  font-weight: 600;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: -30px;
}

@media (max-width: 700px) {
  .portfolio {
    grid-template-columns: 1fr;
  }
}

.work {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: transform 0.2s var(--ease);
  cursor: pointer;
}

.work:hover {
  transform: translateY(-4px);
}

.thumb {
  height: 260px;
  width: 100%;
  overflow: hidden;       
  border-bottom: none;
  background: #eee;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
  position: relative;
}


.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;     
  display: block;
}


.meta {
  padding: 20px;
}

.meta h4 {
  margin: 0 0 8px;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

input, textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}

textarea {
  min-height: 100px;
}

button[type=submit] {
  padding: 14px 18px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(90deg,var(--teal),var(--teal-2));
  color: white;
  font-weight: 600;
  cursor: pointer;
}

footer {
  padding: 48px 0;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: var(--surface);
  margin-top: 80px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  nav.primary {
    display: none;
  }

  .burger {
    display: flex;
  }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .wrap {
    padding: 0 20px;
  }

  section {
    padding: 60px 0;
  }
}

#themeToggle {
  background: var(--surface);
  border: 1px solid rgb(0 0 0 / 0%);
  border-radius: 10px;
  font-size: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--surface);
  color: var(--ink);
  transition: all 0.25s var(--ease);
}

html.dark .btn-secondary {
  border-color: rgba(255,255,255,0.12);
}

html {
  scroll-behavior: smooth;
}

.right-group {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;   
}

@media (max-width: 980px) {
  .right-group {
    display: none;     
  }
}

#services {
  padding-bottom: 50px; 
}

#portfolio {
  padding-top: 50px; 
  padding-bottom: 50px;
}

#about {
  padding-bottom: 80px;
}

#contact {
  padding-top: 40px;
  padding-bottom: 10px;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1.2rem; 
  margin-top: 1rem;
}

#contactForm label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
}

#contactForm input,
#contactForm textarea {
  margin-top: 0.4rem; 
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  background-color: #fafafa;
  transition: border 0.2s, box-shadow 0.2s;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: #148f6c;
  box-shadow: 0 0 4px rgba(20, 143, 108, 0.2);
  outline: none;
}

#contactForm button {
  align-self: flex-start;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  border: none;
  background-color: #148f6c;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

#contactForm button:hover {
  background-color: #0f6b57;
  transform: translateY(-1px);
}


.services-arrow {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: -10px auto 56px; 
  height: 56px;
  pointer-events: none;
  z-index: 1;
}
.arrow-line {
  position: absolute;
  top: 50%;
  left: 2%;
  right: 4%;
  height: 4px;
  background: linear-gradient(to right, var(--teal), var(--teal-2));
  border-radius: 4px;
}


.arrow-points {
  position: absolute;
  top: 50%; 
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  transform: translateY(-45%); 
  pointer-events: none; 
}

.arrow-points span {
  width: 20px;
  height: 20px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2s infinite ease-in-out;
  position: relative;
  z-index: 2; 
}

.arrow-points span:nth-child(2) { animation-delay: 0.3s; }
.arrow-points span:nth-child(3) { animation-delay: 0.6s; }
.arrow-points span:nth-child(4) { animation-delay: 0.9s; }

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

.services-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px; 
  margin-bottom: 60px; 
  gap: 1rem;
}

#services .section-title {
  margin-bottom: 80px; 
}

#portfolio .section-title {
  margin-top: 60px; 
  margin-bottom: 80px; 
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#about h3 {
  background: linear-gradient(270deg, #0ea5e9, #22d3ee, #34d399, #22d3ee, #0ea5e9);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

.about aside.card {
  margin-bottom: -40px; 
}

.services-arrow::after,
.services-arrow::before {
  display: none !important;
}

.euro-img {
  content: url('euro.png'); 
}

html.dark .euro-img {
  content: url('euro-dark.png'); 
}

.footer-more {
  padding: 8px 14px;
  background: var(--teal);
  color: white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
  transform: translateY(-2px);
}

.footer-more:hover {
  background: var(--teal-2);
  transform: translateY(-3px);
}

footer .wrap > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer .wrap > div > div:last-child {
  display: flex;
  gap: 25px; 
  align-items: center;
}

.btn-top {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--surface);
  color: var(--teal);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
  border-radius: 10px; 
}

.btn-top:hover {
  border: 1px solid var(--teal);
  transform: translateY(-2px); 
}


.btn-legal {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 170px; 
  height: 38px;
  border: none;
  background: var(--surface);
  color: var(--teal);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
  transform: translateY(-2px);
}

.btn-legal:hover {
  transform: translateY(-3px);
  border: 1px solid var(--teal);
  border-radius: 10px;
}

.mobile-nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 20px;
  left: 20px;
  background: var(--surface);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  z-index: 1200;
}

.mobile-nav a {
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
}
.mobile-nav a:hover {
  background: rgba(20,143,108,0.06);
  color: var(--teal);
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (max-width: 980px) {
  .burger {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--surface);
    cursor: pointer;
    z-index: 1300;
    transition: background 180ms;
    position: relative;
  }
}

.burger svg path {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 260ms ease, opacity 200ms ease;
}

.burger.open .b1 {
  transform: rotate(45deg);
}

.burger.open .b2 {
  opacity: 0;
}

.burger.open .b3 {
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .hero-art,
  .services-arrow {
    display: none;
  }
}

