@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Nunito", sans-serif;
}
:root {
  --bg-color: #191f36;
  --snd-bf-color: #262b40;
  --text-color: #fff;
  --main-color: #59b2f4;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
}
section {
  min-height: 60vh;
  padding: 10rem 0% 2rem;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 700;
  cursor: default;
}
.logo img {
  width: 70px;
  margin-top: 0;
}
.navbar a {
  font-size: 2rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 700;
}
.navbar {
  /* margin-top: -; */
}
.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}
#menu-icons {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
}
.home {
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
}
.home-content h3 :nth-of-type(2) {
  margin-bottom: 2rem;
}
span {
  color: var(--main-color);
}
.home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
}
.home-img img {
  justify-content: center;
  width: 25vw;
  animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.4rem);
  }
  100% {
    transform: translateY(0);
  }
}
.home-content p {
  font-size: 1.6rem;
}
.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 3rem 1.5rem 0;
  transition: 0.5s ease;
}
.social-media a:hover {
  background: var(--main-color);
  color: var(--snd-bf-color);
  box-shadow: 0 0 3.5rem var(--main-color);
}
.btn {
  margin-top: 25px;
  margin-right: 10px;
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  font-size: 1.6rem;
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  letter-spacing: 0.1rem;
  font-weight: 700;
  transition: 0.5s ease;
  font-style: bold;
  color: #ffffff;
}
.btn:hover {
  box-shadow: none;
}
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--snd-bf-color);
}
.about-img {
  width: 35vw;
}
.heading {
  text-align: center;
  font-size: 4.5rem;
}
.about-content h2 {
  text-align: left;
  line-height: 1.2;
}
.about-img img{
  width: 30vw;
}
.about-content h3 {
  font-size: 2.6rem;
}
.about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
  justify-content: auto;
  margin: 25px 25px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: 10px;
  margin-right: 10px;
  position: relative;
}
.right {
  text-align: left;
}
.container {
  max-width: 1100px;
  width: 100%;
  margin-top: -150px;
}
*/ .services h2 {
  margin-bottom: 5rem;
}
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 50px;
}
.services-container .services-box {
  flex: 1 1 30rem;
  background: var(--snd-bf-color);
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  border: 0.2rem solid var(--bg-color);
  transition: 0.5s ease;
}
.services-container .services-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}
.services-box i {
  font-size: 7rem;
  color: var(--main-color);
}
.services-box h3 {
  font-size: 2.6rem;
}
.services-box p {
  font-size: 1.6rem;
  margin: 1rem 0 3rem;
}
.portfolio {
  background: var(--snd);
}
.portfolio h2 {
  margin-bottom: 4rem;
}
.portfolio-container {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 8.5rem;
  margin-left: 120px;
  text-align: center;
}
.portfolio-container .portfolio-box {
  position: relative;
  border-radius: 2.5rem;
  box-shadow: 0 0 1rem var(--bg-color);
  overflow: hidden;
  display: flex;
  text-align: center;
}
.portfolio-box img {
  width: 100%;
  transition: 0.5s ease;
  opacity: 0.7;
}
.portfolio-box:hover img {
  transform: scale(1.1);
}
.portfolio-box a i:hover {
  transform: scale(2.1);
}
.portfolio-box a i {
  display: flex;

  flex-wrap: wrap-reverse;
}
.portfolio-box .portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: 0.5s ease;
}
 .evangadi_forum{
  width: 1000px !important;
 }
