@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;700&family=Poppins:wght@400;700&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: #0e0e0e;
  color: #fff;
}

/* Header styles */
header {
  background: linear-gradient(90deg, #000000, #434343);  
  background-size: 200% 200%;
  animation: lightning 3s infinite;
  color: white;
  padding: 10px 20px;
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

@keyframes lightning {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

.hero-text {
  text-align: center;
  margin-bottom: 50px;
}

.hero-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 10px;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

h1 {
  color: #ffffff41;
  font-size: 50px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 7px;
  cursor: pointer;    
  margin-bottom: 10px;
}

h3 {
  color: hsl(120, 100%, 28%);
  font-family: 'Roboto', sans-serif;
  margin-bottom: 20px;
}

h1 span {
  transition: 0.5s ease-out;
}

h1:hover span:nth-child(1) {
  margin-right: 5px;
}

h1:hover span:nth-child(2) {
  margin-left: 30px;
}

h1:hover span {
  color: #fff;
  text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px #fff;
}

.about-section, .blog-section {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 48%; /* Default width for larger screens */
  min-height: 300px;
  box-sizing: border-box;
  margin: 0 10px; 
  padding: 15px; /* Add padding for internal spacing */
}

.cta-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #28a745;
  border: none;
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s ease;
  border-radius: 5px;
}

.cta-button:hover {
  transform: scale(1.05);
  background-color: #218838;
} 


/* About section styling */
#about {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #333333);
  position: relative;
  overflow: hidden;
}

#about .h4 {
  font-size: 50px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 7px;
  cursor: pointer;    
  margin-bottom: 10px;
}

#about h2 {
  color: rgb(173, 20, 20);
}

/* Animated background effect */
#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(4, 5, 5, 0.8), transparent);
  animation: rotateBackground 20s infinite linear;
  z-index: 0;
}

/* Rotation animation */
@keyframes rotateBackground {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Fade-in animation for paragraphs */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#about .letters {
  font-size: 19px;
}

/* Responsive styling for mobile */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column; /* Stack hero content vertically */
    align-items: center; /* Center align items */
  }
  .container {
    flex-direction: column; /* Stack sections vertically on mobile */
    align-items: center; /* Center align for mobile */
  }

  h1 {
    font-size: 36px; /* Smaller heading size for mobile */
  }

  .about-section, .blog-section {
    width: 100%; /* Full width on mobile */
    margin: 10px 0; /* Space between stacked sections */
    min-height: auto; /* Let height adjust based on content */
  }

  #about {
    height: auto; /* Let the height adjust to content */
    padding: 1.0px; /* Add padding for spacing on mobile */
  }
}

/* Nav-link styles */
.navbar-nav .nav-link {
  color: white !important;
}

.navbar-nav .nav-link:hover {
  color: #ddd !important;
}

.navbarNav {
  display: block;
  text-align: center;
}

/* Make sure the navbar is hidden on small screens initially */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; /* Align items in the center */
}

nav ul li {
  margin: 0 1rem; /* Adjust the space between items */
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

nav ul li a:hover {
  background-color: #0eb849c0;
}

.header-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.header-links a {
  color: #781212;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.header-links a:hover {
  background-color: #333;
}


.hero {
  background: url('hero-background.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 10rem 0;
  font-family: 'Poppins', sans-serif;
}


.section {
  padding: 4rem 0;
  background: #222222b0;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0);
  margin-bottom: 2rem;
  
}

.section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
}


.section p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
}

#experience {
  background: linear-gradient(135deg, #2e2e2e, #1c1c1c); /* Modern background gradient */
  padding: 60px 0;
  color: #fff;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}


.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid #28a745;
  margin-bottom: 2rem;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #28a745;
}

.timeline-item .date {
  position: absolute;
  top: 0;
  left: -8rem;
  width: 7rem;
  font-size: 0.9rem;
  font-weight: bold;
}

/* Skills Section Styling */
#skills {
  background: linear-gradient(135deg, #252726, #222222b0); /* Matches Services background */
  padding: 60px 20px;
  margin-bottom: 40px;
}

#skills .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  }

/* Skills Grid Styling */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Skills Item Styling - Matches Service Item */
.skills-item {
  width: 250px;
  height: 150px;
  background: rgba(54, 51, 51, 0.7);
  border: 2px solid transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  transition: transform 0.4s, border 0.4s, background 0.4s, box-shadow 0.4s, opacity 0.4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
}

