@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600&display=swap');

:root {
  --customColor: #2657d3;
  --purple: #ce00ff;
  --blue: #3b4dd4;
  --orange: #ff4600;
  --cyan: #03ffc7;
  --light: #33b3e6;
}


*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-size: 62.5%;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  background-color: #fff;
  color: #222;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

li {
  list-style-type: none;
}

.container {
  max-width: 114rem;
  margin: 0 auto;
}

@media only screen and (max-width: 1200px) {
  .container {
    padding: 0 3rem;
  }
}

/* Header */
.header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: rgb(43, 43, 43);
  z-index: 1;
  overflow: hidden;
}

.header-wiki {
  min-height: 60vh;
}

.header-page {
  min-height: 30vh;
}

.header-page h2 {
  font-size: 4rem;
}

.header img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1
}

.nav {
  padding: 1.6rem 0
}

.nav.fix-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--customColor);
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
  z-index: 999;
}

.nav.fix-nav .logo h1 span {
  color: #fff
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo h1 {
  font-size: 2.5rem;
  color: #fff;
}

.logo h1 span {
  font-weight: bold;
  color: var(--customColor);
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item:not(:last-child) {
  margin-right: .5rem;
}

.nav-link:link,
.nav-link:visited {
  color: #fff;
  padding: .8rem 1rem;
  transition: all 300ms ease-in-out;
}

.nav-link:hover {
  border-radius: .3rem;
  background-color: var(--customColor);
}

.typeit,
.top-nav {
    display: none;
}

@media only screen and (max-width: 768px) {
    .menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 0%;
        max-width: 35rem;
        height: 100%;
        background-color: #fff;
        transition: all 500ms ease-in-out;
        z-index: 100;
    }
    .menu.show {
        left: 0;
        width: 100%;
    }

    .top-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: var(--customColor);
        padding: 1rem 1.6rem;
    }

    .logo h1 span,
    .top-nav .close {
        color: #fff;
    }

    .typeit,
    .top-nav .close {
        display: block;
        color: #fff;
        font-size: 2.3rem;
        padding: .5rem;
        cursor: pointer;
    }

    .nav-link:link,
    .nav-link:visited {
        display: block;
        font-size: 1.7rem;
        color: #222;
        padding: 1rem 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.6rem;
    }
    body.show::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .8);
        z-index: 1;
    }

    .nav.show {
        background-color: rgba(0, 0, 0, .8);
    }

}

/* Hero  */
.hero {
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}

.hero h3 {
  font-weight: 400;
  font-size: 2rem;
}
.hero h1 {
  font-size: 9rem;
  margin: 0;
}
.hero h4 span {
  color: white;
  text-decoration: underline;
}
.hero h4 {
  color: white;
}

.hero a:link,
.hero a:visited {
  display: inline-block;
  padding: .8rem 2.5rem;
  border: 1px solid var(--customColor);
  background-color: var(--customColor);
  color: #fff;
  margin: 1rem;
  margin-top: 2rem;
}

.hero a:hover {
  background-color: transparent;
}

@media only screen and (max-width:1200px) {
  .hero {
    transform: translate(-50%, -50%);
  }

  .hero h1 {
    font-size: 7rem;
  }

  .hero h4 {
    font-size: 1.5rem;
  }
}

