@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #030712; /* gray-950 */
  --bg-card: rgba(17, 24, 39, 0.6); /* gray-900 with opacity */
  --text-main: #f3f4f6; /* gray-100 */
  --text-muted: #9ca3af; /* gray-400 */
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --purple-500: #a855f7;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(3, 7, 18, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 20px rgba(20, 184, 166, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Animation Map Container */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.bg-gradient-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(3,7,18,0.95), rgba(17,24,39,0.8), rgba(3,7,18,0.95));
  z-index: -1;
  pointer-events: none;
}

.ambient-light {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.ambient-1 {
  top: 20%; left: 20%; width: 400px; height: 400px;
  background: var(--teal-500);
}

.ambient-2 {
  bottom: 20%; right: 20%; width: 400px; height: 400px;
  background: var(--cyan-400);
  animation-delay: -5s;
}

.ambient-3 {
  top: 50%; right: 30%; width: 300px; height: 300px;
  background: var(--purple-500);
  animation-delay: -10s;
}

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

.gradient-text {
  background: linear-gradient(to right, var(--teal-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: white;
}

.logo-icon {
  color: var(--teal-400);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: white;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--teal-400);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 2rem;
  color: var(--teal-400);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal-400);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--teal-400);
}

.hero-title {
  font-size: 4.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal-500);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(20, 184, 166, 0.39);
}

.btn-primary:hover {
  background: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

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

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

.hero-stats {
  display: flex;
  gap: 3rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.code-window {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(20, 184, 166, 0.1);
  animation: float 6s ease-in-out infinite, fadeIn 1s ease-out 1s both;
}

.window-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.window-title {
  margin: 0 auto;
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.875rem;
}

.code-content {
  padding: 1.5rem;
  font-family: monospace;
  font-size: 0.875rem;
  color: #e5e7eb;
  overflow-x: auto;
}

.code-content .keyword { color: #c678dd; }
.code-content .function { color: #61afef; }
.code-content .string { color: #98c379; }

/* Sections Common */
section {
  padding: 6rem 0;
  position: relative;
}

.section-tag {
  color: var(--teal-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 4rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal-500);
  box-shadow: var(--shadow-glow);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, var(--teal-400), var(--cyan-400));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--teal-500);
  color: white;
}

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

.service-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.learn-more {
  color: var(--teal-400);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.learn-more:hover {
  color: var(--cyan-400);
}

/* Contact page forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: white;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 250px; height: 100vh;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 6rem 2rem;
    transition: right 0.3s ease;
  }
  .nav-links.active { right: 0; }
  .mobile-toggle { display: flex; z-index: 60; }
}

/* Tech Stack */
.tech-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tech-pill {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.tech-pill.featured {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.3);
  color: var(--teal-400);
}

.tech-pill:hover {
  background: rgba(20, 184, 166, 0.2);
  transform: translateY(-2px);
  color: white;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  background: rgba(3, 7, 18, 0.9);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--teal-400); }

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--teal-400); }

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
