/* Home UI/UX enhancement layer */

:root {
  --home-surface: rgba(255, 255, 255, 0.04);
  --home-surface-strong: rgba(255, 255, 255, 0.08);
  --home-border: rgba(255, 255, 255, 0.15);
  --home-border-strong: rgba(255, 255, 255, 0.24);
  --home-text-muted: rgba(255, 255, 255, 0.74);
  --home-accent: #39d0ff;
  --home-accent-2: #ff8f3d;
  --home-radius: 20px;
  --home-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

body.tt-light-style-on.home-ui-plus {
  --home-surface: rgba(255, 255, 255, 0.78);
  --home-surface-strong: rgba(255, 255, 255, 0.94);
  --home-border: rgba(9, 20, 40, 0.12);
  --home-border-strong: rgba(9, 20, 40, 0.2);
  --home-text-muted: #4f5970;
  --home-shadow: 0 20px 52px rgba(31, 42, 61, 0.14);
}

body.home-ui-plus {
  background-color: #070b12;
  background:
    radial-gradient(1000px 420px at 5% 0%, rgba(57, 208, 255, 0.12), transparent 65%),
    radial-gradient(900px 380px at 95% 8%, rgba(255, 143, 61, 0.14), transparent 62%),
    #070b12;
  color: #f5f8ff;
}

body.tt-light-style-on.home-ui-plus {
  background-color: #f1f4f8;
  background:
    radial-gradient(900px 380px at 4% 0%, rgba(57, 208, 255, 0.14), transparent 62%),
    radial-gradient(800px 360px at 97% 8%, rgba(255, 143, 61, 0.12), transparent 60%),
    #f1f4f8;
  color: #11223e;
}

body.home-ui-plus #tt-header.tt-header-fixed {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 11, 15, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.tt-light-style-on.home-ui-plus #tt-header.tt-header-fixed {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(10, 24, 45, 0.12);
}

body.home-ui-plus .tt-logo img {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

body.home-ui-plus #page-header {
  position: relative;
}

body.home-ui-plus #page-header::before {
  content: "";
  position: absolute;
  inset: 12% 4% 18%;
  border-radius: 28px;
  background: linear-gradient(130deg, rgba(57, 208, 255, 0.16), rgba(255, 143, 61, 0.12));
  filter: blur(34px);
  pointer-events: none;
}

body.home-ui-plus .ph-caption {
  max-width: 1100px;
}

body.home-ui-plus .ph-caption-title {
  font-size: clamp(2rem, 4.7vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

body.home-ui-plus .ph-caption-title em.text-stroke-light {
  color: #ffffff;
  text-shadow: 0 8px 28px rgba(57, 208, 255, 0.35);
}

body.tt-light-style-on.home-ui-plus .ph-caption-title,
body.tt-light-style-on.home-ui-plus .ph-caption-subtitle,
body.tt-light-style-on.home-ui-plus .tt-heading-title,
body.tt-light-style-on.home-ui-plus .tt-heading-subtitle {
  color: #132746;
}

body.tt-light-style-on.home-ui-plus .ph-caption-title em.text-stroke-light {
  color: #0f1d35;
  text-shadow: 0 8px 28px rgba(57, 208, 255, 0.22);
}

body.home-ui-plus .tt-scroll-down .tt-sd-text {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.home-ui-plus .tt-heading-title {
  text-wrap: balance;
}

body.home-ui-plus #home-projects .portfolio-grid-item,
body.home-ui-plus #home-tools .h-tool-card {
  border-radius: var(--home-radius);
  background: linear-gradient(170deg, var(--home-surface-strong), var(--home-surface));
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow);
}

body.tt-light-style-on.home-ui-plus #home-projects .pgi-title a,
body.tt-light-style-on.home-ui-plus #home-tools .h-tool-title {
  color: #132746;
}

body.home-ui-plus #home-projects .portfolio-grid-item {
  overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.24s ease;
}

