/* --- 1. Variables and Global Styles --- */
:root {
  --bg-dark: #1a1e24;
  --card-dark: #222831;
  --primary-accent: #00bcd4;
  --primary-accent-dark: #00a2bb;
  --text-light: #eeeeee;
  --text-muted: #aaaaaa;
  /* Slightly darker muted for contrast */
  --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.4);
  --border-radius-lg: 20px;
  --navbar-height-buffer: 100px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height-buffer);
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding-top: var(--navbar-height-buffer);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- 2. Main Container --- */
.portfolio-wrapper {
  background-color: var(--card-dark);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-strong);
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
}

/* --- 3. Navigation Bar --- */
.navbar-container {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
  background-color: var(--bg-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
}

.navbar .logo {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-light);
}

.navbar .logo span {
  color: var(--primary-accent);
}

.navbar-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 0;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary-accent);
}

/* --- 4. Hero Content --- */
.hero-content {
  padding-right: 20px;
  text-align: center;
}

.hero-content h3 {
  font-size: 1.4em;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.hero-content h2  {
  font-size: 3em;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 5px;
  line-height: 1.2;
}

.hero-content h2 span {
  color: var(--primary-accent);
}

/* Social Icons */
.social-icons {
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  color: var(--text-muted);
  font-size: 1.5em;
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.social-icons a:hover {
  color: var(--primary-accent);
  border-color: var(--primary-accent);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* Download CV Button */
.btn-download {
  display: inline-block;
  background-color: var(--primary-accent);
  color: var(--card-dark);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.btn-download:hover {
  background-color: var(--primary-accent-dark);
  box-shadow: 0 7px 20px rgba(0, 188, 212, 0.5);
  transform: translateY(-2px);
}

/* --- 5. Profile Image --- */
.profile-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.profile-shape {
  width: 400px;
  height: 450px;
  transition: transform 0.5s ease-in-out;
}

.profile-shape:hover {
  transform: scale(1.09);
}

.profile-shape img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* --- 6. Content Sections --- */
.section-box {
  background-color: var(--card-dark);
  padding: 30px;
  margin-bottom: 25px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-box h3 {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-accent);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.summary-text {
  font-size: 1.05em;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.skills-grid span {
  background-color: rgba(0, 188, 212, 0.1);
  color: var(--primary-accent);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9em;
  border: 1px solid rgba(0, 188, 212, 0.3);
  transition: all 0.3s;
  cursor: default;
}

.skills-grid span:hover {
  background-color: rgba(0, 188, 212, 0.3);
  color: var(--text-light);
  border-color: var(--primary-accent);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
  transform: translateY(-1px);
}

.skills-category {
  font-size: 1.3em;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 25px;
  margin-bottom: 10px;
  padding-left: 5px;
}

/* Education */
.education-item {
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 3px solid var(--primary-accent);
  position: relative;
}

.education-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 5px;
  width: 14px;
  height: 14px;
  background-color: var(--primary-accent);
  border-radius: 50%;
  border: 3px solid var(--card-dark);
}

.education-item h4 {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 5px;
  font-weight: 600;
}

.education-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95em;
}

/* --- 8. Responsive Design --- */
@media (min-width: 820px) {
  .portfolio-wrapper {
    grid-template-columns: 2fr 1.2fr;
    padding: 50px;
  }

  .navbar-container {
    padding: 20px 0;
  }

  .hero-content {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    text-align: left;
    padding-right: 50px;
    order: 0;
  }

  .social-icons {
    justify-content: flex-start;
  }

  .profile-image-container {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    order: 0;
  }

  .section-box,
  .copyright-footer {
    grid-column: 1 / -1;
    order: 0;
  }

  #summary {
    margin-top: 50px;
  }
}

@media (max-width: 820px) {
  .navbar-container {
    padding: 10px 0;
  }

  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .navbar-links a {
    margin: 0 10px;
  }

  .portfolio-wrapper {
    padding: 20px;
    display: grid;
  }

  .hero-content h2{
    font-size: 2.2em;
  }

  .profile-shape {
    width: 200px;
    height: 200px;
  }

  .social-icons {
    gap: 10px;
  }

  .hero-content {
    order: 1;
  }

  .profile-image-container {
    order: 2;
    margin: 70px auto;
  }

  .section-box {
    order: 3;
  }

  .copyright-footer {
    order: 4;
  }

  .input-row {
    flex-direction: column;
  }
}

/* --- 9. Minimal Contact Section --- */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-minimal p {
  color: var(--text-muted);
  margin-bottom: 15px;
}

.direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.icon-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-weight: 500;
}

.icon-link i {
  color: var(--primary-accent);
}

.form-minimal {
  width: 100%;
  margin-top: 10px;
}

/* Flex row for Name/Email to save space */
.input-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-minimal input,
.form-minimal textarea {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-family: "Poppins", sans-serif;
  font-size: 0.95em;
  transition: all 0.3s;
  box-sizing: border-box;
}

.form-minimal textarea {
  resize: vertical;
  margin-bottom: 15px;
}

.form-minimal input:focus,
.form-minimal textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-minimal {
  background-color: var(--primary-accent);
  color: var(--card-dark);
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Poppins", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-minimal:hover {
  background-color: var(--primary-accent-dark);
  transform: translateY(-2px);
}

/* --- 10. Copyright Footer --- */
.copyright-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85em;
  width: 100%;
}