:root {
  --bg-primary: #0f0f12;
  --bg-secondary: #18181e;
  --text-primary: #e8e8e8;
  --text-secondary: #9a9aa8;
  --accent: #a5a5b8;
  --accent-hover: #c8c8d8;
  --border: #36363f;
  --success: #7dd3bf;
  --metallic-light: #d1d1d4;
  --metallic-mid: #96969d;
  --metallic-dark: #4c4c52;
  --navy-dark: #0d1b30;
  --navy-mid: #14294d;
  --navy-light: #1e3a6b;
  --navy-accent: #3a5998;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Courier New", monospace;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
}

.header-container {
  background-color: rgba(13, 27, 48, 0.5);
  border-radius: 16px;
  padding: 1rem 2rem;
  border: 1px solid rgba(54, 54, 63, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(12px);
  -moz-backdrop-filter: blur(12px);
  -o-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  .header-container {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

@supports not (
  (-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))
) {
  .header-container {
    background-color: rgba(13, 27, 48, 0.85);
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--text-primary);
  margin-left: 0.5rem;
}

.logo-img {
  height: 40px;
  margin-right: 10px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--metallic-light),
    transparent
  );
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover:after {
  width: 100%;
}

main {
  padding-top: 100px;
}

.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(30, 58, 107, 0.15),
    transparent 70%
  );
  z-index: -1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  background: linear-gradient(145deg, var(--text-primary), var(--metallic-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.slogan {
  font-style: italic;
  color: var(--navy-accent);
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-dark));
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, var(--navy-light), var(--navy-mid));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(54, 54, 63, 0.3);
}

.btn:hover:before {
  opacity: 1;
}

.services {
  padding: 5rem 0;
  position: relative;
}

.services:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(20, 41, 77, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: -1;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  background: linear-gradient(145deg, var(--text-primary), var(--metallic-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(15, 15, 18, 0.8);
  border: 1px solid rgba(30, 58, 107, 0.3);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(30, 58, 107, 0.1),
    transparent 60%
  );
  transform: scale(0);
  transition: transform 0.5s ease;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(30, 58, 107, 0.5);
}

.service-card:hover:before {
  transform: scale(1);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--metallic-light);
}

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

.futuristic-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(30, 58, 107, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 107, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -2;
  opacity: 0.15;
  pointer-events: none;
}

.marketplace {
  padding: 5rem 0;
  position: relative;
}

.marketplace:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    145deg,
    rgba(15, 15, 18, 0.3),
    rgba(20, 41, 77, 0.3)
  );
  z-index: -1;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 250px;
  background: rgba(20, 41, 77, 0.4);
  border: 1px solid rgba(30, 58, 107, 0.5);
  border-radius: 12px;
  padding: 2rem;
  margin: 1rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(58, 89, 152, 0.5);
}

.process-step:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy-accent);
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(30, 58, 107, 0.3);
  z-index: 1;
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-dark));
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-bottom: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.process-step h3 {
  margin-bottom: 1rem;
  color: var(--metallic-light);
}

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

.about {
  padding: 5rem 0;
  position: relative;
}

.about:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 15, 18, 0.5);
  z-index: -1;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  background: linear-gradient(145deg, var(--text-primary), var(--metallic-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal {
  background: var(--navy-dark);
  border-radius: 12px;
  border: 1px solid var(--navy-mid);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.terminal-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.terminal-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.terminal-header span:nth-child(1) {
  background-color: #ff5f56;
}

.terminal-header span:nth-child(2) {
  background-color: #ffbd2e;
}

.terminal-header span:nth-child(3) {
  background-color: #27c93f;
}

.terminal-content {
  font-family: "Courier New", monospace;
  color: var(--text-primary);
  line-height: 1.8;
  text-align: left;
}

.terminal-content p {
  margin-bottom: 0.5rem;
}

.command {
  color: var(--success);
}

.command::before {
  content: "$ ";
}

.contact {
  padding: 5rem 0;
  position: relative;
}

.contact:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    145deg,
    rgba(20, 41, 77, 0.2),
    rgba(15, 15, 18, 0.2)
  );
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: -1;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(15, 15, 18, 0.7);
  border: 1px solid rgba(30, 58, 107, 0.3);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(13, 27, 48, 0.5);
  border: 1px solid rgba(30, 58, 107, 0.5);
  border-radius: 8px;
  padding: 0.8rem;
  color: var(--text-primary);
  font-family: "Courier New", monospace;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-accent);
  box-shadow: 0 0 15px rgba(30, 58, 107, 0.3);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  text-align: center;
  margin-top: 3rem;
  color: var(--text-secondary);
}

.contact-info a {
  color: var(--navy-accent);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.contact-info a:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--navy-accent),
    transparent
  );
  transition: opacity 0.3s ease;
  opacity: 0.5;
}

