
/* =========================================
   THE BETA CODER - MAIN STYLESHEET
========================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --card: #ffffff;
  --text: #171923;
  --muted: #737789;
  --border: #e8e9ef;
  --accent: #6558e8;
  --accent2: #8c7cff;
  --shadow: 0 15px 45px rgba(20, 20, 50, .07);
  --nav-bg: rgba(255,255,255,.88);
  --font: 'DM Sans', sans-serif;
  --heading: 'Poppins', sans-serif;
}

[data-theme="dark"] {
  --bg: #111219;
  --bg-soft: #191a23;
  --card: #1e202b;
  --text: #f4f4fa;
  --muted: #a1a3b3;
  --border: #30313e;
  --accent: #9588ff;
  --accent2: #b2a7ff;
  --shadow: 0 15px 45px rgba(0,0,0,.2);
  --nav-bg: rgba(17,18,25,.9);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

body, button, input, textarea, select {
  font-family: var(--font);
}

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

button {
  cursor: pointer;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(1160px, 90%);
  margin: auto;
}

.section {
  padding: 110px 0;
}

.gradient-text {
  background: linear-gradient(110deg, var(--accent), #b078ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-heading {
  margin-bottom: 55px;
}

.section-heading h2 {
  font: 700 clamp(32px, 5vw, 49px)/1.25 var(--heading);
  letter-spacing: -1.8px;
}

.section-heading > p:last-child {
  color: var(--muted);
  margin-top: 15px;
}

/* PRELOADER */

.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity .4s, visibility .4s;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font: 800 40px var(--heading);
  animation: pulse 1s infinite alternate;
}

.loader-logo span {
  color: var(--accent);
}

@keyframes pulse {
  to { opacity: .4; transform: scale(.94); }
}

/* NAVBAR */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font: 800 22px var(--heading);
  letter-spacing: -1px;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 29px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color .3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

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

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  font-size: 18px;
}

.nav-cta {
  background: var(--accent);
  color: white;
  padding: 11px 20px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  transition: .3s;
}

.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #6558e844;
}

.mobile-cta,
.menu-toggle {
  display: none;
}


.brand-tagline {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-top: 5px;
}

/* HERO */

.hero {
  min-height: 760px;
  padding-top: 165px;
  padding-bottom: 65px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 8px 13px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 25px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28bd78;
  box-shadow: 0 0 0 4px #28bd7820;
}


/* =================================
   PREMIUM PROJECT SHOWCASE
================================= */

.project-image {
  height: 240px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

.project-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--card);
  color: var(--accent);
  padding: 7px 12px;
  font-size: 9px;
  font-weight: 800;
  border-radius: 5px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.project-info {
  display: block;
}

.project-info h3 {
  font-size: 17px;
  margin-bottom: 9px;
}

.project-info p {
  line-height: 1.8;
  font-size: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 17px 0;
}

.project-tags span {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

.project-links a {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.project-links a:hover {
  text-decoration: underline;
}

.projects-footer,
.testimonial-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 35px;
}

.projects-footer p,
.testimonial-bottom p {
  font-size: 13px;
  color: var(--muted);
}

/* =================================
   TESTIMONIALS
================================= */

.testimonials-section {
  background: var(--bg-soft);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 27px;
  transition: .3s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.testimonial-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.quote-icon {
  font: 800 60px Georgia, serif;
  color: var(--accent);
  line-height: .8;
}

.review-label {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--muted);
}

.testimonial-text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  min-height: 115px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #6558e819;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
}

.testimonial-author h3 {
  font: 700 13px var(--heading);
}

.testimonial-author span {
  font-size: 10px;
  color: var(--muted);
}

.review-status {
  display: inline-block;
  margin-top: 16px;
  font-size: 8px;
  color: #a46b28;
  font-weight: 800;
  letter-spacing: .5px;
}

.testimonial-bottom {
  border-top: 1px solid var(--border);
  padding-top: 25px;
}

@media(max-width:760px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .project-image {
    height: 230px;
  }

  .testimonial-text {
    min-height: auto;
  }
}

.hero-content h1 {
  font: 800 clamp(40px, 5.5vw, 65px)/1.18 var(--heading);
  letter-spacing: -3px;
  max-width: 630px;
}

.hero-description {
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
  margin: 25px 0 16px;
  line-height: 1.9;
}

