/* Base Styles */
:root {
  --bg-primary: #0a192f;
  --bg-secondary: #112240;
  --text-primary: #e6f1ff;
  --text-secondary: #8892b0;
  --accent-primary: #64ffda;
  --accent-secondary: #ff5252;
  --success: #98c379;
  --warning: #e5c07b;
  --error: #e06c75;
  --font-mono: 'Fira Code', monospace;
  --font-sans: 'Roboto', sans-serif;
}

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

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

/* Particle Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Matrix Rain Effect */
#matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.15;
}

/* Terminal Container */
.terminal-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  margin: 5vh auto;
  background-color: rgba(10, 25, 47, 0.85);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 10;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(100, 255, 218, 0.2);
}

/* Terminal Header */
.terminal-header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.terminal-button.close {
  background-color: #ff5f56;
}

.terminal-button.minimize {
  background-color: #ffbd2e;
}

.terminal-button.maximize {
  background-color: #27c93f;
}

.terminal-title {
  margin-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Terminal Body */
.terminal-body {
  height: calc(100% - 33px);
  padding: 20px;
  overflow-y: auto;
  position: relative;
}

/* Terminal Sections */
.terminal-section {
  margin-bottom: 30px;
  display: none;
}

.terminal-section.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 14px;
}

.prompt {
  color: var(--success);
  margin-right: 8px;
}

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

.section-content {
  padding-left: 15px;
  border-left: 1px dashed var(--accent-primary);
  padding-bottom: 15px;
}

/* Welcome Section */
.ascii-art {
  color: var(--accent-primary);
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.2;
}

.terminal-welcome p {
  margin-bottom: 10px;
}

.typing-effect {
  color: var(--text-primary);
  /* border-right: 2px solid var(--accent-primary); */
  white-space: nowrap;
  overflow: hidden;
  /* animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite; */
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent-primary);
  }
}

/* About Section */
#about-section h2 {
  color: var(--accent-primary);
  margin-bottom: 5px;
}

#about-section h3 {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-weight: 400;
}

#about-section p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Skills Section */
.skill-installation {
  color: var(--text-secondary);
}

.skill-installation p {
  margin-bottom: 15px;
}

.skill-category {
  margin-bottom: 25px;
}

.skill-category h3 {
  color: var(--accent-primary);
  margin-bottom: 15px;
  font-weight: 500;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-bar {
  display: flex;
  align-items: center;
}

.skill-name {
  width: 150px;
  color: var(--text-primary);
}

.skill-level {
  flex: 1;
  height: 8px;
  background-color: rgba(100, 255, 218, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background-color: var(--accent-primary);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

.success-message {
  color: var(--success);
  margin-top: 20px;
}

/* Experience Section */
.git-log {
  color: var(--text-secondary);
}

.experience-item {
  margin-bottom: 30px;
  position: relative;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--accent-primary);
  opacity: 0.3;
}

.experience-item::after {
  content: '';
  position: absolute;
  left: -24px;
  top: 0;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

.commit-hash {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-secondary);
  margin-bottom: 5px;
}

.commit-author,
.commit-date {
  font-size: 14px;
  margin-bottom: 5px;
}

.commit-message h3 {
  color: var(--accent-primary);
  margin: 10px 0;
}

.commit-message ul {
  list-style-type: none;
  padding-left: 15px;
}

.commit-message ul li {
  position: relative;
  margin-bottom: 8px;
  line-height: 1.6;
}

.commit-message ul li::before {
  content: '>';
  position: absolute;
  left: -15px;
  color: var(--accent-primary);
}

/* Education Section */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.education-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-secondary);
}

.file-permissions,
.file-owner,
.file-size {
  margin-right: 15px;
  font-family: var(--font-mono);
}

.file-date {
  color: var(--warning);
  margin-right: 15px;
}

.file-name {
  flex: 1;
  min-width: 300px;
  margin-top: 10px;
}

.file-name h3 {
  color: var(--accent-primary);
  margin-bottom: 5px;
}

.file-name p {
  margin-bottom: 10px;
}

.file-name ul {
  list-style-type: none;
  padding-left: 15px;
}

.file-name ul li {
  position: relative;
  margin-bottom: 8px;
}

.file-name ul li::before {
  content: '>';
  position: absolute;
  left: -15px;
  color: var(--accent-primary);
}

/* Projects Section */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-item {
  background-color: rgba(17, 34, 64, 0.5);
  border-radius: 5px;
  padding: 20px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(100, 255, 218, 0.3);
}

.project-header {
  margin-bottom: 15px;
}

.project-header h3 {
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background-color: rgba(100, 255, 218, 0.1);
  color: var(--accent-primary);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.project-body {
  color: var(--text-secondary);
  position: relative;
  min-height: 150px;
}

.project-body p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* 3D Cube */
.project-cube {
  width: 80px;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-15deg) rotateY(15deg);
  transition: transform 0.5s ease;
  margin: 20px auto 0;
}

.project-item:hover .project-cube {
  transform: rotateX(-15deg) rotateY(195deg);
}

.cube-face {
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: rgba(100, 255, 218, 0.1);
  border: 1px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent-primary);
}

.cube-face.front {
  transform: translateZ(40px);
}

.cube-face.back {
  transform: rotateY(180deg) translateZ(40px);
}

.cube-face.right {
  transform: rotateY(90deg) translateZ(40px);
}

.cube-face.left {
  transform: rotateY(-90deg) translateZ(40px);
}

.cube-face.top {
  transform: rotateX(90deg) translateZ(40px);
}

.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(40px);
}

/* Contact Section */
.contact-form {
  color: var(--text-secondary);
}

.api-response {
  color: var(--accent-primary);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-link {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--accent-primary);
}

.contact-link i {
  margin-right: 10px;
  font-size: 20px;
}

/* Terminal Input */
.terminal-input-container {
  position: sticky;
  bottom: 0;
  background-color: var(--bg-primary);
  padding: 15px 0;
  display: flex;
  align-items: center;
}

.terminal-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  width: 100%;
  caret-color: var(--accent-primary);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .terminal-container {
    width: 95%;
    height: 90vh;
    margin: 5vh auto;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .ascii-art {
    font-size: 8px;
  }

  .skill-name {
    width: 100px;
  }
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

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