/* Base Styles */
:root {
  --dark-bg: #0a0c10;
  --darker-bg: #05070a;
  --card-bg: #12151c;
  --card-hover: #181c26;
  --accent: #2AF6A2;
  --accent-hover: #20ca83;
  --text-primary: #f2f3f6;
  --text-secondary: #b8bac3;
  --border-color: #2a2f3a;
  --gradient-primary: linear-gradient(135deg, var(--accent) 0%, #3ab1fc 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-primary:hover {
  background-color: var(--card-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-primary);
  color: #000;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 246, 162, 0.2);
}

.btn-large {
  padding: 15px 32px;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

nav ul li a:hover {
  color: var(--accent);
}

nav ul li a.active {
  color: var(--accent);
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.login-btn {
  background-color: var(--card-bg);
  padding: 8px 18px;
  border-radius: 6px;
  transition: var(--transition);
}

.login-btn:hover {
  background-color: var(--card-hover);
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

/* Hero Section - FIXED */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(42, 246, 162, 0.1), transparent 70%);
  z-index: -1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.hero-content .subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-content .description {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

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

.server-illustration {
  position: relative;
  width: 500px;
  height: 400px;
  background: url('https://via.placeholder.com/500x400') no-repeat center;
  background-size: contain;
}

.glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: radial-gradient(circle at center, rgba(42, 246, 162, 0.2), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

/* Services Section */
.services {
  background-color: var(--darker-bg);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom left, rgba(42, 246, 162, 0.05), transparent 70%);
  z-index: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(42, 246, 162, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon i {
  font-size: 2rem;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

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

/* Tech Stack Section */
.tech-stack {
  background-color: var(--dark-bg);
  position: relative;
}

.tech-carousel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.tech-item {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: var(--transition);
}

.tech-item:hover {
  opacity: 1;
  transform: scale(1.1);
}

.tech-item img {
  max-width: 100%;
  max-height: 100%;
}

/* Server Specs Section */
.server-specs {
  background-color: var(--darker-bg);
  position: relative;
}

.server-specs::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(42, 246, 162, 0.05), transparent 70%);
  z-index: 0;
}

.specs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.spec-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

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

.spec-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(42, 246, 162, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.spec-icon i {
  font-size: 2rem;
  color: var(--accent);
}

.spec-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

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

/* Pricing Section */
.pricing {
  background-color: var(--dark-bg);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.pricing-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  transform: scale(1.05);
  border-color: var(--accent);
  z-index: 2;
}

.pricing-card:hover {
  transform: translateY(-5px);
  background-color: var(--card-hover);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-header {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(42, 246, 162, 0.05);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gradient-primary);
  color: #000;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 0 0 0 8px;
}

.pricing-header h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.features {
  list-style: none;
  padding: 30px;
  flex-grow: 1;
}

.features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.features li i {
  color: var(--accent);
  margin-right: 10px;
}

.pricing-card .btn {
  margin: 0 30px 30px;
}

/* Panel Preview Section */
.panel-preview {
  background-color: var(--darker-bg);
  position: relative;
}

.panel-showcase {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.panel-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-image img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(10, 12, 16, 0.5), transparent);
}

.panel-features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature i {
  font-size: 1.5rem;
  color: var(--accent);
}

.feature h4 {
  font-size: 1.2rem;
}

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

/* CTA Section */
.cta {
  background: radial-gradient(circle at center, var(--card-bg), var(--darker-bg));
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--darker-bg);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--accent);
}

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

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: center;
}

.contact-info li i {
  margin-right: 10px;
  color: var(--accent);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s forwards;
}

.fade-in-delayed {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s 0.3s forwards;
}

.scroll-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animation.animate {
  opacity: 1;
  transform: translateY(0);
}

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .server-illustration {
    max-width: 100%;
    margin: 0 auto;
  }

  .panel-showcase {
    grid-template-columns: 1fr;
  }

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

@media screen and (max-width: 768px) {
  .navbar .container {
    position: relative;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-bg);
    width: 100%;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }
}

@media screen and (max-width: 576px) {
  /* Updated hero mobile styles */
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    word-wrap: break-word;
  }

  .hero-content .subtitle {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    padding: 0 15px;
  }

  .hero-content .description {
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    word-wrap: break-word;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    max-width: 300px;
  }

  .hero {
    min-height: 100vh; /* This ensures full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
    align-items: center;
    padding-top: 50%; /* Keep your padding */
    padding-bottom: 40px;
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
    align-items: center;
  }


  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .server-illustration {
    height: 250px;
    width: 100%;
    max-width: 300px;
  }

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

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

@media screen and (max-width: 375px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }
}
