:root {
  /* Zenith Design Tokens - Elite Standalone */
  --bg-primary: #050508;
  --bg-secondary: #0c0d12;
  --bg-tertiary: #14151d;
  --accent-color: #00f2ff;
  --accent-glow: rgba(0, 242, 255, 0.4);
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Glassmorphism Utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 99px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 99px;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #000;
  background: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
header {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: saturate(0.8) blur(1px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 95%);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-subtitle {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: block;
}

header h1 {
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 10px 20px rgba(0, 242, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 242, 255, 0.25);
}

.btn-resume {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-resume:hover {
  background: rgba(0, 242, 255, 0.1);
  box-shadow: 0 0 25px rgba(0, 242, 255, 0.3);
  transform: translateY(-3px);
}

.btn-resume::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: 0.8s;
  pointer-events: none;
}

.btn-resume:hover::after {
  left: 100%;
}

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

.section-label {
  display: block;
  text-align: center;
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 4rem;
  text-align: center;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

.achievement-card {
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.achievement-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  display: block;
}

.achievement-label {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Stats Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  padding: 2.5rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* Experience Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.experience-item {
  padding: 3rem;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.exp-title { font-size: 1.5rem; }
.exp-company { color: var(--accent-color); font-weight: 700; }
.exp-date { color: var(--text-dim); font-size: 0.9rem; }

.skill-list { list-style: none; }
.skill-list li { margin-bottom: 0.75rem; display: flex; align-items: center; color: var(--text-dim); }
.skill-list li::before { content: "•"; color: var(--accent-color); margin-right: 12px; font-weight: bold; }

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

.skill-card { padding: 2.5rem; }

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

.project-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(0, 242, 255, 0.08);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(0, 242, 255, 0.2);
}

.project-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 15px;
  border-radius: 8px;
  background: rgba(0, 242, 255, 0.05);
  transition: var(--transition-smooth);
}

.project-link:hover {
  background: var(--accent-color);
  color: #000;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active { display: flex; }

.modal-content {
  max-width: 800px;
  width: 100%;
  padding: 3rem;
  position: relative;
  border: 1px solid var(--accent-color);
}

.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--text-dim); font-size: 2rem;
  cursor: pointer;
}

/* Chatbot UI */
.chat-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 65px; height: 65px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8ffbff, var(--accent-color) 55%, #00aab5 100%);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 18px 40px rgba(0, 242, 255, 0.28);
  transition: var(--transition-smooth);
}

.chat-fab:hover {
  transform: translateY(-4px) scale(1.03);
}

.chat-window {
  position: fixed;
  bottom: 2rem; /* Lowered from 6.5rem to keep it in view */
  right: 2rem;
  width: 410px; 
  height: 600px;
  max-height: calc(100vh - 4rem); /* Responsive limit: ensures it never goes off-screen */
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(8, 11, 18, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.chat-window.active { display: flex; }

.chat-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #9bf9ff 0%, var(--accent-color) 55%, #31c9d3 100%);
  color: #000; font-weight: 800;
  display: flex; justify-content: space-between; align-items: center;
}

.chat-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chat-title {
  font-size: 0.98rem;
  font-weight: 800;
}

.chat-status {
  font-size: 0.74rem;
  opacity: 0.7;
  font-weight: 700;
}

.chat-close-btn {
  background: rgba(0, 0, 0, 0.15);
  color: #001215; /* Dark contrast on cyan header */
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.chat-close-btn:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.chat-body {
  flex-grow: 1; padding: 1.2rem;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 1rem;
  background:
    radial-gradient(circle at top right, rgba(0, 242, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.message {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  max-width: 88%;
  font-size: 0.95rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.message.bot {
  background: rgba(255,255,255,0.05);
  color: #fff;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.message.user {
  background: linear-gradient(135deg, #9bf9ff 0%, var(--accent-color) 65%, #53d9e2 100%);
  color: #001215;
  align-self: flex-end;
  box-shadow: 0 10px 24px rgba(0, 242, 255, 0.16);
}

.hero-message {
  max-width: 100%;
}

.message-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 242, 255, 0.16);
  color: var(--accent-color);
  border: 1px solid rgba(0, 242, 255, 0.24);
}

.message.user .message-content {
  font-weight: 700;
}

.message-content {
  white-space: pre-wrap;
  line-height: 1.55;
}

.typing {
  min-height: 62px;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.35rem;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: chatPulse 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chat-suggestion {
  background: rgba(0, 242, 255, 0.08);
  color: var(--accent-color);
  border: 1px solid rgba(0, 242, 255, 0.14);
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chat-suggestion:hover {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 10px 24px rgba(0, 242, 255, 0.2);
}

.chat-input-area {
  padding: 1rem; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; gap: 0.5rem;
  background: rgba(6, 8, 14, 0.9);
}

#chatInput {
  flex-grow: 1; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; color: #fff; padding: 0.9rem 1rem; outline: none;
}

#chatInput:focus {
  border-color: rgba(0, 242, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.08);
}

#chatSend {
  background: linear-gradient(135deg, #9bf9ff 0%, var(--accent-color) 60%, #53d9e2 100%);
  border: none;
  padding: 0.9rem 1.2rem; border-radius: 14px;
  color: #000; font-weight: 800; cursor: pointer;
  transition: var(--transition-smooth);
}

#chatSend:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 242, 255, 0.22);
}

@keyframes chatPulse {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Custom Cursor */
#customCursor {
  position: fixed;
  width: 15px; height: 15px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: none;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  header h1 { font-size: 3rem; }
  .chat-window { width: 90%; right: 5%; left: 5%; bottom: 8rem; }
}
/* Contact Links Styling */
.contact-links {
  display: flex !important;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 4rem !important; /* Increase padding for breathability */
  margin-top: 2rem;
}

.contact-item {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.25rem 2.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.contact-item:hover {
  background: var(--accent-color);
  color: #000;
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--accent-glow);
  border-color: var(--accent-color);
}

/* Fix for standard link icons */
.contact-item i, .contact-item .icon {
  font-size: 1.4rem;
}