.hero-description strong {
  color: var(--text);
}

.typing-line {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
}

#typingText {
  color: var(--accent);
  font-weight: 800;
}

.cursor {
  color: var(--accent);
  animation: blink .7s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 14px 23px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .3s;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 9px 25px #6558e82b;
}

.btn-outline {
  border-color: var(--border);
  background: var(--card);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 50px;
}

.hero-socials span {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--muted);
}

.hero-socials a {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.hero-socials a:hover {
  color: var(--accent);
}

/* HERO VISUAL */

.hero-visual {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circle {
  position: absolute;
  width: 370px;
  height: 370px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6558e820, #b078ed25);
  filter: blur(1px);
}

.hero-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: #191a27;
  color: white;
  padding: 23px;
  border-radius: 17px;
  box-shadow: 0 30px 75px rgba(20,15,70,.23);
  transform: rotate(-3deg);
}

.card-top,
.card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1px;
  color: #aaaac0;
}

.card-dot {
  color: #9b8bff;
  letter-spacing: 3px;
}

.code-window {
  padding: 35px 0;
  font: 13px/2.3 monospace;
  overflow: hidden;
}

.code-line {
  white-space: nowrap;
}

.code-line > span {
  color: #696b84;
  margin-right: 14px;
}

.code-line b {
  color: #b9a4ff;
}

.code-line em {
  color: #a9e8b5;
  font-style: normal;
}

.code-line strong {
  color: #eac48a;
}

.indent {
  padding-left: 25px;
}

.card-bottom {
  border-top: 1px solid #343548;
  padding-top: 18px;
  letter-spacing: 0;
}