.portfolio-box:hover .portfolio-layer {
  transform: translateY(0);
}
.portfolio-layer h4 {
  font-size: 1.6rem;
  margin: 0.3rem 0 1rem;
}
.portfolio-layer p {
  font-size: 1.6rem;
  margin: 0.3rem 0 1;
}
.portfolio-layer a {
  display: flex;
  margin: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
  width: 5rem;
  height: 5rem;
  background: var(--main-color);
  border-radius: 50%;
}
.portfolio-box h2{
  font-size: 36px !important;
}
.portfolio-box p{
  font-size: 18px !important;
}
.portfolio-layer a i {
  font-size: 2rem;
  color: var(--snd-bf-color);
  display: flex;
  justify-content: space-between;
}
.portfolio-container.portfolio-layer a i {
  display: flex;
  justify-content: space-between;
}
.contact h2 {
  margin-bottom: 2rem;
  margin-top: -25px;
}
.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}
.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--snd-bf-color);
  border-radius: 0.8rem;
  margin: 0.7rem 0;
}
.contact form .input-box input {
  width: 49%;
}
.contact form textarea {
  resize: none;
}
.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
}
.personal-info {
  display: flex;
  flex: 0 0;
  font-size: 15px;
  justify-content: left;
}
.body {
  width: 100%;
  min-height: 100vh;
  background-color: #191f36;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container1 {
  width: 100%;
  padding: 35px 10%;
  margin-top: 0;
}
main.row {
  display: flex;
  grid-template-columns: 2fr 1fr;
  grid-column-gap: 15px;
}

.col header.title {
  color: var(--main-color);
  padding: 0 0 20px 30px;
  margin-top: -100px;
}
.services h2 {
  margin-top: -50px;
  margin-bottom: 50px;
}

.title h2 {
  font-size: 24px;
}
.col {
  margin-top: 0;
}

.col .contents {
  padding: 0 30px;
  border-left: 2px solid #bababa;
}

.col .contents .box {
  position: relative;
  padding: 20px;
  border: 1px solid #191f36;
  background-color: #262b40;
  cursor: pointer;
  transition: all 0.4s;
  color: white;
  margin-bottom: 20px;
  min-height: 200px;
}

.col .contents .box:hover {
  box-shadow: 5px 5px 12px 0px #ccc;
  border: 1px solid transparent;
}

.col .contents .box::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  right: calc(100% + 20px);
  top: 0;
  background-color: #11a372;
  border: 2px solid var(--main-color);
}

.box h4 {
  position: relative;
  color: var(--main-color);
}

.box {
  margin-top: 0;
}

.box h3 {
  font-size: 19px;
  padding: 10px 0 6px;
  font-family: Arial, Helvetica, sans-serif;
  color: #1c990b;
}

.box p {
  line-height: 1.2;
  color: #fff;
  font-size: 18px;
}

.box i {
  width: 25px;
}

.box img {
  width: 35px;
}

.all-span {
  display: flex;
}

/* Contact Card Styling */
.contact-card h2 {
  font-size: 1.8em;
  color: white;
  margin-bottom: 15px;
  
}

.contact-card a {
  text-decoration: none;
  color: white;
}

.contact-card p {
  margin: 10px 0;
  font-size: 2em;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--snd-bf-color);
}
.footer-text {
  font-size: 2.6rem;
}
.footer-iconTop {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--main-color);
  border-radius: 0.8rem;
  transition: 0.5s ease;
}
.footer-iconTop a:hover {
  box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--snd-bf-color);
}
.contact-card h2 {
  font-size: 1.8em;
  color: white;
  margin-bottom: 15px;
  padding: 10px;
  border: 2px solid #191f36; /* Adds border around each h2 */
  border-radius: 5px; /* Optional: adds rounded corners */
  background-color: #262b40; /* Optional: adds a background color to match the design */
  margin-left: 0; /* Ensures no extra margins on the left */
  margin-right: 0; /* Ensures no extra margins on the right */
}
.box h3{
  color: #59b2f4;
}
/* Breakpoints */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}
@media (max-width: 1024px) {
  .container1 {
    padding: 35px 5%; /* Adjust padding for smaller screens */
  }

  /* Flexbox Layout Adjustments for Smaller Screens */
  main.row {
    flex-direction: column; /* Stack columns on smaller screens */
    grid-template-columns: 1fr; /* Set to 1 column */
  }

  .col .contents {
    padding: 20px; /* Adjust padding for smaller screens */
    border-left: none; /* Remove border on smaller screens */
  }

  .contact-card h2 {
    font-size: 1.5em; /* Adjust font size for smaller screens */
  }

  .box h3 {
    font-size: 16px; /* Adjust font size for skills and education section */
  }

  .box p {
    font-size: 16px; /* Reduce font size for better readability */
  }

  .box {
    margin-bottom: 15px; /* Add margin between boxes */
  }

  .title h2 {
    font-size: 20px; /* Adjust font size for titles on smaller screens */
  }
}

