:root{
  --site-width: 1000px;
  --bg: #fff;
  --card: #fff;
  --text: #222;
  --muted: #6b6b6b;
  --accent: #ffb6d5;
  --accent-2: #ff6fb5;
  --glow: 0 8px 30px rgba(255,111,181,0.12);
  --glass: rgba(255,255,255,0.6);
  --radius: 16px;
  --transition: 320ms cubic-bezier(.2,.9,.3,1);
}

body.light{
  color: var(--text);
}

body {
  overflow-x: hidden;
}

body, .site-header, .card, .portfolio-bg, .hero-wave, .portfolio-wave {
  transition: 
    background 0.5s ease, 
    color 0.5s ease, 
    box-shadow 0.5s ease;
}

.btn.toggle i {
  transition: background 0.5s ease;
} 

body.dark {
  --bg: #0b0b10;
  --card: #0b0b10;
  --text: #e8e8ee;
  --muted: #bdbdd0;
  --accent: #9b59b6;  
  --accent-2: #8e44ad; 
  --glass: rgba(20,20,26,0.5);
  background: #0b0b10;
}

*{box-sizing:border-box}
html,body{height:100%; scroll-behavior:smooth;}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  transition: background var(--transition), color var(--transition);
  color:var(--text);
}
.site-header{
  position:relative;
  padding:40px 20px 0;
  overflow:visible;
  background: #FFDFE9;
  box-shadow: var(--glow);
}

.header-inner{
  max-width: var(--site-width);
  margin:0 auto;
  display:flex;
  gap:24px;
  align-items:center;
  justify-content:space-between;
  padding:12px;
}

.brand{
  flex:1 1 520px;
  text-align:left;
  padding-right:12px;
}
.brand h1{
  font-size:32px;
  margin:0 0 6px;
  letter-spacing: -0.5px;
  text-shadow: 0 6px 22px rgba(255,111,181,0.12);
}
.tag{
  margin:0 0 18px;
  color:var(--muted);
}

