/* General Styles */
/* Enable smooth scrolling */
html {
    scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden; /* Prevents extra space on the right */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  display: block;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  min-height: 100vh; /* Ensures body takes full height of the viewport */
  background: #f8f7f7;
  color: #333;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}


#sidebar {
  width: 270px;
  height: 100vh; /* Full viewport height */
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

#main {
  width: calc(100% - 270px); /* Adjust width based on sidebar */
  max-width: calc(100% - 270px); /* Ensures it remains in a good ratio */
  margin-left: 270px; /* Pushes content away from the sidebar */
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Ensures everything is centered */
}
#main {
  display: block; /* Ensures the main section does not center everything */
}


/* About Section */
#about {
  width: 100%;
  text-align: left; /* Align text to the left */
  margin-left: 0; /* Ensure it starts right after the sidebar */
  padding-left: 20px; /* Add padding on the left for spacing */
}


.hero-image {
  width: 100%; /* Ensures the image takes the full width of its container */
  max-width: 800px; /* Optional: to limit the maximum width */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Ensures the image fits nicely without distortion */
  margin-left: auto; /* Pushes the image to the right */
  margin-right: 0; /* Ensures there is no space on the right side */
}


section {
  width: 100%;
  text-align: center;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

section p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 5px;
  background: #f5dadf;
  color: white;
  transition: 0.3s;
}
.feature.clicked {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.button:hover {
  background: #1a1a2e;
  color: white;
}
.about-image {
  width: 200px; /* Adjust the width as needed */
  height: auto; /* Maintain aspect ratio */
  border-radius: 50%; /* Circular image */
  display: block;
  margin: 20px auto; /* Center the image */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow effect */
}

/* Sidebar Styles */
#sidebar {
  width: 15vw; /* 15% of viewport width instead of fixed 270px */
  min-width: 200px; /* Prevents it from getting too small */
  height: 100vh; 
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}


#sidebar .logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

#sidebar nav ul {
  list-style: none;
  width: 100%;
}

#sidebar nav ul li {
  margin: 15px 0;
}

#sidebar nav ul li a {
  color: #e94560;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  display: block;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  transition: background 0.3s;
}

#sidebar nav ul li a:hover {
  background: #e94560;
  color: white;
}
/* Hover effect for the project logo */
#sidebar .logo:hover {
  transform: scale(1.1) translateY(-15px);  /* Scales and moves the logo upwards */
  transition: transform 0.3s ease; /* Smooth transition */
}

/* Hover effect for Microsoft image */
#sidebar img[src="microsoft.png"]:hover {
  transform: scale(1.1) translateY(-5px);  /* Scales and moves the image upwards */
  transition: transform 0.3s ease; /* Smooth transition */
}
@media (max-width: 768px) {
  #sidebar {
    width: 80%;
    height: 100vh;
    left: -100%; /* Initially hide sidebar */
    transition: left 0.3s ease;
  }
  #sidebar.active {
    left: 0; /* Slide in when active */
  }
  #main {
    margin-left: 0;
    width: 100%;
  }
}
.wrapper {
  width: 100%;
  max-width: 1000px; /* Keep a readable content width */
  margin: 0 auto; /* Centering */
  padding: 20px;
}
/* Hover effect for the project logo under .inner class */
.wrapper .inner img:hover {
  transform: scale(1.1) translateY(-5px);  /* Scales and moves the image upwards */
  transition: transform 0.3s ease; /* Smooth transition */
}



/* Dark Mode */
.dark-mode {
  background: #222;
  color: #daa7a7;
}
/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 items per row */
  gap: 20px;
  justify-content: center;
}

.feature {
  width: 100%; /* Ensures feature takes full available width */
  padding: 15px;  /* Moderate padding for a bit more space */
  background: #cfcbcb;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  height: 300px; /* Slightly bigger height for each feature */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden; /* Prevent text from overflowing */
}

.feature:hover {
  transform: translateY(-25px);  /* Slight hover effect */
}

.feature img {
  width: 100%;  /* Ensures images take up the available width */
  height: 120px;  /* Adjusted height for slightly larger images */
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 15px; /* Space between image and text */
}

