:root {
  --background-color: #ffffff;
  --text-color: #000000;
  --accent-color: #556B2F;
  --link-color: #556B2F;  /* Using accent color for all links */
  --primary-color: #f5f5f5;
  --secondary-color: #ffffff;
  --section-spacing: 0;
  --card-spacing: 0;
  --content-padding: 3rem;
  --sidebar-width: 300px;
}

/* Base styles */
body {
  font-family: 'Playfair Display', serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
}

/* Paragraph styles */
p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 1.2rem 0;
}

/* Global link styles for consistency */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
  color: var(--link-color);
}

/* Layout */
.layout-container {
  display: flex;
  min-height: 100vh;
}

/* Profile Section */
.profile-section {
  width: var(--sidebar-width);
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 2rem;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  box-sizing: border-box;
}

/* Navigation */
nav {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  position: relative;
  width: 100%;
}

nav a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  text-align: center;
  position: relative;
  font-weight: 500;
}

nav a:hover {
  opacity: 0.8;
  color: var(--link-color);
}

nav a:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--link-color);
  opacity: 0.5;
}

/* Profile Image */
.profile-image {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  margin: 0 auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
}

.profile-image:hover {
  transform: scale(1.05);
}

/* Content Section */
.content-section {
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  padding: 2rem 3rem;
  background-color: var(--background-color);
  min-height: 100vh;
  position: relative;
  box-sizing: border-box;
}

/* Headers */
header {
  text-align: left;
  padding: 0;
  margin: 0;
  width: 100%;
}

h1 {
  font-size: 3.5rem;
  margin: 0;
  padding-bottom: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Main Content */
main {
  margin: 0;
  padding: 0;
}

section {
  margin: 0;
  padding: 1.5rem 0 0;
  background-color: var(--background-color);
}

section:first-of-type {
  padding-top: 2rem;
}

h2 {
  font-size: 2.2rem;
  color: var(--accent-color);
  margin: 0 0 1.5rem 0;
}

h4 {
  font-size: 1rem;
  color: var(--accent-color);
  margin: 2rem 0 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Work Items */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.work-item {
  padding: 0;
  background-color: var(--background-color);
  transition: transform 0.3s ease;
}

.work-item:hover {
  transform: translateX(10px);
}

.work-header {
  margin: 0 0 1rem 0;
  position: relative;
  padding-bottom: 0.5rem;
}

.work-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
  opacity: 0.5;
}

.work-header h3 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.work-item p {
  margin: 1rem 0;
  line-height: 1.7;
}

/* Project Link */
.project-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: var(--secondary-color) !important;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  margin: 0.5rem 0 1rem;
}

.project-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: var(--secondary-color) !important;
}

/* Contact Section */
.contact-info {
  margin: 0;
}

.contact-item p {
  margin: 0.5rem 0;
}

/* List styles */
ul {
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 1.2rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 250px;
  }
  
  .profile-image {
    width: 220px;
    height: 220px;
  }

  .work-header h3 {
    font-size: 1.6rem;
  }

  h4 {
    font-size: 1.6rem;
  }

  p, ul {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 100%;
  }

  .layout-container {
    flex-direction: column;
  }

  .profile-section {
    width: 100%;
    position: relative;
    padding: 1.5rem;
    min-height: auto;
    box-sizing: border-box;
    align-items: center;
  }

  .content-section {
    width: 100%;
    margin-left: 0;
    padding: 1.5rem;
    box-sizing: border-box;
  }

  header {
    padding: 0;
  }

  nav {
    margin: 1rem 0;
  }

  nav a {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .profile-image {
    width: 180px;
    height: 180px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.4rem;
  }

  .work-header h3 {
    font-size: 1.5rem;
  }

  section {
    padding: 1.5rem 0 0;
  }

  p, ul {
    font-size: 1.1rem;
  }
}