@media only screen and (max-width:996px)  {
  .hero {
    transform: translate(-50%, -50%);
  }

  .hero h1 {
    font-size: 6rem;
  }

  .hero h4 {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width:768px) {
  .hero h1 {
    font-size: 4rem;
  }

  .hero h4 {
    font-size: 1.3rem;
  }
}

@media only screen and (max-width:567px) {
  .hero {
    transform: translate(-50%, -50%);
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero h3 {
    font-size: 1.6rem;
  }

  .hero h4 {
    font-size: 1.2rem;
  }
}

.icons {
  position: absolute;
  text-decoration: none;
  bottom: 5%;
  right: 10%;
  color: #fff;
}
.icons a:not(:last-child) {
  margin-right: 1rem;
}

.icons a {
  font-size: 3rem;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  color: #fff;
}

.icons a:hover i {
  color: var(--customColor);
}

@media only screen and (max-width: 967px) {
  .icons {
    display: none;
  }
}

.control {
  position: fixed;
  right: -3.5rem;
  top: 15%;
  transition: all 300ms ease-in-out;
  z-index: 1000;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.control.open {
  right: 0;
}

.control .widget {
  position: absolute;
  left: -3.4rem;
  border-radius: 1rem 0 0 1rem;
  padding: .5rem .7rem;
  margin-right: .1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
  cursor: pointer;
  background-color: #fff;
  text-align: center;
}
.control .widget i {
  font-size: 2rem;
  animation: soin 2s linear infinite;
}

.control .colors {
  background-color: #fff;
  padding: 1rem .8rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}

.control .colors span {
  display: block;
  width: 1.9rem;
  height: 1.9rem;
  padding: .7rem;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.control .colors span:not(:last-child) {
  margin-bottom: .7rem;
}
.control .colors span:nth-child(1) {
  background-color: var(--blue);
}

.control .colors span:nth-child(2) {
  background-color: var(--orange);
}

.control .colors span:nth-child(3) {
  background-color: var(--purple);
}

.control .colors span:nth-child(4) {
  background-color: var(--cyan);
}

/* About  */
.section {
  padding: 5rem 0 7rem 0;
  overflow-x: hidden;
}

.about {
  margin-top: 1rem;
}

.about-center {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem 2.5rem;
}

.title {
  margin: 4rem 0 7rem 0;
  text-align: center;
}

.title h1 {
  font-size: 3rem;
  display: inline-block;
  position: relative;
  z-index: 0;
}

.title h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -20%;
  transform: translate(-50%, -50%);
  background-color: var(--customColor);
  width: 50%;
  height: .4rem;
  z-index: 1;
}


.left img {
  width: 70%;
  /* object-fit: cover; */
}

.right h1 {
  margin-bottom: 2rem;
}

.right p {
  line-height: 2;
  float: left;
  margin-bottom: 2rem;
  color: #333;
}

.right a {
  margin-top: 1.5rem;
}

.right h1 span {
  color: var(--customColor);
}


a.btn,
.btn-form {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--customColor);
  color: #fff;
  border-radius: .5rem;
  border: 2px solid var(--customColor);
  box-shadow: 0 10px 10px rgba(0, 0, 0, .1);
  transition: all 300ms ease-in-out;
}

a.btn:hover,
.btn-form:hover {
  transform: translateY(-3px);
  background-color: transparent;
  color: inherit;
}
a.btn:active,
.btn-form:active {
  transform: translateY(0);
}

/* Projects  */

.theme{
  background-color: #1c1c1c;
}

.team {
  color: #fff;
  background-color: #111;
  padding: 3rem;
  text-align: center;
  border-radius: 1rem;
  border-bottom: 4px solid transparent;
  transition: all 300ms ease-in-out;
}

.team .img-cover {
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid var(--customColor);
  height: 13rem;
  width: 13rem;
  margin: 0 auto;
  transition: all 300ms ease-in-out;
}

.team .img-cover img {
  height: 100%;
  object-fit: cover;
}

.team h3 {
  padding-top: 0.5rem;
  font-size: 2rem;
  margin: 1rem 0;
}
.team p {
  font-size: 1.5rem;
  color: #ccc;
  width: 80%;
  margin: 0 auto 1rem auto;
}

.team:hover {
  border-bottom: 4px solid #fff;
  background-color: var(--customColor);
}

.team:hover .img-cover {
 border-color: #fff;
}

/* Make entire card clickable without changing your theme colors */
/* Projects grid: max 3 across */
.projects-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
}

@media (max-width: 1100px){
  .projects-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px){
  .projects-grid{
    grid-template-columns: 1fr;
  }
}


.projects-grid .project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Title centered above image+text row */
.team .project-title {
  text-align: center;
  margin: 0 0 1.6rem 0;
  font-size: 1.8rem;
}

/* Row with image on left and text on right */
.team .project-body {
  display: grid;
  grid-template-columns: 140px 1fr;  /* image width then flexible text */
  gap: 1.6rem 2rem;
  align-items: center;
}

/* Reuse your circular frame but shrink it so it doesn’t dominate */
.team .img-cover { 
  width: 160px; height: 100px; border-radius: 1rem; 
  border: 3px solid var(--customColor);
}

/* Ensure image fills the frame cleanly */
.team .img-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Description block */
.team .project-text p {
  margin: 0;
  line-height: 1.7;
  color: #ccc; 
}


/* Responsive: stack under 640px so it doesn’t squish */
@media (max-width: 640px) {
  .team .project-body {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .team .img-cover {
    justify-self: center;    /* center the image when stacked */
  }
  .team .project-text p {
    text-align: center;
  }
}


/* Contact Form  */

.contact-center {
  display: flex;
  justify-content: center;
  text-align: center;
}

.contact-center .left {
  max-width: 600px;  /* keeps it from stretching too wide */
}
.contact-center .left div {
  justify-content: center; /* centers icons + text */
}

.contact-center a {
  color: inherit;         /* keep same text color */
  text-decoration: none;  /* remove underline */
}

.contact-center a:hover {
  color: var(--customColor);  /* highlight with your theme color */
  text-decoration: underline; /* optional hover underline */
}

.left h2{
  font-size: 2.5rem;
}

.left img{
  width: 80%;
}

.left p{
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.left div{
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.left .icon{
  margin-right: 2rem;
  font-size: 2.3rem;
  color: var(--customColor);
}

footer{
  background-color: #000;
  padding: 1.6rem 1rem;
  text-align: center; 
}

footer p{
  color: white;
}

footer p span{
  color: var(--customColor);
}

@media only screen and (max-width: 768px){
  .contact-center{
    grid-template-columns: 1fr;
  }

  .contact-center .left{
    text-align: left;
  }

  .left div .content h3{
    font-size: 1.6rem;
  }

  .left div .content span{
    font-size: 1.5rem;
  }
}

/** 
 * SECTION FOR WIKI SPECIFIC STUFF
 */
.docs-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 4rem;
}

.docs-col h2{
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.6rem 0;
  color: #2b2b2b;
  border-bottom: 2px solid #e6e6e6;
  padding-bottom: 1.2rem;
}

.docs-list{
  margin-top: 1.2rem;
}

.docs-list li + li{
  margin-top: 1.2rem;
}

/* link row with emoji icon */
.docs-list a{
  display: inline-flex;               /* keeps underline only as wide as the text */
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  border-bottom: 2px solid #e6e6e6;   /* that subtle Notion-style underline */
  padding-bottom: .3rem;
  transition: border-color 200ms, color 200ms, transform 120ms;
}

.docs-list a:hover{
  color: var(--customColor);
  border-color: var(--customColor);
  transform: translateY(-1px);
}

.docs-list .ico{
  font-size: 2rem;                  /* emoji size */
  line-height: 1;
}

/* Responsive columns */
@media (max-width: 1100px){
  .docs-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .docs-col h2 { font-size: 1.9rem; }
}
@media (max-width: 700px){
  .docs-grid{ grid-template-columns: 1fr; }
  .docs-col h2 { font-size: 1.75rem; }
}
