:root {
  --bg-dark: #1e1e2f;
  --bg-section: #2a2b3c;
  --bg-skill: #3b4252;
  --text-main: #e6e9ef;
  --text-muted: #9ca3af;
  --primary: #82aaff;
  --primary-dark: #3d8bff;
  --accent: #f38ba8;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  --radius: 8px;
}

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

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

/* Animated Background Container */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* Canvas */
.graph-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #1e1e2f;
}


/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(46, 52, 64, 0.9), rgba(59, 66, 82, 0.9));
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(130, 170, 255, 0.2);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.social-links a {
  margin: 0 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Profile Photo */
.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 1rem 0;
  border: 3px solid var(--primary);
}

/* Sections */
section {
  background: linear-gradient(135deg, rgba(42, 43, 60, 0.9), rgba(46, 52, 64, 0.8));
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(130, 170, 255, 0.1);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  padding-bottom: 0.25rem;
}

/* Skills */
.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skills-list li {
  background: var(--bg-skill);
  color: var(--primary);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(130, 170, 255, 0.2);
}

.skills-list li:hover {
  background: #4c566a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(130, 170, 255, 0.3);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  border: 1px solid rgba(130, 170, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(41, 44, 62, 0.9), rgba(46, 52, 64, 0.8));
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(130, 170, 255, 0.2);
  border-color: var(--primary);
}

.project-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  color: #fff;
}

.project-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* CV Section */
.cv-container {
  background: rgba(30, 30, 47, 0.8);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid rgba(130, 170, 255, 0.2);
}

.cv-card {
  background: rgba(46, 52, 64, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
}

.cv-card embed {
  border-radius: var(--radius);
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 1.2rem;
}

.contact-form label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #444c5e;
  border-radius: 6px;
  background-color: rgba(30, 30, 47, 0.8);
  color: var(--text-main);
  resize: vertical;
  backdrop-filter: blur(5px);
}

.contact-form button {
  width: 160px;
  padding: 0.75rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(130, 170, 255, 0.3);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

/* Old network styles - keeping for compatibility but unused */
.network {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: transparent;
}

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.node.connected {
  background-color: var(--accent);
}

.connection {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  transform-origin: top left;
  height: 2px;
}

.attractor {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-list {
    justify-content: center;
  }
}