/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables */
:root {
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --accent-color: #00adb5;
  --card-bg: #1f1f1f;
  --card-hover: #2e2e2e;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition-base: 0.3s ease;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,173,181,0.2);
}

/* Body & Typography */
body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-color), #819499);
  transition: width 0.2s ease-out;
  border-radius: 0 3px 3px 0;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--card-bg);
  border-bottom: 1px solid rgba(0,173,181,0.1);
  position: relative;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 66px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.15);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
}

.hamburger-icon {
  width: 30px;
  height: 21px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s ease;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--accent-color);
  border-radius: 3px;
  transition: all var(--transition-base);
}

.hamburger-icon.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-icon.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,173,181,0.05) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
}

.hero-illustration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}

.hero-illustration svg {
  width: 100%;
  height: 100%;
}

/* Make sparks more visible */
.hero-illustration .spark-dot {
  opacity: 0.9 !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(0, 173, 181, 0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: 1px;
  background: linear-gradient(to right, #f5f5f5, var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  color: #ddd;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-color);
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  border: none;
  letter-spacing: 1px;
}

.cta-button:hover {
  background-color: #019ca2;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.cta-button:hover::after {
  transform: translateX(100%);
}

/* Categories Section */
.categories {
  padding: 5rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.categories h3 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.categories h3::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  perspective: 1500px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.card-link:hover {
  transform: translateY(-5px);
}

.card {
  background-color: var(--card-bg);
  padding: 2.5rem 1.5rem;
  border-radius: 10px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,173,181,0.1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.card:hover {
  background-color: var(--card-hover);
  box-shadow: var(--shadow-lg);
}

.card:hover::after {
  transform: scaleX(1);
}

/* Category Icons */
.icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--text-color);
}

.card h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(0,173,181,0.1);
  font-size: 1rem;
  color: #aaa;
  margin-top: auto;
  background: var(--card-bg);
  position: relative;
  z-index: 2;
}

/* Enhanced spark animation */
@keyframes sparkle {
  0% {
    opacity: 0.4;
    r: 3;
  }
  50% {
    opacity: 1;
    r: 5;
    fill: #00FFFF;
  }
  100% {
    opacity: 0.4;
    r: 3;
  }
}

.spark-dot {
  animation: sparkle 1.2s infinite ease-in-out;
  filter: url(#spark-glow);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-content h2 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    z-index: 100;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .hamburger-menu {
    display: block;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .logo {
    height: 55px;
  }
  
  .hero {
    min-height: 70vh;
    padding: 2rem 1rem;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .categories {
    padding: 3rem 1rem;
  }
  
  .categories h3 {
    font-size: 2rem;
  }
  
  .card {
    min-height: 180px;
  }
  
  .icon {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .cta-button {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }
}

/* About Page Specific Styles */
.about-content {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
}

.about-container {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.about-text {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,173,181,0.1);
  margin-bottom: 3rem;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.about-text h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #ddd;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 1.8rem;
  border-radius: 10px;
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(0,173,181,0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,173,181,0.3);
}

.feature-card h4 {
  font-size: 1.3rem;
  margin: 1rem 0 0.8rem;
  color: var(--accent-color);
}

.feature-card p {
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.6;
}

.tech-illustration {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  opacity: 0.8;
  padding: 1rem;
}

.call-to-action {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 4rem 2rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ddd;
}

/* Responsive adjustments for about page */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }
  
  .about-text {
    padding: 1.8rem;
  }
  
  .about-text h3 {
    font-size: 1.8rem;
  }
  
  .call-to-action {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-text {
    padding: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .cta-content h3 {
    font-size: 1.8rem;
  }
  
  .cta-content p {
    font-size: 1.1rem;
  }
}
