* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Times New Roman', Times, serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #202020;
  color: #ff4747;
}

.container {
  max-width: 800px;
  padding: 20px;
  background: #2d2c2c;
  border-radius: 8px;
  text-align: center;
  animation: anim 2s linear infinite alternate;
}

@keyframes anim {
  from { box-shadow: 0px 0px 20px #ff0000; }
  to { box-shadow: 0px 0px 35px #610101; }
}

h1 {
  font-size: 2.5rem;
  color: #ff4747;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

a {
  text-decoration: none;
  color: #ff4747;
}

a:hover {
  text-shadow: 0 0 8px #c47dbb;
}

/* Buttons */
.button {
  display: inline-block;
  background: #ff4747;
  color: #2d2c2c;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 5px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.button:hover {
  transform: scale(1.05);
}

/* Social Icons */
.icon-size {
  font-size: 36px;
  padding: 0 10px;
  vertical-align: middle;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.itch-icon {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social a:hover .icon-size,
.social a:hover .itch-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px #ff4747);
}

/* Tooltip icons */
.icon {
  position: relative;
  display: inline-block;
  margin: 6px;
}

.icon::after {
  content: attr(data-name);
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2d2c2c;
  color: #ff4747;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Compact grid for skills */
.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 20px;
}

/* Consistent small icon size */
:root { --skill-size: 44px; }

.icon img,
.icon svg,
.icons img,
.icons svg {
  width: var(--skill-size) !important;
  height: var(--skill-size) !important;
  object-fit: contain;
}

/* Footer */
footer {
  color: #cccccc;
  font-size: 0.9rem;
  position: absolute;
  align-self: flex-end;
}

/* Layout for stacked containers */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;           
  padding-bottom: 80px; 
}

/* Portfolio box style */
.portfolio {
  max-width: 800px;           
  width: 100%;
  padding: 20px;
  background: #2d2c2c;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 25px #610101;
  margin-top: 20px;         
  margin-bottom: 60px;       
  animation: anim 2s linear infinite alternate; 
}

.dropdown {
  position: relative;
  display: inline-block;
  margin-top: 10px;
}

.dropdown .button {
  cursor: pointer;
  background: #ff4747;
  color: #2d2c2c;
  border: none;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

/* Hidden dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2d2c2c;
  min-width: 100px;
  box-shadow: 0 0 20px #610101;
  border-radius: 6px;
  z-index: 999;
  top: 100%; 
  left: 0;
}

.dropdown-content a {
  display: block;
  color: #ff4747;
  padding: 10px 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background-color: #610101;
  color: #ffffff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}



    
