/* put google fonts */
@import url('https://fonts.googleapis.com/css2?family=Inspiration&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

/* css reset */
* {
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    padding: 0;
}

/* backgrounds */

html {
  scroll-behavior: smooth;
}

body {
    /* background-color: #f5e9e9; */
    background-color: #FEDDFA;
    color: #282C4A;
    font-family: "Source Serif 4", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.header {
    position: fixed; /* maybe fixed so it moves as ppl scroll?*/
    display: flex;
    padding: 30px 5%;
    justify-content: space-between;
    width: 100%; /* fixed the links bunching together */
    z-index: 99;
    background: #feddfa2f;
}

.header a {
    color: black;
    transition: .4s;
    font-size: 20px;
    font-style: normal;
    letter-spacing: 3px;
}

.header a:hover {
    color: #384394;
}

.logo {
    font-family: "Inspiration", cursive;
    line-height: 100%;
}

/* big title called "heading" */
.heading {
    position: relative;
    font-family: "Inspiration", cursive;
    color: #c94057;
    /* color: #282C4A; */
    font-weight: 100;
    font-size: 11rem;
    line-height: 1; 
    /* top: 10px; */
    /* background-color: antiquewhite; */
}

.main-page {
    padding: 20px 5%;
    padding-top: 60px; /* pushes content below navbar */

}

.banner {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
}

.home-text {
    margin-top: 70px;
}

.home-text h3 {
    position: relative;
    font-size: 48px;
    font-weight: 400;
}

.location {
  display: flex;
  align-items: center;
  font-size: 20px;
  gap: 4px;
}


.btn-box {
    position: absolute;
    width: 320px;
    /* height: 80px; */
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
}

.btn-box a {
    position: relative;
    font-size: 25px;
    font-weight: 200;
    color: #282C4A;
    display: inline-flex;
    justify-content: center;
    height: 40px; /*made the difference in alignment*/
    width: 40px;
    background: transparent;
    border: 1.3px solid #282C4A;
    align-items: center; /*key to up/down alignment*/
    z-index: 1;
    transition: .5s;
    text-decoration: none;
    z-index: 1;
}

.btn-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #c94057;
    z-index: -1;
    transition: .5s;
}

.btn-box a:hover::before {
    width: 100%;
}

.btn-box a:hover {
    color: white;
}

.btn-box .contact {
    width: 150px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
}

.my-pic {
    position: relative;
}

.my-pic .image {
    opacity: 1;
    display: block;
    position: relative;
    top: 30px;
    /* right: 20px; */
    max-height: 400px;
    width: auto;
    border-radius: 47%;
    border: 4px solid #1ABC9C;
    box-shadow: -11px 20px 15px -6px rgba(0, 0, 0, 0.4);
    transition: .5s ease;
    backface-visibility: hidden;
}

.middle {
    transition: .5s ease;
    opacity: 0; /* 'invisble' */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    /* align-items: center; */
    text-align: center;
}

.my-pic:hover .image {
    opacity: 0.3;
}

.my-pic:hover .middle {
    opacity: 1;
}

.text {
    background-color: rgba(255, 255, 255, 0.74);
    /* color: white; */
    font-size: 16px;
}


.tech-stack {
    /* position: absolute; */
    width: 35%;
    /* background-color: blueviolet; */
    /* bottom: 29px; */
    line-height: 2.3;
}

.technologies {
    height: 50px;
    justify-content: space-between;
    display: flex; /* means, items in this container should line next to each other */
}

.technologies img {
  filter: drop-shadow(1px 3px 3px rgba(0,0,0,0.4));
}

/* project pages */

.project {
    min-height: 100vh;
    margin-top: 50px;
}

.project h3 {
    font-size: 48px;
    margin-bottom: 50px;
    font-weight: 600;
    letter-spacing: 0.02px;
    color: #c94057;
    text-align: center;
}

.project-title {
    letter-spacing: 1px;
    line-height: 70px;
    font-size: 30px;
    font-weight: 300;
}

.project p {
    font-size: 30px;
    color: #282C4A;
    text-align: right;
    /* letter-spacing: -1px; */
}


.proj-content {
   margin-top: 40px;
  display: flex;
  gap: 30px; /* space between text and image */
  align-items: center;
  align-items: flex-start; /* keeps them aligned at top */
}

.proj-content img {
    width: auto;
    height: 450px;
    border: 1px solid grey;
    border-radius: 8px;
    transition: .5s ease;
}

.proj-content img:hover {
    opacity: 0.8;
}

.text-wrapper {
    display: inline-block;
    width: 50%;
}

.project-info {
    margin-bottom: 100px;
}





.app-buttons {
    /* position: absolute; */
    width: 320px;
    /* height: 80px; */
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
}

.app-buttons a, button {
    position: relative;
    width: 150px;
    font-size: 16px;
    font-weight: 380;
    letter-spacing: 1px;
    font-family: "Source Serif 4", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: #282C4A;
    display: inline-flex;
    justify-content: center;
    height: 35px; /*made the difference in alignment*/
    background: transparent;
    border: 1.3px solid #282C4A;
    align-items: center; /*key to up/down alignment*/
    z-index: 1;
    transition: .5s;
    text-decoration: none;
    z-index: 1;
    cursor: pointer;
}

.app-buttons a::before, button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #c94057;
    z-index: -1;
    transition: .5s;
}

