:root {
  /* Colors - Modern, vibrant, professional */
  --bg-dark: #050505;
  --bg-nav: rgba(5, 5, 5, 0.7);
  --accent-cyan: #00f2ff;
  --accent-purple: #7000ff;
  --accent-pink: #ff00c8;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  
  /* Layout */
  --container-width: 1200px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noiseFilter'%3e%3cturbulence 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");
}

/* Custom cursor glow */
.cursor-glow {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, rgba(112, 0, 255, 0.05) 50%, transparent 100%);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  filter: blur(40px);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-nav);
  transition: transform 0.3s ease;
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.nav-logo .dot { color: var(--accent-cyan); }

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  animation: float 20s infinite alternate;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-cyan);
  top: -200px;
  left: -200px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  bottom: -150px;
  right: -100px;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-pink);
  top: 20%;
  right: 15%;
  animation-delay: -10s;
}

.grid-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.1); }
}

.hero-content {
  max-width: 900px;
  z-index: 1;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease backwards;
}

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

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-title {
  font-size:clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 3rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn-primary {
  padding: 1.1rem 2.4rem;
  background: var(--text-primary);
  color: var(--bg-dark);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  padding: 1.1rem 2.4rem;
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  animation: fadeInUp 0.8s ease 0.8s backwards;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
  align-self: center;
}

/* About Section */
.about {
  padding: 120px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.about h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.about p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.about-highlights {
  display: grid;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.highlight-icon {
  font-size: 1.8rem;
}

.highlight-item div strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.highlight-item div span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Terminal Visual */
.terminal {
  background: #0d0d0d;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-header {
  background: #1a1a1a;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.tdot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
  font-size: 0.75rem;
  color: #666;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.9rem;
  min-height: 250px;
}

.t-line { margin-bottom: 0.8rem; }
.t-prompt { color: var(--accent-cyan); font-weight: bold; margin-right: 8px; }
.t-cmd { color: var(--text-primary); }
.t-output { color: var(--text-secondary); margin-bottom: 1rem; }
.t-json { color: #a5d6ff; }
.cursor-block { animation: blink 1s step-end infinite; }

@keyframes blink {
  50% { opacity: 0; }
}

/* Projects Section */
.projects {
  padding: 120px 0;
  background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.05), transparent 60%);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; }
.section-desc { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.projects-featured {
  margin-bottom: 40px;
}

.project-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 255, 0.3);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 255, 0.1);
}

.project-card.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "content visual";
  gap: 40px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.project-card.featured .card-content {
  grid-area: content;
  order: 1;
}

.project-card.featured .card-visual {
  grid-area: visual;
  order: 2;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(0, 242, 255, 0.1), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.card-content h3 { font-size: 1.8rem; margin-bottom: 1rem; font-weight: 800; }
.card-content p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.05rem; }

.card-meta { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; }
.card-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.card-tech span {
  font-size: 0.8rem;
  color: #888;
  font-family: 'JetBrains Mono', monospace;
}

.card-links { display: flex; gap: 1.5rem; margin-top: auto; }
.card-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}
.card-link:hover { color: var(--accent-cyan); }

/* Grid Layout for Other Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* AI Visual Decoration & Mockups */
.ai-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.phone-mockup {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .phone-mockup {
  transform: scale(1.05) translateY(-5px);
}

.ai-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 300px;
}

/* Education Section */
.education {
  padding: 80px 0 0;
  position: relative;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.edu-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.8rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.edu-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 255, 0.2);
  transform: translateY(-4px);
}

.edu-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.edu-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.edu-degree {
  display: block;
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.edu-meta {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.edu-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.edu-cgpa {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid rgba(0, 242, 255, 0.2);
  border-radius: 6px;
  padding: 0.15rem 0.55rem;
  font-weight: 700;
}

/* Date badge for project cards */
.card-date-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Stack Section */

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

.stack-category {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.stack-category:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

.stack-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.stack-category h4 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.stack-pills { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.stack-pills span {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Contact Section */
.contact { padding: 120px 0; }
.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-content { position: relative; z-index: 1; }
.contact h2 { font-size: 4rem; font-weight: 900; margin-bottom: 1.5rem; letter-spacing: -2px; }
.contact p { color: var(--text-secondary); font-size: 1.25rem; max-width: 600px; margin: 0 auto 4rem; }

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-primary);
  text-align: left;
  transition: all 0.3s ease;
}

.contact-link:hover {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-5px);
}

.cl-icon { font-size: 2rem; }
.contact-link strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.contact-link span { color: var(--text-secondary); font-size: 0.9rem; }
.cl-arrow { margin-left: auto; opacity: 0.5; }

/* Footer */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer a { color: var(--text-primary); text-decoration: none; }

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid, .project-card.featured { 
    grid-template-columns: 1fr; 
    grid-template-areas: none;
  }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 3rem; }
  .contact h2 { font-size: 3rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