/* Further adjust for even smaller screens like phones */
@media (max-width: 768px) {
  .container1 {
    padding: 20px 5%; /* Adjust padding further */
  }

  .contact-card h2 {
    font-size: 1.4em; /* Smaller font size for very small screens */
  }

  .box h3 {
    font-size: 14px; /* Smaller font size for the content */
  }

  .box p {
    font-size: 14px; /* Smaller font size for the content */
  }
}
@media (max-width: 991px) {
  .row{
    display: flex;
  }
  .header {
    padding: 2rem 3%;
  }
  .section {
    min-height: 66vh;
    padding: 10rem 3%;
  }
  .services {
    padding: 7rem;
  }
  .portfolio {
    padding-bottom: 7rem;
  }
  .contact {
    min-height: auto;
  }
  .footer {
    padding: 2rem 3%;
  }
}
@media (max-width: 768px) {
  .heading{
    text-align: center;
  }
  .home {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .col header.title {
    margin-top: -50px;
  }
  .col header.title h2 {
    font-size: 15px;
  }
  .section {
    min-height: 66vh;
  }
  .portfolio-box h2{
    font-size: 15px !important;
  }
  .portfolio-box p{
    font-size: 12px !important;
  }
  .navbar {
    position: fixed;
    top: 100px;
    left: 0;
    width: 50%;
    padding: 1rem 3%;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.2);
    box-shadow: 0.5rem 1rem rgba(0, 0, 0, 0.2);
    background: #2c344d;
    color: white;
    z-index: 1000;
    display: none;
    margin: 5px;
  }
  .footer-text {
    font-size: 1.2rem;
  }
  .navbar.active {
    display: block;
  }
  .navbar a {
    padding: 0.5rem 1rem;
    display: block;
    margin: bottom 5px;
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: 0.5s;
  }
  .navbar a:hover {
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 0;
    font-size: 2rem;
    color: var(--main-color);
    transition: 0.5s ease;
  }
  .loved {
    margin-top: -50px;
  }
  main.row {
    grid-template-columns: 1fr;
  }
  .body {
    display: inline;
  }
  .row .col:nth-child(2) {
    margin-top: 30px;
  }
  #menu-icons {
    display: block;
  }
  .padd-15 {
    display: block;
  }
  main.row {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .container1 {
    width: 100%;
    padding: 20px;
  }

  .col .contents {
    padding: 0 20px;
    border-left: none;
  }

  .col .contents .box::before {
    display: none;
  }
  .home {
    flex-direction: column !important;
  }
  .home-content h3 {
    font-size: 2.6rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-content {
    order: 2;
  }

  .home-img {
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: 50%;
  }

  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }
  .about {
    display: flex;
    flex-direction: column;
  }

  .about-img img {
    width: 70vw;
    margin-top: -50px;
    margin-left: -70px;
    justify-content: center;
    text-align: center;
  }
  .services h2,
  .portfolio h2 {
    margin-bottom: 3rem;
  }
  .services h2 {
    margin-top: -50px;
  }
  .portfolio-container {
    margin-left: 20px;
    justify-content: center;
    text-align: center;
    width: 90%;
    grid-template-columns: repeat(1, 1fr);
  }
  .services-container {
    display: inline;
    margin-bottom: 1rem;
  }
  .services-box {
    margin-bottom: 10px;
  }
}
@media (max-width: 617) {
  .portfolio-container {
    grid-template-columns: 1fr;
  }
  .home-img {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .about-img img {
    width: 100vw;
    margin-top: 4rem;
  }
}
@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
  .contact form .input-box input {
    width: 100%;
  }
}
