/* MENU CSS */
*{
  margin: 0;
  padding: 0;
}
body{
  min-height: 100vh;
  background: url('laptop.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
nav{
  background-color: white;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}
nav ul{
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.name{
  font-size: 25px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;

}
nav li{
  height: 50px;
}
nav a{
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: black;
}
nav a:hover{
  background-color: #f0f0f0;
  color: #2563eb;
}
nav li:first-child{
  margin-right: auto;
}
.sidebar{
  position: fixed;
  top: 0; 
  right: 0;
  height: 100vh;
  width: 250px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 10;
}
.sidebar li{
  width: 100%;
}
.sidebar a{
  width: 100%;
}
.menu-button{
  display: none;
}
@media(max-width: 800px){
  .hideOnMobile{
    display: none;
    
  }
  .menu-button{
    display: block;
  }
}
@media(max-width: 400px){
  .sidebar{
    width: 100%;
  }
} 

/* profile Section */
#profile {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #ffffff;
  padding: 60px 30px;
  text-align: center;
}

#profile h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

#profile h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #fbbf24;
  margin: 10px auto 0;
}

#profile .row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

#profile .col-left {
  flex: 1 1 45%;
  text-align: left;
}

#profile .col-left .id-info {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fbbf24;
}

#profile .col-left p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #e5e7eb;
}

#profile .col-left .btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.2rem;
  color: #ffffff;
  background: #3b82f6;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

#profile .col-left .btn:hover {
  background: #2563eb;
  transform: translateY(-3px);
}

#profile .col-right {
  flex: 1 1 40%;
  text-align: center;
}

#profile .col-right .profile-image {
  width: 380px;
  height: 420px;
  border-radius: 50%;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  object-fit: cover;
}

#profile .col-right .profile-image:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.mobile-image{
  display:none;
}

.container{
  max-width: 1800;
}

/* Mobile Styles */
@media (max-width: 768px) {
  #profile .row {
    flex-direction: column;
    text-align: center;
  }

  #profile .col-right {
    order: -1; /* Move profile photo to the top */
  }

  #profile .profile-image {
    max-width: 150px; /* Adjust image size for mobile */
    max-height:150px;
    margin-bottom: 20px;
  }

  #profile .id-info {
    font-size: 1rem;
    text-align: center;
  }
  .profile-image{
    display:none;
  }

  .degree{
    font-size: 25px;
  }
  .id-name{
    font-size: 35px;
  }

  #profile .col-right .mobile-image {
    display:inline;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    object-fit: cover;
  }
  
  #profile .col-right .mobile-image:hover {
    transform: scale(1.1);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
  }
}

/* About Section */
#about {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  color: #ffffff;
  padding: 60px 30px;
  text-align: center;
}

#about h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

#about h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #fbbf24;
  margin: 10px auto 0;
}

#about .row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

#about .col-left {
  flex: 1 1 70%;
  text-align: left;
}

#about .col-left h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fbbf24;
}

#about .col-left p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #e5e7eb;
}

#about .col-left a {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.2rem;
  color: #ffffff;
  background: #3b82f6;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

#about .col-left a:hover {
  background: #2563eb;
  transform: translateY(-3px);
}

@media (min-width: 768px) {
  #about .row {
    flex-direction: row;
  }

  #about .col-left {
    flex: 2;
  }
}
/* Skills Section */
#skills {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: #ffffff;
  padding: 60px 30px;
  text-align: center;
}

#skills h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

#skills h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #fbbf24;
  margin: 10px auto 0;
}

.skills-carousel {
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
  position: relative;
}

.skills-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  transition: transform 0.5s ease-in-out; /* Smooth scrolling effect */
  cursor: grab;
  scrollbar-width: none; /* Hides scrollbar in Firefox */
}

.skills-list::-webkit-scrollbar {
  display: none; /* Hides scrollbar in WebKit browsers */
}

.skills-list.dragging {
  cursor: grabbing;
}

.skills-item {
  flex-shrink: 0;
  min-width: 280px;
  padding: 25px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: left;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.skills-item h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #fbbf24;
}

.skills-item p {
  font-size: 1.1rem;
  color: #e5e7eb;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 10;
  opacity: 0;
}

.prev-btn:hover,
.next-btn:hover {
  background: #2563eb;
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}


/* Projects Section */
#projects {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  padding: 60px 30px;
  text-align: center;
}

#projects h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

#projects h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #fbbf24;
  margin: 10px auto 0;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #fbbf24;
}

.project-card p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #e5e7eb;
}

.project-card .btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.2rem;
  color: #ffffff;
  background: #3b82f6;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.project-card .btn:hover {
  background: #2563eb;
  transform: translateY(-3px);
}

/* Resume */

 /* Resume Section */
 #resume {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #ffffff;
  padding: 60px 30px;
  text-align: center;
}

#resume h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

#resume h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #fbbf24;
  margin: 10px auto 0;
}

#resume .resume-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

#resume .resume-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#resume .resume-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#resume .resume-item h3 {
  font-size: 1.5rem;
  color: #fbbf24;
  margin-bottom: 10px;
}

#resume .resume-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #e5e7eb;
}

#resume .btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.2rem;
  color: #ffffff;
  background: #3b82f6;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
  margin-top: 20px;
}

#resume .btn:hover {
  background: #2563eb;
  transform: translateY(-3px);
}


/* Contact Section */
#contact {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: #ffffff;
  padding: 60px 30px;
  text-align: center;
}

#contact h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

#contact h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #fbbf24;
  margin: 10px auto 0;
}

.contact-intro {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #e5e7eb;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-item i {
  font-size: 2rem;
  color: #ffffff;
  background: #3b82f6;
  border-radius: 50%;
  padding: 10px;
}

.contact-item p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #e5e7eb;
}

.contact-item a {
  color: #ffffff;
  font-size: 1rem;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #fbbf24;
}

/* Footer */
footer {
  background: #1e3a8a;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  font-size: 1rem;
}

footer p {
  margin: 10px 0;
  color: #e5e7eb;
}

footer .heart {
  color: #f87171;
  animation: heartbeat 1.5s infinite;
}

footer strong {
  color: #ffffff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-links a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}

@keyframes heartbeat {
  0%, 20%, 40%, 60%, 80%, 100% {
    transform: scale(1);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: scale(1.2);
  }
}
