/* Modern overrides to refresh visuals without breaking legacy layout */
:root {
  --brand-primary: #7c3aed;
  --brand-secondary: #06b6d4;
  --brand-accent: #f97316;
  --text-strong: #0f172a;
  --text-soft: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.08);
}

body {
  background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08), transparent 25%),
              radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.08), transparent 22%),
              #0b1021;
  color: #e8ecf5;
}

a {
  color: #e8ecf5;
}

a:hover,
a:focus {
  color: var(--brand-secondary);
}

/* Navigation */
nav.navbar.bootsnav {
  background: rgba(12, 18, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

nav.navbar.bootsnav .navbar-brand .logo {
  max-height: 52px;
  transition: transform 0.3s ease;
}

nav.navbar.bootsnav .navbar-brand:hover .logo {
  transform: translateY(-2px);
}

nav.navbar.bootsnav .nav > li > a {
  color: #e8ecf5 !important;
  letter-spacing: 0.3px;
  font-weight: 600;
}

nav.navbar.bootsnav .nav > li > a:hover,
nav.navbar.bootsnav .nav > li > a:focus {
  color: var(--brand-secondary);
}

.nav.navbar-nav > li > a:after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transition: width 0.2s ease;
  margin-top: 6px;
}

.nav.navbar-nav > li > a:hover:after,
.nav.navbar-nav > li.active > a:after {
  width: 100%;
}

.nav-cta {
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.18);
}

.navbar-scrolled {
  background: rgba(12, 18, 34, 0.92) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.navbar-scrolled .navbar-brand .logo {
  transform: scale(0.96);
}

/* Generic buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 18px 30px rgba(124, 58, 237, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(124, 58, 237, 0.3);
}

.btn-modern.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.btn-modern.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn,
.btn-primary,
.btn-default,
.btn-rectangle,
.btn-stroke,
.btn-cadillac,
.btn-eastern,
.btn-apple,
.btn-amaranth,
.btn-amethyst,
.btn-modern-solid {
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: none !important;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)) !important;
  color: #fff !important;
  box-shadow: 0 16px 26px rgba(124, 58, 237, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-transform: uppercase;
}

.btn:hover,
.btn-primary:hover,
.btn-default:hover,
.btn-rectangle:hover,
.btn-stroke:hover,
.btn-cadillac:hover,
.btn-eastern:hover,
.btn-apple:hover,
.btn-amaranth:hover,
.btn-amethyst:hover,
.btn-modern-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(124, 58, 237, 0.28);
  filter: saturate(1.05);
}

.btn-stroke {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff !important;
  box-shadow: none;
}

.btn-stroke:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-icon .fa {
  margin-right: 10px;
}

.btn-xlg {
  padding: 16px 22px;
  font-size: 18px;
}

.btn-modern-solid {
  width: 100%;
}

/* Hard overrides for legacy inline-colored buttons */
button.btn,
button[class*="btn-"],
a.btn,
a[class*="btn-"],
input[type="button"].btn,
input[type="submit"].btn {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)) !important;
  color: #fff !important;
  border: none !important;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 14px !important;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.22);
}

button.btn:hover,
button[class*="btn-"]:hover,
a.btn:hover,
a[class*="btn-"]:hover,
input[type="button"].btn:hover,
input[type="submit"].btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.28);
  filter: saturate(1.08);
}

