/* 
  CodenixDigital - Premium Design System 
  Theme: Dark, Neon, Glassmorphism
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-dark: #050505;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(20, 20, 20, 0.6);

  --primary: #00f3ff;
  /* Neon Cyan */
  --secondary: #bc13fe;
  /* Neon Purple */
  --accent: #ffffff;

  --text-main: #ffffff;
  --text-muted: #a1a1aa;

  /* Effects */
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glow-primary: 0 0 20px rgba(0, 243, 255, 0.3);
  --glow-secondary: 0 0 20px rgba(188, 19, 254, 0.3);

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: #000;
  box-shadow: var(--glow-primary);
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  z-index: -1;
  transition: opacity 0.3s;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 243, 255, 0.1);
  box-shadow: var(--glow-primary);
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.4);
  }

  100% {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
  }
}

@keyframes blob-move {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--bg-glass);
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
  animation: blob-move 10s infinite alternate;
}

.blob-1 {
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--secondary);
}

.blob-2 {
  bottom: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--primary);
  animation-delay: -5s;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 700;
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* Services Section */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

.service-card {
  background: var(--bg-card);
  border: var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  transition: transform 0.1s, box-shadow 0.3s;
  /* Faster transform for tilt */
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card:hover {
  box-shadow: var(--glass-shadow);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.service-card:hover::before {
  transform: translateX(100%);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--primary);
  transform: translateZ(20px);
  /* 3D effect */
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  transform: translateZ(15px);
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  transform: translateZ(10px);
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: var(--glass-border);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.3s;
}

.contact-form:hover {
  box-shadow: var(--glow-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  border-top: var(--glass-border);
  padding: 60px 0 30px;
  background: #020202;
  margin-top: 100px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
  color: var(--text-main);
  text-decoration: none;
}

.footer-links h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
  /* Subtle movement */
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
  }

  .section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
  }

  .service-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.1s, box-shadow 0.3s;
    /* Faster transform for tilt */
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
  }

  .service-card:hover {
    box-shadow: var(--glass-shadow);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
  }

  .service-card:hover::before {
    transform: translateX(100%);
  }

  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--primary);
    transform: translateZ(20px);
    /* 3D effect */
  }

  .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    transform: translateZ(15px);
  }

  .service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    transform: translateZ(10px);
  }

  /* Contact Section */
  .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }

  .contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: var(--glass-border);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.3s;
  }

  .contact-form:hover {
    box-shadow: var(--glow-primary);
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-control {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
  }

  .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
  }

  textarea.form-control {
    resize: vertical;
    min-height: 120px;
  }

  /* Footer */
  footer {
    border-top: var(--glass-border);
    padding: 60px 0 30px;
    background: #020202;
    margin-top: 100px;
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    color: var(--text-main);
    text-decoration: none;
  }

  .footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
  }

  .footer-links ul {
    list-style: none;
  }

  .footer-links li {
    margin-bottom: 10px;
  }

  .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
    /* Subtle movement */
  }

  .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 3rem;
    }

    .contact-wrapper {
      grid-template-columns: 1fr;
    }

    .nav-links {
      display: none;
      /* Mobile menu to be implemented */
    }

    .section-title {
      font-size: 2.5rem;
      margin-bottom: 16px;
    }

    .section-subtitle {
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 2px;
      font-size: 0.9rem;
      font-weight: 600;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      perspective: 1000px;
    }

    .service-card {
      background: var(--bg-card);
      border: var(--glass-border);
      padding: 40px;
      border-radius: 20px;
      transition: transform 0.1s, box-shadow 0.3s;
      /* Faster transform for tilt */
      position: relative;
      overflow: hidden;
      transform-style: preserve-3d;
    }

    .service-card:hover {
      box-shadow: var(--glass-shadow);
      border-color: rgba(255, 255, 255, 0.2);
    }

    .service-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
      transform: translateX(-100%);
      transition: 0.5s;
    }

    .service-card:hover::before {
      transform: translateX(100%);
    }

    .service-icon {
      font-size: 2.5rem;
      margin-bottom: 24px;
      color: var(--primary);
      transform: translateZ(20px);
      /* 3D effect */
    }

    .service-card h3 {
      font-size: 1.5rem;
      margin-bottom: 16px;
      transform: translateZ(15px);
    }

    .service-card p {
      color: var(--text-muted);
      font-size: 1rem;
      transform: translateZ(10px);
    }

    /* Contact Section */
    .contact-wrapper {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }

    .contact-form {
      background: var(--bg-card);
      padding: 40px;
      border-radius: 20px;
      border: var(--glass-border);
      box-shadow: 0 0 0 rgba(0, 0, 0, 0);
      transition: box-shadow 0.3s;
    }

    .contact-form:hover {
      box-shadow: var(--glow-primary);
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-control {
      width: 100%;
      padding: 16px;
      background: rgba(0, 0, 0, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      color: var(--text-main);
      font-family: inherit;
      font-size: 1rem;
      transition: all 0.3s;
    }

    .form-control:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
      background: rgba(0, 0, 0, 0.4);
    }

    textarea.form-control {
      resize: vertical;
      min-height: 120px;
    }

    /* Footer */
    footer {
      border-top: var(--glass-border);
      padding: 60px 0 30px;
      background: #020202;
      margin-top: 100px;
    }

    .footer-content {
      display: flex;
      justify-content: space-between;
      margin-bottom: 40px;
      flex-wrap: wrap;
      gap: 40px;
    }

    .footer-logo {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 20px;
      display: block;
      color: var(--text-main);
      text-decoration: none;
    }

    .footer-links h4 {
      margin-bottom: 20px;
      font-size: 1.1rem;
    }

    .footer-links ul {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 10px;
    }

    .footer-links a {
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.3s;
    }

    .footer-links a:hover {
      color: var(--primary);
      padding-left: 5px;
      /* Subtle movement */
    }

    .copyright {
      text-align: center;
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      color: var(--text-muted);
      font-size: 0.9rem;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .hero h1 {
        font-size: 3rem;
      }

      .contact-wrapper {
        grid-template-columns: 1fr;
      }

      .nav-links {
        display: none;
        /* Mobile menu to be implemented */
      }

      .footer-content {
        flex-direction: column;
      }
    }

    /* Custom Tech Logo Animation */
    .tech-logo-container {
      position: relative;
      width: 300px;
      height: 300px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .tech-ring {
      position: absolute;
      border-radius: 50%;
      border: 2px solid transparent;
      border-top-color: var(--primary);
      border-bottom-color: var(--secondary);
      box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
      animation: spin 4s linear infinite;
    }

    .ring-1 {
      width: 100%;
      height: 100%;
      animation-duration: 8s;
    }

    .ring-2 {
      width: 70%;
      height: 70%;
      border-left-color: var(--primary);
      border-right-color: var(--secondary);
      animation: spin 6s linear infinite reverse;
    }

    .ring-3 {
      width: 40%;
      height: 40%;
      border: 2px dashed var(--text-muted);
      animation: spin 12s linear infinite;
    }

    .tech-core {
      position: absolute;
      padding: 10px 20px;
      background: var(--bg-card);
      border-radius: 50px;
      /* Pill shape */
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text-main);
      box-shadow: var(--glow-primary);
      backdrop-filter: blur(5px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      z-index: 10;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    @keyframes spin {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }