/* General */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.7;
  background-color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Header */
header {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 2em;
  color: #34495e;
}

header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

header nav ul li {
  margin-left: 25px;
  position: relative;
}

header nav ul li a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 12px;
  display: block;
}

header nav ul li a:hover {
  color: #007bff;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: #f8f9fa;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
  margin-right: 30px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero h2 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #2c3e50;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #666;
}

.button {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.button:hover {
  background-color: #0056b3;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: #fff;
}

.about .container {
  text-align: center;
}

.about h2 {
  font-size: 2.5em;
  margin-bottom: 25px;
  color: #2c3e50;
}

.about p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #666;
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.social-icons a {
  margin: 0 15px;
  font-size: 28px;
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

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

/* Projects Section */
.projects {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.projects h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}

.project-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  box-sizing: border-box;
  min-height: 375px;
  align-items: center;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-card .image-container {
  max-width: 100%;
  max-height: 200px;
  display: flex;
    justify-content: center;
    align-items:center;
    margin-bottom: 15px;
}

.project-card img {
  max-width: 75%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
  display: block;
}

.project-card h3 {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #34495e;
  text-align: center;
}

.project-card p {
  font-size: 1em;
  color: #555;
  margin-top: 10px;
  margin-bottom: 10px;
  display: block;
  max-height: 90px;
  overflow: hidden;
  line-height: 1.4;
  text-align: left;
  padding: 0 15px;
}

.project-card h3 a {
  text-decoration: none;
  color: #34495e;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.project-card:hover::after {
  background: rgba(0, 0, 0, 0.03)
}

.project-card a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

/* Skills Section */
.skills {
  padding: 80px 0;
  background-color: #fff;
}

.skills h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-items: center;
}

.skill-category {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #34495e;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category ul li {
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #555;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: #f8f9fa;
  text-align: center;
}

.contact h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #2c3e50;
}

.contact p {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #666;
}

.contact a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: #0056b3;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 25px 0;
  font-size: 1em;
  margin-top: 80px;
}

/* Dropdown Menu Styles */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 5px 0;
  z-index: 10;
  min-width: 200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown li {
  margin: 0;
}

.dropdown li a {
  padding: 10px 15px;
  text-align: left;
}

/* Show dropdown on hover */
header nav ul li:hover .dropdown {
  display: block;
}

/* Remove underlines from all links */
a {
  text-decoration: none;
}

/* Project Detail Page Styles */
.project-detail {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.project-detail .container {
    max-width: 800px;
    margin: auto;
}

.project-detail h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
}

.project-detail p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
}

.project-detail ul {
    list-style: inside;
    text-align: left;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
}

.project-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-detail .button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    margin-top: 20px;
}

.project-detail .button:hover {
    background-color: #0056b3;
}

.build-levels {
  margin-top: 20px;
}

.build-level {
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 20px;
}

.build-level h3 {
  margin-top: 0;
}

.build-level img {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* style.css */

/* Basic Reset (Optional, but often helpful) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif; /* Use the font you linked in your HTML */
  line-height: 1.6;
  color: #333; /* Adjust text color as needed */
  background-color: #f4f4f4; /* Light background for the whole page */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: #fff;
  color: #000;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  position: sticky; /* Consider making the header sticky */
  top: 0;
  z-index: 100; /* Ensure header stays on top */
}

header h1 {
  margin: 0;
  font-weight: 700;
}

header a {
  color: #000;
  text-decoration: none;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; /* Align navigation items horizontally */
  align-items: center; /* Vertically center items */
}

header nav ul li {
  margin-left: 20px; /* Space between nav items */
}

header nav ul li a {
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

header nav ul li a:hover {
  background-color: #f0f0f0;
}

/* Dropdown Styles */
header nav ul .dropdown {
  display: none;
  position: absolute;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10; /* Ensure dropdown appears above other content */
  border-radius: 5px;
  padding: 10px 0; /* Add some vertical padding */
}

header nav ul li:hover .dropdown {
  display: block;
}

header nav ul .dropdown li {
  margin: 0; /* Remove margin for dropdown items */
  width: 100%; /* Make dropdown items full width */
}

header nav ul .dropdown li a {
  display: block;
  padding: 8px 20px; /* Add some padding to dropdown items */
  white-space: nowrap; /* Prevent text from wrapping */
}

header nav ul .dropdown li a:hover {
  background-color: #f0f0f0;
}

/* Hero Section */
.hero {
  background: #f8f8f8;
  padding: 50px 0;
  text-align: center;
  margin-bottom: 40px; /* Add space below hero */
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  margin-right: 40px; /* Spacing between text and image */
  text-align: left; /* Align text to the left */
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #555; /* Slightly darker text for better readability */
}

.button {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #0056b3;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* Add rounded corners to image */
}

/* About Section */
.about {
  background: #fff; /* White background for About section */
  padding: 50px 0;
  margin-bottom: 40px; /* Add space below about */
}

.about h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.about .profile-pic {
  float: left; /* Float the image to the left */
  margin: 0 30px 20px 0; /* Add margin around the image */
  border-radius: 25%; /* Make the image circular */
  width: 240px;
  height: 240px;
  object-fit: cover; /* Ensure the image covers the area */
}

.about p {
  margin-bottom: 20px;
  text-align: center;
}

.social-icons {
  text-align: left; /* Align social icons to the left */
  margin-top: 20px; /* Add margin above the icons */
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
  color: #333;
  font-size: 24px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #007bff; /* Change color on hover */
}

/* Projects Section */
.projects {
  background: #f4f4f4;
  padding: 50px 0;
  margin-bottom: 40px; /* Add space below projects */
}

.projects h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
  gap: 20px;
}

.project-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 400px; 
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.image-container {
  width: 100%;
  height: 200px; /* Fixed height for image container */
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container */
  transition: transform 0.3s ease;
}

.project-card:hover .image-container img {
  transform: scale(1.1);
}

.project-card h3 {
  padding: 15px;
  margin-bottom: 0;
  font-weight: 600;
  color: #000;
}

.description-container {
  padding: 0 10px 10px 10px;
}

.description-container p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

/* Skills Section */
.skills {
  background: #fff;
  padding: 50px 0;
  margin-bottom: 40px;
}

.skills h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.skill-category {
  margin-bottom: 30px;
  flex: 1;
  min-width: 250px;
  padding: 0 20px;
}

.skill-category h3 {
  margin-bottom: 15px;
  font-weight: 600;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category li {
  margin-bottom: 8px;
  color: #555;
}

/* Contact Section */
.contact {
  background: #f8f8f8;
  padding: 50px 0;
  text-align: center;
  margin-bottom: 40px; /* Add space below projects */
}

.contact h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.contact p {
  margin-bottom: 10px;
  color: #555;
}

.contact a {
  color: #007bff;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer p {
  margin: 0;
  color: #fff;
}