.actions{
  display:flex;
  gap:12px;
  align-items:center;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  text-decoration:none;
  font-weight:600;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  color:white;
}
.btn.big{
  padding:16px 26px;
  font-size:18px;
  border-radius:14px;
  box-shadow: 0 8px 30px rgba(255,111,181,0.2);
}
.btn.small{ padding:8px 12px; border-radius:10px; font-size:14px;}
.btn.order{ box-shadow: 0 6px 30px rgba(255,111,181,0.18); }
.btn.toggle {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.toggle i {
  font-size: 24px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-image{
  flex:0 0 420px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.hero-image img{
  width:100%;
  max-width:250px;
  border-radius:18px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-12px);}
}

.hero-wave {
  color: #FFDFE9;
  z-index: 2;
}

.hero-wave svg{
  left: 0;
  display:block;
  width:110%;
  height:120px;
  transform: rotate(180deg);
}
.hero-wave path{
  fill: currentColor;
  opacity: 0.98;
}

.portfolio-wave {
  position: relative;
  margin-top: -60px;
  z-index: 1;
}

.portfolio-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

.portfolio-wave path {
  fill: #fff7fb;
  opacity: 0.98;
}

main{ max-width:var(--site-width); margin: -20px auto 60px; padding:0 20px; }

.prices{
  margin-top:20px;
  padding:32px;
  background:transparent;
  text-align:center;
}
.prices h2{
  margin:6px 0 18px;
  background: linear-gradient(90deg, #ff9ccf, #ff6fb5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align:center;
}
.price-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:18px;
}
.card {
  margin-top: 50px;
  position: relative;
  border-radius: 14px;
  padding: 24px 18px;
  background-color: var(--card);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--glow);
  transition: transform 320ms var(--transition), box-shadow 320ms var(--transition);
  z-index: 0;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(90deg, #ff9ccf, #ff6fb5);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.card:hover{ transform: translateY(-8px); box-shadow: 0 30px 70px rgba(255,111,181,0.12); }
.card h3 {
  margin-top: 10px;
  font-size: 30px;
  margin-bottom: 10px;
  text-align: center;
  background: linear-gradient(90deg, #ff9ccf, #ff6fb5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price{
  font-size:22px;
  font-weight:700;
  margin:6px 0 10px;
  color:var(--accent-2);
  text-align:center;
}
.card ul{
  list-style:none;
  padding-left:0;
  margin:8px 0 14px;
  color:var(--muted);
}

.portfolio-section {
  position: relative;
  width: 100%;
  padding: 80px 0;
  margin-top: -80px;
  height: 890px;
  overflow: visible;
}

main {
  max-width: var(--site-width);
  margin: -20px auto 60px;
  padding: 0 20px;
}

.portfolio-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-color: #fff7fb;
  z-index: -1;
}

.portfolio-content {
  max-width: var(--site-width); 
  margin: 0 auto;
  padding: 0 20px;
  position: relative;  
  z-index: 1;
}

.portfolio-grid {
  min-height: 320px;
  position: relative;
}

.gallery {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 6px;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 420ms var(--transition), transform 420ms var(--transition);
}

.gallery[data-cat="renders"] img {
  max-height: 300px;
  object-fit: cover;
  object-position: top;
  width: 100%;
  display: block;
  border-radius: 12px;
  cursor: zoom-in;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  transition: transform 320ms var(--transition);
}

.gallery.active[data-cat="ads"] {
  grid-template-columns: repeat(2, auto);
  justify-content: center;
}

.img-modal img {
  max-height: 92%;
  max-width: 92%;
  object-fit: contain;
}
.gallery.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  
}

.gallery.active img:nth-child(3):nth-last-child(1) {
  grid-column: 1 / span 2;
  justify-self: center;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  cursor: zoom-in;
  justify-self: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  transition: transform 320ms var(--transition);
}

.gallery img:hover {
  transform: translateY(-6px) scale(1.02);
}

.portfolio-controls {
  display:flex;
  gap:10px;
  margin-bottom:16px;
  justify-content: center;
  z-index: 2;
}

.tab{
  border:0;
  background:transparent;
  padding:8px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  color:var(--muted);
  transition: background 220ms ease, color 220ms ease;
}

.tab.active{
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#fff;
  box-shadow: 0 20px 50px rgba(255,111,181,0.12);
}

.img-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px) saturate(120%);
  background: rgba(10,10,12,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  z-index: 1000;
}

.img-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 92%;
  max-height: 92%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  color: white;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.site-footer{
  padding:20px;
  text-align:center;
  color:var(--muted);
}

