/*-- font-family: 'Great Vibes', cursive;
font-family: 'Poppins', sans-serif;  --*/
*,
*,
::before,
*::after {
  box-sizing: border-box;
}

/*--- custom properties --*/
:root {
  /*-- fonts --*/
  --ff-primary: 'Source Sans Pro', sans-serif;
  --ff-secondary: 'Source Code Pro', monospace;
  --ff-vibes: 'Great Vibes', cursive;
  /*-- font-weight --*/
  --fw-reg: 300;
  --fw-bold: 900;
  /*-- colors --*/
  --clr-light: #fff;
  --clr-dark: #303030;
  --clr-accent: #16e0bd;
  /*-- font size --*/
  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  /*-- box shadow --*/
  --bs: 0.25em 0.25em 0.75em rgba(0, 0, 0, .25),
    .5em 0.5em .5em rgba(0, 0, 0, .45)
}

/*-- Font sizes for larger screens --*/

@media (min-width: 800px) {
  :root {
    --fs-h1: 4.5rem;
    --fs-h2: 3.75rem;
    --fs-h3: 1.5rem;
    --fs-body: 1.125rem;
  }
}

/*-- General styling --*/

html {
  scroll-behavior: smooth;
}

body {
  background: var(--clr-light);
  color: var(--clr-dark);
  margin: 0;
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
  user-select: none;
}

img {
  display: block;
  max-width: 100%;
}

strong {
  font-weight: var(--fw-bold);
}

section {
  padding: 5em 2em;
}

