:root {
  --primary: #E27474;
  --primary-light: #F9A7A7;
  --highlight: #D66363;
  --highlight-bg: rgba(226, 116, 116, 0.08);
  --text: #1A1A2E;
  --bg-start: #F7FBFF;
  --bg-end: #E3F8F8;
  --prompt: #44536A;
  --link: #E27474;
  --path: #90A4AE;
  --shadow: rgba(0,0,0,0.1);
  --terminal-header: #F0F0F0;
  --terminal-bg: white;
  --project-bg: rgba(247, 251, 255, 0.5);
  --project-hover-bg: rgba(247, 251, 255, 0.9);
  --skill-bg: rgba(226, 116, 116, 0.1);
  --skill-hover-bg: rgba(226, 116, 116, 0.2);
  --toggle-icon: "🌙";
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #E4E6F1;
    --highlight: #F9A7A7;
    --highlight-bg: rgba(226, 116, 116, 0.15);
    --bg-start: #121212;
    --bg-end: #1A1E2E;
    --prompt: #A0B3C6;
    --path: #7A8B98;
    --shadow: rgba(0,0,0,0.25);
    --terminal-header: #272B33;
    --terminal-bg: #1E1E2E;
    --project-bg: rgba(226, 116, 116, 0.05);
    --project-hover-bg: rgba(226, 116, 116, 0.1);
    --skill-bg: rgba(226, 116, 116, 0.15);
    --skill-hover-bg: rgba(226, 116, 116, 0.25);
    --toggle-icon: "☀️";
  }
}

[data-theme="dark"] {
  --text: #E4E6F1;
  --highlight: #F9A7A7;
  --highlight-bg: rgba(226, 116, 116, 0.15);
  --bg-start: #121212;
  --bg-end: #1A1E2E;
  --prompt: #A0B3C6;
  --path: #7A8B98;
  --shadow: rgba(0,0,0,0.25);
  --terminal-header: #272B33;
  --terminal-bg: #1E1E2E;
  --project-bg: rgba(226, 116, 116, 0.05);
  --project-hover-bg: rgba(226, 116, 116, 0.1);
  --skill-bg: rgba(226, 116, 116, 0.15);
  --skill-hover-bg: rgba(226, 116, 116, 0.25);
}

[data-theme="light"] {
  --primary: #E27474;
  --primary-light: #F9A7A7;
  --highlight: #D66363;
  --highlight-bg: rgba(226, 116, 116, 0.08);
  --text: #1A1A2E;
  --bg-start: #F7FBFF;
  --bg-end: #E3F8F8;
  --prompt: #44536A;
  --link: #E27474;
  --path: #90A4AE;
  --shadow: rgba(0,0,0,0.1);
  --terminal-header: #F0F0F0;
  --terminal-bg: white;
  --project-bg: rgba(247, 251, 255, 0.5);
  --project-hover-bg: rgba(247, 251, 255, 0.9);
  --skill-bg: rgba(226, 116, 116, 0.1);
  --skill-hover-bg: rgba(226, 116, 116, 0.2);
  --toggle-icon: "🌙";
}

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

body {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  min-height: 100vh;
  padding: 5vh 5vw;
  line-height: 1.6;
  transition: color 0.3s ease, background 0.3s ease;
}

.terminal {
  max-width: 900px;
  margin: auto;
  box-shadow: 0 15px 40px var(--shadow);
  background: var(--terminal-bg);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.terminal-header {
  background: var(--terminal-header);
  padding: 0.8rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.3s ease;
}

.terminal-dots {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--prompt);
  flex-grow: 1;
  text-align: center;
  transition: color 0.3s ease;
}

.theme-toggle {
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(226, 116, 116, 0.2), 
              inset 0 -2px 5px rgba(0,0,0,0.1),
              0 0 0 3px rgba(226, 116, 116, 0.1);
  color: white;
  width: 42px;
  height: 42px;
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite alternate ease-in-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 10px rgba(226, 116, 116, 0.2), 
                inset 0 -2px 5px rgba(0,0,0,0.1),
                0 0 0 3px rgba(226, 116, 116, 0.1);
  }
  100% {
    box-shadow: 0 4px 15px rgba(226, 116, 116, 0.3), 
                inset 0 -2px 5px rgba(0,0,0,0.1),
                0 0 0 5px rgba(226, 116, 116, 0.15);
  }
}

.theme-toggle:hover {
  transform: translateY(-3px) rotate(10deg);
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  box-shadow: 0 6px 15px rgba(226, 116, 116, 0.3),
              inset 0 -2px 5px rgba(0,0,0,0.1),
              0 0 0 4px rgba(226, 116, 116, 0.2);
}