.skills-item:hover {
  transform: translateY(-10px) rotate(3deg);
  border-color: #0eb849;
  background: rgba(54, 51, 51, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.skills-item::after {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: transform 0.6s, opacity 0.6s;
}

.skills-item:hover::after {
  transform: scale(15);
  opacity: 0;
}

/* Icon Styling */
.skills-item .icon {
  font-size: 45px;
  margin-bottom: 10px;
  color: #0eb849;
  transition: transform 0.3s, color 0.3s;
}

.skills-item:hover .icon {
  transform: scale(1.2);
  color: #fff;
}

/* Title Styling */
.skills-item h3 {
  font-size: 18px;
  margin-top: 5px;
  color: #129b1e; /* Default green color */
  transition: color 0.3s;
}

.skills-item:hover h3 {
  color: #eaeeeb; /* Keep green on hover */
}



/* Font Awesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');


#projects {
  background: linear-gradient(135deg, #252726, #222222b0); /* Gradient background */
  padding: 2rem 0;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  display: flex;
  justify-content: center;
}

.project {
  padding: 1rem;
  background: #282626;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}
#projects h2.text-center {
  color: #fff; /* Makes the text white */
}


.project h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-date {
  font-size: 0.9rem;
  font-style: italic;
  color: #aaa;
}


/* Education Section Styling */
#education {
  padding: 60px 0;
  background: linear-gradient(135deg, #2e2e2e, #1c1c1c); /* Modern background gradient */
  color: #fff;
}

.text-center {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #fff;
}

/* Styling for the "Academic Snapshots" heading */
#education h2.text-center {
  color: #ffffff; /* Makes the text white */
}

/* Grid layout for education items */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Individual education item styling */
.education-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

/* Hover effects */
.education-item:hover {
  transform: translateY(-10px);
  box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Details and Summary Styling */
details {
  cursor: pointer;
  color: hsl(120, 70%, 26%);
}

summary {
  font-size: 1.2rem;
  font-weight: bold;
  outline: none;
  transition: color 0.3s;
  padding: 10px 0;
  list-style: none;
}

/* Dropdown Arrow */
summary::after {
  content: "▼"; /* Unicode for a down arrow */
  font-size: 0.8rem;
  margin-left: 10px;
  transition: transform 0.3s;
}

/* Rotate arrow when details are open */
details[open] summary::after {
  transform: rotate(180deg); /* Rotate to point upwards */
}

summary:hover {
  color: #fff;
}
p, li {
  margin: 10px 0;
  font-size: 1rem;
  color: #aaa;
}

/* Animation for opening details */
details[open] summary {
  color: #fff;
}

/* Slide-in Animation */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid layout for education items */
.education-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 items in a row for larger screens */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) { /* Adjust the max-width value based on your needs */
  .education-grid {
    grid-template-columns: 1fr; /* Change to one item per row */
  }

  .text-center {
    font-size: 2rem; /* Reduce font size on mobile */
  }
}
/* Individual education item styling */
.education-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0; /* Hidden before animation */
}

/* New Hover Effect: Scale and Glow */
.education-item:hover {
  transform: scale(1.05); /* Scale up slightly */
  box-shadow: 0 0 20px rgba(56, 162, 52, 0.6); /* Greenish glow */
}
/* Fade-in Animation */
@keyframes fadeIn {
  0% {
      opacity: 0;
      transform: scale(0.9);
  }
  100% {
      opacity: 1;
      transform: scale(1);
  }
}




/* Services Section */
#services {
  background: linear-gradient(135deg, #1f1f1f, #3a3a3a);
  color: #f1f1f1;
  padding: 60px 20px;
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 40px;

}

#services h2 {
  margin-bottom: 30px;
  color: #fff;
  letter-spacing: 1px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.service-item {
  background: #333;
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

/* Consistent hover effect for all items */
.service-item:hover {
  transform: translateY(-10px);
  background: #444;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.service-item .icon {
  font-size: 2.5rem;
  color: #00ff88;
  margin-bottom: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #178817;
}

/* Only reveal the p tag in the currently hovered .service-item */
.service-item p {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  color: #ddd;
}

/* Show the paragraph only in the hovered service-item */
.service-item:hover p {
  opacity: 1;
  max-height: 100px;
}

.service-item:hover .icon {
  color: #ffffff;
  transform: scale(1.1);
}

/* Ensure all items appear the same */
.services-grid .service-item {
  background: rgba(53, 50, 50, 0.1); /* Ensure consistent background */
  transform: none; /* No special transformation for the first item */
}





/* Basic styles for the section */
#certificates {
  padding: 60px 0;
  background-color: #121212;
  color: #fff;
  background: linear-gradient(135deg, #252726, #222222b0); /* Gradient background */
  padding: 60px 20px;
  margin-bottom: 40px;
}

#certificates .text-center {
  margin-bottom: 40px;
  color: #fff;
}

.certificate-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.certificate {
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.certificate img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px #00FF99(45, 180, 35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.certificate p {
  margin-top: 15px;
  font-size: 1rem;
}

/* Ulux hover effect */
.certificate:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(109, 159, 47, 0.084);
}

.certificate:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(7, 7, 1, 0.696);
}

/* Responsive styles */
@media (max-width: 768px) {
  .certificate-grid {
      flex-direction: column;
      align-items: center;
  }

  .certificate {
      margin-bottom: 30px;
  }
}


#contact {

  background: linear-gradient(#135deg, #1c1c1c); /* Modern background gradient */
  padding: 60px 0;
  color: #fff;
}
.contact-form {
  text-align: center;
}
#contact h2.text-center {
  color: #ffffff; /* Makes the text white */
}

.contact-form form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  background: #333;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 4px;
}

.contact-form button {
  background-color: #28a745;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #218838;
}




footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.footer-links a:hover {
  background-color: #218838;
}

.mirage-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
}