:focus {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

/*-- Buttons --*/

.btn {
  display: inline-block;
  padding: .5em 2.5em;
  background: var(--clr-accent);
  color: var(--clr-dark);
  text-decoration: none;
  cursor: pointer;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: var(--fw-bold);
  transition: transform 200ms ease-in-out;
}

.btn:hover {
  transform: scale(1.1);
}

/*-- Typography --*/

h1,
h2,
h3 {
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: var(--fs-h1)
}

h2 {
  font-size: var(--fs-h2)
}

h3 {
  font-size: var(--fs-h3)
}

.section_title {
  margin-bottom: .25em;
}

.section_title--intro {
  font-weight: var(--fw-reg);
}

/*-- to keep the name always under the text*/
.section_title--intro strong {
  display: block;
}

.section_subtitle {
  margin: 0;
  font-size: var(--fs-h3);
}

.section_subtitle--intro,
.section_subtitle--about {
  background: var(--clr-accent);
  padding: .25em 1em;
  font-family: var(--ff-secondary);
  margin-bottom: 1em;
}

.section_subtitle--work {
  color: var(--clr-accent);
  font-weight: var(--fw-bold);
  margin-bottom: 2em;
}

/*-- Header section  --*/

header {
  display: flex;
  justify-content: space-between;
  padding: .5em;
}

.logo_text {
  margin: .2em .4em;
  padding: .2em .4em;
  font-size: 3rem;
}

.nav {
  position: fixed;
  background: var(--clr-dark);
  color: var(--clr-light);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;

  transform: translateX(100%);
  transition: transform 250ms ease-in-out;
}

.nav_list {
  list-style: none;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav_list {
  list-style: none;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav_link {
  color: inherit;
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  text-decoration: none;
  cursor: pointer;
}

.nav_link:hover {
  color: var(--clr-accent);
}

.nav_toggle {
  padding: .5em;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: absolute;
  right: 3em;
  top: 3.5em;
  z-index: 1000;
}

.nav_open .nav {
  transform: translateX(0);
}

.nav_open .nav_toggle {
  position: fixed;
}

.nav_open .hamburger {
  transform: rotate(.625turn);
}

.nav_open .hamburger::before {
  transform: rotate(90deg) translateX(-6px);
}

.nav_open .hamburger::after {
  opacity: 0;
}


.hamburger {
  display: block;
  position: relative;

}

.hamburger,
.hamburger::before,
.hamburger::after {
  background: var(--clr-accent);
  width: 2em;
  height: 3px;
  border-radius: 1em;
  transition: transform 250ms ease-in-out;
}


.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
}

.hamburger::before {
  top: 6px;
}

.hamburger::after {
  bottom: 6px;
}





/*-- Introduction section  --*/

.intro {
  position: relative;
}

.intro_img {
  box-shadow: var(--bs);

}

.small_btn {
  color: var(--clr-dark);
  background-color: var(--clr-accent);
  border: none;
  padding: 5px 10px;
  font-size: .7em;
}

.section_subtitle--intro {
  display: inline-block;
}

@media (min-width: 600px) {
  .intro {
    display: grid;
    width: min-content;
    margin: 0 auto;
    grid-column-gap: 1em;
    grid-template-areas:
      "img title"
      "img subtitle";
    grid-template-columns: min-content max-content;
  }

  .intro_img {
    grid-area: img;
    min-width: 250px;
    position: relative;
  }

  .section_subtitle--intro {
    align-self: start;
    grid-column: -1 / 1;
    grid-row: 2;
    text-align: right;
    position: relative;
    left: -1.5em;
    width: calc(100% + 1.5em);
  }
}

/*-- My Services section --*/

.my_services {
  background-color: var(--clr-dark);
  background-image: url(../assets/Portfolio/services-bg.jpg);
  background-size: cover;
  background-blend-mode: difference;
  color: var(--clr-light);
  text-align: center;
}

.section_title--services {
  color: var(--clr-accent);
  position: relative;
}

.section_title--services::after {
  content: '';
  display: block;
  width: 2.5em;
  height: 1px;
  margin: 0.5em auto 1em;
  background: var(--clr-light);
  opacity: 0.35;
}

.services {
  margin-bottom: 3em;
}

.service {
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .services {
    display: flex;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .service+.service {
    margin-left: 1.5em;
  }
}

/*-- About Me --*/

.about_me {
  max-width: 1000px;
  margin: 0 auto;
}

.about_me_img {
  box-shadow: var(--bs);
}

@media (min-width: 600px) {
  .about_me {
    display: grid;
    grid-template-columns: 1fr 200px;
    grid-template-areas:
      "title img"
      "subtitle img"
      "text img";
    grid-column-gap: 2em;
  }

  .section_title--about {
    grid-area: title;
  }

  .section_subtitle--about {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    left: -1em;
    width: calc(100% + 2em);
    padding-left: 1em;
    padding-right: calc(200px + 4em);
  }

  .about_me_img {
    grid-area: img;
    position: relative;
    z-index: 2;
  }
}

/*-- My Work section --*/

.my_work {
  background-color: var(--clr-dark);
  color: var(--clr-light);
  text-align: center;
}

.my_work_first_row{
  padding-bottom: 10px;
}

.my_work_second_row{
  padding-top: 0px;
}

.select-img-text {
  text-align: left;
  margin: 0em;
  font-size: 1rem;
  color: grey;
}

.portfolio {
  display: flex;
  flex-wrap: wrap;
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: .25em; */
}

.portfolio_item_el {
  flex: 1;
  border: 1px solid white;
  background-color: var(--clr-dark);
  overflow: hidden;

}

.portfolio_item {
  background: var(--clr-accent);
  overflow: hidden;
}

.portfolio_img {
  transition: transform .75s ease-in-out;
  opacity: .25s linear;
}

.js-img {
  background-color: #0e0e0e;
  position: relative;
}

.js-subtitle {
  position: absolute;
  top: 5em;
  left: 0em;
  color: goldenrod;
  background: transparent;
}

.per-dashboard {
  background-color: #111;
}

.per-dashboard-img {
  margin-right: auto;
  margin-left: auto;
  width: 100%;
  object-fit: cover;
}

.portfolio_item:focus {
  position: relative;
  z-index: 2;
}

.portfolio_img:hover,
.portfolio_item:focus .portfolio_img {
  transform: scale(1.1);
  opacity: .75;
}





/*-- Footer --*/

.footer {
  background: #111;
  color: var(--clr-accent);
  text-align: center;
  padding: 2.5rem 0;
  font-size: var(--fs-h3);
}



.footer a {
  color: inherit;
  text-decoration: none;
}

.footer_link {
  font-weight: var(--fw-bold);

}

.footer_link:hover,
.social_list_link:hover {
  opacity: .5;
}

.footer_link:hover {
  text-decoration: overline;
}

.social_list {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: .5em 0 0;
  padding: 0;
}

.social_list_item {
  margin: 0 .5em;
}

.social_list_item {
  padding: .5em;
}

/*-- Idividual portfolio item styles --*/

.portfolio_item_individual {
  padding: 0 2em 2em;
  max-width: 1000px;
  margin: 0 auto;

}

.portfolio_item_individual p {
  max-width: 600px;
  margin-right: auto;
}

.portfolio_item_img {
  cursor: pointer;
}

/*-- linguaFlow business page image styling --*/
#linguaFlow_business-page .portfolio_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

/*-- skanda item styling --*/
.skanda_item {
  display: block;
  width: 100%;
  height: 100%;
}

.skanda_item .portfolio_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

/*-- Second row portfolio items styling --*/
.second_row_portfolio_item {
  width: 300px;
  margin: 0 auto;
}

/*-- Contact form styling --*/
.contact_form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  width: 400px;
}

.form-group label {
  font-weight: var(--fw-bold);
  color: var(--clr-dark);
  font-size: 1.1em;
}

.form-group input,
.form-group textarea {
  padding: 0.75em;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(22, 224, 189, 0.1);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 1em;
}

/*-- Scroll to top button --*/
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--clr-accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top-btn:hover {
  background-color: #0fa896;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}