/* GENERAL */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #111;
  color: #f5f5f5;
  line-height: 1.6;
  scroll-behavior: smooth;
  display: flex;
}

/* SIDEBAR */
.sidebar {
  width: 220px;
  background-color: #2c2c2c;
  height: 100vh;
  position: fixed;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.sidebar .logo h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #ff6f3c;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  margin: 20px 0;
}

.sidebar nav ul li a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.sidebar nav ul li a:hover {
  color: #ff6f3c;
}

/* MAIN CONTENT */
.main-content {
  margin-left: 220px; /* leave space for sidebar */
  padding: 40px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center; /* center horizontally */
  text-align: center;  /* center text */
  position: relative;
}

/* TOP-RIGHT PROFILE */
.top-right {
  position: absolute;
  top: 20px;
  right: 40px;
}

.top-profile {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff6f3c;
  cursor: pointer;
}

/* TAB CONTENT */
.tab-content {
  display: none;
  width: 100%;
  max-width: 900px; /* limits content width */
}

.tab-content.active {
  display: block;
}

/* SECTIONS */
section h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: #ff6f3c;
  letter-spacing: 1px;
}

/* HERO */
#home h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

#home p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: #ccc;
}

#home button {
  padding: 15px 35px;
  font-size: 18px;
  cursor: pointer;
  background: #ff6f3c;
  border: none;
  color: #fff;
  border-radius: 5px;
  transition: transform 0.3s, background 0.3s;
}

#home button:hover {
  background: #ff844d;
  transform: scale(1.05);
}

/* PROFILE PHOTO */
.profile-photo {
  display: flex;
  justify-content: center;
  margin: 25px 0;
}

.profile-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ff6f3c;
  box-shadow: 0 8px 20px rgba(255, 111, 60, 0.4);
}

/* SKILLS GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  max-width: 900px;
  margin: auto;
}

.skills-grid div {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
  cursor: default;
}

.skills-grid div:hover {
  background: #ff6f3c;
  color: #111;
  transform: scale(1.05);
}

/* ACHIEVEMENTS */
#achievements ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#achievements li {
  display: block;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #ddd;
  transition: color 0.3s, transform 0.3s;
}

#achievements li i {
  color: #ff6f3c;
  margin-right: 10px;
}

#achievements li:hover {
  color: #ff6f3c;
  transform: translateX(5px);
}

/* CONTACT FORM */
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  font-size: 16px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #f5f5f5;
  transition: border 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border: 1px solid #ff6f3c;
}

button[type="submit"] {
  background: #ff6f3c;
  color: #111;
  border: none;
  padding: 14px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s, transform 0.3s;
}

button[type="submit"]:hover {
  background: #ff844d;
  transform: scale(1.03);
}

#successMsg {
  color: #ff6f3c;
  margin-top: 10px;
  font-weight: bold;
}

/* SEPARATOR */
.separator {
  width: 60%;
  height: 6px;
  background-color: #ff6f3c;
  margin: 40px auto;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(255, 111, 60, 0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 0;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }

  .top-right {
    position: static;
    margin: 20px auto;
  }
}

