/* General Styling */
body {
  margin: 0;
  font-family: Montserrat, sans-serif;
  background: linear-gradient(120deg, #000000, #1a1a1a);
  color: white;
  overflow-x: hidden;
}

/* Header/Nav Bar */
header {
  display: flex;
  justify-content: center;
  margin-top: 2%;
}

.box2 {
  display: flex;
  gap: 60px;
  font-size: 1.2em;
  letter-spacing: 2px;
}

#a1, #a2, #a3, #a4 {
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

a:hover {
  color: gray;
}

/* Main Layout Container */
.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 150px);
  padding: 0 5%;
  gap: 5%;
  flex-wrap: wrap;
}

/* Left Text Section */
#box1 {
  max-width: 600px;
  animation: fadeSlideUp 2s ease-out forwards;
}

h1 {
  color: #AEC8A4;
  letter-spacing: 2px;
}

#h11 {
  font-weight: lighter;
  font-size: 55px;
  margin: 0;
}

#h12 {
  font-weight: bolder;
  font-size: 80px;
  margin: -10px 0 0 0;
}

#heading {
  color: white;
  letter-spacing: 4px;
  font-size: 28px;
  margin-top: 20px;
  animation: fadeSlideUp 2s ease-out forwards;
}

#subheading {
  color: #CCCCCC;
  font-size: 20px;
  margin-top: 10px;
  animation: fadeSlideUp 2s ease-out 1s forwards;
}

/* Right Image */
.image-float {
  animation: floatImage 4s ease-out forwards;
}

.image-float img {
  height: 400px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Resume Button + Icon Section */
.resume-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  text-align: center;
  width: 100%;
}

.resume-button {
  background-color: white;
  color: black;
  font-weight: bold;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
  display: inline-block;
}


.resume-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Social Icons */
#icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 26px;
}

#icons a i,
#icons a svg {
  color: white !important;
  fill: white !important;
  transition: transform 0.3s ease;
}

#icons a:hover i,
#icons a:hover svg {
  transform: scale(1.2);
  color: gray !important;
  fill: gray !important;
}

/* Animations */
@keyframes floatImage {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    margin-top: 30px;
  }

  #h11 {
    font-size: 40px;
  }

  #h12 {
    font-size: 50px;
  }

  #heading {
    font-size: 20px;
  }

  #subheading {
    font-size: 16px;
  }

  .image-float img {
    height: auto;
    width: 80%;
    margin-top: 20px;
  }

  header {
    font-size: 1em;
    flex-wrap: wrap;
  }

  .box2 {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  #icons {
    flex-wrap: wrap;
  }

  .resume-button {
    font-size: 16px;
    padding: 10px 20px;
  }
}

/* Extra small screens (e.g., mobile under 480px) */
@media (max-width: 480px) {
  #h11 {
    font-size: 32px;
  }

  #h12 {
    font-size: 42px;
  }

  #heading {
    font-size: 18px;
    letter-spacing: 2px;
  }

  #subheading {
    font-size: 14px;
    padding: 0 10px;
  }

  .image-float img {
    width: 90%;
    height: auto;
  }

  .resume-button {
    font-size: 14px;
    padding: 8px 16px;
  }

  .box2 {
    gap: 6px;
    font-size: 1em;
  }
}

/* Large screens/desktops */
@media (min-width: 1200px) {
  .main-container {
    padding: 0 10%;
    gap: 10%;
  }

  #h11 {
    font-size: 60px;
  }

  #h12 {
    font-size: 90px;
  }

  #heading {
    font-size: 32px;
  }

  #subheading {
    font-size: 22px;
  }

  .resume-button {
    font-size: 20px;
    padding: 14px 28px;
  }

  .image-float img {
    height: 500px;
  }
}
