@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* =========================================
   AETHERCODE DIGITAL SOLUTIONS
   Complete Responsive Stylesheet
   ========================================= */

:root {
  --bg: #000814;
  --bg-secondary: #070d1b;
  --surface: #0b1020;
  --surface-light: #111a2e;
  --surface-hover: #151f37;

  --primary: #3882f6;
  --primary-hover: #2563eb;
  --violet: #8b5cf6;
  --cyan: #38bdf8;

  --text: #f4f7ff;
  --text-secondary: #a6b2ca;
  --muted: #74819a;

  --border: rgba(148, 163, 184, 0.16);
  --border-active: rgba(56, 130, 246, 0.5);

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --gradient: linear-gradient(135deg, #3882f6, #8b5cf6);
  --gradient-soft: linear-gradient(
    135deg,
    rgba(56, 130, 246, 0.15),
    rgba(139, 92, 246, 0.12)
  );

  --shadow-sm: 0 5px 18px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
  --glow: 0 0 35px rgba(56, 130, 246, 0.15);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --container: 1200px;
  --transition: 0.25s ease;
}

/* ---------- RESET ---------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(
      ellipse at 15% 0%,
      rgba(56, 130, 246, 0.09),
      transparent 34%
    ),
    radial-gradient(
      ellipse at 90% 15%,
      rgba(139, 92, 246, 0.08),
      transparent 30%
    ),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: "Inter", sans-serif;
}

body::selection,
::selection {
  color: white;
  background: rgba(56, 130, 246, 0.55);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

ul,
ol {
  list-style-position: inside;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

p {
  color: var(--text-secondary);
}

small {
  color: var(--muted);
}

hr {
  height: 1px;
  border: 0;
  background: var(--border);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 100px 0;
}

.section-header {
  max-width: 740px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
}

.section-header p {
  max-width: 620px;
  margin-inline: auto;
  font-size: 16px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #8db7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-label::before {
  width: 22px;
  height: 2px;
  background: var(--gradient);
  content: "";
}

.gradient-text {
  color: transparent;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.hidden {
  display: none !important;
}

.full-width {
  width: 100%;
}

/* ---------- SCROLLBAR ---------- */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #030712;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #030712;
  border-radius: 20px;
  background: #273651;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---------- HEADER / NAVIGATION ---------- */

.site-header,
header.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 8, 20, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.logo-mark,
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: var(--gradient);
  box-shadow: 0 6px 25px rgba(56, 130, 246, 0.25);
  color: white;
  font-size: 20px;
}

.logo small,
.brand small {
  display: block;
  margin-top: -3px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
}

.nav-links a {
  position: relative;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a:not(.btn)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gradient);
  content: "";
  transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--gradient);
  box-shadow: 0 8px 25px rgba(56, 130, 246, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(56, 130, 246, 0.28);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-active);
  background: rgba(56, 130, 246, 0.08);
}

.btn-outline {
  border-color: rgba(56, 130, 246, 0.5);
  background: transparent;
  box-shadow: none;
  color: #a9caff;
}

.btn-outline:hover {
  background: rgba(56, 130, 246, 0.12);
}

.btn-danger {
  background: var(--danger);
  box-shadow: none;
}

.btn-success {
  background: #15803d;
  box-shadow: none;
}

.btn-sm {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 12px;
}

.btn-lg {
  min-height: 54px;
  padding: 15px 26px;
  border-radius: 13px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  display: flex;
  min-height: 650px;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 110px;
}

.hero::before {
  position: absolute;
  top: 5%;
  right: -140px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(56, 130, 246, 0.12);
  content: "";
  filter: blur(100px);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  content: "";
  filter: blur(100px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 55px;
  grid-template-columns: 1.15fr 0.85fr;
}

.hero-content {
  max-width: 720px;
}

.hero-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(56, 130, 246, 0.28);
  border-radius: 999px;
  background: rgba(56, 130, 246, 0.09);
  color: #a8caff;
  font-size: 11px;
  font-weight: 700;
}