.contact-info a:hover:after {
  opacity: 1;
}

footer {
  padding: 3rem 0;
  position: relative;
}

footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(13, 27, 48, 0.8);
  z-index: -1;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      ellipse at top,
      rgba(30, 58, 107, 0.05),
      transparent 70%
    ),
    radial-gradient(ellipse at bottom, rgba(20, 41, 77, 0.05), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 12px;
  margin-right: -10px;
  width: 48px;
  height: 48px;
  position: relative;
  border-radius: 50%;
  /* transition: background-color 0.3s ease; */
}

/* .mobile-menu-btn:hover {
        background-color: rgba(30, 58, 107, 0.3);
    } */

.hamburger-lines {
  position: relative;
  width: 24px;
  height: 24px;
}

.hamburger-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger-line:nth-of-type(1) {
  top: 4px;
  width: 60%;
  left: 0;
}

.hamburger-line:nth-of-type(2) {
  top: 11px;
  width: 100%;
}

.hamburger-line:nth-of-type(3) {
  top: 18px;
  width: 80%;
  left: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-of-type(1) {
  width: 100%;
  top: 11px;
  transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-of-type(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-btn.active .hamburger-line:nth-of-type(3) {
  width: 100%;
  top: 11px;
  transform: rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.previous-works {
  padding: 5rem 0;
  position: relative;
}

.previous-works:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(20, 41, 77, 0.1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: -1;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.work-card {
  background: rgba(15, 15, 18, 0.85);
  border: 1px solid rgba(30, 58, 107, 0.35);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.work-card:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(30, 58, 107, 0.15),
    transparent 70%
  );
  transform: scale(0);
  transition: transform 0.5s ease;
  z-index: 0;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  border-color: rgba(58, 89, 152, 0.55);
}

.work-card:hover:before {
  transform: scale(1);
}

.work-card .work-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(30, 58, 107, 0.2);
  position: relative;
  z-index: 1;
}

.work-card h3 {
  margin-bottom: 0.75rem;
  color: var(--metallic-light);
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.work-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .works-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .work-card h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .previous-works {
    padding: 4rem 0;
  }
  .work-card {
    padding: 1.2rem;
  }
  .work-card .work-image {
    height: 180px;
  }
  .work-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .previous-works {
    padding: 3rem 0;
  }
  .works-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .work-card {
    padding: 1rem;
  }
  .work-card .work-image {
    height: 160px;
    margin-bottom: 1rem;
  }
  .work-card h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 992px) {
  .process-steps {
    flex-wrap: wrap;
    justify-content: center;
  }

  .process-step {
    flex-basis: calc(50% - 2rem);
    margin-bottom: 2rem;
    min-width: 220px;
  }

  .process-step:not(:last-child):after {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    margin-top: 2rem;
    width: 100%;
  }

  .terminal {
    width: 100%;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo span {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -200%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(13, 27, 48, 0.95),
      rgba(20, 30, 50, 0.98)
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    /* border-radius: 25px; */
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
    padding: 2rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid rgba(58, 89, 152, 0.2);
  }

  .nav-links:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 58, 107, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(30, 58, 107, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.2;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    background-color: rgba(30, 58, 107, 0.15);
    border: 1px solid rgba(58, 89, 152, 0.1);
    transition: all 0.3s ease;
    transform: translateX(20px);
    opacity: 0;
  }

  .nav-links a:after {
    display: none;
  }

  .nav-links a:hover {
    background-color: rgba(30, 58, 107, 0.3);
    border-color: rgba(58, 89, 152, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links.active a {
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
      opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .nav-links.active a:nth-child(1) { transition-delay: 0.1s; } /* Services */
  .nav-links.active a:nth-child(2) { transition-delay: 0.2s; } /* Marketplace */
  .nav-links.active a:nth-child(3) { transition-delay: 0.3s; } /* About */
  .nav-links.active a:nth-child(4) { transition-delay: 0.4s; } /* Previous Works */
  .nav-links.active a:nth-child(5) { transition-delay: 0.5s; } /* Contact */
  .nav-links.active a:nth-child(6) { transition-delay: 0.6s; } /* DevPortal */

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

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .process-step {
    flex-basis: 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .container {
    padding: 0 1.5rem;
  }

  .terminal {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
  }

  .about-image {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.8rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .service-card,
  .process-step,
  .contact-form {
    padding: 1.5rem;
  }

  .nav-links {
    width: 100%;
    max-width: none;
  }

  .terminal-content {
    font-size: 0.85rem;
  }

  .terminal {
    padding: 1.2rem;
  }

  .process-step {
    margin: 0.5rem;
    padding: 1.2rem;
  }

  .mobile-menu-btn {
    padding: 10px;
    margin-right: -5px;
  }
}

.form-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

