@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Premium Dark Theme */
  --bg-color: #0b0f19;
  --surface-color: rgba(25, 33, 49, 0.6);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f3f8;
  --text-secondary: #a0aec0;
  
  /* Gradients & Accents */
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  
  --glass-bg: rgba(25, 33, 49, 0.4);
  --glass-blur: blur(12px);

  --font-main: 'Inter', sans-serif;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  filter: brightness(1.2);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

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

section {
  padding: 5rem 0;
  min-height: auto;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--surface-border);
  padding: 1rem 0;
  transition: all var(--transition-speed);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

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

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding-top: 80px;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-links img {
  width: auto;
  height: 40px; /* Adjusting the linkedin/github screenshot size */
  border-radius: 8px;
  transition: transform var(--transition-speed);
  cursor: pointer;
}
.hero-links img:hover {
  transform: translateY(-5px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
  border: 4px solid var(--surface-border);
  position: relative;
  z-index: 2;
}

/* Skills Section */
.skills-wrapper {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.skills-wrapper img {
  margin: 0 auto;
  border-radius: 12px;
}

.custom-skills-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 3rem 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow-x: auto;
}

.skill-node {
  background: var(--accent-purple);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  transition: transform 0.3s;
}

.skill-node:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.node-llm {
  width: 130px;
  height: 180px;
  border-radius: 50%;
  font-size: 0.95rem;
  padding: 10px;
}

.node-ai {
  width: 250px;
  height: 350px;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  background: #9333ea; /* Deep purple variation */
}

.node-cv {
  width: 250px;
  height: 350px;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  background: #a855f7; /* slightly different shade if preferred, or same */
}

.node-sp {
  width: 160px;
  height: 220px;
  border-radius: 50%;
  font-size: 1.15rem;
}

.node-lang {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  line-height: 1.4;
  font-size: 0.9rem;
}

.skill-line {
  height: 2px;
  width: 40px;
  background: var(--surface-border);
}

@media screen and (max-width: 768px) {
  .custom-skills-figure {
    flex-direction: column;
  }
  .skill-line {
    width: 2px;
    height: 40px;
  }
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.6rem 1.8rem;
  background: var(--surface-color);
  color: var(--text-secondary);
  border: 1px solid var(--surface-border);
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-speed);
  backdrop-filter: var(--glass-blur);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.category-section {
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 100%;
}

.category-heading {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--accent-blue);
  border-bottom: 2px solid var(--surface-border);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: var(--glass-blur);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
}

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

.project-images {
  position: relative;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.project-images::-webkit-scrollbar {
  height: 6px;
}
.project-images::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: 10px;
}

.project-images img {
  height: 180px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform var(--transition-speed);
}

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

.project-content {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-weight: 700;
}

.project-content h3 a {
  color: inherit;
  text-decoration: none;
}

.project-content h3 a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-category-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.tech-stack-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tech-pill {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.project-features {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.2);
  padding: 0.8rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-purple);
}

.project-overview {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-overview strong {
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.5rem;
}

.overview-assets {
  margin-top: 1.5rem;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.5rem;
}

.overview-assets img, .overview-assets video {
  height: 140px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  transition: transform var(--transition-speed);
  cursor: zoom-in;
}

.overview-assets img:hover, .overview-assets video:hover {
  transform: scale(1.05);
}

.overview-assets::-webkit-scrollbar {
  height: 6px;
}

.overview-assets::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: 10px;
}

.project-content p.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-links {
  margin-top: auto;
  padding-top: 1.5rem;
}

.repo-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-speed);
  text-decoration: none;
}

.repo-link-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Career Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--surface-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background: var(--bg-color);
  border: 4px solid var(--accent-purple);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -8px;
}

.timeline-content {
  padding: 1.5rem;
  background: var(--surface-color);
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
}

.timeline-content h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.timeline-content span {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-section {
  text-align: center;
  padding-bottom: 4rem;
}

.contact-card {
  display: inline-block;
  background: var(--surface-color);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  margin-top: 2rem;
}

.contact-card img {
  max-width: 400px;
  margin: 0 auto 1.5rem auto;
}

.contact-card p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active img {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-links {
    justify-content: center;
  }

  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 23px;
  }
  
  .right {
    left: 0%;
  }

  .nav-links {
    display: none; /* simple mobile nav */
  }
}
