:root {
  --bg: #fff7f6;
  --panel: #fff;
  --text: #111;
  --muted: #555;
  --accent: #ffcc00;
  --accent-2: #f2ba00;
  --shadow: 0 6px 20px rgba(17, 17, 17, 0.08);
  --radius: 12px;
  --gap: 1.25rem;
  --max-width: 1700px;
  --transition: 240ms cubic-bezier(0.2, 0.9, 0.3, 1);
  --nav-gap: 1.25rem;
  --nav-right-space: 2.2rem;
}

.theme-dark {
  --bg: #0f0b08;
  --panel: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.04),
    rgba(255, 215, 0, 0.02)
  );
  --text: #efe7d6;
  --muted: #d9c7a8;
  --accent: #d4af37;
  --accent-2: #b78f19;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  transition: var(--transition), color var(--transition);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(6px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.35)
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.theme-dark .site-header {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
}
.header-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.theme-dark .site-footer {
  color: #0f0b08;

  background: linear-gradient(
    180deg,
    rgba(151, 151, 144, 0.603),
    rgba(248, 189, 62, 0.781)
  );
}

.brand img {
  height: 44px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}

.nav-list {
  display: flex;
  gap: calc(var(--nav-gap) + 0.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--text);
  text-decoration: none;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 6px;
  transition: width 260ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.nav-link:hover,
.nav-link:focus {
  color: var(--text);
}
.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}
.nav-link.is-current {
  color: #111;
  font-weight: 700;
}
.theme-dark .nav-link.is-current {
  color: var(--text);
}

.controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.theme-toggle {
  --size: 46px;
  width: var(--size);
  height: var(--size);
  border-radius: 18px;
  border: none;
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.9)
  );
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, 220ms ease;
}
.theme-toggle:active {
  transform: scale(0.98);
}
.theme-dark .theme-toggle {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.theme-toggle .socket {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12),
    inset 0 -2px 6px rgba(255, 255, 255, 0.2);
  transform: rotate(-20deg);
  opacity: 0.95;
}

.toggle-icon {
  width: 20px;
  height: 20px;
  display: block;
  color: #111;
  transition: opacity 240ms, transform 240ms;
}
.theme-dark .toggle-icon {
  color: var(--text);
}

body.theme-light .toggle-icon.sun {
  opacity: 1;
  transform: translateY(0) scale(1);
}
body.theme-light .toggle-icon.moon {
  opacity: 0;
  transform: translateY(-6px) scale(0.85);
}
body.theme-dark .toggle-icon.sun {
  opacity: 0;
  transform: translateY(6px) scale(0.85);
}
body.theme-dark .toggle-icon.moon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hamburger {
  display: none;
  border: none;
  background: transparent;
  padding: 6px;
  margin-right: 6px;
  cursor: pointer;
}
.hamburger-box {
  width: 28px;
  height: 18px;
  display: inline-block;
  position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 28px;
  height: 2px;
  background: var(--text);
  display: block;
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1), opacity 200ms;
}
.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger-inner::before {
  content: "";
  top: -8px;
}
.hamburger-inner::after {
  content: "";
  top: 8px;
}

