:root {
  --bg-color: #050b14;
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.4);
  --secondary: #0ea5e9;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.1);
  --font-main: 'Montserrat', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

html {
  scroll-behavior: smooth;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Allow navbar dropdown to overflow - fix for iOS/Android mobile menu */
.navbar.glass {
  overflow: visible;
}

/* Glass interactive glow */
.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(255, 255, 255, 0.04),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

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

.glass > * {
  position: relative;
  z-index: 2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 800;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.1);
}

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

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 15px 0;
  background: rgba(5, 11, 20, 0.85);
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.small-icon {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Sections */
.section {
  padding: 120px 0 60px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.15) 0%, rgba(5, 11, 20, 0) 80%);
  z-index: -1;
  overflow: hidden;
}

.tech-grid {
  position: absolute;
  width: 200vw;
  height: 200vh;
  top: 0;
  left: -50vw;
  background-image: 
    linear-gradient(rgba(0, 255, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  transform-origin: center top;
  transform: perspective(1000px) rotateX(70deg) translateY(0);
  animation: gridMove 20s linear infinite;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 40%, transparent 90%);
}

@keyframes gridMove {
  0% { transform: perspective(1000px) rotateX(75deg) translateY(0); }
  100% { transform: perspective(1000px) rotateX(75deg) translateY(50px); }
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-subtitle {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  margin-top: 30px;
  font-size: 0.9rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 30px;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.features-list {
  list-style: none;
}

.features-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
}

.features-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.8rem;
}

.about-image-card {
  height: 400px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.abstract-energy {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.2), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  filter: blur(20px);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* Services Section */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.service-card {
  padding: 40px;
  border-radius: 20px;
  text-align: left;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

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

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

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
}

/* Contact Section */
.contact-container {
  max-width: 800px;
}

.dark-bg-edit {
  position: relative;
  background-image: url('./public/contact-bg.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  /* Removed border-top: 1px solid var(--surface-border) to fix clipping bug */
  box-shadow: inset 0 1px 0 0 var(--surface-border); /* Simulates the border inward */
  z-index: 1;
  overflow: hidden; 
}

.dark-bg-edit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 11, 20, 0.85); /* Solid dark tint */
  z-index: -1;
}

.contact-info {
  padding: 60px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.4));
  border-top: 2px solid var(--primary);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}

.personal-contact {
  text-align: left;
  display: inline-block;
  background: rgba(0, 0, 0, 0.4);
  padding: 25px 35px;
  border-radius: 12px;
  border-left: 4px solid #00FF00;
  margin: 15px 0;
  line-height: 1.6;
  font-size: 1.05rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--surface-border);
  margin-top: 60px;
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 0.9rem;
}

.footer-links {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
.fade-in-down {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-down.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Impact Matrix Section */
.impact-matrix {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.impact-item {
  padding: 2.5rem 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.impact-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #00FF00; /* Winamp Green */
  margin-bottom: 0.5rem;
  line-height: 1;
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.impact-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 11, 20, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 0;
    text-align: center;
    border-bottom: 1px solid var(--surface-border);
    gap: 0;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1.1rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

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

  .nav-links a:active {
    background: rgba(16, 185, 129, 0.15);
  }
  
  .mobile-menu-btn {
    display: flex;
  }

  .hero-content {
    padding-top: 30px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    text-align: center;
  }
}
