:root {
  --bg-color: #0f172a;
  --text-color: #f1f5f9;
  --primary-color: #38bdf8;
  --secondary-color: #8b5cf6;
  --accent-color: #22d3ee;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-main: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--bg-color);
}

.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.1) 0%,
    rgba(139, 92, 246, 0.05) 50%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 120px;
}

.hero-content {
  text-align: center;
}

.greeting {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.name {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.name span {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role {
  font-size: 1.5rem;
  color: #94a3b8;
  margin-bottom: 3rem;
}

/* Terminal Styles */
.terminal-container {
  max-width: 700px;
  margin: 0 auto 3rem;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
  text-align: left;
}

 .terminal-header {
  background: #334155;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.terminal-title {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-left: 10px;
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  min-height: 250px;
  background: rgba(15, 23, 42, 0.95);
}

.line {
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.prompt {
  color: #4ade80;
}

.command {
  color: #f8fafc;
}

.response {
  color: #94a3b8;
  margin-bottom: 15px;
  padding-left: 0;
  font-size: 0.95rem;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Sections General */
section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 0 auto;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--glass-border);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--primary-color);
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 1rem;
  cursor: pointer;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: var(--glass-bg);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* 3D TagCloud Sphere */
.tag-sphere-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 400px;
}

.tagcloud {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.tagcloud--item {
  color: var(--text-color);
  transition: color 0.3s;
  cursor: pointer;
}

.tagcloud--item:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-category {
  background: var(--glass-bg);
  padding: 35px;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.skill-category:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
}

.skill-category h3 {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  margin-bottom: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category li::before {
  content: "▹";
  color: var(--primary-color);
}

/* Experience Section */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--glass-border);
}

.timeline-item {
  padding-left: 45px;
  margin-bottom: 50px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-color);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-family: var(--font-mono);
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.timeline-content h4 {
  color: #94a3b8;
  margin-bottom: 15px;
  font-weight: 400;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--glass-bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
}

.project-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.project-card p {
  color: #94a3b8;
  margin-bottom: 25px;
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-links a {
  text-decoration: none;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: color 0.3s;
}

.contact-links a:hover {
  color: var(--primary-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: white;
  font-family: var(--font-main);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

footer p {
  color: #64748b;
  font-size: 0.9rem;
}

footer i {
  color: #ef4444;
}

/* Responsive */
@media (max-width: 968px) {
  .name {
    font-size: 3rem;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .name {
    font-size: 2.5rem;
  }
  
  .terminal-container {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .terminal-body {
    padding: 15px;
    font-size: 0.85rem;
  }
  
  .line {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .tag-sphere-container {
    height: 300px;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 2rem;
  }
  
  .greeting {
    font-size: 1rem;
    letter-spacing: 2px;
  }
  
  .role {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .cursor-glow {
    width: 300px;
    height: 300px;
  }
}
