/* Personal Website Styles */

/* CSS Custom Properties */
:root {
  --rich-black: #0d1b2a;
  --oxford-blue: #1b263b;
  --yinmn-blue: #415a77;
  --silver-lake-blue: #778da9;
  --platinum: #e0e1dd;
}

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

.c2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px; /* Space between the text and image */
}

.c1 {
  display: flex;
  flex-direction: column; /* Stacks elements vertically */
  justify-content: center; /* Centers content vertically */
  align-items: normal; /* Centers content horizontally */
  width: 100%;
}

.links {
  padding-top: 0px;
  color: var(--platinum);
}

.links a {
  color: var(--platinum); /* Use your platinum color */
  text-decoration: none; /* Remove underline */
  margin: 0 15px; /* Space between links */
  font-size: 1.3rem;
  font-weight: 500;
}

.links a:hover {
  color: var(--oxford-blue); /* Dark blue text */ /* Light background */
  transform: translateY(-5px); /* Less dramatic movement */
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: var(--rich-black);
  background: linear-gradient(
    135deg,
    var(--oxford-blue) 0%,
    var(--yinmn-blue) 50%,
    var(--silver-lake-blue) 100%
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

h1,
h2 {
  color: var(--platinum);
}

h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 2px 2px 4px var(--rich-black);
}

h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 30px;
  padding: 10px 20px;
  background: rgba(29, 38, 59, 0.6); /* oxford-blue with transparency */
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 2px solid var(--yinmn-blue);
}

p {
  font-size: 1.1rem;
  color: var(--rich-black);
  text-align: center;
  margin-bottom: 15px;
  background: rgba(224, 225, 221, 0.9); /* platinum with transparency */
  padding: 15px 25px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 2px solid var(--silver-lake-blue);
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(13, 27, 42, 0.3); /* rich-black shadow */
}

/* Image responsive styling */
img {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .c2 {
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 400px;
  }

  .c1 {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
  }

  h2 {
    font-size: 1.1rem;
    padding: 8px 16px;
    margin-bottom: 20px;
  }

  p {
    font-size: 0.95rem;
    padding: 12px 18px;
    margin-bottom: 12px;
    max-width: 100%;
  }

  img {
    max-width: 200px;
    height: auto;
  }

  .links {
    padding-top: 40px;
    text-align: center;
  }

  .links a {
    font-size: 1.1rem;
    margin: 0 10px;
    display: inline-block;
    margin-bottom: 10px;
  }
}

/* Additional mobile optimization for very small screens */
@media (max-width: 480px) {
  .c2 {
    gap: 20px;
    max-width: 320px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1rem;
    padding: 6px 12px;
  }

  p {
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  img {
    max-width: 150px;
  }

  .links a {
    font-size: 1rem;
    margin: 0 8px;
    margin-bottom: 8px;
  }
}

/* Add some hover effects */
h2:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
  background: rgba(65, 90, 119, 0.8); /* yinmn-blue with transparency */
  border-color: var(--silver-lake-blue);
}

p:hover {
  transform: translateY(-1px);
  transition: transform 0.3s ease;
  background: var(--platinum);
  box-shadow: 0 6px 12px rgba(65, 90, 119, 0.4); /* yinmn-blue shadow */
}

/* Icons Section Styles ------------------------------------------------------------------------------------*/
/* Icons Section Styles - Mobile Responsive Update */
.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 23px;
  padding: 20px 20px;
  max-width: 100%;
  position: relative;
  min-height: 200px;
}

.icon-container {
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-animation-direction: alternate;
  animation-direction: alternate;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-name: floating;
  animation-name: floating;
  -webkit-animation-play-state: running;
  animation-play-state: running;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  background-color: var(--platinum);
  /*transition: background-color 0.3s ease; */
  border-radius: 50%;
  box-shadow: 0 5px 40px 0 rgba(23, 28, 33, 0.13),
    0 20px 13px 0 rgba(23, 28, 33, 0.05);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 1;
  -webkit-transition: margin 1s cubic-bezier(0.2, 0.6, 0.3, 1), opacity 2s ease;
  transition: margin 1s cubic-bezier(0.2, 0.6, 0.3, 1), opacity 2s ease;
  /* Default desktop sizes */
  width: 80px;
  height: 80px;
  animation-duration: 4s;
  position: relative; /* Changed from absolute */
}

@keyframes floating {
  0% {
    -webkit-transform: translateY(8px) rotate3d(0, 0, 1, 3deg);
    transform: translateY(8px) rotate3d(0, 0, 1, 3deg);
  }
  100% {
    -webkit-transform: translateY(-8px) rotate3d(0, 0, 1, 0deg);
    transform: translateY(-8px) rotate3d(0, 0, 1, 0deg);
  }
}

.icon {
  width: 40px;
  height: 40px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.icon-container:hover {
  cursor: pointer;
  background-color: var(--silver-lake-blue);
  transition: background-color 0.3s ease;
}

/* Individual icon animations - simplified for mobile */
.selenium {
  animation-duration: 3s;
}

.csharp {
  animation-delay: -0.9s;
  animation-duration: 4s;
}

.reqnroll {
  animation-delay: -2.2s;
  animation-duration: 3.4s;
}

.azure {
  animation-delay: -2.6s;
  animation-duration: 3.8s;
}

.python {
  animation-delay: -1.8s;
  animation-duration: 2.9s;
}

.docker {
  animation-delay: -2.9s;
  animation-duration: 4s;
}

/* Mobile responsive breakpoints */
@media (max-width: 768px) {
  .icons {
    gap: 15px;
    padding: 30px 15px;
    min-height: 200px;
  }

  .icon-container {
    width: 60px;
    height: 60px;
  }

  .icon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .icons {
    gap: 10px;
    padding: 20px 10px;
    min-height: 150px;
  }

  .icon-container {
    width: 50px;
    height: 50px;
  }

  .icon {
    width: 25px;
    height: 25px;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .icons {
    gap: 8px;
    padding: 15px 5px;
  }

  .icon-container {
    width: 45px;
    height: 45px;
  }

  .icon {
    width: 22px;
    height: 22px;
  }
}
