  /* Reset and Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
    --black: #000;
    --white: #fff;
    --light-gray: #f0f0f0;
    --medium-gray: #aaa;
    --dark-gray: #333;
    --shadow: 0 4px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
  }

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Container Styles */
  .container {
    max-width: 1200px;
    width: 100%;
    background-color: var(--white);
    min-height: 100vh;
    box-shadow: var(--shadow);
    position: relative;
  }

  @media (min-width: 768px) {
    .container {
      margin: 15px;
      min-height: calc(100vh - 30px);
    }
  }

  /* Header Styles */
  header {
    width: 100%;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
  }

  .logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
  }

  .menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    z-index: 1000;
  }

  @media (max-width: 767px) {
    .menu-toggle {
      display: block;
    }
    
    .logo {
      font-size: 2rem;
    }
  }

  /* Content Layout */
  .content-wrapper {
    display: flex;
    min-height: calc(100vh - 180px); /* Subtract header and footer height */
  }

  /* Navigation Styles */
  .nav {
    width: 220px;
    flex-shrink: 0;
    padding: 20px;
    border-right: 1px solid var(--light-gray);
  }

  .nav-list {
    list-style: none;
    padding: 0;
  }

  .nav-item {
    margin-bottom: 15px;
  }

  .nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    transition: var(--transition);
    padding: 8px 0;
  }

  .nav-link:hover {
    color: var(--black);
    transform: translateX(5px);
  }

  .nav-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
  }

  /* Mobile Navigation */
  @media (max-width: 767px) {
    .content-wrapper {
      flex-direction: column;
    }
    
    .nav {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(5px);
      transform: translateX(100%);
      transition: var(--transition);
      z-index: 999;
      display: flex;
      justify-content: center;
      align-items: center;
      border-right: none;
    }

    .nav.active {
      transform: translateX(0);
    }

    .nav-list {
      padding: 50px 20px;
    }

    .nav-item {
      margin-bottom: 20px;
      text-align: center;
    }

    .nav-link {
      font-size: 1.2rem;
      justify-content: center;
    }
  }

  /* Main Content Styles */
  .main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
  }

  .content-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
  }

  .content-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--black);
  }
  .text p {
    margin-bottom: .8rem;
    padding: 0rem .5rem 0rem;
  }

  .cv td {
    vertical-align: top;
    padding: 0rem 1.5rem .6rem 0rem;
}
  #cv h2 {
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 10px 0 5px 0;
}
  /* Gallery Styles */
  .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 20px 0;
  }

  .gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }

  .gallery-img-container {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
  }

  .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }

  .gallery-item:hover .gallery-img {
    transform: scale(1.05);
  }

  .gallery-caption {
    padding: 15px;
    background: var(--white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .caption-title {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 5px;
  }

  .caption-details {
    font-size: 0.9rem;
    color: var(--dark-gray);
  }

  /* Tablet Responsive */
  @media (max-width: 991px) {
    .gallery {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (max-width: 767px) {
    .gallery {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }
  }

  @media (max-width: 480px) {
    .gallery {
      grid-template-columns: 1fr;
    }
  }

  /* Lightbox Styles */
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 0 60px;
  }

  .lightbox.active {
    opacity: 1;
    visibility: visible;
  }

  .lightbox-container {
    max-width: 95%;
    max-height: 95%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    object-fit: contain;
  }

  .lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 15px;
  }

  .lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2rem;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1002;
  }

  .lightbox-nav:hover {
    background: rgba(0,0,0,0.8);
  }

  .lightbox-prev {
    left: 20px;
  }

  .lightbox-next {
    right: 20px;
  }

  /* Footer Styles */
  footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--light-gray);
    color: var(--dark-gray);
    font-size: 0.9rem;
  }

  @media (max-width: 767px) {
    .container {
      margin: 0;
      padding: 0 10px;
    }

    .lightbox-container {
      max-width: 95%;
    }

    .lightbox-nav {
      width: 40px;
      height: 40px;
      font-size: 1.5rem;
    }

    .lightbox-prev {
      left: 10px;
    }

    .lightbox-next {
      right: 10px;
    }
  }