.feature h3 {
  font-size: 1.2rem;  /* Slightly bigger font size for the heading */
  margin-bottom: 10px;
  overflow: hidden; /* Prevent heading from overflowing */
  text-overflow: ellipsis; /* Show ellipsis if the text is too long */
  white-space: normal; /* Allow wrapping of text in heading */
}

.feature p {
  font-size: 1rem;  /* Slightly larger font size for the paragraph */
  flex-grow: 1; /* Ensures that the text area takes up available space */
  overflow: hidden; /* Prevent text overflow */
  text-overflow: ellipsis; /* Truncate overflowed text with ellipsis */
  white-space: normal; /* Allow wrapping of text in paragraph */
}

/* Responsive: 2 items per row on medium screens */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row on medium screens */
  }
}

/* Responsive: 1 item per row on small screens */
@media (max-width: 480px) {
  .features {
    grid-template-columns: 1fr; /* 1 item per row on small screens */
  }
}

/* Buttons */
.button {
  padding: 12px 24px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 8px;
  background: #e94560;
  color: white;
  transition: background 0.3s ease;
}

.button:hover {
  background: #1a1a2e;
}
/* Sidebar Toggle Button */
.menu-toggle {
  background: #808080; /* Grey color */
  color: rgb(88, 85, 85); /* Text color (white for contrast) */
  font-size: 25px;
  border: none;
  cursor: pointer;
  margin: 10px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

/* Sidebar Toggle Button on Hover */
.menu-toggle:hover {
  background: #555555; /* Darker grey when hovering */
}
.dark-mode-toggle{
  font-size: 25px;
}
/* Contact Section */
.contact {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  justify-content: center; /* Centers content horizontally */
  align-items: center; /* Centers content vertically */
  flex-direction: column; /* Stack items vertically */
  position: relative;
  margin-top: 50px; /* Space before the footer */
  min-height: 300px; /* Ensure the contact section has some height */
}

/* Container for contact info and image */
.contact-details {
  display: flex;
  justify-content: flex-start; /* Aligns items from left */
  align-items: center;
  width: 100%;
  max-width: 1200px; /* Limiting the maximum width */
}

/* Contact image on the left (larger and more to the left) */
.about-image {
  width: 300px; /* Make the image square and larger */
  height: 300px; /* Ensure the height is equal to the width for a square shape */
  border-radius: 8px; /* Optional: Square corners, change this to 50% for circular */
  margin-right: 40px; /* Increased space between image and contact details */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Optional: Add a stronger shadow effect */
  object-fit: cover; /* Ensures the image covers the square without distortion */
  margin-left: -40px; /* Moves the image more to the left */
}

/* Contact information (right side) */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-info p {
  margin-bottom: 10px;
}


/* Contact names (right side) */
.contact-names {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 150px; /* Add space to move contact names more to the right */
}

.contact-names p {
  margin-bottom: 10px;
}
.contact-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.contact-links a {
  display: inline-block;
}
.contact-logo {
  width: 60px; /* Size of the logos */
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.contact-logo:hover {
  transform: scale(2.1); /* Slight zoom effect on hover */
}
.netwatch {
  font-size: 1.5rem;  /* Adjust the size of the text */
  font-weight: bold;  /* Make the text bold */
  text-decoration: none; /* Remove underline */
  color: #1a73e8; /* Blue color for the text */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Adding shadow to the text */
}

.netwatch:hover {
  color: #e94560; /* Change color on hover */
  text-decoration: underline; /* Underline on hover */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Darker shadow on hover */
}
#thank-you {
  text-align: center;
  padding: 50px 20px;
  background-color: #f1f1f1;
  color: #333;
}

#thank-you h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1a73e8;  /* Blue color for the heading */
}

#thank-you p {
  font-size: 1.2rem;
  margin-top: 10px;
  line-height: 1.6;
  color: #555;
}


/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background: #1a1a2e;
  color: white;
  
  bottom: 0;
  left: 0;
  width: 100%; /* Ensures the footer spans the entire width */
  margin-top: 50px; /* Space between content and footer */
}