body.home-ui-plus #home-projects .portfolio-grid-item:hover {
  transform: translateY(-6px);
  border-color: var(--home-border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

body.home-ui-plus #home-projects .pgi-image img,
body.home-ui-plus #home-projects .pgi-video {
  transition: transform 0.45s ease;
}

body.home-ui-plus #home-projects .portfolio-grid-item:hover .pgi-image img,
body.home-ui-plus #home-projects .portfolio-grid-item:hover .pgi-video {
  transform: scale(1.04);
}

body.home-ui-plus #home-projects .pgi-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(57, 208, 255, 0.16);
  border: 1px solid rgba(57, 208, 255, 0.42);
}

body.home-ui-plus .all-works-btn .scr-btn-spinner text {
  fill: #e8f6ff;
}

body.tt-light-style-on.home-ui-plus .all-works-btn .scr-btn-spinner text {
  fill: #1a2a46;
}

body.home-ui-plus #home-tools {
  position: relative;
}

body.home-ui-plus #home-tools::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
}

body.tt-light-style-on.home-ui-plus #home-tools::before {
  background-image: linear-gradient(rgba(12, 26, 47, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 26, 47, 0.06) 1px, transparent 1px);
}

body.home-ui-plus .h-tool-card {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.32s ease, border-color 0.22s ease, box-shadow 0.26s ease;
}

body.home-ui-plus .h-tool-card:hover {
  transform: translateY(-7px);
  border-color: rgba(57, 208, 255, 0.4);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.38);
}

body.home-ui-plus .h-tool-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

body.home-ui-plus .h-tool-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.42s ease;
}

body.home-ui-plus .h-tool-card:hover .h-tool-img img {
  transform: scale(1.07);
}

body.home-ui-plus .h-tool-cat {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: rgba(7, 14, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.tt-light-style-on.home-ui-plus .h-tool-cat {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(10, 24, 45, 0.18);
  color: #11223e;
}

body.home-ui-plus .h-tool-content {
  padding: 1.15rem 1.15rem 1.25rem;
}

body.home-ui-plus .h-tool-title {
  margin: 0 0 0.6rem;
  font-size: 1.13rem;
  line-height: 1.28;
}

body.home-ui-plus .h-tool-desc {
  color: var(--home-text-muted);
  margin: 0 0 1.05rem;
  line-height: 1.64;
}

body.home-ui-plus .h-tool-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 600;
}

body.tt-light-style-on.home-ui-plus .h-tool-more {
  color: #12284a;
}

body.home-ui-plus #services .tt-accordion-item {
  border-radius: 14px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

body.tt-light-style-on.home-ui-plus #services .tt-accordion-item {
  border-color: rgba(10, 24, 45, 0.12);
  background: rgba(255, 255, 255, 0.64);
}

body.home-ui-plus #services .tt-accordion-heading {
  padding-inline: 1rem;
}

body.home-ui-plus #services .tt-ac-head-title {
  font-size: clamp(1.05rem, 1.45vw, 1.4rem);
}

body.home-ui-plus #services .tt-accordion-content p {
  color: var(--home-text-muted);
  line-height: 1.8;
}

body.tt-light-style-on.home-ui-plus #services .tt-ac-head-title {
  color: #132746;
}

body.home-ui-plus .tt-logo-wall li {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

body.home-ui-plus .tt-logo-wall li a {
  transition: transform 0.28s ease;
}

body.home-ui-plus .tt-logo-wall li a:hover {
  transform: translateY(-4px);
}

body.home-ui-plus .home-contact-form {
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--home-shadow);
}

body.tt-light-style-on.home-ui-plus .home-contact-form {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 255, 0.88));
}

body.home-ui-plus .home-contact-form .tt-form-control {
  border-radius: 10px;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 9, 16, 0.45);
  color: #f5f8ff;
}

