/* ===== CSS Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Dark Purple Theme (Brightened) */
  --bg-primary: #1a1530;
  --bg-secondary: #251d42;
  --bg-tertiary: #3d2f5f;
  --text-primary: #ffffff;
  --text-secondary: #e5dcf5;
  --text-muted: #c9b8e0;
  --accent-primary: #b89eff;
  --accent-secondary: #a78bfa;
  --accent-glow: rgba(184, 158, 255, 0.2);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;

  /* Cursor tracking */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

html {
  scroll-behavior: smooth;
}

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

/* ===== Cursor-Following Spotlight Effect ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(184, 158, 255, 0.12),
    transparent 40%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.cursor-active::before {
  opacity: 1;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ===== Layout Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 2;
}

/* ===== Navigation ===== */
nav {
  position: sticky;
  top: 0;
  background: rgba(26, 21, 48, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 158, 255, 0.15);
  z-index: 1000;
  padding: var(--spacing-sm) 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

nav ul {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

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

nav a:hover::after {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-lg) 0;
}

.hero-content h1 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.hero-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--spacing-md);
}

.accent-text {
  color: var(--accent-primary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  background: transparent;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(184, 158, 255, 0.4);
}

/* ===== Section ===== */
section {
  padding: var(--spacing-xl) 0;
  position: relative;
  z-index: 2;
}

section:not(.hero) {
  border-top: 1px solid rgba(184, 158, 255, 0.1);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.section-title::before {
  content: '';
  width: 50px;
  height: 2px;
  background: var(--accent-primary);
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.profile-image {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 20px 50px -20px rgba(184, 158, 255, 0.4);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.02);
}

.about-content h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.about-content .role {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.info-list {
  list-style: none;
  margin: var(--spacing-md) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-sm);
}

.info-list li {
  color: var(--text-secondary);
}

.info-list strong {
  color: var(--text-primary);
}

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

.timeline-item {
  position: relative;
  padding-left: var(--spacing-md);
  padding-bottom: var(--spacing-lg);
  border-left: 2px solid var(--bg-tertiary);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-item:hover::before {
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 20px var(--accent-primary);
}

.timeline-date {
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.timeline-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.timeline-company {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
}

.timeline-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-description ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.timeline-description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-description li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 1.1rem;
  line-height: 1.4;
}

.responsibility-header {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.responsibility-header:first-child {
  margin-top: 0;
}

/* ===== Education Grid ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
}

.education-item {
  background: var(--bg-secondary);
  border: 1px solid rgba(184, 158, 255, 0.15);
  border-radius: 8px;
  padding: var(--spacing-md);
  transition: all 0.3s ease;
}

.education-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px -10px rgba(184, 158, 255, 0.3);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.education-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-school {
  color: var(--accent-primary);
  font-size: 0.95rem;
}

.education-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.education-details {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.card {
  background: var(--bg-secondary);
  border: 1px solid rgba(184, 158, 255, 0.15);
  border-radius: 8px;
  padding: var(--spacing-md);
  transition: all 0.3s ease;
  cursor: default;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px -20px rgba(184, 158, 255, 0.4);
  background: rgba(37, 29, 66, 0.9);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--accent-primary);
}

.card h4 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card a {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(184, 158, 255, 0.15);
  padding: var(--spacing-lg) 0;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.social-links, .contact-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.social-links a, .contact-links a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all 0.2s ease;
}

.social-links a:hover, .contact-links a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(184, 158, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 21, 48, 0.98);
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(184, 158, 255, 0.15);
  }

  nav ul.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-image {
    margin: 0 auto;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .section-title::before {
    width: 30px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}