.theme-toggle:active {
  transform: translateY(1px);
  transition: all 0.1s ease;
}

.toggle-icon {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.toggle-icon .fa-sun {
  display: none;
}

.toggle-icon .fa-moon {
  display: block;
}

[data-theme="dark"] .toggle-icon .fa-sun {
  display: block;
}

[data-theme="dark"] .toggle-icon .fa-moon {
  display: none;
}

.theme-toggle:hover .toggle-icon {
  transform: rotate(20deg);
}

.terminal-content {
  padding: 2rem;
}

h1 { 
  font-size: 1.6rem; 
  font-weight: 500; 
  margin-bottom: 1.8rem; 
  line-height: 1.4;
}

.prompt { 
  color: var(--path); 
  margin-bottom: 1.2rem; 
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.command { 
  color: var(--prompt); 
  font-weight: bold; 
  margin-left: 8px;
  transition: color 0.3s ease;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.nav-item {
  color: var(--link);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 1.5rem;
  position: relative;
  padding: 0.2rem 0;
}

.nav-item:hover { 
  opacity: 0.8; 
  transform: translateY(-2px); 
}

.nav-item.active {
  font-weight: 500;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: background-color 0.3s ease;
}

.section {
  display: none;
  margin-top: 3.5rem;
  animation: fadeIn 0.5s ease;
  padding-bottom: 1rem;
}

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

.section.active { display: block; }

/* Add space between paragraphs */
.section p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.section p:last-child {
  margin-bottom: 0;
}

/* Add a bit more space for about section paragraphs */
#about p {
  margin-bottom: 1.8rem;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--primary);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary-light);
  transition: border-bottom 0.3s ease;
}

a:hover {
  border-bottom: 1px solid var(--primary);
}

.skill {
  background: var(--skill-bg);
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  color: var(--primary);
  margin: 0.3rem;
  display: inline-block;
  transition: transform 0.2s ease, background 0.3s ease;
}

.skill:hover {
  transform: translateY(-3px);
  background: var(--skill-hover-bg);
}

.project { 
  margin-bottom: 1.8rem; 
  padding: 1.2rem;
  border-left: 3px solid var(--primary-light); 
  transition: all 0.2s ease, background 0.3s ease;
  background: var(--project-bg);
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project:hover {
  background: var(--project-hover-bg);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.project.active-project {
  border-left: 3px solid var(--primary);
  background: var(--project-hover-bg);
  box-shadow: 0 4px 12px var(--shadow);
}

.project-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  justify-content: space-between;
}

.project-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--highlight);
}

.active-badge {
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  animation: pulse-badge 2s infinite alternate ease-in-out;
}

@keyframes pulse-badge {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.project-description {
  margin-bottom: 1rem !important;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.9;
  line-height: 1.5;
}

.project-footer {
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--primary);
  border-bottom: none;
  transition: all 0.2s ease;
  opacity: 0.9;
  gap: 0.5rem;
}

.project-link i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.project-link:hover {
  opacity: 1;
  border-bottom: none;
}

.project-link:hover i {
  transform: translateY(-2px) translateX(2px);
}

.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.social-icon {
  color: var(--primary);
  font-size: 1.2rem;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.social-icon:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.highlight {
  color: var(--highlight);
  font-weight: 500;
  position: relative;
  padding: 0 2px;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--highlight-bg);
  z-index: -1;
  border-radius: 2px;
  transition: height 0.3s ease;
}

.highlight:hover::after {
  height: 100%;
}

/* Styling for the interests list */
.interests-list {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
}

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

.interests-list li::before {
  content: '>';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
  opacity: 0.8;
}

.interests-list li:hover::before {
  opacity: 1;
  transform: translateX(3px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Skills container with better spacing */
.skills-container {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Game section styling */
.game-container {
  background: var(--project-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  border-left: 3px solid var(--primary-light);
}

.game-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow);
  background: var(--project-hover-bg);
}

.game-preview {
  text-align: center;
  margin-bottom: 1.5rem;
}

.game-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.game-preview h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.game-preview p {
  color: var(--prompt);
  margin-bottom: 0;
}

.game-button {
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(226, 116, 116, 0.2);
}

.game-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(226, 116, 116, 0.3);
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  border-bottom: none;
}

.game-button i {
  transition: transform 0.3s ease;
}

.game-button:hover i {
  transform: translateX(5px);
}

.game-note {
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--prompt);
  max-width: 90%;
  margin: 1rem auto 0;
}