body.tt-light-style-on.home-ui-plus .home-contact-form .tt-form-control {
  border-color: rgba(10, 24, 45, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: #132746;
}

body.tt-light-style-on.home-ui-plus .home-contact-form .tt-form-control::placeholder {
  color: #6a7891;
}

body.tt-light-style-on.home-ui-plus .tt-copyright,
body.tt-light-style-on.home-ui-plus .footer-social-text,
body.tt-light-style-on.home-ui-plus .tt-sd-text {
  color: #2a3f61;
}

body.home-ui-plus .home-contact-form textarea.tt-form-control {
  min-height: 150px;
}

body.home-ui-plus .human-verification {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-top: 0.5rem;
  user-select: none;
}

body.home-ui-plus .human-verification input {
  width: 18px;
  height: 18px;
}

body.home-ui-plus #submit-btn {
  opacity: 1;
  transform: none;
  transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
}

body.home-ui-plus #submit-btn[disabled] {
  opacity: 0.46;
  filter: grayscale(0.2);
  cursor: not-allowed;
}

body.home-ui-plus .tt-form-text {
  color: var(--home-text-muted);
}

body.home-ui-plus .footer-social ul a {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

body.tt-light-style-on.home-ui-plus .footer-social ul a {
  border-color: rgba(10, 24, 45, 0.18);
}

body.home-ui-plus .footer-social ul a:hover {
  border-color: rgba(57, 208, 255, 0.52);
}

body.home-ui-plus a:focus-visible,
body.home-ui-plus button:focus-visible,
body.home-ui-plus input:focus-visible,
body.home-ui-plus select:focus-visible,
body.home-ui-plus textarea:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 3px;
}

@media (max-width: 991px) {
  body.home-ui-plus #tt-header.tt-header-fixed {
    background: rgba(6, 9, 14, 0.72);
  }

  body.tt-light-style-on.home-ui-plus #tt-header.tt-header-fixed {
    background: rgba(255, 255, 255, 0.9);
  }

  body.home-ui-plus .ph-caption-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  body.home-ui-plus #home-tools .h-tool-content {
    padding: 1rem 1rem 1.05rem;
  }
}

@media (max-width: 767px) {
  body.home-ui-plus #home-projects .portfolio-grid-item,
  body.home-ui-plus .h-tool-card,
  body.home-ui-plus .home-contact-form {
    border-radius: 14px;
  }

  body.home-ui-plus .h-tool-title {
    font-size: 1.03rem;
  }
}

/* Skip to content */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999999;
  padding: 12px 24px;
  background: var(--home-accent, #39d0ff);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: left 0.15s ease;
}

.skip-to-content:focus {
  left: 0;
}

/* Honeypot field */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Form feedback */
.tt-form-feedback {
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
  display: none;
  font-size: 0.95rem;
}

.tt-form-feedback.success {
  background: rgba(40, 167, 69, 0.15);
  color: #7dffaf;
  border: 1px solid rgba(40, 167, 69, 0.3);
  display: block;
}

.tt-form-feedback.error {
  background: rgba(220, 53, 69, 0.15);
  color: #ff8a95;
  border: 1px solid rgba(220, 53, 69, 0.3);
  display: block;
}

body.tt-light-style-on .tt-form-feedback.success {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

body.tt-light-style-on .tt-form-feedback.error {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Select dropdown styling */
body.home-ui-plus .home-contact-form select.tt-form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

body.home-ui-plus .home-contact-form select.tt-form-control option {
  background: #111;
  color: #f5f8ff;
}

body.tt-light-style-on.home-ui-plus .home-contact-form select.tt-form-control option {
  background: #fff;
  color: #132746;
}

/* Form label styling */
body.home-ui-plus .home-contact-form label {
  color: var(--home-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

/* Featured tools section bg fix for dark mode */
body.home-ui-plus #home-tools.bg-white-1 {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  body.home-ui-plus *,
  body.home-ui-plus *::before,
  body.home-ui-plus *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
