/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  background-color: #0f0f17;
  color: #f5f5f5;
}

a {
  text-decoration: none;
  color: inherit;
}

.sidebar a:hover {
  background: #0f0f17;
  color: #00bcd4;
  border: 0.1rem solid #00bcd4;
  box-shadow: 0 0 1rem #00bcd4;
}

.sidebar p {
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  color: #555;
  text-align: center;
}

/* ===== Main Layout ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== Navbar ===== */
.navbar {
  background: #1f1f2f;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.1rem solid #333;
}

.navbar h1 {
  font-size: clamp(1rem, 2vw, 1.8rem);
  color: #00bcd4;
  letter-spacing: 0.1rem;
}

.navbar .links {
  display: flex;
  gap: 1rem;
}

.navbar .links a {
  background: #00bcd4;
  color: #0f0f17;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: 0.3s;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
}

.navbar .links a:hover {
  background: #0f0f17;
  color: #00bcd4;
  box-shadow: 0 0 1rem #00bcd4;
  border: 0.1rem solid #00bcd4;
}

/* ===== Intro Section ===== */
.intro {
  margin: 2rem;
  background: #1c1c2e;
  border-radius: 1rem;
  padding: 1.5rem;
  max-height: 30vh;
  overflow-y: auto;
  box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.3);
}

.intro h2 {
  color: #00bcd4;
  margin-bottom: 0.8rem;
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.intro p {
  color: #ccc;
  line-height: 1.6;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

/* ===== Skills Section ===== */
.skills {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-card {
  background: #1c1c2e;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.8rem 2rem rgba(0, 188, 212, 0.3);
}

.skill-card h3 {
  color: #00bcd4;
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.skill-card p {
  color: #ccc;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  line-height: 1.6;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1rem;
  background: #1f1f2f;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  color: #777;
  border-top: 0.1rem solid #333;
}
/* ===== Chat Box ===== */
.chat-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40vw;
  background: #1c1c2e;
  border: 0.2rem solid #00bcd4;
  border-radius: 0.8rem;
  display: none;
  flex-direction: column;
  box-shadow: 0 0 1rem #00bcd4;
}


.chat-header {
  background: #00bcd4;
  color: #0f0f17;
  padding: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.8rem 0.8rem 0 0;
}

.chat-messages {
  padding: 0.8rem;
  height: 25vh;
  overflow-y: auto;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  color: #ddd;
}

.chat-input {
  display: flex;
  border-top: 0.1rem solid #333;
}

.chat-input input {
  flex: 1;
  background: #0f0f17;
  border: none;
  color: #fff;
  padding: 0.8rem;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
}

.chat-input button {
  background: #00bcd4;
  color: #0f0f17;
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-weight: bold;
  font-size: clamp(0.8rem, 1vw, 1rem);
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 23, 0.95);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1c1c2e;
  padding: 2rem;
  border-radius: 1rem;
  width: 40vw;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 0 2rem #00bcd4;
}

.modal-content input,
.modal-content textarea {
  background: #0f0f17;
  border: 0.1rem solid #00bcd4;
  color: #fff;
  padding: 0.8rem;
  border-radius: 0.8rem;
  font-size: clamp(0.8rem, 1vw, 1rem);
}

.modal-content .sendBtn {
  background: #00bcd4;
  color: #0f0f17;
  padding: 0.8rem;
  border-radius: 0.8rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: clamp(0.8rem, 1vw, 1rem);
}

.modal-content .sendBtn:hover {
  background: #0f0f17;
  color: #00bcd4;
  box-shadow: 0 0 1rem #00bcd4;
}

#closeChat,
#closeModal {
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.4rem);
}

/* ===== Buttons ===== */
button {
  background: #00bcd4;
  color: #0f0f17;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  transition: 0.3s;
  cursor: pointer;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
}

button:hover {
  background: #0f0f17;
  color: #00bcd4;
  box-shadow: 0 0 1rem #00bcd4;
  border: 0.1rem solid #00bcd4;
}

/* ===== زرار النيون ===== */
.skill-card h3 a {
  display: inline-block;
  text-decoration: none;
  color: #00bfff;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.3rem);
  border: 0.15rem solid #00bfff;
  border-radius: 0.5rem;
  padding: 0.5rem 1.2rem;
  transition: 0.3s ease;
  box-shadow: 0 0 0.8rem #00bfff, inset 0 0 0.6rem #00bfff;
  text-shadow: 0 0 0.4rem #00bfff;
}

.skill-card h3 a:hover {
  color: #fff;
  background: #00bfff;
  box-shadow: 0 0 2rem #00bfff, 0 0 4rem #00bfff, inset 0 0 0.6rem #fff;
  transform: scale(1.08);
}

.skill-card h3 a:active {
  transform: scale(0.97);
  box-shadow: 0 0 1rem #00bfff, inset 0 0 0.4rem #fff;
}
