/* --- 1. Define the Themes --- */
:root {
  /* Blue Team (Defensive) Variables */
  --bg-color: #0b132b;
  --text-main: #e0fbfc;
  --accent-color: #48cae4;
  --nav-bg: #1c2541;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[data-theme="red"] {
  /* Red Team (Offensive) Variables */
  --bg-color: #0a0000;
  --text-main: #ffeded;
  --accent-color: #ff003c;
  --nav-bg: #1a0000;
  --font-family: 'Courier New', Courier, monospace;
}

/* --- 2. Apply the Themes --- */
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  transition: background-color 0.4s ease, color 0.4s ease;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* --- 3. Layout Styling --- */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: var(--nav-bg);
  border-bottom: 2px solid var(--accent-color);
}

.btn {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 25px;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero-title, .about-header, h2 {
  color: var(--accent-color);
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.about-image {
  width: 200px;
  height: 200px;
  border-radius: 10px; /* Optional: adds slightly rounded corners */
  border: 2px solid var(--accent-color);
  object-fit: cover;
}

.projects {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.project-list li {
  margin-bottom: 15px;
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: var(--nav-bg);
  border-top: 1px solid var(--accent-color);
}

hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, transparent, var(--accent-color), transparent);
  margin: 0;
}

/* --- Update the Body Tag --- */
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  
  /* The format is: property | duration | timing-function | delay 
    Here it takes 0.6 seconds to complete, but waits 0.3 seconds before starting.
  */
  transition: background-color 0.6s ease 0.3s, color 0.6s ease 0.3s;
  
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* --- Update the Image Styles --- */
.about-image {
  width: 200px;
  height: 200px;
  border-radius: 10px; 
  border: 2px solid var(--accent-color);
  object-fit: cover;
  
  /* Add a transition so the image fades smoothly instead of snapping */
  transition: opacity 0.3s ease, border-color 0.3s ease 0.1s; 
}

/* Add this new class at the bottom of your CSS */
.fade-out {
  opacity: 0;
}