@media (max-width:980px){
  .header-inner{ flex-direction:column-reverse; align-items:flex-start; gap:16px; }
  .hero-image{ width:100%; display:block; }
  .hero-image img{ max-width:420px; margin-left:auto; }
  .price-grid{ grid-template-columns: repeat(1,1fr); }
  .gallery{ position:static; transform:none; opacity:1; pointer-events:auto; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
  .portfolio-grid{ min-height:0; }
}

a.btn:active, button:active{ transform: translateY(1px); }

.brand h1 {
  font-size: 64px;
  text-align: left;
  background: linear-gradient(90deg, #ff9ccf, #ff6fb5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand .tag {
  text-align: left;
  display: block;
  font-weight: bold; 
  background: linear-gradient(90deg, #ff9ccf, #ff6fb5);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
}

.text-small {
  align-items:center;
  display: block;
  font-weight: bold; 
  background: linear-gradient(90deg, #ff9ccf, #ff6fb5);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
}

.actions {
  justify-content: flex-start;
  margin-left: 6px;
}

.btn.big {
  font-size: 24px;
  padding: 20px 40px;
  border-radius: 16px;
}

h2, h3 {
  text-align: center;
  background: linear-gradient(90deg, #ff9ccf, #ff6fb5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 38px; 
  margin-bottom: 24px; 
}

body.dark .site-header {
  background: #0b0b10;
  box-shadow: 0 8px 30px rgba(255,47,166,0.12);
}

body.dark .brand h1,
body.dark .brand .tag,
body.dark .text-small,
body.dark h2,
body.dark h3,
body.dark .card h3,
body.dark .prices h2,
body.dark .tab.active {
  background: linear-gradient(90deg, #9b59b6, #8e44ad);
  -webkit-background-clip: text;
  text-shadow: 0 6px 22px rgba(155, 89, 182, 0.12);
}

body.dark .tag,
body.dark .card ul,
body.dark .muted-text,
body.dark .portfolio-controls .tab {
  color: var(--muted);
}

body.dark .portfolio-bg {
  background-color: #111018;
}

body.dark .portfolio-wave path {
  fill: #111018;
}

body.dark .hero-wave {
  color: #0b0b10;
}

body.dark .btn {
}

body.dark .img-modal {
  background: rgba(10,10,12,0.45);
}

body.dark .card {
  background-color: var(--card);
  box-shadow: 0 8px 30px rgba(255,47,166,0.12);
}

body.dark .hero-image img {
  content: url('assets/HeaderImg.png');
}

body.dark .card::before {
  background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

body.dark .tab.active {
  background: linear-gradient(90deg, #9b59b6, #8e44ad);
  color: #fff; 
  box-shadow: 0 20px 50px rgba(155, 89, 182, 0.12);
}

.heart-overlay {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}


.heart-overlay .heart {
  position: absolute;
  width: 36px;
  height: 36px;
  opacity: 0.5;
  animation: drop-heart 18s linear forwards;
}

.heart-overlay .heart svg {
  width: 100%;
  height: 100%;
  stroke: #FFDFE9;
  fill: none;
  stroke-width: 2;
}

body.dark .heart-overlay .heart svg {
  stroke: #0b0b10;
}

@keyframes drop-heart {
  0% {
    transform: translateY(0) rotate(var(--angle));
    opacity: 0.5;
  }
  100% {
    transform: translateY(150vh) rotate(var(--angle));
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    margin-bottom: 0;
  }

  body.modal-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}


  .hero-image {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .hero-image img {
    max-width: 160px;
    margin: 0 auto;
    display: block;
  }

  .brand {
    margin-top: -12px;
    padding: 0;
  }

  .brand h1 {
    font-size: 30px;
    margin: 4px 0;
  }

  .brand .tag {
    font-size: 13px;
    margin: 0 0 10px;
  }

  .actions {
    margin-top: 0;
    margin-bottom: 0;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
}

@media (max-width: 600px) {

  html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    margin-bottom: 0;
  }

    .img-modal {
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    width: 90vw !important;
    height: auto !important;
    max-height: 85vh;
  }

  .modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
  }

  .site-header{
  position:relative;
  overflow:visible;
  height: 80%;
  background: #FFDFE9;
  box-shadow: var(--glow);
}
.gallery {
  display: none;
}


.gallery.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 12px;
}

  .hero-image {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .hero-image img {
    max-width: 200px;
    margin: 0 auto;
    display: block;
  }

  .brand {
    margin-top: -12px;
    padding: 0;
  }

  .brand h1 {
    font-size: 30px;
    margin: 4px 0;
  }

  .brand .tag {
    font-size: 13px;
    margin: 0 0 10px;
  }

  .actions {
    margin-top: 0;
    margin-bottom: 0;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn.big {
    font-size: 16px;
    padding: 18px 26px;
    margin-bottom: 0;
    line-height: 1;
  }

  .btn.toggle i {
    font-size: 20px;
  }
} 
  .btn.toggle i {
    font-size: 20px;
  }

  .hero-wave {
    margin-top: -5px;
  }

  .heart-overlay .heart {
  position: absolute;
  width: 36px;
  height: 36px;
  opacity: 0.5;
  animation: drop-heart 18s linear forwards;
}

.portfolio-section {
  height: 800px;

}


@keyframes drop-heart {
  0% {
    transform: translateY(0) rotate(var(--angle));
    opacity: 0.5;
  }
  100% {
    transform: translateY(100vh) rotate(var(--angle));
    opacity: 0;
  }
}
}


