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

body {
  font-family: 'Roboto', sans-serif;
  background-color: #1e1e1e;  /* Dark background for dark mode */
  color: #e0e0e0;  /* Light grey text for contrast */
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3 {
  font-weight: 700;
  color: #ecf0f1;  /* Lighter text for headers */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style-type: none;
}

.section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  text-align: center;
  background: linear-gradient(45deg, #34495e, #2c3e50);  /* Dark gradient */
  color: #ecf0f1;
  padding: 50px 20px;
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: 4.5em;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
  animation: fadeIn 2s ease-out;
}

header p {
  font-size: 1.5em;
  margin-bottom: 30px;
}

header .menu-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 30px;
}

header .menu-bar a {
  color: #ecf0f1;
  font-size: 1.2em;
  text-transform: uppercase;
  padding: 10px;
  transition: all 0.3s ease;
}

header .menu-bar a:hover {
  color: #9b59b6;  /* Highlight on hover */
  transform: scale(1.1);
}

/* About Section Styling */
#about {
  background-color: #2c3e50; /* Dark background to match dark mode */
  padding: 60px 40px 40px; /* Increased top padding for more separation */
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  color: #ecf0f1; /* Light text for contrast */
  font-family: 'Arial', sans-serif;
  text-align: center;
  line-height: 1.6;
  margin-top: 80px; /* Add margin-top for more space between header and about section */
  margin-bottom: 40px;
  transition: transform 0.5s ease-in-out;
}

/* Hover effect for modern dark mode */
#about:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Fun Typography */
.intro {
  font-size: 2.5em;
  font-weight: 700;
  color: #9b59b6; /* Purple accent for intro text */
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: fadeInUp 2s ease-out;
}

/* Paragraph Styling */
#about p {
  font-size: 1.2em;
  max-width: 900px;
  margin: 20px auto;
  color: #bdc3c7; /* Soft light grey text */
  font-style: italic;
  line-height: 1.8;
  animation: fadeInUp 2.5s ease-out;
}

#about p a {
  color: #3498db; /* Blue link colour */
  font-weight: 600;
  text-decoration: none;
}

#about p a:hover {
  color: #9b59b6; /* Purple on hover for links */
  text-decoration: underline;
}

/* Animation for fade-in effect */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  #about {
    padding: 50px 30px 30px; /* Adjust padding for smaller screens */
    margin-top: 60px; /* Reduced top margin for smaller screens */
  }

  .intro {
    font-size: 2em;
  }

  #about p {
    font-size: 1.1em;
    max-width: 100%;
  }
}



/* Experience Section */
#experience {
  /* Remove background color from the section container */
  padding: 20px;
  margin-bottom: 40px;
  border-radius: 10px;
  color: #ecf0f1;  /* Light text */
}

.experience-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience {
  background-color: #34495e;  /* Retain dark background for each experience item */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.experience h3 {
  font-size: 1.5em;
  color: #9b59b6;  /* Accent color for headings */
  margin-bottom: 10px; /* Space between the job title and dates */
}

.experience p {
  font-size: 1.2em;
  color: #bdc3c7;  /* Lighter color for the job details */
  margin-bottom: 15px;  /* Space between job details and list */
}

.experience strong {
  color: #ecf0f1;  /* Lighter color for dates to stand out */
  font-weight: 700;
  margin-bottom: 8px; /* Space between dates and list */
}

.experience ul {
  list-style-type: none;
  padding-left: 0;
}

.experience ul li {
  font-size: 1.1em;
  color: #bdc3c7;  /* Light grey text for list items */
  padding: 5px 0;
}

.experience a {
  color: #9b59b6;
  transition: color 0.3s ease;
  font-weight: 700;
}

.experience a:hover {
  color: #3498db;  /* Hover color */
}


/* Education Section */
#education {
  padding: 40px 20px; /* Add more padding to the top and bottom for better spacing */
  border-radius: 10px;
  margin-bottom: 40px;
  color: #ecf0f1;  /* Light text color */
}

/* Education Card Style */
.education-container {
  display: flex;
  gap: 30px; /* Increased gap for more space between the cards */
  justify-content: center; /* Center the cards horizontally */
  flex-wrap: wrap; /* Allow wrapping for mobile responsiveness */
}

/* Education Card */
.education-card {
  background-color: #34495e;  /* Dark background to match Experience section */
  border: 2px solid #ececec;  /* Light border to match overall theme */
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 320px;  /* Slightly increased max width for the cards */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Education Heading */
.education-card h3 {
  font-size: 1.5em;
  color: #9b59b6;  /* Accent color for headings */
  margin-bottom: 10px;
}

/* Education Text */
.education-card p {
  font-size: 1.1em;
  color: #bdc3c7;  /* Light grey for description text */
}

/* Link Styling */
.education-card a {
  color: #9b59b6;  /* Matching the heading color */
  font-weight: 700;
  transition: color 0.3s ease;
}

.education-card a:hover {
  color: #3498db;  /* Hover color */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .education-container {
    justify-content: center;
  }

  .education-card {
    max-width: 100%;
    padding: 15px;  /* Adjust padding for smaller screens */
  }
}

/* Skills Section */
.skills-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Skill Card Style */
.skill-card {
  background-color: #34495e;  /* Dark background to match the Experience section */
  border: 2px solid #ececec;  /* Light border to match the overall theme */
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 300px;  /* Control max width of cards */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Skill Heading */
.skill-card h3 {
  font-size: 1.2em;
  color: #9b59b6;  /* Accent color for headings */
  margin-bottom: 10px;
}

/* Skill List */
.skill-card ul {
  list-style-type: none;
  padding: 0;
}

.skill-card ul li {
  margin-bottom: 8px;
  color: #bdc3c7;  /* Light grey for list items, matching the Experience section */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .skills-container {
    justify-content: center;
  }

  .skill-card {
    max-width: 100%;
  }
}



