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

:root {
  color-scheme: dark;
  --bg-dark: #030804;
  --bg-card: rgba(8, 20, 12, 0.6);
  --bg-card-hover: rgba(12, 32, 20, 0.85);
  --border-color: rgba(52, 211, 153, 0.12);
  --border-color-hover: rgba(52, 211, 153, 0.35);
  --accent-emerald: #10b981;
  --accent-mint: #34d399;
  --accent-cyber: #2eff7f;
  --text-primary: #f0fdf4;
  --text-secondary: #9eceb4;
  --text-muted: #5e836d;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --glow-shadow: 0 0 25px rgba(16, 185, 129, 0.08);
  --glow-shadow-hover: 0 0 40px rgba(52, 211, 153, 0.25);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* 3D WebGL Canvas Layer */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.webgl-active #webgl-canvas {
  opacity: 1;
}

/* Background Ambient Glows and Grid */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -2; /* Place behind canvas when inactive */
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 50%, rgba(5, 150, 105, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(52, 211, 153, 0.05) 0%, transparent 45%);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.webgl-active .bg-ambient {
  opacity: 0;
}

.bg-ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

/* Light rays from top */
.light-ray {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 30vw;
  height: 80vh;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.03) 0%, transparent 70%);
  transform: rotate(-15deg);
  filter: blur(40px);
  pointer-events: none;
  animation: sway 12s ease-in-out infinite alternate;
}

.light-ray-2 {
  position: absolute;
  top: -5%;
  right: 15%;
  width: 25vw;
  height: 70vh;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.02) 0%, transparent 60%);
  transform: rotate(-25deg);
  filter: blur(50px);
  pointer-events: none;
  animation: sway-delayed 15s ease-in-out infinite alternate;
}

@keyframes sway {
  0% { transform: rotate(-15deg) translateX(-10px); }
  100% { transform: rotate(-12deg) translateX(10px); }
}

@keyframes sway-delayed {
  0% { transform: rotate(-25deg) translateX(10px); }
  100% { transform: rotate(-22deg) translateX(-10px); }
}

/* Ambient firefly particles */
.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-cyber);
  border-radius: 50%;
  filter: drop-shadow(0 0 4px var(--accent-cyber));
  opacity: 0;
  pointer-events: none;
  animation: float-firefly 25s infinite linear;
}

@keyframes float-firefly {
  0% { transform: translateY(100vh) translateX(0) scale(0.5); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) translateX(80px) scale(1); opacity: 0; }
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 8, 4, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 2rem;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  object-fit: cover;
  transition: var(--transition-smooth);
}

.logo-link:hover .logo-img {
  transform: rotate(10deg) scale(1.05);
  border-color: var(--accent-mint);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-mint);
  transition: var(--transition-smooth);
}

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

nav a:hover::after {
  width: 100%;
}

/* Page Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 1rem 8rem;
  position: relative;
}

.hero-logo-box {
  margin-bottom: 2rem;
  display: inline-block;
  position: relative;
  animation: floatLogo 6s ease-in-out infinite;
}

.hero-logo-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.25) 0%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

.hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

@keyframes floatLogo {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-mint);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.title-gradient {
  background: linear-gradient(135deg, #ffffff 40%, #52e597 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 680px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.8;
}

.hero-description em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 600;
  border-bottom: 1px dashed rgba(52, 211, 153, 0.4);
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #0d9488 100%);
  color: #022c22;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.45);
  filter: brightness(1.1);
}

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

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-shadow);
}

/* Sections Global */
section {
  padding: 6rem 0;
  border-top: 1px solid rgba(16, 185, 129, 0.08);
}

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
}

/* Ongoing Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glow-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: var(--glow-shadow-hover);
}

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

.card-top {
  position: relative;
  z-index: 1;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 99px;
  color: var(--accent-mint);
  margin-bottom: 1.5rem;
}

.dot-pulse {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyber);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 255, 127, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(46, 255, 127, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 255, 127, 0); }
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-mint);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.card-preview-container {
  margin-top: auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.1);
  background: #020603;
  aspect-ratio: 16/9;
  position: relative;
}

.card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .card-preview-img {
  transform: scale(1.04);
}

/* Released Apps Section */
.released-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.released-item {
  display: flex;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(8, 20, 12, 0.4) 0%, rgba(4, 10, 6, 0.6) 100%);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 3.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.released-item:hover {
  border-color: rgba(52, 211, 153, 0.25);
  box-shadow: var(--glow-shadow);
}

.released-item:nth-child(even) {
  flex-direction: row-reverse;
}

.released-media {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.12);
  background: #020603;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.released-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.released-item:hover .released-img {
  transform: scale(1.03);
}

.released-info {
  flex: 1.2;
}

.released-item h3 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.released-subtitle {
  color: var(--accent-mint);
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.released-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.playstore-button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.6rem;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.playstore-button:hover {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--accent-mint);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.2);
}

.playstore-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 992px) {
  .released-item,
  .released-item:nth-child(even) {
    flex-direction: column;
    padding: 2.5rem;
    gap: 2rem;
  }
  .released-media {
    width: 100%;
    aspect-ratio: 16/9;
  }
}

/* Vision / Brainstorm Section */
.vision-banner {
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.07) 0%, transparent 60%),
              linear-gradient(135deg, rgba(8, 20, 12, 0.6) 0%, rgba(4, 10, 6, 0.7) 100%);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 4rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.vision-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.06) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.vision-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.vision-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  color: var(--accent-mint);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.vision-banner h3 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.vision-banner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.vision-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
  padding-top: 2rem;
}

.vision-item h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.vision-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .vision-banner {
    padding: 2.5rem;
  }
  .vision-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem;
  background-color: #020603;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ffffff 40%, #52e597 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 400px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-mint);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(16, 185, 129, 0.05);
  width: 100%;
  padding-top: 2rem;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
  
  nav ul {
    gap: 1.5rem;
  }
  
  .released-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  main {
    padding: 3rem 1.25rem;
  }
  
  .hero {
    padding: 4rem 0.5rem 5rem;
  }
  
  .cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .btn {
    justify-content: center;
  }
  
  .project-card {
    padding: 1.75rem;
  }
}