/* Icon pills */
.align-icon i {
  background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.25), rgba(124, 58, 237, 0.2));
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(12, 18, 34, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Scroll animations */
.animations-ready [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.animations-ready [data-animate="scale"] {
  transform: scale(0.94);
}

.animations-ready [data-animate="slide-left"] {
  transform: translateX(-28px);
}

.animations-ready [data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Hero */
.hero-modern {
  position: relative;
  overflow: hidden;
  padding: 130px 0 100px;
  background: linear-gradient(135deg, rgba(16, 24, 48, 0.95), rgba(18, 24, 38, 0.92)),
              url("../img/polygonal.png") center/cover no-repeat;
  color: #f8fafc;
}

.hero-modern:before,
.hero-modern:after {
  content: "";
  position: absolute;
  filter: blur(40px);
  opacity: 0.35;
}

.hero-modern:before {
  width: 320px;
  height: 320px;
  top: -80px;
  right: 10%;
  background: radial-gradient(circle, var(--brand-secondary), transparent 60%);
}

.hero-modern:after {
  width: 240px;
  height: 240px;
  bottom: -60px;
  left: 8%;
  background: radial-gradient(circle, var(--brand-accent), transparent 65%);
}

.hero-modern h1 {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 800;
}

.hero-modern p {
  font-size: 17px;
  color: #d7dce5;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.floating-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  color: #e5e7eb;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  position: relative;
  animation: floatCard 6s ease-in-out infinite;
}

.floating-card h5 {
  margin: 0 0 8px;
  color: #fff;
}

.floating-card small {
  color: #cbd5e1;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(-0.6deg); }
  50% { transform: translateY(-10px) rotate(0.6deg); }
}

/* Sections */
.section-heading.text-center {
  position: relative;
}

.section-heading.text-center:after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  margin: 14px auto 0;
  border-radius: 8px;
}

.contain-wrapp {
  padding: 70px 0;
}

.gray-container {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), #0f172a);
  color: #e2e8f0;
}

.contain-wrapp p,
.section-heading p,
.single-testimoni blockquote,
.article-content p,
.widget p,
footer p,
footer a {
  color: #e8ecf5;
}

.section-heading h5,
.section-heading h4,
.section-heading h3 {
  color: #fff;
}

/* Cards */
.feature-card {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 74px rgba(0, 0, 0, 0.34);
  border-color: rgba(6, 182, 212, 0.35);
}

.feature-card:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.2), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.22), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.feature-card:hover:before {
  opacity: 1;
}

.feature-card * {
  position: relative;
  z-index: 1;
  color: #f8fafc;
}

.align-icon i {
  color: #0be0ff;
  text-shadow: 0 8px 20px rgba(6, 182, 212, 0.5);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(34, 211, 238, 0.24));
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.product-wrapper,
.flip-wrapp,
.lastest-article {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.product-wrapper .product-footer a {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.product-wrapper {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-wrapper:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.product-wrapper .img-wrapper img {
  transition: transform 0.4s ease;
}

.product-wrapper:hover .img-wrapper img {
  transform: scale(1.04);
}

.flip-wrapp .front,
.flip-wrapp .back {
  border-radius: 16px;
}

.parallax .overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(124, 58, 237, 0.5));
}

.single-testimoni blockquote {
  font-size: 18px;
  color: #e2e8f0;
}

.clients .clients-logo {
  background: rgba(255, 255, 255, 0.04);
  padding: 20px 26px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
  background: linear-gradient(180deg, #0b1021, #0a0d1a);
  color: #e5e7eb;
}

footer a {
  color: #e5e7eb;
}

.subfooter {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

/* Counters */
.counter-wrapp .counter-polygonal {
  position: relative;
  overflow: hidden;
  filter: saturate(1.05);
  background-blend-mode: multiply;
  border-radius: 18px;
  min-height: 220px;
  box-shadow: 0 20px 58px rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.04);
}

.counter-wrapp .counter-polygonal:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(12, 18, 34, 0.32), transparent 45%),
              linear-gradient(180deg, rgba(12, 18, 34, 0.42), rgba(12, 18, 34, 0.68));
}

.counter-wrapp .counter-polygonal:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(6, 182, 212, 0.08));
}

.counter-wrapp .counter-content i {
  background: rgba(0,0,0,0.18);
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.36);
}

.counter-wrapp .count-value {
  font-size: 46px;
  font-weight: 800;
}
.counter-wrapp p { font-weight: 700; letter-spacing: 0.4px; }

