/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
  margin-left: 300px; /* Match sidebar width */
}

/* Sidebar */
.sidebar {
  width: 300px;
  position: fixed;
  height: 100vh;
  padding: 2rem;
  border-right: 1px solid #eee;
  overflow-y: auto;
  left: 0;
  top: 0;
  z-index: 1000;
  background: #fff;
}

.logo {
  margin-bottom: 3rem;
}

.logo-circle {
  width: 48px;
  height: 48px;
  background: #000;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li {
  margin-bottom: 0.5rem;
  margin-left: 1rem;
}

.sidebar nav ul li a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar nav ul li a:hover {
  color: #666;
}





/* Main Content */
.main-content {
  flex: 1;
  padding: 3rem;
  width: 100%;
  min-height: calc(100vh - 100px); /* Ensure main content fills most of the viewport */
}

/* Section Styles */
.section {
  margin-bottom: 5rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

h3 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* About Section */
.about-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.about-text {
  max-width: 500px;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.info-block {
  margin-bottom: 2rem;
}

.subtle {
  color: #666;
}

.skills-list {
  list-style: none;
  color: #666;
}

/* Projects Section */
.project {
  margin-bottom: 5rem;
}

.project-content {
  display: flex;
  gap: 2rem;
}

.project-info {
  flex: 1;
}

.project-images-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.project-images {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.project-images::-webkit-scrollbar {
  display: none; /* WebKit */
}

.project-images img {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  scroll-snap-align: start;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.scroll-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.scroll-left {
  left: 0;
}

.scroll-right {
  right: 0;
}

/* Footer Styles */
footer {
  background-color: #f8f8f8;
  color: #333;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  position: relative;
  bottom: 0;
  right: 0;
  width: calc(100% - 300px);
  z-index: 900;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
  margin-left: 300px;
}

footer.visible {
  transform: translateY(0);
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #666;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  font-size: 1.5rem;
  color: #333;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #666;
}

.footer-section i {
  margin-right: 0.5rem;
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #eee;
}


/* Responsive Design */
@media (max-width: 1200px) {
  .project-content {
    flex-direction: column;
  }

  .project-info,
  .project-images-container {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .about-header,
  .about-details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    margin-left: 0;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .main-content {
    margin-left: 0;
    padding: 2rem;
    min-height: calc(100vh - 200px); /* Adjust for mobile layout */
  }

  footer {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Sidebar Styles for Mobile */
@media (max-width: 768px) {
  .sidebar {
    width: 250px; /* Sidebar width when opened */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  .sidebar.open {
    visibility: visible;
    opacity: 1;
  }

  .menu-icon {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
  }

  .menu-icon::before {
    content: '\2630'; /* Unicode for hamburger menu */
    font-size: 2rem;
    color: #333;
  }

  .layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-content {
    flex-grow: 1;
    padding: 2rem !important;
    width: 100% !important;
    overflow-y: auto;
  }

  footer {
    flex-shrink: 0;
    background: #f8f8f8;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #eee;
    width:100%;
    margin-left: 0px;
  }
}
