/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "SF Pro SC", "SF Pro Text", "SF Pro Icons", "PingFang SC",
    "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: #1d1d1f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #000;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}

.nav-brand {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #a1a1a6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #86b7fe;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Section Styles */
.section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px 20px; /* Added top padding for fixed nav */
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.logo-container {
  position: relative;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.logo {
  font-size: 80px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: transparent;
  background: linear-gradient(135deg, #fff 0%, #86b7fe 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
  position: relative;
  animation: glow 2s ease-in-out infinite alternate,
    textShine 3s linear infinite;
}

/* Animations */
@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(134, 183, 254, 0.3),
      0 0 40px rgba(134, 183, 254, 0.3);
  }
  to {
    text-shadow: 0 0 30px rgba(134, 183, 254, 0.5),
      0 0 50px rgba(134, 183, 254, 0.5);
  }
}

@keyframes textShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.meaning {
  font-size: 14px;
  color: #86b7fe;
  opacity: 0;
  letter-spacing: 0.1em;
  margin-top: 10px;
  font-weight: 400;
  animation: fadeIn 0.5s ease-out 0.8s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.8;
  }
}

h2 {
  font-size: 27px;
  line-height: 1.14286;
  font-weight: 400;
  letter-spacing: 0.004em;
  background: linear-gradient(90deg, #a1a1a6 0%, #fff 50%, #a1a1a6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1s forwards, shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Footer */
.footer {
  padding: 17px 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.33337;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #6e6e73;
  border-top: 1px solid #282828;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1.2s forwards;
  width: 100%;
}

.footer a {
  color: #a1a1a6;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #86b7fe;
  animation: pulse 0.5s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Tech Lines Background */
.tech-lines {
  position: fixed; /* Changed to fixed so it works on long pages */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0.3;
  pointer-events: none;
  transform: rotate(-5deg);
  z-index: 0;
}

.tech-line {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    #86b7fe 20%,
    #fff 50%,
    #86b7fe 80%,
    transparent
  );
  height: 2px;
  width: 120%;
  animation: techLine 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0;
  transform-origin: left;
  box-shadow: 0 0 15px rgba(134, 183, 254, 0.6);
}

@keyframes techLine {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Mobile Responsiveness */
@media only screen and (max-width: 734px) {
  .navbar {
    padding: 15px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    gap: 20px;
    text-align: center;
    border-bottom: 1px solid #282828;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .logo {
    font-size: 50px;
  }

  h2 {
    font-size: 21px;
  }

  .meaning {
    font-size: 12px;
  }

  .section {
    padding-top: 80px;
  }
}

/* Services Page Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
    padding: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(134, 183, 254, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(134, 183, 254, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 32px;
    color: #86b7fe;
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}

.service-desc {
    font-size: 14px;
    color: #A1A1A6;
    line-height: 1.6;
}

/* About Page Styles */
.about-content {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
    color: #A1A1A6;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff 0%, #86b7fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact Page Styles */
.contact-container {
    max-width: 600px;
    width: 100%;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #86b7fe;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(134, 183, 254, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #86b7fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(134, 183, 254, 0.3);
}

.contact-info {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.info-item {
    text-align: center;
}

.info-icon {
    font-size: 24px;
    color: #86b7fe;
    margin-bottom: 10px;
}

.info-text {
    font-size: 14px;
    color: #A1A1A6;
}

@media only screen and (max-width: 734px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}
