/* ===== GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f7fa;
  color: #1b1b1b;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 220px;
  background-color: #0d1b2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

/* ===== PROFILE (INSIDE SIDEBAR) ===== */
.header-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.profile-pic {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #a1cec4;
  margin-bottom: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 198, 0.25);
}

.header-main h1 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ===== NAV LINKS ===== */
.side-nav ul {
  list-style: none;
  width: 100%;
  padding: 0;
}

.side-nav li {
  width: 100%;
  text-align: center;
  margin: 12px 0;
}

.side-nav a {
  text-decoration: none;
  color: #e0e6ed;
  font-weight: 500;
  display: block;
  padding: 10px;
  transition: 0.3s ease;
  border-radius: 6px;
}

.side-nav a:hover {
  background: #112240;
  color: #00ffc6;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 240px;
  padding: 50px 60px;
  max-width: 1000px;
}

section {
  margin-bottom: 70px;
}

h2 {
  font-size: 1.8rem;
  color: #0d1b2a;
  border-left: 4px solid #a1cec4;
  padding-left: 10px;
  margin-bottom: 25px;
}

/* ===== ABOUT SECTION ===== */
#about p {
  font-size: 1rem;
  color: #333;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* ===== SKILLS ===== */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.skills-group {
  flex: 1;
  min-width: 250px;
}

.skills-group h3 {
  color: #14213d;
  margin-bottom: 10px;
}

.skill-tags span {
  display: inline-block;
  background: #00ffc61a;
  color: #0d1b2a;
  border: 1px solid #a1cec4;
  border-radius: 25px;
  padding: 6px 14px;
  margin: 5px;
  font-size: 0.9rem;
  transition: 0.3s;
}

.skill-tags span:hover {
  background: #a1cec4;
  color: #0d1b2a;
}

/* ===== PROJECTS ===== */
#projects h3 {
  margin-top: 20px;
  color: #14213d;
}

.project-button {
  display: inline-block;
  margin: 10px 0 25px;
  padding: 10px 18px;
  background: #0d1b2a;
  color: #a1cec4;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
  font-weight: 500;
}

.project-button:hover {
  background: #a1cec4;
  color: #0d1b2a;
  transform: translateY(-3px);
}

/* ===== CERTIFICATES ===== */
.certificate-cards {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  width: 260px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: #14213d;
  margin-bottom: 10px;
}

.view-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #a1cec4;
  color: #0d1b2a;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.view-button:hover {
  background: #0d1b2a;
  color: #a1cec4;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  max-width: 500px;
}

.form-group label {
  font-weight: 500;
  color: #14213d;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.3s;
}

input:focus, textarea:focus {
  border-color: #a1cec4;
  outline: none;
}

.contact-button {
  background: #0d1b2a;
  color: #a1cec4;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: 0.3s;
}

.contact-button:hover {
  background: #00ffc6;
  color: #0d1b2a;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
  body {
    flex-direction: column;
  }

  .side-nav {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    padding: 10px 0;
  }

  .header-main {
    flex-direction: row;
    gap: 15px;
    margin-bottom: 0;
  }

  .main-content {
    margin-left: 0;
    padding: 30px 20px;
  }

  .certificate-cards {
    flex-direction: column;
    align-items: center;
  }

  .skills-container {
    flex-direction: column;
  }
}