.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(40px, 5.7vw, 70px);
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.hero-content > p {
  max-width: 610px;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
  color: var(--text-secondary);
  font-size: 12px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-image,
.hero-visual img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  object-fit: cover;
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(56, 130, 246, 0.13), transparent 50%),
    rgba(11, 16, 32, 0.94);
  box-shadow: var(--shadow-lg), var(--glow);
}

.hero-panel h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-panel p {
  font-size: 13px;
}

.floating-card {
  position: absolute;
  right: -20px;
  bottom: 25px;
  max-width: 230px;
  padding: 16px 19px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #0d1629;
  box-shadow: var(--shadow-lg);
}

.floating-card strong {
  display: block;
  color: white;
  font-size: 14px;
}

.floating-card span {
  color: var(--text-secondary);
  font-size: 11px;
}

/* ---------- STATS ---------- */

.stats-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.stats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item {
  padding: 20px;
  text-align: center;
}

.stat-item strong,
.stat-number {
  display: block;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
}

.stat-item span {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ---------- GRIDS ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- CARDS ---------- */

.card {
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 130, 246, 0.35);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.card p {
  font-size: 13px;
  line-height: 1.85;
}

.card-icon,
.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(56, 130, 246, 0.25);
  border-radius: 16px;
  background: var(--gradient-soft);
  color: #93bbff;
  font-size: 23px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 19px;
  color: #8db7ff;
  font-size: 12px;
  font-weight: 700;
}

.card-link:hover {
  color: white;
}

/* ---------- SERVICES ---------- */

.services-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(56, 130, 246, 0.08);
  content: "";
  filter: blur(30px);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-features {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 12px;
}

.service-features li {
  list-style: none;
}

.service-features li::before {
  margin-right: 9px;
  color: var(--success);
  content: "✓";
}

/* ---------- PORTFOLIO ---------- */

.portfolio-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-card {
  overflow: hidden;
  padding: 0;
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-light);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--gradient-soft);
  color: #9ec2ff;
  font-size: 40px;
}

.portfolio-content {
  padding: 23px;
}

.portfolio-content h3 {
  margin: 10px 0;
  font-size: 18px;
}

.portfolio-content p {
  font-size: 13px;
}

.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.portfolio-tag {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 10px;
}

/* ---------- PRICING ---------- */

.pricing-grid {
  display: grid;
  align-items: stretch;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: rgba(56, 130, 246, 0.65);
  background:
    linear-gradient(160deg, rgba(56, 130, 246, 0.12), transparent 50%),
    var(--surface);
  box-shadow: 0 0 40px rgba(56, 130, 246, 0.1);
}

.pricing-card h3 {
  font-size: 20px;
}

.price {
  margin: 20px 0;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 800;
}

