:root {
  --bg-color: #0d0d12;
  --text-color: #e0e0e0;
  --accent-color: #bb86fc;
  --secondary-color: #03dac6;
  --gradient-1: linear-gradient(135deg, #4a148c, #880e4f);
  --gradient-2: linear-gradient(135deg, #1a237e, #006064);
  --card-bg: #1e1e24;
  --nav-bg: rgba(13, 13, 18, 0.95);
  --font-main: 'Inter', sans-serif;
}

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

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

/* Tooltip for Famed Region */
.famed-tooltip {
  border-bottom: 1px dashed var(--accent-color);
  cursor: help;
  position: relative;
}

.famed-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  padding: 0.8rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  font-size: 0.9rem;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-color);
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.nav-links a {
  margin-left: 2rem;
  color: #ccc;
  font-weight: 500;
}

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

/* Hero Section */
.hero {
  min-height: min-content;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: radial-gradient(circle at 50% 50%, rgba(74, 20, 140, 0.2), transparent 70%);
  padding: 2rem 2rem 0 2rem;
}

.hero-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.4);
  background-color: #333;
  /* Placeholder color */
  flex-shrink: 0;
}

.hero-text {
  text-align: left;
  max-width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, #b39ddb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .tagline {
  font-size: 1.5rem;
  color: #aaa;
  font-weight: 300;
}

/* Sections */
section {
  padding: 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #fff;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-1);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* About */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  text-align: center;
}

/* Portfolio Carousel */
.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 0 0 2rem 0;
  margin-top: -100px;
  margin-bottom: -400px;
  z-index: 10;
  pointer-events: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
}

.project-card {
  min-width: 300px;
  flex: 0 0 300px;
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  cursor: pointer;
}

.project-thumb {
  width: 100%;
  height: 300px;
  background-color: #333;
  /* Placeholder */
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.project-info p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.project-year {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(187, 134, 252, 0.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-dot.current {
  animation: pulse 4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(187, 134, 252, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(187, 134, 252, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(187, 134, 252, 0);
  }
}

.timeline-date {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-content h3 {
  color: #fff;
  margin-bottom: 0.2rem;
}

.previous-role {
  font-size: 0.85em;
  color: #aaa;
  font-weight: 400;
}

.timeline-content h4 {
  font-weight: 400;
  color: #aaa;
  margin-bottom: 1rem;
  font-style: italic;
}

/* Footer */
footer {
  background-color: #000;
  padding: 3rem 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 1.5rem 1rem;
  }
}

.social-links img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.social-links a:hover img {
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
    white-space: normal;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 10px;
    right: auto;
  }

  .nav-links {
    display: flex;
  }

  .nav-links a {
    display: none;
  }

  .nav-links a[href*="blog"] {
    display: block;
    margin-left: 0;
  }

  header {
    position: relative;
  }
}