/* --- Deep overrides for legacy blocks (Demo/Panel/Satın Al, counters, gallery, blog, form, footer) --- */
:root {
  --btn-pink: linear-gradient(135deg, #ff7899, #e1306c);
  --btn-teal: linear-gradient(135deg, #1fb8c0, #0ea5e9);
  --btn-purple: linear-gradient(135deg, #a855f7, #7c3aed);
  --surface-1: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
}

/* Nav CTA highlight */
.nav-cta {
  background: linear-gradient(135deg, #3b82f6, #22d3ee) !important;
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.35);
  border: none !important;
  border-radius: 16px !important;
  padding: 12px 18px !important;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.nav-cta:hover { transform: translateY(-2px); }

/* CTA buttons on product/detail stacks */
.btn-cadillac { background: var(--btn-pink) !important; }
.btn-eastern { background: var(--btn-teal) !important; }
.btn-apple { background: var(--btn-purple) !important; }
.btn-cadillac, .btn-eastern, .btn-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  height: 58px;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 16px 26px rgba(0,0,0,0.24);
}

/* Counter strip refresh */
.counter-wrapp {
  background: linear-gradient(180deg, rgba(11,16,33,0.85), rgba(11,16,33,0.95));
  padding: 0;
}
.counter-wrapp .counter-polygonal {
  border-radius: 16px;
  min-height: 220px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.32);
}
.counter-wrapp .counter-content i {
  background: rgba(0,0,0,0.18);
  padding: 16px;
  border-radius: 14px;
}
.counter-wrapp .count-value {
  font-size: 42px;
  font-weight: 800;
}
.counter-wrapp p { font-weight: 700; letter-spacing: 0.4px; }

/* Gallery / Referans kartları */
.gallery .grid-item {
  padding: 12px;
}
.gallery .img-wrapper {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(6,182,212,0.12));
  box-shadow: 0 20px 52px rgba(0,0,0,0.3);
  overflow: hidden;
}
.gallery .img-wrapper img {
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: saturate(1.05);
}
.gallery .img-wrapper:hover img {
  transform: scale(1.02);
  filter: saturate(1.15);
}
.gallery .img-caption .caption-content i {
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  background: #0b1021;
  color: #e8ecf5;
  width: 56px;
  height: 56px;
  line-height: 56px;
}

/* Blog cards */
.lastest-article {
  background: radial-gradient(circle at 20% 20%, rgba(124,58,237,0.16), rgba(6,182,212,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 46px rgba(0,0,0,0.3);
  padding-bottom: 18px;
}
.lastest-article .article-content h5 a { color: #fff; font-weight: 800; }
.lastest-article .article-content p { color: #e8ecf5; }
.lastest-article .btn { background: var(--btn-purple) !important; box-shadow: 0 14px 28px rgba(124,58,237,0.32); }

/* Forms (Teklif/Satın Al) */
.form-horizontal .form-control {
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 14px 16px;
  color: #e8ecf5;
  border-radius: 12px;
}
.form-horizontal .form-control:focus {
  border-color: rgba(34,211,238,0.7);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.25);
}
.form-horizontal button,
.form-horizontal input[type="submit"] {
  background: var(--btn-purple) !important;
  height: 64px;
  font-size: 17px;
  border-radius: 14px !important;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #0c1222, #0b0f1c);
}
footer .widget h5 { color: #f8fafc; }
footer .widget h5 span { color: #22d3ee; }
footer .link-list li a { color: #e8ecf5; }
footer .link-list li a:hover { color: #22d3ee; }

/* General cards (product + referans hover) */
.product-wrapper,
.clients .clients-logo {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(124,58,237,0.07), rgba(6,182,212,0.07));
  box-shadow: 0 18px 46px rgba(0,0,0,0.26);
}
.clients .clients-logo img { filter: saturate(1.1); }

.counter-wrapp .counter-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.counter-wrapp .counter-content p,
.counter-wrapp .count-value {
  color: #fff;
}

/* Product detail CTA stack */
.shop-title h2 {
  color: #fff;
}

.shop-title .price span {
  color: #e8ecf5;
  font-size: 22px;
}

.shop-title .price i {
  margin-left: 6px;
}

.prod-desc p {
  color: #e8ecf5;
}

/* Portfolio / gallery */
.gallery .img-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery .img-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(6, 182, 212, 0.35);
}

.gallery .img-caption {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.65));
}

.gallery .img-caption .caption-content i {
  background: #0b1021;
  color: #e8ecf5;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  line-height: 56px;
}

/* Blog cards */
.lastest-article {
  background: radial-gradient(circle at 20% 20%, rgba(124,58,237,0.18), rgba(6,182,212,0.1));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 52px rgba(0,0,0,0.32);
  padding-bottom: 18px;
  border-radius: 18px;
}
.lastest-article .article-content h5 a { color: #fff; font-weight: 800; }
.lastest-article .article-content p { color: #dfe5f0; }
.lastest-article .btn {
  width: auto;
  padding: 12px 18px;
  font-size: 14px;
  background: var(--btn-purple) !important;
  box-shadow: 0 14px 28px rgba(124,58,237,0.32);
}

/* Footer */
footer .widget h5,
footer .widget p,
footer a {
  color: #e8ecf5;
}

footer .widget h5 span {
  color: var(--brand-secondary);
}

footer .link-list li a:hover {
  color: var(--brand-secondary);
}

/* Forms */
.form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8ecf5;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.form-control:focus {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
  color: rgba(232, 236, 245, 0.7);
}

select.form-control {
  background-image: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
}

/* Smooth edges for legacy blocks */
.contain-wrapp img,
.masonry .img-wrapper,
.gallery .img-wrapper {
  border-radius: 14px;
}

