* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
}
@media (max-width: 992px) {
  body {
    display: flex;
    flex-direction: column;
  }
}
/* class for use  */
@media (max-width:768px) {
  .w-385 {
    width: 385px;
  }
}

/* MODIFIED: Changed container to a flexbox for the new layout */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: flex-start; /* Align items to the top */
  gap: 4rem; /* Creates space between the profile card and main content */
}
/* Small */

@media (min-width: 768px){
    .container {
        width: 750px;
    }
}
/* Medium */
@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}
/* Large */
@media (min-width: 1200px){
    .container {
        width: 1170px;
    }
}
/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* REMOVED: .hero selector is no longer needed as a flex container */

/* MODIFIED: Made the profile card 'sticky' */
.profile-card {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  width: 360px; /* Fixed width */
  flex-shrink: 0;
  border: 1px solid #333;

  /* --- Sticky positioning --- */
  position: sticky;
  top: 20px; /* Stick 20px from the top (matches container padding) */
  height: calc(100vh - 40px); /* Full viewport height minus padding */
  overflow-y: auto; /* Add a scrollbar if the card content is too long */
}

.profile-image {
  width: 100%;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.profile-image img {
  width: 400px;
}

.availability {
  background: #22c55e;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  font-weight: 600;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.profile-links a i {
  font-size: 1.5rem;
}
.s-profile-links {
  gap: 1rem;
  margin: 1rem 0;
}
.s-profile-links a i {
  font-size: 3rem;
}

.s-profile-links .social-icon {
  width: 80px !important;
  height: 80px !important;
}

.social-icon {
  width: 40px;
  height: 40px;
  /* background: #333; */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: background 0.3s ease;
  font-size: 0.8rem;
}

.social-icon:hover {
  background: #22c55e;
  color: white;
}

.button-group {
  display: flex;
  /* flex-direction: column; */
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.see-cv-btn,
.contact-btn {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

.see-cv-btn {
  background: #333;
  color: #fff;
}
.see-cv-btn a {
  text-decoration: none;
  color: white;
}

.contact-btn {
  background: #22c55e;
  color: #000;
}
.contact-btn a,
.see-cv-btn a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: white;
}
.contact-btn a > span,
.see-cv-btn a > span {
  margin-inline-start: 8px;
  font-size: 14px;
}
.see-cv-btn:hover {
  background: #444;
}

.contact-btn:hover {
  background: #16a34a;
}

/* NEW: Wrapper for the main scrollable content */
.page-content {
  flex: 1; /* Allows this container to take up the remaining space */
  min-width: 0; /* Prevents content from overflowing its container */
}

.greeting {
  font-size: 1rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.main-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.title-highlight {
  font-size: 2rem;
  color: #22c55e;
}

.location {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 2rem;
}

.description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: white;
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .description {
    text-align: justify;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #888;
}

/* Sections */
.section {
  padding-top: 20px; /* Changed from margin to padding for better spacing */
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Experience */
.experience-item {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.experience-item:hover {
  border-color: #22c55e;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.company-name {
  color: #888;
  margin-bottom: 0.5rem;
}

.date-range {
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: 600;
}

.job-description {
  color: #ccc;
  line-height: 1.6;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #22c55e;
}

.project-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
  cursor: pointer;
}
.project-image img {
  width: 750px;
  height: 180px;
}
@media (max-width: 768px) {
  .project-image img {
    width: 380px;
  }
}

.project-preview {
  width: 85%;
  height: 75%;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
  color: white;
  max-height: 200px; /* initial collapsed height */
  overflow: hidden;
  overflow-y: hidden;
  transition: max-height 0.5s ease;
}
/* ==== Hidden Scrollbar (Chrome, Safari, Edge) ==== */
/* Default: hide scrollbar */
.project-meta.expanded::-webkit-scrollbar {
  width: 0;       /* hidden */
}

/* On Hover: show it */
.project-meta.expanded:hover::-webkit-scrollbar {
  width: 6px;     /* visible width */
}

/* Scrollbar track */
.project-meta.expanded:hover::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* Scrollbar thumb */
.project-meta.expanded:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

/* Hover effect */
.project-meta.expanded:hover::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* ==== Firefox ==== */
.project-meta.expanded {
  scrollbar-width: none; /* hidden */
}

.project-meta.expanded:hover {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) rgba(255,255,255,0.1);
}

/* Read MOre and Less Button */
.project-meta.expanded {
  max-height: 1000px; /* big enough to show all content */
}

.read-more-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #48494b;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
  
  /* 👇 This makes the button sit on the right */
  margin-right: auto;
}



.read-more-btn:hover {
  background: #098f5b;
}
/* Read Less Button */

.load-more-btn {
  background: #333;
  color: #fff;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 2rem auto;
  transition: background 0.3s ease;
}

.load-more-btn:hover {
  background: #444;
}

/* Education */
.education-item {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.education-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.education-institution {
  color: #888;
  margin-bottom: 0.5rem;
}

.education-description {
  color: #ccc;
  line-height: 1.6;
  margin-top: 1rem;
}

/* Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* exactly 2 per row */
  }
}

.tool-item {
  /* background: #1a1a1a; */
  /* border: 1px solid #333; */
  /* border-radius: 12px; */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.3s ease;
  justify-content: space-between;
}

.tool-item:hover {
  border-color: #22c55e;
}
.tool-item .tool-img {
  width: 140px;
  height: 140px;
  border-radius: 3px;
}
.tool-icon {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

.tool-info h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.tool-type {
  color: #888;
  font-size: 0.8rem;
}

/* Contact Section */
.contact-section {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin: 4rem 0;
  border: 1px solid #333;
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: #22c55e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 600;
}

.contact-details h4 {
  margin-bottom: 0.3rem;
}

.contact-details p {
  color: #888;
  font-size: 0.9rem;
}

.send-message-btn {
  background: #22c55e;
  color: #000;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 2rem;
  transition: background 0.3s ease;
}

.send-message-btn:hover {
  background: #16a34a;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #333;
  color: #888;
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 992px) {
  /* Adjusted breakpoint for better results */
  .container {
    flex-direction: column; /* Stack profile card on top of content */
    gap: 2rem;
  }
  .profile-card {
    position: static; /* Remove sticky behavior on mobile */
    height: auto; /* Let height be automatic */
    margin: 0 auto;
  }
  .main-title {
    font-size: 2.5rem;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
