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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: Arial, sans-serif;
  background-color: #FBF5E7;
  color: #333;
  margin: 0;
  padding: 0;
}

body.dark-mode {
  background-color: #1e1e1e;
  color: #f5f5f5;
}

a {
  color: purple;
  text-decoration: underline;
}
a:hover {
  color: #6A4E77;
}
body.dark-mode a {
  color: #5DADE2;
}
body.dark-mode a:hover {
  color: #3498DB;
}

header {
  background-color: #D9CBB5;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-bottom: 2px solid #C4B79F;
}

body.dark-mode header {
  background-color: #333;
  color: #f5f5f5;
  border-bottom: 2px solid #444;
}

header nav {
  font-size: 18px;
  font-weight: bold;
}

header nav a {
  margin: 0 25px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
header nav a:hover {
  color: #6A4E77;
  text-decoration: none;
}

body.dark-mode header nav a {
  color: #f5f5f5;
  text-decoration: none;
}
body.dark-mode header nav a:hover {
  color: #bbb;
  text-decoration: none;
}

#toggle-theme {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: #D9CBB5;
  color: #333;
  border: 2px solid #C4B79F;
}
#toggle-theme::before {
  content: "☀️";
}
#toggle-theme:hover {
  background-color: #C4B79F;
  transform: translateY(-50%) scale(1.05);
}

body.dark-mode #toggle-theme {
  background-color: #444;
  color: #f5f5f5;
  border: 2px solid #666;
}
body.dark-mode #toggle-theme::before {
  content: "🌙";
}
body.dark-mode #toggle-theme:hover {
  background-color: #555;
}

.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 20px 20px;
}

.section {
  margin-bottom: 30px;
  scroll-margin-top: 80px;
}
.section h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.section p {
  text-align: justify;
}

.intro {
  background: linear-gradient(to right, #FBF5E7, #EDE7D1);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.intro:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

body.dark-mode .intro {
  background: linear-gradient(to right, #2e2e2e, #3a3a3a);
  color: #f5f5f5;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}
body.dark-mode .intro:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.6);
}

.intro-text {
  flex: 1;
  min-width: 0;
}

.intro-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.intro-text p {
  font-size: 17px;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 16px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 30px;
  margin-top: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.contact-item p {
  margin: 0;
  white-space: nowrap;
  font-size: 14px;
}

.contact-item img.icon {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}

.profile-pic-wrapper {
  flex-shrink: 0;
  position: relative;
  width: 180px;
  height: 180px;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid #D9CBB5;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  object-fit: cover;
  display: block;
}

body.dark-mode .profile-pic {
  border: 5px solid #f5f5f5;
}

.content-item {
  margin-bottom: 20px;
  background: linear-gradient(to right, #FBF5E7, #EDE7D1);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

body.dark-mode .content-item {
  background: linear-gradient(to right, #2e2e2e, #3a3a3a);
  color: #f5f5f5;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}
body.dark-mode .content-item:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.6);
}

.item-left {
  flex-shrink: 0;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.item-left img.logo {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.item-logo-text {
  font-size: 12px;
  font-weight: bold;
  color: #6A4E77;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

body.dark-mode .item-logo-text {
  color: #5DADE2;
}

.item-right {
  flex: 1;
  min-width: 0;
}

.item-right p {
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  margin: 0;
}

.content-box {
  margin-bottom: 20px;
  background: linear-gradient(to right, #FBF5E7, #EDE7D1);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-box:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

body.dark-mode .content-box {
  background: linear-gradient(to right, #2e2e2e, #3a3a3a);
  color: #f5f5f5;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}
body.dark-mode .content-box:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.6);
}

.content-para {
  margin-bottom: 14px;
  text-align: justify;
  width: 100%;
}

.content-para p {
  font-size: 15px;
  line-height: 1.65;
}

.image-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.image-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-column img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.skill-col {
  flex: 1;
  min-width: 160px;
  margin: 8px;
}

.skill-col h3 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #333;
}

body.dark-mode .skill-col h3 {
  color: #f5f5f5;
}

.skill-col ul {
  list-style: none;
  padding: 0;
}

.skill-col li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.skill-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.skill-emoji {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
}

.flag {
  font-size: 20px;
  line-height: 1;
}

.wip-badge {
  font-size: 10px;
  font-weight: 600;
  background: #E8E0FF;
  color: #4B0082;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.dark-mode .wip-badge {
  background: #2a1a4a;
  color: #c4aaff;
}

footer {
  background-color: #D9CBB5;
  color: #333;
  border-top: 2px solid #C4B79F;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

footer a {
  color: purple;
  text-decoration: underline;
}
footer a:hover {
  color: #6A4E77;
}

body.dark-mode footer {
  background-color: #333;
  color: #f5f5f5;
  border-top: 2px solid #444;
}
body.dark-mode footer a {
  color: #5DADE2;
}
body.dark-mode footer a:hover {
  color: #3498DB;
}

@media (max-width: 650px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .intro {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .intro-text p {
    text-align: left;
  }

  header nav a {
    margin: 0 12px;
    font-size: 14px;
  }

  .skills-grid {
    flex-direction: column;
  }
}