.hamburger[aria-expanded="true"] .hamburger-inner {
  background: transparent;
}
.hamburger[aria-expanded="true"] .hamburger-inner::before {
  transform: translateY(8px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 980px) {
  .nav-list {
    position: fixed;
    top: 72px;
    right: 12px;
    width: 230px;
    max-width: 85vw;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: var(--panel);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
  .nav-list li:last-child {
    border-bottom: 0;
  }
  .nav-list a {
    display: block;
    padding: 0.85rem 1rem;
  }
  .hamburger {
    display: inline-flex;
    margin-left: 150px;
  }
  .nav-list.show {
    display: flex;
  }
  .site-footer {
    display: inline-flex;
  }
  .theme-toggle {
    margin-right: 150px;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-media {
    order: -1;
  }
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.overlay-card {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  padding: 18px;
  border-radius: 10px;
  width: calc(100% - 36px);
  backdrop-filter: blur(6px);
}
.hero-copy {
  padding-left: 32px;
}

@media (min-width: 1000px) {
  .hero-copy {
    padding-left: 3.5rem;
  }
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.6rem;
  background-color: #f8f1d6;
}
.theme-dark .services-list {
  background-color: #0f0b08;
}
.services-list li {
  background: var(--panel);
  padding: 0.6rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: grab;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.btn-primary {
  background: var(--accent);
  color: #111;
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.btn-outline {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}

.theme-dark .btn-outline {
  color: #0f0b08;
}

.project-details {
  padding: 2rem 0;
  background-color: #f8f1d6;
}
.theme-dark .project-details {
  background-color: #0f0b08;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}
@media (min-width: 800px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.project-card {
  border-radius: 12px;
  padding: 1rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  align-items: center;
  padding: 2rem 0;
}
.stats {
  display: flex;
  gap: 1rem;
  justify-content: space-around;
}
.stats div {
  text-align: center;
}

.portfolio-controls {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}
.portfolio-controls button {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.portfolio-controls button.active {
  background: var(--accent);
  color: #111;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  justify-items: center;
  align-items: start;
  padding-bottom: 1rem;
}
.portfolio-item {
  width: 100%;
  max-width: 980px;
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.portfolio-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 340ms ease;
}
.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(17, 17, 17, 0.12);
}
.portfolio-item:hover img {
  transform: scale(1.03);
}
.portfolio-meta {
  padding: 1rem;
}

.form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.form-row label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  color: var(--text);
}
.form-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.form-message {
  margin-top: 0.5rem;
  color: var(--muted);
}

.site-footer {
  border-top-left-radius: 78px;
  font-size: 13px;
  padding: 0.1px 0 30px;
  border-top: 3px solid rgba(0, 0, 0, 0.04);
  margin-top: 2rem;
  bottom: 0px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.986),
    rgba(5, 4, 1, 0.925)
  );
  font-size: 13px;
  line-height: 20px;
  color: #fff;
}

.footercol {
  flex-basis: 25%;
  padding: 10px;
}

.footercol h3 {
  width: fit-content;
  margin-bottom: 40px;
  position: relative;
}

.footerrow {
  width: 85%;
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  align-items: flex-start;
}

.footerimage {
  width: 60px;
  height: 60px;
  border-top-left-radius: 40px;
  margin-left: 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*footer icons*/
.socialsfooter .fa-brands {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  color: #2b2617;
  background-color: #eeedec;
  margin-right: 15px;
  cursor: pointer;
}

.socialsfooter .fa-solid {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  color: #2b2617;
  background-color: #eeedec;

  cursor: pointer;
}

.lastlastfooter {
  text-align: center;
}

.underline {
  width: 100%;
  height: 5px;
  background: #767676;
  border-radius: 3px;
  position: absolute;
  top: 25px;
  left: 0px;
  overflow: hidden;
}
.underline span {
  width: 15px;
  height: 100%;
  background: #fff;
  border-radius: 3px;
  position: absolute;
  top: 0px;
  left: 10px;
  animation: moving 2s linear infinite;
}
@keyframes moving {
  0% {
    left: -20px;
  }
  100% {
    left: 100%;
  }
}

hr {
  width: 90%;
}

@media (max-width: 600px) {
  .header-inner {
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .float-card {
    min-width: 100%;
    order: 2;
  }
  .portfolio-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  hr {
    display: none;
  }
  .lastlastfooter {
    display: none;
  }
}

.hint-float {
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.02));
  z-index: 0;
}
@media (min-width: 900px) {
  .wrap {
    position: relative;
    z-index: 2;
  }
  body::after {
    height: 260px;
    background: linear-gradient(
      180deg,
      rgba(255, 204, 0, 0.04),
      rgba(255, 204, 0, 0.06)
    );
  }
}

.visually-hidden {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.muted {
  color: var(--muted);
  text-decoration: none;
}

/* REVIEWS */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.review-card {
  background: var(--panel);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.review-card .review-name {
  font-weight: 700;
  font-size: 1rem;
}

.review-card .review-category {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.review-card .review-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* FORM SPINNER */
.form-spinner {
  display: none;
  width: 36px;
  height: 36px;
  margin: 12px auto;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.theme-dark .form-spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
}

.form-spinner.is-visible {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.launch-section {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(
    180deg,
    rgba(255, 204, 0, 0.08),
    rgba(255, 204, 0, 0.02)
  );
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.theme-dark .launch-section {
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.08),
    rgba(0, 0, 0, 0.2)
  );
}

.launch-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.launch-tagline {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.countdown div {
  background: var(--panel);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  min-width: 70px;
  box-shadow: var(--shadow);
}

.countdown span {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
}

.countdown small {
  font-size: 0.75rem;
  color: var(--muted);
}

.launch-date {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* SECTION HEADER */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* PROJECT CARDS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--panel);
  padding: 1.75rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.project-card h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.project-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ICON */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #111;
  font-size: 1.4rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.theme-dark .card-icon {
  color: #0f0b08;
}