footer {
  font-size: 0.8rem;
  margin-top: 3rem;
  color: var(--prompt);
  text-align: center;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }
  
  .terminal {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    box-shadow: none;
  }
  
  .terminal-content {
    padding: 1.2rem;
  }
  
  h1 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  
  .navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .nav-item {
    margin-right: 1rem;
    white-space: nowrap;
  }
  
  .project {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .project-header h3 {
    font-size: 1rem;
  }
  
  .project-description {
    font-size: 0.9rem;
    margin-bottom: 0.8rem !important;
  }
  
  .game-container {
    padding: 1.2rem 1rem;
  }
  
  .game-preview h3 {
    font-size: 1.25rem;
  }
  
  .game-icon {
    font-size: 2.5rem;
  }
  
  .game-button {
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
  }
  
  .skills-container {
    justify-content: center;
  }
  
  .terminal-header {
    padding: 0.6rem;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  
  .terminal-title {
    font-size: 0.75rem;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }

  /* Mobile styles for popup */
  .popup-content {
    width: 95%;
    max-height: 95vh;
  }

  .popup-body {
    padding: 1rem;
    gap: 1rem;
  }

  .popup-header h2 {
    font-size: 1.3rem;
  }

  .popup-header {
    padding: 1rem;
  }

  #popup-image {
    max-height: 250px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .terminal-content {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }
  
  .prompt {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .navigation {
    margin-bottom: 1.2rem;
  }
  
  .section {
    margin-top: 2rem;
  }
  
  .section p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  #about p {
    margin-bottom: 1.5rem;
  }
  
  .interests-list li {
    font-size: 0.95rem;
  }
  
  .game-container {
    margin: 1.2rem 0;
  }
  
  .game-note {
    font-size: 0.8rem;
  }
  
  footer {
    margin-top: 2rem;
  }
}

/* Add back the dark theme toggle styling after the fa-moon display rule */

[data-theme="dark"] .toggle-icon .fa-moon {
  display: none;
}

/* Add back the dark theme toggle styling */
[data-theme="dark"] .theme-toggle {
  background: linear-gradient(145deg, #FFD700, #FFC107);
  color: #553c00;
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3), 
              inset 0 -2px 5px rgba(0,0,0,0.1),
              0 0 0 3px rgba(255, 193, 7, 0.15);
}

@keyframes darkPulse {
  0% {
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3), 
                inset 0 -2px 5px rgba(0,0,0,0.1),
                0 0 0 3px rgba(255, 193, 7, 0.15);
  }
  100% {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4), 
                inset 0 -2px 5px rgba(0,0,0,0.1),
                0 0 0 5px rgba(255, 193, 7, 0.2);
  }
}

[data-theme="dark"] .theme-toggle {
  animation: darkPulse 2s infinite alternate ease-in-out;
}

[data-theme="dark"] .theme-toggle:hover {
  background: linear-gradient(145deg, #FFC107, #FFD700);
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4),
              inset 0 -2px 5px rgba(0,0,0,0.1),
              0 0 0 4px rgba(255, 193, 7, 0.25);
}

/* Project Popup Styles */
.project-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-popup.active {
  display: flex;
  opacity: 1;
}

.popup-content {
  background: var(--terminal-bg);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 15px 40px var(--shadow);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid rgba(226, 116, 116, 0.2);
}

.project-popup.active .popup-content {
  transform: translateY(0);
}

.popup-header {
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .popup-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-header h2 {
  margin: 0;
  color: var(--highlight);
  font-size: 1.5rem;
  font-weight: 500;
}

.close-popup {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-popup:hover {
  color: var(--primary);
  background-color: var(--highlight-bg);
}

.popup-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.popup-image-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .popup-image-container {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#popup-image {
  width: 100%;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.popup-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#popup-description {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

#popup-details {
  background-color: var(--project-bg);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.popup-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.popup-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.popup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(226, 116, 116, 0.3);
  border-bottom: none;
}

.popup-button i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.popup-button:hover i {
  transform: translateX(2px);
}


/* Info Banner Styling */
.info-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--highlight-bg);
  border-left: 3px solid var(--primary);
  padding: 0.8rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  animation: fadeSlideIn 0.8s ease-out;
  transition: all 0.3s ease;
}

.info-banner:hover {
  background: rgba(226, 116, 116, 0.15);
  transform: translateX(3px);
}

.info-banner i {
  color: var(--primary);
  font-size: 1.1rem;
  animation: pulse-icon 2s infinite alternate ease-in-out;
}

@keyframes pulse-icon {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 0.9;
    transform: translateY(0);
  }
}

/* Mobile adjustments for info banner */
@media (max-width: 768px) {
  .info-banner {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
  }
} 