.price small {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.pricing-features {
  display: grid;
  gap: 12px;
  margin: 20px 0 25px;
}

.pricing-features li {
  list-style: none;
  color: var(--text-secondary);
  font-size: 12px;
}

.pricing-features li::before {
  margin-right: 9px;
  color: var(--success);
  content: "✓";
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ---------- ABOUT / CTA ---------- */

.about-grid {
  display: grid;
  align-items: center;
  gap: 55px;
  grid-template-columns: 1fr 1fr;
}

.about-content h2 {
  margin: 15px 0 20px;
  font-size: clamp(30px, 4vw, 44px);
}

.about-content > p {
  margin-bottom: 20px;
}

.about-points {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-point-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 9px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.cta-section {
  padding: 75px 0;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 65px 30px;
  border: 1px solid rgba(56, 130, 246, 0.28);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(
      ellipse at 0% 100%,
      rgba(139, 92, 246, 0.19),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 100% 0%,
      rgba(56, 130, 246, 0.2),
      transparent 50%
    ),
    var(--surface);
  text-align: center;
}

.cta-box h2 {
  margin-bottom: 18px;
  font-size: clamp(29px, 4vw, 43px);
}

.cta-box p {
  max-width: 620px;
  margin: 0 auto 27px;
}

/* ---------- FORMS ---------- */

.form-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label,
.field-label {
  color: #dce5f7;
  font-size: 12px;
  font-weight: 700;
}

.form-control,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select {
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: #080f1f;
  color: var(--text);
  font-size: 13px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  cursor: pointer;
}

select option {
  background: var(--surface);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #65738b;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 130, 246, 0.12);
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

input[type="file"] {
  max-width: 100%;
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-help {
  color: var(--muted);
  font-size: 11px;
}

.form-error {
  color: #fca5a5;
  font-size: 12px;
}

.form-success {
  color: #86efac;
  font-size: 12px;
}

.form-notice,
.notice,
#notice {
  margin: 14px 0;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.form-notice:empty,
.notice:empty,
#notice:empty {
  display: none;
}

.error,
.notice.error,
.form-notice.error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

.success,
.notice.success,
.form-notice.success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.07);
  color: #86efac;
}

/* ---------- AUTHENTICATION ---------- */

.auth-page {
  display: grid;
  min-height: 100vh;
  padding: 30px 18px;
  place-items: center;
  background:
    radial-gradient(
      ellipse at 20% 20%,
      rgba(56, 130, 246, 0.14),
      transparent 42%
    ),
    radial-gradient(
      ellipse at 85% 80%,
      rgba(139, 92, 246, 0.12),
      transparent 38%
    ),
    var(--bg);
}

.auth-wrapper {
  display: grid;
  width: min(100%, 980px);
  min-height: 580px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  grid-template-columns: 0.9fr 1.1fr;
}

.auth-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  background:
    radial-gradient(
      ellipse at 0% 0%,
      rgba(56, 130, 246, 0.22),
      transparent 60%
    ),
    linear-gradient(145deg, #0b1830, #111025);
}

.auth-side h1 {
  margin: 25px 0 18px;
  font-size: 36px;
}

.auth-side p {
  font-size: 13px;
}

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 45px;
}

.auth-main h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.auth-main > p {
  margin-bottom: 28px;
  font-size: 13px;
}

.auth-form {
  width: 100%;
}

.auth-footer {
  margin-top: 23px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.auth-footer a,
.auth-link {
  color: #8db7ff;
  font-weight: 700;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--border);
  content: "";
}

.google-btn {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.google-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- DASHBOARD LAYOUT ---------- */

.dashboard-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 255px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 17px;
  border-right: 1px solid var(--border);
  background: #050b17;
}

.sidebar-brand {
  padding: 5px 10px 27px;
  border-bottom: 1px solid var(--border);
}

.sidebar-label {
  margin: 24px 10px 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.sidebar-link,
.sidebar-nav a,
.sidebar-nav button {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-nav a:hover,
.sidebar-nav button:hover,
.sidebar-link.active,
.sidebar-nav a.active {
  border-color: rgba(56, 130, 246, 0.18);
  background: rgba(56, 130, 246, 0.1);
  color: #a8caff;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}

.dashboard-main {
  min-width: 0;
  padding: 30px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-topbar h1 {
  font-size: clamp(24px, 3vw, 34px);
}

.dashboard-topbar p {
  margin-top: 6px;
  font-size: 12px;
}

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

.dashboard-section {
  margin-bottom: 35px;
}

.dashboard-section > h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

/* ---------- DASHBOARD STAT CARDS ---------- */

.dashboard-stats {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stat {
  position: relative;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.dashboard-stat::after {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(56, 130, 246, 0.08);
  content: "";
  filter: blur(20px);
}

.dashboard-stat-label {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.dashboard-stat-value {
  display: block;
  margin: 10px 0 5px;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.dashboard-stat-change {
  color: var(--success);
  font-size: 10px;
}

/* ---------- TABLES ---------- */

.table-wrapper,
.table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

thead {
  background: rgba(255, 255, 255, 0.025);
}

th {
  padding: 15px 17px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 15px 17px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  color: #d8e1f1;
  font-size: 12px;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

td .btn {
  margin: 2px;
}

/* ---------- STATUS BADGES ---------- */

.status,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pending,
.status-pending-approval,
.status-awaiting-payment {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
}

.status-active,
.status-completed,
.status-paid,
.status-resolved,
.status-approved {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.status-in-progress,
.status-processing,
.status-open {
  border-color: rgba(56, 130, 246, 0.25);
  background: rgba(56, 130, 246, 0.09);
  color: #93c5fd;
}

.status-cancelled,
.status-rejected,
.status-overdue,
.status-closed {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

/* ---------- PROJECTS ---------- */

.project-card {
  padding: 24px;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.project-card p {
  font-size: 12px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 11px;
}

.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #1c2940;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  transition: width 0.4s ease;
}

/* ---------- SUPPORT / MESSAGES ---------- */

.message-list {
  display: grid;
  gap: 13px;
}

.message-item {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.message-item h4 {
  margin-bottom: 6px;
  font-size: 13px;
}

.message-item p {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}

/* ---------- PROFILE ---------- */

.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.avatar {
  display: grid;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid rgba(56, 130, 246, 0.3);
  border-radius: 20px;
  background: var(--gradient-soft);
  color: #a8caff;
  font-size: 23px;
  font-weight: 800;
}

.profile-header h2 {
  font-size: 22px;
}

.profile-header p {
  font-size: 12px;
}

/* ---------- EMPTY STATES ---------- */

.empty-state {
  display: grid;
  min-height: 200px;
  padding: 30px;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.23);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state-icon {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 32px;
}

.empty-state h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.empty-state p {
  max-width: 420px;
  font-size: 12px;
}

/* ---------- ADMIN PANELS ---------- */

.admin-panel {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}

.admin-panel-header h2 {
  font-size: 19px;
}

.admin-panel-header p {
  margin-top: 5px;
  font-size: 12px;
}

.admin-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- FILTERS / TOOLBAR ---------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.toolbar input,
.toolbar select {
  width: auto;
  min-width: 150px;
}

/* ---------- MODALS ---------- */

.modal,
dialog {
  width: min(92vw, 600px);
  max-width: 600px;
  max-height: 88vh;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(0, 4, 12, 0.78);
  backdrop-filter: blur(5px);
}

.modal-content {
  padding: 27px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.modal-header h2 {
  font-size: 21px;
}

.modal-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  max-width: 850px;
  gap: 13px;
  margin-inline: auto;
}

.faq-item {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-item summary {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.faq-item p {
  padding-top: 14px;
  font-size: 13px;
}

/* ---------- CONTACT ---------- */

.contact-grid {
  display: grid;
  align-items: start;
  gap: 35px;
  grid-template-columns: 0.8fr 1.2fr;
}

.contact-info {
  display: grid;
  gap: 17px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-item h3 {
  margin-bottom: 4px;
  font-size: 13px;
}

.contact-item p {
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* ---------- FOOTER ---------- */

.site-footer,
footer {
  border-top: 1px solid var(--border);
  background: #030812;
}

.footer-main {
  display: grid;
  gap: 45px;
  padding: 65px 0 45px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.footer-brand p {
  max-width: 310px;
  margin-top: 18px;
  font-size: 12px;
}

.footer-column h3 {
  margin-bottom: 18px;
  font-size: 13px;
}

.footer-links {
  display: grid;
  gap: 11px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 12px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #93bbff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

/* ---------- UTILITY CLASSES ---------- */

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.p-1 {
  padding: 8px;
}

.p-2 {
  padding: 16px;
}

.p-3 {
  padding: 24px;
}

.w-full {
  width: 100%;
}

.rounded {
  border-radius: var(--radius);
}

.border {
  border: 1px solid var(--border);
}

.surface {
  background: var(--surface);
}

.divider {
  width: 100%;
  height: 1px;
  margin: 22px 0;
  background: var(--border);
}

/* ---------- ANIMATIONS ---------- */

@keyframes fadeUp {
  from {
    transform: translateY(16px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(56, 130, 246, 0.12);
  }

  50% {
    box-shadow: 0 0 30px rgba(56, 130, 246, 0.25);
  }
}

.animate-fade-up {
  animation: fadeUp 0.55s ease both;
}

.animate-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ---------- ACCESSIBILITY ---------- */

:focus-visible {
  outline: 2px solid #70a8ff;
  outline-offset: 3px;
}

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

/* ---------- TABLET ---------- */

@media (max-width: 1050px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero-grid {
    gap: 35px;
  }

  .services-grid,
  .portfolio-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .dashboard-main {
    padding: 24px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    gap: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- MOBILE NAVIGATION ---------- */

@media (max-width: 780px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 70px 0;
  }

  .navbar {
    min-height: 70px;
  }

  .logo,
  .brand {
    font-size: 16px;
  }

  .logo-mark,
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 17px 20px 22px;
    border-bottom: 1px solid var(--border);
    background: #050b17;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0;
  }

  .nav-links.open,
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 13px 8px;
    font-size: 13px;
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn {
    min-height: 39px;
    padding: 9px 12px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 75px 0;
  }

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

  .hero-grid {
    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(37px, 9vw, 56px);
  }

  .hero-content > p {
    font-size: 15px;
  }

  .hero-visual {
    max-width: 600px;
  }

  .floating-card {
    right: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-wrapper {
    max-width: 520px;
    grid-template-columns: 1fr;
  }

  .auth-side {
    display: none;
  }

  .auth-main {
    padding: 32px 25px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    max-height: none;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-brand {
    padding: 4px 7px 13px;
  }

  .sidebar-label {
    margin-top: 15px;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sidebar-nav a,
  .sidebar-nav button,
  .sidebar-link {
    width: auto;
    min-width: max-content;
  }

  .sidebar-bottom {
    margin-top: 12px;
    padding-top: 10px;
  }

  .dashboard-main {
    padding: 20px 16px;
  }

  .dashboard-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-stats {
    gap: 12px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- SMALL MOBILE ---------- */

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    width: calc(100% - 28px);
  }

  .section {
    padding: 55px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 29px;
  }

  .section-header p {
    font-size: 13px;
  }

  .hero {
    padding: 55px 0 65px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: 37px;
  }

  .hero-content > p {
    font-size: 14px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 12px;
    font-size: 10px;
  }

  .floating-card {
    right: 8px;
    bottom: 12px;
    max-width: 185px;
    padding: 12px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .services-grid,
  .portfolio-grid,
  .pricing-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-item {
    padding: 13px 6px;
  }

  .stat-item span {
    font-size: 10px;
  }

  .card {
    padding: 21px;
  }

  .cta-box {
    padding: 45px 20px;
  }

  .cta-box h2 {
    font-size: 29px;
  }

  .auth-page {
    padding: 16px 12px;
  }

  .auth-wrapper {
    border-radius: 18px;
  }

  .auth-main {
    padding: 27px 19px;
  }

  .auth-main h2 {
    font-size: 25px;
  }

  .dashboard-main {
    padding: 17px 12px;
  }

  .dashboard-stats {
    gap: 10px;
  }

  .dashboard-stat {
    padding: 15px 12px;
  }

  .dashboard-stat-value {
    font-size: 22px;
  }

  .dashboard-stat-label {
    font-size: 10px;
  }

  .admin-panel {
    padding: 17px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-group {
    width: 100%;
  }

  .toolbar input,
  .toolbar select {
    width: 100%;
    min-width: 0;
  }

  .footer-main {
    gap: 28px 18px;
    padding: 45px 0 30px;
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    font-size: 10px;
  }

  th,
  td {
    padding: 12px;
  }
}