/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 20px;
}

.social-icons a {
  background-color: rgba(52, 152, 219, 0.6);  /* Semi-transparent background color */
  color: #ecf0f1;  /* Lighter color for icons */
  width: 60px;  /* Set width */
  height: 60px;  /* Set height */
  display: flex;  /* Use flexbox to center the icon inside */
  justify-content: center;  /* Center content horizontally */
  align-items: center;  /* Center content vertically */
  font-size: 1.5em;
  transition: background-color 0.3s ease;
  border-radius: 5px;  /* Optional: Add slight rounding to the corners */
}

.social-icons a:hover {
  background-color: rgba(155, 89, 182, 0.7);  /* Slightly darker and semi-transparent on hover */
}


/* Section Titles */
h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 2em;
  color: #ecf0f1;  /* Light text color */
}

/* Footer Styles */
#footer {
  background-color: #34495e;
  color: #ecf0f1;
  text-align: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 400;
  border-radius: 10px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

#footer p {
  margin: 0;
  font-family: 'Roboto', sans-serif
}

/* Animation for Hover Effect on Social Icons */
.social-icons a {
  color: #2c3e50;
  font-size: 1.5em;
  margin: 0 10px;
  transition: color 0.3s ease;
}

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

/* Contact Section Styles */
#contact {
  text-align: center;  /* Center text and button */
  padding: 40px 20px;
}

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

#contact p {
  font-size: 1.2em;
  color: #ecf0f1;
  margin-bottom: 30px;
}

/* Contact Section Styles */
#contact {
  text-align: center;  /* Center text and button */
  padding: 40px 20px;
}

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

#contact p {
  font-size: 1.2em;
  color: #ecf0f1;
  margin-bottom: 30px;
}

/* Email Button Styling */
.contact-button {
  background-color: #2c3e50;  /* Accent color, same as social icons */
  color: #9b59b6;  /* Light color for the text */
  font-size: 1.2em;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: sway 2s infinite;  /* Sway animation */
}

.contact-button:hover {
  background-color: #9b59b6;  /* Dark color for hover, matches social icon hover */
  color: #2c3e50;  /* Light text on hover */
}

/* Sway Animation */
@keyframes sway {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);  /* Slight sway to the right */
  }
  100% {
    transform: translateX(0);
  }
}

/* Project Samples Section */
#projects {
  /* Remove background color from the section container */
  padding: 60px 20px;
  margin-bottom: 40px;
  text-align: center;
}

#projects h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #ecf0f1;
  font-weight: bold;
}

.projects-container {
  display: flex;
  justify-content: center;
  gap: 20px;  /* Space between cards */
  flex-wrap: wrap;
}

.project-card {
  width: 280px;
  background-color: #34495e;  /* Retain dark background for the cards */
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;  /* Ensure the content inside the card stacks vertically */
  justify-content: space-between;
}

.project-card:hover {
  transform: scale(1.05);
}

/* Make the "Coming Soon" link look like a button */
.coming-soon-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2c3e50;  /* Button background color */
  color: #9b59b6;
  font-size: 1.1em;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 15px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.coming-soon-btn:hover {
  background-color: #9b59b6;  /* Button hover color */
  color: #34495e;

}
/* Global Styles for Mobile Responsiveness */
@media (max-width: 768px) {
  /* Hide Menu Bar on Mobile */
  header .menu-bar {
    display: none;  /* Hide menu bar on smaller screens */
  }

  /* Adjust Contact Section for Mobile */
  #contact {
    padding: 20px 10px;  /* Reduce padding on mobile */
  }

  .contact-button {
    font-size: 1.1em;  /* Slightly smaller font size for mobile */
    padding: 12px 24px;  /* Adjust button padding */
  }

  /* Stack Skills Vertically on Mobile */
  .skills-container {
    flex-direction: column;  /* Stack the skills vertically on mobile */
    align-items: center;  /* Center the items vertically */
  }

  /* Adjust Project Cards for Mobile */
  .projects-container {
    flex-direction: column;  /* Stack project cards vertically on smaller screens */
    align-items: center;  /* Center the cards */
  }

  /* Make Text Larger for Better Readability on Mobile */
  h2 {
    font-size: 2.2em;  /* Smaller font size for section titles */
  }

  .experience-container,
  .projects-container {
    gap: 20px;  /* Reduce gap between items */
  }

  .experience,
  .project-card {
    width: 100%;  /* Make experience items and project cards full width on mobile */
  }

  /* Adjust Footer for Mobile */
  #footer {
    font-size: 1em;  /* Slightly smaller footer text on mobile */
    padding: 10px 15px;  /* Reduce footer padding */
  }
}

/* For very small screens (under 480px) */
@media (max-width: 480px) {
  /* Reduce size of headings */
  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 1.8em;
  }

  .experience h3,
  .education h3 {
    font-size: 1.3em;
  }

  /* Adjust Experience and Education items on mobile */
  .experience,
  .education {
    padding: 15px;
    font-size: 1em;
  }

  .experience-container,
  .projects-container {
    gap: 15px;  /* Further reduce the gap for smaller screens */
  }

  /* Adjust the Email Button for Small Screens */
  .contact-button {
    font-size: 1em;
    padding: 10px 20px;  /* Smaller button for mobile */
  }
}
