/* Design Tokens - AI Research Aesthetic */
:root {
  --primary-color: #00f2fe; /* Cyber Cyan */
  --secondary-color: #8a2be2; /* Deep Purple */
  --bg-dark: #1e293b; /* Slate 800 */
  --bg-darker: #0f172a; /* Slate 900 */
  --text-main: #f8fafc; /* Slate 50 */
  --text-muted: #94a3b8; /* Slate 400 */
  --glass-bg: rgba(20, 20, 30, 0.4);
  --glass-border: rgba(138, 43, 226, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Global Reset & Typography */
html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading);
}

.text-gray, .text-muted {
  color: var(--text-muted) !important;
}

/* Gradients & Accents */
.gradient-text {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Glassmorphism Utilities */
.glass-nav {
  background: rgba(7, 7, 11, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(138, 43, 226, 0.2);
  border-color: rgba(0, 242, 254, 0.4);
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.custom-toggler {
  border-color: rgba(255, 255, 255, 0.1);
}

.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  background: radial-gradient(circle at center, var(--bg-dark) 0%, var(--bg-darker) 100%);
  overflow: hidden;
}

/* Subtle animated background particles/glow */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 15%;
  width: 450px;
  height: 450px;
  background: var(--secondary-color);
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.2;
  animation: float-glow 12s infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 350px;
  height: 350px;
  background: var(--primary-color);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  animation: float-glow 9s infinite alternate-reverse;
}

@keyframes float-glow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -60px) scale(1.15); }
}

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

.circular--portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.circular--portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.glow-effect {
  box-shadow: 0 0 40px rgba(138, 43, 226, 0.4);
}

.typing-effect {
  overflow: hidden;
  border-right: .15em solid var(--primary-color);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .05em;
  animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary-color); }
}

/* Buttons */
.custom-btn {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  border: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: white;
}

.custom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
  color: white;
}

.custom-btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
}

.custom-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* About Section */
.about-section {
  background-color: var(--bg-darker);
}

.floating-img {
  animation: float 6s ease-in-out infinite;
}

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

.about-text {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.achievement-list {
  list-style: none;
  padding: 0;
}

.achievement-list li {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 15px;
  border-radius: 8px;
  border-left: 3px solid var(--secondary-color);
}

.org-logo {
  max-height: 60px;
  filter: grayscale(100%) brightness(200%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.org-logo:hover {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
}

/* Skills Section */
.skill-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: inline-block;
}

/* Experience Timeline */
.experience-section {
  background-color: var(--bg-darker);
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  margin-left: 50px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 12px var(--primary-color);
}

.timeline-item ul {
  padding-left: 20px;
  color: var(--text-main);
  margin-bottom: 0;
}

.timeline-item li {
  margin-bottom: 8px;
}

/* Projects Section */
.project-card {
  display: flex;
  flex-direction: column;
}

.project-img-wrapper {
  overflow: hidden;
}

.project-img-wrapper img {
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.05);
}

/* Contact & Footer */
.max-w-700 {
  max-width: 700px;
}

.social-link {
  width: 140px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--secondary-color);
}

.footer-bg {
  background-color: var(--bg-darker);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p.lead { font-size: 1.2rem; }
  .circular--portrait { width: 150px; height: 150px; }
  .timeline-container::before { left: 15px; }
  .timeline-item { margin-left: 40px; }
  .timeline-item::before { left: -29px; }
}