.app-buttons a:hover::before, button:hover::before {
    width: 100%;
}

.app-buttons a:hover, button:hover {
    color: white;
}

/* Overlay background */
.modal {
  display: none;           /* hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.8); */

  /* flex properties only matter when JS sets display: flex */
  justify-content: center;
  align-items: center;
}


/* Modal box */
.modal-content {
  position: relative;
  /* width: %; */
  max-width: 900px;
  height: auto;
  background: #000;
  border-radius: 20px;
  overflow: hidden; /* keeps video inside rounded corners */
  box-shadow: -11px 20px 15px -6px rgba(0, 0, 0, 0.5);
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}



/* honor societies section */
.honor-soc {
    margin-top: 80px;
    min-height: 120vh;
    background: url('my-bg-paint2.png') no-repeat;
    background-position: center;  /* centers it */
    background-size: cover;
    /* display: flex; */
    align-items: center;
    padding: 0 10%;
}

.honor-soc h3 {
    position: relative;
    top: 80px;
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.01px; 
    word-spacing: 0.1em; 
    
}

.society-wrapper {
   margin-top: 120px;
  display: flex;
  justify-content: space-around; /* spreads society blocks horizontally */
  align-items: flex-start;       /* align top of each block */
  width: 100%;
}

.society1, .society2 {
  display: flex;
  flex-direction: column;        /* stack image, line, text */
  align-items: center;           /* center line and text under image */
}

.society-badge {
    margin-top: 30px;
    height: 200px;
  filter: drop-shadow(0px 8px 4px rgba(0, 0, 0, 0.432));
}

.line {
  width: 10px;            /* thickness */
  height: 90px;         /* length */
  background-color: #282C4A; /* color */
  margin: 10px 20px;        /* spacing from image/text */
  border-radius: 2px;    /* optional rounded edges */
}

.soc-desc {
    padding: 0 150px;
    text-align: center;
    font-weight: 600;
    color: #000;
    font-size: 16px;
}

footer {
    position: relative;
    height: 100vh;
    background-color: #111322;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer h1.vk {
    font-size: 120px;
    font-family: "Inspiration", cursive;
    line-height: 100%;
    color: #fff;
    z-index: 2; /* keep it above footer-text */
}

.footer-text {
    position: absolute;
    top: 50%;           /* start just below VK's center line */
    width: 100%;
    height: 50%;        /* take up everything from VK down */
    display: flex;
    flex-direction: column;
    justify-content:space-between; /* vertical spacing now */
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 130px;
}

.footer-text .hi {
    font-size: 20px;
    border: 3px solid #fff;
    border-radius: 10px;
    /* padding: 0 40px; */
    width: 120px;
    height: 35px;
    font-weight: 900;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.credit {
    margin-bottom: 40px;
    font-style: "Source Serif 4", sans-serif;
}


/* fade up effect */
.project {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.project.in-view {
  opacity: 1;
  transform: translateY(0);
}




/* MOBILE STYLES */
@media (max-width: 768px) {
  /* Header adjustments */
  .header {
    padding: 20px 5%;
  }
  .header a {
    font-size: 16px;
    letter-spacing: 1px;
  }

  /* Big heading scaling */
  .heading {
    font-size: 6rem;
    line-height: 1.1;
  }

  /* Banner text */
  .home-text h3 {
    font-size: 32px;
  }

  .tech-stack {
    margin-top: 150px;
  }

  /* Buttons */
  .btn-box,
  .app-buttons {
    flex-direction: column;
    gap: 10px;
    width: auto;
  }
  .btn-box a,
  .app-buttons a,
  .app-buttons button {
    width: 100%;
    font-size: 14px;
  }

  /* Project section stacking */
  .proj-content {
    flex-direction: column;
    align-items: center;
  }
  .text-wrapper {
    width: 90%;
    text-align: center;
  }
  .proj-content img {
    height: auto;
    max-width: 90%;
  }

  /* Society section stacking */
  .society-wrapper {
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
  }
  .soc-desc {
    padding: 0 20px;
  }

  /* Footer adjustments */
  footer {
    padding: 50px 10%;
  }
  footer h1.vk {
    font-size: 60px;
  }
  .footer-text {
    padding-top: 80px;
  }

  /* Disable fade-up animation on mobile */
  .project {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Modal adjustments */
  .modal-content {
    width: 95%;
    max-width: 95%;
    height: auto;
  }
  .modal-content iframe {
    width: 100%;
    height: auto;
  }

  /* Other text scaling */
  body, p, h4, h3, h4, .soc-desc {
    font-size: calc(12px + 0.8vw);
  }
}
