/* Global Styles */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(16px, 2.5vmin, 60px);
  --paragraph-font-size: 1.1rem;
  --h1-font-size: 2.2rem;
  --h2-font-size: 1.3rem;
  --padding-size: 10px;

  /* COLOR DEFINITIONS */
  --color-bg: #f4f6ff;
  --color-fg: #2a3335;

  --accent1: hsla(11, 100%, 61%, 1);
  --accent2: hsla(88, 69%, 63%, 1);
  --accent3: hsla(196, 50%, 56%, 1);
  --accent4: hsla(49, 100%, 67%, 1);
  --accent5: hsla(206, 46%, 40%, 1);
  --accent6: hsla(31, 84%, 51%, 1);
  --accent7: hsla(209, 70%, 21%, 1);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-fg) var(--color-bg);
  /* transition: all .1s; */
}

body {
  background-color: var(--color-bg);
  color: var(--color-fg);
  display: flex;
  /* min-height: 100vh; */
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

h1,
h2,
img {
  user-select: none;
  -webkit-user-drag: none;
}

p::selection {
  background-color: var(--color-fg);
  color: var(--color-bg);
}

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

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

/* Header Styles */
header {
  position: relative;
  top: 0px;
  min-height: 100px;
  background-color: var(--color-fg);
  color: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header * {
  min-width: 100%;
  text-align: center;
}

/* Main Content Styles */
main {
  flex-grow: 1;
  padding: 0 calc(var(--padding-size) * 7);
}

section {
  /* margin: 10px 0px; */
  padding: var(--padding-size);
}

section h1 {
  font-size: 2rem;
  /* text-wrap-mode: nowrap; */
  color: var(--accent1);
  margin-bottom: calc(var(--padding-size)*2);
}

/* Services Section */

.our-services > h1 {
  text-align: center;
}

.services-container {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  justify-content: center;
  grid-auto-flow: row;
  gap: calc(var(--padding-size) * 3) calc(var(--padding-size) * 5);
  text-align: center;
}

.services-container p {
  margin: 0 10px;
}

.services-container .boxes {
  padding: var(--padding-size);
  border: 4px solid var(--color-fg);
  border-radius: 10px;
  transition: all 0.2s;
}

.services-container .boxes:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 10px 1px gray;

  /* border: none; */
}

/* Founders Section */
.founders-container {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  gap: var(--padding-size);
  margin: var(--padding-size) 0;
}

.founders-container > :is(.zurain-info, .ritvik-info) {
  border: 5px solid var(--color-fg);
  border-radius: 10px;
  min-height: 200px;
  padding: var(--padding-size);
  flex-grow: 1;
  max-width: 50%;

  display: grid;
  grid-template-rows: 0.2fr 0.1fr 1fr;
  grid-auto-flow: row;
}

.founders-info img {
  width: clamp(90px, 23vmin, 500px);
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  justify-self: center;
  transition: all 0.2s;
  border: 0.3rem solid var(--accent1);

  /* filter: grayscale(80%); */
}

.founders-info img:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 10px 1px gray;
  filter: grayscale(0%);
  border: 0.3rem solid var(--accent2);

}

.founders-info h1 {
  justify-self: center;
  /* font-size: 2rem; */
  color: var(--accent1);
  transition: all 0.2s;
}

.founders-container h1 > a {
  text-decoration: none;
  color: inherit;
  background-color: inherit;
}

.founders-container h1:hover {
  transform: scale(1.1);
  color: var(--accent5);
  text-decoration: underline;
}

.founders-info p {
  font-size: 1.2rem;
  font-weight: 500;
}

/* Footer Styles */
footer {
  width: 100%;
  align-self: center;
  min-height: 60px;
  background-color: var(--color-fg);
  color: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--accent1)
}

footer * {
  min-width: 100vw;
  text-align: center;
}

/* Separator */
.separator {
  width: 100%;
  border: 5px solid var(--accent7);
  border-radius: 2rem;
  margin: calc(var(--padding-size) * 5) 0;
  transform: scale(1.02);
  transition: all 0.2s;
  box-shadow: 0px 0px 10px 1px gray; 

}
.separator:hover{
  transform: scale(1.05);
  border: 5px solid var(--accent1);
  /* box-shadow: 0px 0px 15px 5px gray;  */
  
}
/* Media Queries */
@media only screen and (max-width: 800px) {
  .services-container {
    grid-template-columns: 1fr;
    padding: 0 calc(var(--padding-size) *1);
  }

  .founders-container {
    flex-direction: column;
  }
  .founders-container > :is(.zurain-info, .ritvik-info) {
    min-width: 100%;
  }
  main {
    padding: calc(var(--padding-size) * 3);
  }

  .founders-info img {
    box-shadow: 0px 0px 10px 1px gray;
    filter: grayscale(0%);
  }

  .links-container{
    flex-direction: column;
  }
}

@media only screen and (max-width: 400px) {
  

  main {
    padding: calc(var(--padding-size) * 1);
  }
  p{
    font-size: 18px;
  }
}

/* Span Styles */
.pwm {
  font-family: monospace, sans-serif;
  font-weight: bolder;
  transition: all 0.2s;
}

.pwm:hover {
  color: var(--accent1);
}

.contact-details > h1{
  text-align: center;
}

.links-container{
  display: flex;
  gap: calc(var(--padding-size)*2);
  justify-content: space-evenly;
  /* font-size: 10px; */
  text-wrap: wrap;

}

.links-container > .links{
  border: 3px solid var(--color-fg);
  border-radius: 10px;
  display: flex;
  padding: 10px;
  flex-grow: 1;
  justify-content: center;
  /* gap: var(--padding-size); */
  transition: all 0.2s;
}



.links-container a{
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.links-container img{
  width: 1.2rem;
  aspect-ratio: 1/1;
  margin-right: 5px;
  /* filter: drop-shadow(0px 0px 2px rgb(133, 133, 133));    */
  
  /* filter: grayscale(100%); */
  
}
.links-container > .links:hover{
  transform: scale(1.05);
  box-shadow: 0px 0px 10px 1px gray;
  color: var(--accent5);
  text-decoration: underline;

}
