/* Color Palette */
:root {
  --primary-color: #B81B53;  /* Accent / Magenta */
  --bg-dark: #000000;
  --text-heading: #222222;
  --text-body: #444444;
  --text-muted: #666666;
  --bg-card: rgba(240, 240, 240, 0.88);
}

/* Global */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-body);
  background-color: #f2f2f2;
}

ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: 'Raleway', sans-serif; }

/* Profile Image replacing bg-image */
.profile-image-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  display: flex;
  align-items: flex-end; /* Anchors the image to the bottom */
  justify-content: flex-end;
  z-index: 0;
}

.profile-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Ensures the whole picture appears fully without cropping */
}

@media (max-width: 992px) {
  .profile-image-container {
     width: 100%;
     z-index: -1;
     opacity: 0.3; /* Make it subtle since it takes full width now */
  }
}

/* Base Layout for Header (Home View) */
#header {
  transition: ease-in-out 0.3s;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 997;
  overflow-y: auto;
}

.pb-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
  margin: 0 auto;
}

/* Header Top mode (When other sections are active) */
#header.header-top {
  height: 80px;
  position: fixed;
  left: 0; top: 0; right: 0;
  background: rgba(255,255,255, 0.95);
  box-shadow: 0px 2px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(0,0,0,0.05);
}

#header.header-top .pb-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header h1 {
  font-size: 48px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #222222;
}

#header h1 a {
  color: #222222;
  line-height: 1;
  display: inline-block;
}

#header.header-top h1 { 
    font-size: 28px;
}

#header h2 {
  font-size: 20px;
  margin-top: 20px;
  color: #444;
  font-weight: 400;
}
#header.header-top h2 { display: none; } /* Hide tagline in top header */

/* NavMenu */
.navbar {
  padding: 0;
  margin-top: 35px;
}

#header.header-top .navbar {
  margin-top: 0;
}

.navbar ul {
  display: flex;
  align-items: center;
  gap: 25px;
}

.navbar li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  font-size: 16px;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  transition: 0.3s;
  position: relative;
}

.navbar li a:hover, .navbar li a.active {
  color: var(--primary-color);
}

.navbar li a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  visibility: hidden;
  transition: all 0.3s ease-in-out 0s;
}

.navbar li a:hover::before, .navbar li a.active::before {
  visibility: visible;
  width: 100%;
}

/* Remove nav underlines for social in center mode (or they stand alone) */
.social-links {
  margin-top: 40px;
  display: flex;
}
#header.header-top .social-links { display: none; } /* Hide socials in top nav */

.social-links a {
  font-size: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.08);
  color: #333;
  line-height: 1;
  margin-right: 15px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.social-links a:hover {
  background: var(--primary-color);
  color: #fff;
}


/* --- Content Section Area --- */
.sections-container {
  position: absolute;
  top: 100px;
  left: 0;
  bottom: 0;
  width: 60%;
  padding: 0 40px 40px 40px;
  z-index: 9;
  display: flex;
  flex-direction: column;
}

.section {
  display: none;
  background: var(--bg-card);
  padding: 40px;
  border-radius: 4px;
  margin-bottom: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  animation: fadeUp 0.5s ease forwards;
}
.section.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.section-title h2 {
  font-size: 22px;
  font-weight: 700;
  padding: 0;
  line-height: 1px;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-heading);
}
.section-title::after {
  content: "";
  width: 120px;
  height: 2px;
  display: inline-block;
  background: var(--primary-color);
  margin-left: 20px;
}

/* Resume Layout grids */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.col-lg-6 {
  flex: 1;
  min-width: 300px;
}

.resume-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--text-heading);
}

.resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--primary-color);
  position: relative;
}

.resume-item h4 {
  line-height: 18px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.resume-item h5 {
  font-size: 14px;
  background: transparent;
  color: var(--text-muted);
  font-style: italic;
  display: inline-block;
  font-weight: 400;
  margin-bottom: 15px;
  border-radius: 4px;
}

.resume-item p {
    margin-bottom: 10px;
}

.resume-item ul {
  padding-left: 20px;
  list-style-type: none;
}

.resume-item ul li {
  padding-bottom: 10px;
  position: relative;
}

.resume-item ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--primary-color);
}

/* Lists and Galleries */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.project-item {
  color: var(--text-body);
  display: flex;
  position: relative;
  padding-left: 20px;
}

.project-item::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}


.project-item strong {
  font-family: 'Raleway', sans-serif;
  color: var(--primary-color);
  font-size: 15px;
  font-style: italic;
  display: inline;
  margin-right: 5px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
}

/* Media Queries */
@media (max-width: 992px) {
  .sections-container {
      width: 100%;
      padding: 0;
      top: 100px;
      left: 0; right: 0;
  }
  .section {
      margin: 20px;
      padding: 30px 20px;
  }
}