.floating-card {
  position: absolute;
  z-index: 3;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 12px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

.floating-card > span {
  color: var(--accent);
  font-size: 23px;
}

.floating-card strong {
  display: block;
  font-size: 12px;
}

.floating-card small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.float-one {
  top: 25px;
  right: -10px;
}

.float-two {
  bottom: 15px;
  left: -25px;
  animation-delay: 1.5s;
}

@keyframes float {
  50% { transform: translateY(-12px); }
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 85px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

.scroll-arrow {
  color: var(--accent);
  font-size: 18px;
}

/* MARQUEE */

.marquee {
  background: var(--accent);
  color: white;
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 35px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ABOUT */

.about-section {
  background: var(--bg-soft);
}

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

.about-lead {
  font: 700 25px/1.5 var(--heading);
  margin-bottom: 20px;
}

.about-text > p:not(.about-lead) {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 17px;
}

.text-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  margin-top: 18px;
}

.text-link span {
  margin-left: 8px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.stat-card {
  background: var(--card);
  padding: 27px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: .3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.stat-icon {
  font-size: 27px;
  color: var(--accent);
}

.stat-card h3 {
  font: 700 17px var(--heading);
  margin: 12px 0 3px;
}

.stat-card p {
  color: var(--muted);
  font-size: 11px;
}

/* SERVICES */

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

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 27px 22px;
  min-height: 260px;
  position: relative;
  transition: .35s;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.service-number {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--muted);
  font-size: 10px;
}

.service-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #6558e817;
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 25px;
}

.service-card h3 {
  font: 700 16px var(--heading);
  margin-bottom: 11px;
}

.service-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.service-tags {
  display: block;
  margin-top: 19px;
  font-size: 9px;
  color: var(--accent);
  font-weight: 700;
}

/* SKILLS */

.skills-section {
  background: var(--bg-soft);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.skill-group {
  background: var(--card);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.skill-group h3 {
  font: 700 17px var(--heading);
  margin-bottom: 23px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  transition: .3s;
}

.skill-tags span:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* PROJECTS */

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
  transition: .3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
}

.project-card {
  transition: opacity .3s, transform .3s;
}

.project-card.hide {
  display: none;
}

.project-preview {
  height: 280px;
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
  position: relative;
  color: white;
}

.preview-one {
  background: linear-gradient(135deg, #28254f, #665be6);
}

.preview-two {
  background: linear-gradient(135deg, #c86b4c, #f2b16c);
}

.preview-three {
  background: linear-gradient(135deg, #174e50, #36a19a);
}

.preview-label {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
}

.preview-content {
  position: absolute;
  bottom: 25px;
  left: 25px;
}

.preview-content > span {
  font-size: 9px;
  letter-spacing: 2px;
}

.preview-content h3 {
  font: 800 35px/1.2 var(--heading);
  margin-top: 12px;
}

.preview-shape {
  position: absolute;
  left: 225px;
  bottom: 0;
  font-size: 90px;
  opacity: .25;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 3px;
}

.project-info h3 {
  font: 700 15px var(--heading);
}

.project-info p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.project-info > a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.projects-note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 20px;
}

/* PROCESS */

.process-section {
  background: var(--bg-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.process-card {
  border-top: 2px solid var(--border);
  padding: 25px 12px;
  transition: .3s;
}

.process-card:hover {
  border-color: var(--accent);
}

.process-card > span {
  color: var(--accent);
  font: 700 24px var(--heading);
}

.process-card h3 {
  font: 700 17px var(--heading);
  margin: 18px 0 9px;
}

.process-card p {
  font-size: 12px;
  color: var(--muted);
}

/* CTA */

.cta-section {
  padding: 100px 0;
  background: linear-gradient(120deg, #211b58, #6558e8);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font: 800 clamp(35px, 5vw, 53px)/1.3 var(--heading);
  letter-spacing: -2px;
}

.cta-content h2 span {
  color: #c7bdff;
}

.cta-content > p:not(.eyebrow) {
  font-size: 13px;
  color: #dedaff;
  margin: 20px 0 30px;
}

.cta-content .eyebrow {
  color: #c5bbff;
}

.btn-light {
  background: white;
  color: #4237a5;
}

.btn-light:hover {
  box-shadow: 0 10px 30px #0003;
}

/* FAQ */

.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 5px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  padding-right: 35px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 5px;
  color: var(--accent);
  font-size: 22px;
  top: -6px;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  color: var(--muted);
  font-size: 13px;
  padding-top: 15px;
}

/* CONTACT */

.contact-section {
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 65px;
}

.contact-info h3 {
  font: 700 25px var(--heading);
}

.contact-info > p {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 30px;
}

.contact-link {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 25px 0;
}

.contact-link > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #6558e817;
  color: var(--accent);
  font-size: 20px;
}

.contact-link small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}

.contact-link strong {
  font-size: 13px;
  word-break: break-word;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 38px;
}

.contact-socials a {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 35px;
  border-radius: 13px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 9px;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px;
  font-size: 12px;
  outline: none;
  width: 100%;
  transition: .3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  width: 100%;
  border: none;
}

.form-status {
  font-size: 12px;
  margin-top: 13px;
  color: var(--accent);
}


/* Phone Input with Country Code */

.phone-input-wrapper {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.phone-input-wrapper select {
  width: 125px;
  min-width: 110px;
  flex-shrink: 0;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}

.phone-input-wrapper input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  font: inherit;
  outline: none;
}

.phone-input-wrapper input:focus,
.phone-input-wrapper select:focus {
  border-color: var(--accent);
}

.phone-input-wrapper input.invalid {
  border-color: #ef4444;
}

.phone-error {
  display: block;
  margin-top: 6px;
  color: #ef4444;
  font-size: 12px;
  min-height: 16px;
}

@media (max-width: 480px) {
  .phone-input-wrapper {
    gap: 8px;
  }

  .phone-input-wrapper select {
    width: 105px;
    min-width: 105px;
    padding: 10px 6px;
  }
}


/* FOOTER */

.footer {
  padding: 40px 0 20px;
  background: var(--bg);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 35px;
}

.footer-top p,
.footer-bottom p {
  color: var(--muted);
  font-size: 11px;
}

.back-top {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

/* WHATSAPP */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #20bd6a;
  color: white;
  font-size: 25px;
  box-shadow: 0 5px 20px #20bd6a55;
  transition: .3s;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
}

/* SCROLL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE TABLET */

@media(max-width: 1000px) {
  .nav-menu { gap: 16px; }
  .nav-link { font-size: 11px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 30px; }
  .hero-card { padding: 18px; }
  .contact-grid { gap: 30px; }
}

/* RESPONSIVE MOBILE */

@media(max-width: 760px) {
  .section { padding: 75px 0; }

  .navbar { height: 70px; }
  .logo { font-size: 19px; }

  .desktop-cta { display: none; }
  .mobile-cta { display: block; text-align: center; margin-top: 15px; }

  .menu-toggle {
    display: flex;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 7px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .menu-toggle span {
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: .3s;
  }

  .menu-toggle.open span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: 69px;
    left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: .3s;
  }

  .nav-menu.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
  }

  .hero {
    padding-top: 125px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: clamp(40px, 11vw, 58px);
    letter-spacing: -2px;
  }

  .hero-description { font-size: 13px; }

  .hero-visual { min-height: 330px; }
  .hero-card { max-width: 380px; }
  .hero-circle { width: 290px; height: 290px; }
  .float-one { right: 0; }
  .float-two { left: 0; }
  .hero-bottom { margin-top: 35px; }

  .hero-socials { gap: 13px; margin-top: 35px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .section-heading { margin-bottom: 35px; }
  .section-heading h2 { font-size: 35px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card { padding: 20px 15px; min-height: 270px; }
  .service-card h3 { font-size: 14px; }
  .service-card p { font-size: 11px; }

  .skills-grid { grid-template-columns: 1fr; }
  .skill-group { padding: 23px; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-preview { height: 260px; }

  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 15px; }

  .cta-section { padding: 75px 0; }
  .cta-content h2 { font-size: 35px; }

  .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .contact-form { padding: 23px; }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media(max-width: 420px) {
  .container { width: 91%; }

  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-socials span { width: 100%; }
  .about-stats { gap: 10px; }
  .stat-card { padding: 20px 15px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .project-preview { height: 230px; }
  .floating-card { padding: 9px 12px; }
}

/* ACCESSIBILITY & PERFORMANCE */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* =====================================
   THE BETA CODER - PROJECT FIX
===================================== */

.projects-section .projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px 25px;
  align-items: start;
}

.projects-section .project-card {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.projects-section .project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.projects-section .project-image {
  width: 100%;
  height: 260px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-one { background: #e9eaff; }
.visual-two { background: #202338; }
.visual-three { background: #e4f2ee; }
.visual-four { background: #f5e9df; }

/* Browser mockup */

.mock-browser {
  width: 100%;
  max-width: 370px;
  background: white;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 15px 40px #17192320;
  color: #171923;
}

.mock-top {
  height: 30px;
  background: #f2f2f7;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}

.mock-top > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a4a4b0;
}

.mock-top small {
  margin-left: auto;
  font-size: 8px;
  color: #777;
}

.mock-body {
  display: flex;
  min-height: 165px;
}

.mock-sidebar {
  width: 48px;
  background: #252548;
  color: white;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.mock-sidebar b { font-size: 13px; }

.mock-sidebar i {
  width: 14px;
  height: 14px;
  border: 1px solid #ffffff70;
  border-radius: 4px;
}

.mock-dashboard {
  padding: 13px;
  flex: 1;
}

.mock-dashboard > small {
  color: #777;
  font-size: 7px;
}

.mock-dashboard h3 {
  font-size: 15px;
  margin: 5px 0 12px;
}

.mock-stats {
  display: flex;
  gap: 8px;
}

.mock-stats div {
  background: #f0efff;
  padding: 8px;
  border-radius: 5px;
  flex: 1;
}

.mock-stats small,
.mock-stats b {
  display: block;
  font-size: 9px;
}

.mock-chart {
  height: 45px;
  display: flex;
  align-items: end;
  gap: 9px;
  padding-top: 8px;
}

.mock-chart span {
  flex: 1;
  background: #7969eb;
  border-radius: 3px 3px 0 0;
}

.mock-chart span:nth-child(1) { height: 35%; }
.mock-chart span:nth-child(2) { height: 70%; }
.mock-chart span:nth-child(3) { height: 50%; }
.mock-chart span:nth-child(4) { height: 90%; }
.mock-chart span:nth-child(5) { height: 65%; }
.mock-chart span:nth-child(6) { height: 100%; }
.mock-chart span:nth-child(7) { height: 80%; }

/* Movie mockup */

.movie-mockup {
  width: 100%;
  max-width: 370px;
  min-height: 210px;
  background: #141725;
  border-radius: 8px;
  color: white;
  padding: 15px;
  box-shadow: 0 15px 40px #0004;
}

.movie-nav {
  font-size: 12px;
  font-weight: 800;
  color: #a99aff;
}

.movie-nav span {
  float: right;
  font-size: 7px;
  color: #ddd;
  font-weight: 500;
}

.movie-hero {
  margin-top: 22px;
}

.movie-hero small {
  color: #a99aff;
  font-size: 7px;
}

.movie-hero h3 {
  font-size: 25px;
  line-height: 1.15;
  margin: 6px 0;
}

.movie-button {
  display: inline-block;
  padding: 7px 12px;
  background: #7968eb;
  border-radius: 4px;
  font-size: 8px;
}

.movie-posters {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.movie-posters span {
  flex: 1;
  background: #343950;
  height: 25px;
  border-radius: 3px;
  font-size: 7px;
  padding: 5px;
}

/* Telegram bot mockup */

.bot-mockup {
  width: 100%;
  max-width: 330px;
  background: white;
  border-radius: 10px;
  padding: 14px;
  color: #202d34;
  box-shadow: 0 15px 40px #0002;
}

.bot-top {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  font-size: 10px;
  font-weight: 800;
}

.bot-top span {
  float: right;
  color: #20a878;
  font-size: 8px;
}

.bot-message {
  margin-top: 14px;
  background: #f2f6f9;
  border-radius: 7px;
  padding: 15px;
}

.bot-message small {
  font-size: 8px;
  color: #687786;
}

.bot-message h3 {
  font-size: 19px;
  margin: 7px 0;
}

.bot-message p {
  font-size: 10px;
  color: #687786;
}

.bot-action {
  margin-top: 9px;
  background: #318bce;
  color: white;
  padding: 7px;
  border-radius: 4px;
  text-align: center;
  font-size: 9px;
}

/* Landing page mockup */

.landing-mockup {
  width: 100%;
  max-width: 370px;
  min-height: 210px;
  background: #fff;
  color: #29201d;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 15px 40px #0002;
}

.landing-nav {
  font-size: 10px;
  font-weight: 800;
}

.landing-nav span {
  float: right;
  font-size: 7px;
  font-weight: 500;
}

.landing-content {
  padding: 22px 8px;
}

.landing-content small {
  font-size: 8px;
  color: #b56d46;
}

.landing-content h3 {
  font-size: 27px;
  line-height: 1.2;
  margin: 5px 0;
}

.landing-content p {
  font-size: 9px;
  color: #777;
}

.landing-cta {
  display: inline-block;
  margin-top: 12px;
  background: #29201d;
  color: white;
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 8px;
}

/* Project category */

.projects-section .project-category {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  background: white;
  color: #6558e8;
  padding: 7px 11px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
}

/* Project details - force vertical alignment */

.projects-section .project-info {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 23px;
  gap: 0;
}

.projects-section .project-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 9px;
  color: var(--muted);
}

.projects-section .project-info h3 {
  display: block;
  width: 100%;
  font: 700 19px/1.4 var(--heading);
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.projects-section .project-info p {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}

.projects-section .project-tags {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 8px;
  margin: 17px 0;
}

.projects-section .project-tags span {
  font-size: 10px;
  padding: 6px 11px;
}

.projects-section .project-links {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.projects-section .project-links a {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.projects-section .projects-footer {
  margin-top: 40px;
}

/* Tablet */

@media(max-width: 850px) {
  .projects-section .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .projects-section .project-image {
    height: 220px;
  }
}

/* Mobile */

@media(max-width: 580px) {
  .projects-section .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .projects-section .project-image {
    height: 230px;
  }

  .projects-section .project-info {
    padding: 20px;
  }

  .projects-section .project-info h3 {
    font-size: 18px;
  }

  .projects-section .project-meta {
    font-size: 8px;
  }

  .projects-section .projects-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* PROJECT SCREENSHOTS */

.projects-section .project-image {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--bg-soft);
  border-radius: 0;
}

.projects-section .project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}

.projects-section .project-card:hover .project-image img {
  transform: scale(1.05);
}

.projects-section .project-category {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  background: white;
  color: #6558e8;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
}

@media(max-width: 580px) {
  .projects-section .project-image {
    height: 230px;
  }
}


/* Basic copy protection */
body {
    -webkit-user-select: none;
    user-select: none;
}

/* Allow selection in form fields */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

/* Prevent image dragging */
img {
    -webkit-user-drag: none;
    user-drag: none;
}


.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

