/* style.css */

:root {
  --bg-dark: #0a0a0c;
  --bg-alt: #0d0d12;
  --primary: #7c6cff;
  --primary-glow: rgba(124, 108, 255, 0.4);
  --secondary: #4d3bff;
  --accent: #00f2ff;
  --text: #e2e2e6;
  --text-dim: #a1a1aa;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(124, 108, 255, 0.1);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: 'Inter', sans-serif;
  --font-title: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* --- NOISE TEXTURE --- */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

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

/* --- CURSOR --- */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease;
}
.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  background: rgba(124, 108, 255, 0.05);
}

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.loader-content {
  text-align: center;
}
.loader-logo {
  width: 80px;
  animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--primary)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--primary)); }
}
.glitch-text {
  margin-top: 20px;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--primary);
  position: relative;
  font-size: 1.2rem;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}
.glitch-text::before {
  color: var(--accent);
  z-index: -1;
  animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}
.glitch-text::after {
  color: #ff00c1;
  z-index: -2;
  animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

/* --- BACKGROUND EFFECTS --- */
.bg-glow {
  position: fixed;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.organic-blob {
  position: fixed;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  animation: morph 15s linear infinite alternate;
}

.blob-1 { top: -10%; left: -10%; }
.blob-2 { bottom: 10%; right: -5%; animation-delay: -5s; }

@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(180deg) scale(1.2); }
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* --- NAV --- */
.glass-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 12px 30px;
  z-index: 1000;
}
.glass-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand img { width: 32px; }
.nav-brand span { font-weight: 700; font-family: var(--font-title); font-size: 1.2rem; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 0.9rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

/* --- HERO --- */
.hero {
  padding-top: 200px;
  padding-bottom: 100px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
}
.badge {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 24px;
}
h1 {
  font-family: var(--font-title);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -2px;
  text-wrap: balance;
}
.text-glow {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px var(--primary-glow)) url(#liquid);
  display: inline-block;
}
.lead {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  max-width: 500px;
}
.hero-btns {
  display: flex;
  gap: 20px;
}
.btn {
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--secondary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(124, 108, 255, 0.3); }

.btn-secondary { background: var(--glass); border: 1px solid var(--glass-border); color: var(--white); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }

.btn-large { padding: 18px 36px; font-size: 1.1rem; }
.btn-glow-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 20px var(--primary-glow);
}

.hero-visual {
  position: relative;
  height: 400px;
}
.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}
.f-card {
  position: absolute;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
  animation: float 6s infinite ease-in-out;
}
.f-card i { font-size: 1.5rem; color: var(--primary); }
.f-card span { font-weight: 600; font-family: var(--font-title); }

.c1 { top: 0; left: 10%; animation-delay: 0s; }
.c2 { top: 40%; right: 10%; animation-delay: 2s; }
.c3 { bottom: 0; left: 20%; animation-delay: 4s; }

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

/* --- SECTIONS --- */
.section { padding: 120px 0; }
.section-header { margin-bottom: 60px; }
.center { text-align: center; }
.underline {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 10px;
}
.title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
}
.bg-alt { background-color: var(--bg-alt); }

/* --- ABOUT GRID --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.about-card {
  padding: 40px;
  text-align: center;
  transition: var(--transition);
}
.about-card:hover {
  background: rgba(124, 108, 255, 0.05);
  border-color: var(--primary);
  transform: translateY(-10px);
}
.icon-box {
  width: 70px;
  height: 70px;
  background: rgba(124, 108, 255, 0.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 1.8rem;
  color: var(--primary);
}

/* --- TIMELINE WORKFLOW --- */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary), var(--secondary), transparent);
  opacity: 0.3;
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 60px;
  width: 100%;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-glow);
  z-index: 2;
}
.timeline-content {
  width: 90%;
  max-width: 400px;
  padding: 30px;
  position: relative;
  transition: var(--transition);
}
.timeline-item:nth-child(odd) .timeline-content { margin-right: 50px; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 50px; }

.timeline-content:hover {
  background: rgba(124, 108, 255, 0.08);
  transform: translateY(-5px);
  border-color: var(--primary);
}
.timeline-content .step-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 10px;
  display: block;
}
.timeline-content h3 { font-family: var(--font-title); margin-bottom: 10px; font-size: 1.4rem; }
.timeline-content p { color: var(--text-dim); font-size: 0.95rem; }

/* --- TECH --- */
.tech-marquee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.tech-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 20px 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}
.tech-card:hover {
  background: var(--bg-dark);
  border-color: var(--primary);
  transform: scale(1.05);
}
.tech-card i { font-size: 1.8rem; }
.tech-card span { font-weight: 600; font-size: 1rem; }

/* --- DEVELOPER --- */
.developer { padding-bottom: 200px; }
.dev-card {
  padding: 50px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 50px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.05) 0%, rgba(0, 242, 255, 0.05) 100%);
  border: 1px solid var(--glass-border);
}
.dev-img-container {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  box-shadow: 0 0 30px var(--primary-glow);
  overflow: hidden;
}
.dev-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: grayscale(20%);
  transition: var(--transition);
}
.dev-card:hover .dev-img { filter: grayscale(0%); transform: scale(1.05); }

.dev-info h2 { font-size: 3rem; font-family: var(--font-title); margin: 5px 0; }
.dev-label { color: var(--primary); letter-spacing: 3px; font-weight: 700; font-size: 0.8rem; }
.dev-title { font-size: 1.1rem; color: var(--text-dim); }

.dev-social { display: flex; gap: 20px; margin-top: 25px; }
.dev-social a { font-size: 1.4rem; color: var(--text-dim); transition: var(--transition); }
.dev-social a:hover { color: var(--primary); transform: translateY(-3px); }

.dev-stat { display: flex; flex-direction: column; gap: 30px; }
.stat { text-align: right; }
.stat b { display: block; font-size: 2rem; font-family: var(--font-title); color: var(--white); }
.stat span { color: var(--text-dim); font-size: 0.85rem; }

/* --- FOOTER --- */
footer { padding: 40px 0; border-top: 1px solid var(--glass-border); }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; }
.footer-wrap p { color: var(--text-dim); font-size: 0.85rem; }
.f-brand { color: var(--text); font-weight: 600; font-size: 0.9rem; opacity: 0.7; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  h1 { font-size: 3.5rem; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-btns { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-card { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 40px; }
  .stat { text-align: center; }
  .dev-stat { flex-direction: row; justify-content: center; }
}

@media (max-width: 768px) {
  .hero { padding-top: 140px; }
  h1 { font-size: 3.2rem; letter-spacing: -1px; }

  .timeline-line { left: 20px; }
  .timeline-item { padding-right: 0; padding-left: 50px; justify-content: flex-start; margin-bottom: 40px; }
  .timeline-item:nth-child(even) { padding-left: 50px; }
  .timeline-dot { left: 20px; top: 25px; width: 12px; height: 12px; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { margin: 0; max-width: 100%; padding: 20px; }
  
  .timeline-content h3 { font-size: 1.2rem; }
  .timeline-content .step-num { font-size: 1rem; }
}

@media (max-width: 600px) {
  h1 { font-size: 2.6rem; }
  .nav-links { display: none; }
  .glass-nav { width: 95%; padding: 10px 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .dev-stat { flex-direction: column; gap: 20px; }
  .dev-img-container { width: 140px; height: 140px; }
  .dev-info h2 { font-size: 2.2rem; }
  .section { padding: 80px 0; }
}
