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

body {
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
  background-color: #f0f0f0;
  transition: background-color 0.3s, color 0.3s;
  padding: 20px;
  position: relative;
}

h1.amalikblock {
  font-family: 'Cal Sans', sans-serif;
  font-size: 2.5em;
  margin-top: 30px;
}

p.abdullahmalik {
  font-family: 'Bonheur Royale', cursive;
  font-size: 1.2em;
  margin: 5px 0 15px;
}

#toggleMode {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #ddd;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#toggleMode:hover {
  background-color: #bbb;
  transform: rotate(90deg);
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
}

nav ul li {
  display: block;
  margin: 10px 0;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  background-color: #ddd;
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
}

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

@media (min-width: 600px) {
  nav ul li {
    display: inline-block;
    margin: 10px;
  }
}

/* Dark Mode Styles */
.dark-mode {
  background-color: #111;
  color: #eee;
}

.dark-mode nav ul li a {
  background-color: #333;
  color: #eee;
}

.dark-mode nav ul li a:hover {
  background-color: #555;
}

.dark-mode #toggleMode {
  background-color: #333;
}

.dark-mode #toggleMode:hover {
  background-color: #555;
}



/* ICON Style effect */ 

.icon-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.icon-card {
  background-color: #ddd;
  border-radius: 30px;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s;
}

.icon-card:hover {
  background-color: #bbb;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.icon-card:hover img {
  transform: scale(1.1);
}

.about-card:hover img {
  animation: rotateImage 6s linear infinite;
}

@keyframes rotateImage {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.icon-name {
  font-size: 1.3em;
  font-family: 'Cal Sans', sans-serif;
  color: inherit;
}

.section-title {
  font-family: 'Cal Sans', sans-serif;
  text-align: center;
  margin-top: 40px;
  font-size: 2em;
}

@media (min-width: 600px) {
  .icon-grid {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.highlight-reveal {
  position: relative;
  overflow: hidden;
}

.highlight-reveal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #ffd54f;
  z-index: -1;
  transition: width 0.5s ease;
}

.highlight-reveal:hover::before {
  width: 100%;
}
