:root {
  /* Colors */
  --bg-color: #050505;
  --surface-color: #121212;
  --surface-color-hover: #1e1e1e;
  --primary-color: #8b5cf6; /* Violet */
  --primary-glow: rgba(139, 92, 246, 0.5);
  --accent-color: #06b6d4; /* Cyan */
  --text-color: #e5e5e5;
  --text-muted: #a3a3a3;
  --border-color: #333;

  /* Typography */
  --font-main: "Outfit", sans-serif;

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

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: 6rem 0;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-medium);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.dot {
  color: var(--primary-color);
}

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

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  max-width: 650px;
}

.hero-image {
  flex: 0 0 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
  transition: var(--transition-medium);
}

.hero-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(139, 92, 246, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(6, 182, 212, 0.15) 0%,
      transparent 50%
    );
  z-index: 1;
}

/* About */
.about-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 3rem;
}

.subsection-title {
  font-size: 1.5rem;
  margin: 2rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
}

.timeline {
  border-left: 2px solid var(--border-color);
  margin-left: 1rem;
  margin-bottom: 3rem;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}

.timeline-item .date {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
}

.timeline-item .content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.timeline-item .content .place {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-item .content p {
  color: #bbb;
  font-size: 0.95rem;
}

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

.skill-card {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition-medium);
}

.skill-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  background: var(--surface-color-hover);
}

.skill-card h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

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

.skill-card.highlight-skill {
  border-color: var(--primary-color);
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(6, 182, 212, 0.05)
  );
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.skill-card.highlight-skill:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15),
    rgba(6, 182, 212, 0.1)
  );
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-medium);
  height: 100%;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-icon {
  padding: 2rem 2rem 1rem;
  font-size: 2rem;
  color: var(--primary-color);
}
.project-icon svg {
  width: 48px;
  height: 48px;
}

.project-info {
  padding: 1rem 2rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.link-text {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card.highlight {
  border-color: var(--primary-color);
  background: linear-gradient(to bottom right, var(--surface-color), #1a1025);
}

/* Contact */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 3rem auto 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  align-items: center;
}

.contact-links li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.contact-links li svg {
  color: var(--accent-color);
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cursor Glow */
/* Cursor Glow */
.cursor-glow {
  width: 120px;
  height: 120px;
  background: radial-gradient(
    180px circle at top center,
    rgba(139, 92, 246, 0.15),
    transparent 40%
  );
  position: fixed;
  left: -100px;
  top: -100px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: screen;
}

/* Animation Classes */
.fade-up-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background: var(--surface-color);
    flex-direction: column;
    padding: 6rem 2rem;
    transform: translateX(100%);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .hero-grid {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    order: -1; /* Image takes precedence visually or not? User didn't specify. Let's keep text first usually, or maybe image. 
    Actually, usually for personal branding, seeing the face first is nice. Let's try order -1. */
    margin-bottom: 2rem;
    flex: auto;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text {
    width: 100%;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* Centered actions */
  }
  .btn-secondary {
    margin-left: 0;
  }
}
