@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,700');

body {
  background: #ffffff;
  font-family: 'Source Sans Pro', sans-serif;
  overflow-x: hidden;
}

html,
body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

/*---------------------------------------
  TYPOGRAPHY              
-----------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300;
}

h1 {
  font-size: 40px;
  font-weight: 200;
  line-height: 50px;
}

h2 {
  font-size: 30px;
  line-height: 40px;
  margin-top: 0;
}

h3 {
  font-size: 20px;
  font-weight: bold;
  line-height: 32px;
}

h4 {
  color: #505050;
  font-size: 18px;
  line-height: 28px;
}

p {
  color: #757575;
  font-size: 16px;
  font-weight: 300;
  line-height: 29px;
  letter-spacing: 0.5px;
}

/* Cleaned final about-info h5 */
.about-info h5 {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 150px 0 0 0; /* adjust if too large */
  line-height: 32px;
  padding-top: 10px;
}

/*---------------------------------------
  BUTTONS               
-----------------------------------------*/

.section-btn {
  margin: 32px 0 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.section-btn a {
  display: inline-block;
  cursor: pointer;
  pointer-events: auto;
  color: #fff;
  text-decoration: none;
  font-weight: normal;
  line-height: 45px;
  perspective: 1000px;
}

/* Span inside the button */
.section-btn a span {
  position: relative;
  display: inline-block;
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 0.5px;
  padding: 0 25px;
  background: #4dc47d;
  border-radius: 1px;
  transition: transform 0.3s;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}

/* 3D hover effect for button */
.csstransforms3d .section-btn a span::before {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 1px;
  color: #ffffff;
  padding: 0 25px;
  content: attr(data-hover);
  transition: background 0.3s;
  transform: rotateX(-90deg);
  transform-origin: 50% 0;
}

.section-btn a:hover span,
.section-btn a:focus span {
  transform: rotateX(90deg) translateY(-22px);
}

.csstransforms3d .section-btn a:hover span::before,
.csstransforms3d .section-btn a:focus span::before {
  background: #000000;
}

/* Added focus styles to avoid black button on focus */
.section-btn a:focus {
  outline: none;
}

.section-btn a:focus span::before {
  background: #4dc47d !important;
}

/*---------------------------------------
  GENERAL               
-----------------------------------------*/

html {
  -webkit-font-smoothing: antialiased;
}

a {
  color: #4dc47d;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

a:hover,
a:active,
a:focus {
  color: #000000;
  outline: none;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*:before,
*:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  cursor: pointer;
  background: #252525;
}

.section-title {
  position: relative;
  padding-bottom: 22px;
}
.section-title p {
  color: #333333; /* Dark text */
  font-size: 16px;
  font-weight: 300;
  line-height: 29px;
  letter-spacing: 0.5px;
  margin-top: 15px;
}


.parallax-section {
  background-attachment: fixed !important;
  background-size: cover !important;
}

#about,
#project,
#team,
#contact,
footer {
  background: #ffffff;
}

#about,
#team,
#contact {
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
}

/*---------------------------------------
  PRE LOADER              
-----------------------------------------*/

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  background: #ffffff;
}

.spinner {
  border: 1px solid transparent;
  border-radius: 5px;
  position: relative;
}

.spinner:before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 45px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 1px solid #959595;
  border-top-color: #ffffff;
  animation: spinner .9s linear infinite;
}

@-webkit-keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/*---------------------------------------
  MENU             
-----------------------------------------*/

.custom-navbar {
  margin-bottom: 0;
  background-color: #4dc47d;
  padding: 20px 0;
}

.custom-navbar .navbar-brand {
  color: #f9f9f9;
  font-weight: normal;
  font-size: 25px;
}

.custom-navbar .nav li a {
  font-size: 14px;
  font-weight: normal;
  color: #f9f9f9;
  letter-spacing: 0.5px;
  -webkit-transition: all ease-in-out 0.4s;
  transition: all ease-in-out 0.4s;
  padding: 0;
  margin: 15px 20px;
  text-transform: uppercase;
  position: relative;
}

.custom-navbar .navbar-nav>li>a:hover,
.custom-navbar .navbar-nav>li>a:focus {
  background-color: transparent;
  color: #ffffff;
}

.custom-navbar .navbar-nav li a:after {
  content: "";
  position: absolute;
  display: block;
  width: 0px;
  height: 2px;
  margin: auto;
  background: transparent;
  transition: width .3s ease, background-color .3s ease;
  bottom: 0;
  left: 0;
  right: 0;
}

.custom-navbar .navbar-nav li a:hover:after,
.custom-navbar .nav li.active>a:after {
  background: #ffffff;
  color: #ffffff;
  width: 100%;
}

.custom-navbar .nav li.active>a {
  background-color: transparent;
  color: #ffffff;
}

.custom-navbar .navbar-toggle {
  border: none;
  padding-top: 10px;
  background-color: transparent;
}

.custom-navbar .navbar-toggle .icon-bar {
  background: #ffffff;
  border-color: transparent;
}

@media(min-width:768px) {
  .custom-navbar {
    background: transparent;
  }

  .custom-navbar.top-nav-collapse {
    background: #4dc47d;
    padding: 15px 0;
  }
}

/*---------------------------------------
  HOME             
-----------------------------------------*/

#home {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 10em;
  cursor: pointer;
  overflow: hidden;
}

/* Hide text by default */
#home h1,
#home p {
  color: rgba(255, 255, 255, 0);
  transition: color 0.5s ease;
  pointer-events: none;
}

#home:hover h1,
#home:hover p {
  color: #ffffff;
  pointer-events: auto;
}

#home .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

#home video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
  transition: opacity 1s;
}

#home .home-text {
  position: relative;
  z-index: 10;
}

/*---------------------------------------
  ABOUT              
-----------------------------------------*/

#about {
  padding-top: 200px;
  padding-bottom: 150px;
}

.about-info h3 {
  font-size: 14px;
  letter-spacing: 12px;
  text-transform: uppercase;
  margin: 0;
}

/*---------------------------------------
  PROJECT              
-----------------------------------------*/

.project-item {
  overflow: hidden;
  position: relative;
  margin-bottom: 25px;
  padding: 0;
  vertical-align: middle;
  text-align: center;
}

.project-overlay {
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  -webkit-transition: all ease-in-out 0.4s;
  transition: all ease-in-out 0.4s;
}

.project-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

.project-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all ease-in-out 0.4s;
}

.project-item:hover img {
  transform: scale(1.1);
}

.project-overlay h1 {
  color: #ffffff;
  margin: 0;
}

.project-overlay h3 {
  color: #d9d9d9;
  font-size: 14px;
  letter-spacing: 0.2px;
  margin-top: 0;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay h1,
.project-overlay h3 {
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/*---------------------------------------
   TEAM             
-----------------------------------------*/

#team .item {
  display: block;
  width: 100%;
  margin-bottom: 22px;
}

#team h3,
#team p {
  margin: 0;
}

.team-item {
  overflow: hidden;
  position: relative;
  margin-top: 34px;
  margin-bottom: 16px;
}

.team-item img {
  -webkit-transition: all ease-in-out 0.4s;
  transition: all ease-in-out 0.4s;
}

.team-item:hover img {
  transform: scale(1.1);
  cursor: pointer;
}

.team-overlay {
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-transition: all ease-in-out 0.4s;
  transition: all ease-in-out 0.4s;
}

.team-overlay .social-icon {
  position: relative;
  top: 45%;
}

.team-overlay .social-icon li a {
  background: #ffffff;
  color: #191919;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
}

.team-item:hover .team-overlay {
  opacity: 0 !important;
  pointer-events: none;
}

/*---------------------------------------
  CONTACT             
-----------------------------------------*/

#contact {
  background: url('../images/contact-bg.jpg') 50% 0 repeat-y fixed;
  background-size: cover;
  background-position: center center;
  text-align: center;
}

#contact-form {
  padding-top: 22px;
}

#contact .text-success,
#contact .text-danger {
  display: none;
  padding: 0 0 5px 20px;
}

#contact .form-control {
  border: none;
  box-shadow: none;
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 22px;
  -webkit-transition: all ease-in-out 0.4s;
  transition: all ease-in-out 0.4s;
}

#contact .form-control:focus {
  border-color: #d9d9d9;
}

#contact input {
  height: 55px;
  line-height: 45px;
}

#contact .section-btn {
  margin: 5px 0 0 0;
}

#contact button#cf-submit {
  display: block;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0 20px;
  line-height: 50px;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease, border 0.3s ease;
  text-align: center;
}

#contact button#cf-submit:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/*---------------------------------------
  FOOTER              
-----------------------------------------*/

#footer {
  background-color: purple;
  color: #eee;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Source Sans Pro', sans-serif;
}

#footer-top {
  max-width: 1000px;
  margin: 0 auto;
}

#footer #logo {
  font-size: 2.2em;
  font-weight: 700;
  color: #ffcc00;
  margin-bottom: 20px;
}

#footer-summary {
  font-size: 1em;
  color: #ccc;
  line-height: 1.7;
  margin: 0 auto 20px;
  padding: 0 10px;
  max-width: 600px;
}

#footer-contact p {
  margin: 5px 0;
  font-size: 0.95em;
  color: #aaa;
}

#footer-socials {
  margin-top: 25px;
}

#footer-socials a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

#footer-socials img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  filter: grayscale(40%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

#footer-socials a:hover img {
  transform: scale(1.15);
  filter: none;
}

/*---------------------------------------
  RESPONSIVE FOOTER
-----------------------------------------*/

@media (max-width: 768px) {
  #footer-summary {
    font-size: 0.95em;
    padding: 0 15px;
  }

  #footer #logo {
    font-size: 1.8em;
  }

  #footer-socials img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  #footer #logo {
    font-size: 1.5em;
  }

  #footer-summary {
    font-size: 0.9em;
  }

  #footer-socials a {
    margin: 0 6px;
  }

  #footer-contact p {
    font-size: 0.85em;
  }
}

/*---------------------------------------
  SOCIAL ICON             
-----------------------------------------*/

.social-icon {
  position: relative;
  padding: 0;
  margin: 0;
  text-align: center;
}

.social-icon li {
  display: inline-block;
  list-style: none;
}

.social-icon li a {
  border-radius: 100%;
  color: #292929;
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
  -webkit-transition: all ease-in-out 0.3s;
  transition: all ease-in-out 0.3s;
  text-align: center;
  position: relative;
  margin: 4px 8px 0 8px;
}

.social-icon li a:hover {
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}

/*---------------------------------------
  MOBILE RESPONSIVE              
-----------------------------------------*/

@media (max-width: 992px) {
  #home h1 {
    font-size: 4em;
    line-height: normal;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 30px;
    line-height: inherit;
  }

  #home {
    padding-top: 0em;
  }

  #about {
    padding-top: 120px;
    padding-bottom: 100px;
  }

  .project-info {
    padding: 4em 0;
  }

  footer {
    text-align: center;
  }

  footer .social-icon {
    margin-top: 32px;
  }
}

@media (max-width: 770px) {
  #home h1 {
    font-size: 3.5em;
  }
}

@media (max-width: 767px) {
  .custom-navbar {
    padding: 10px 0;
  }

  .custom-navbar .nav li a {
    display: inline-block;
    line-height: 15px;
    margin-bottom: 0;
  }

  .custom-navbar .nav li:last-child a {
    margin-bottom: 5px;
  }

  .project-info {
    padding: 10em 0;
  }

  .footer-info {
    padding: 22px 0 22px 0;
  }
}

@media (max-width: 580px) {
  h1 {
    font-size: 26px;
  }

  #home {
    height: 100vh;
  }

  .about-info h3 {
    font-size: 12px;
    letter-spacing: 6px;
  }

  .project-info {
    padding: 5em 0;
  }
}

#contact .section-title h1 {
  color: #ffffff;
}
/* Project link styling within team section */
#team .team-item h3 a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4dc47d;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 15px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#team .team-item h3 a:hover {
  background-color: #3ab56c;
  transform: scale(1.05);
}


/* Adjust paragraph spacing */
#team .team-item p {
  margin: 12px 0 10px;
  font-size: 14px;
  color: #555;
}

.project-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: nowrap;
}
.project-button {
  background-color: #4dc47d;
  color: white;
  border: none;
  padding: 10px 24px;
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(77, 196, 125, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
  user-select: none;
}

.project-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(77, 196, 125, 0.7);
}


.project-button:hover,
.project-button:focus {
  background-color: #3ab56c;
  transform: scale(1.12);
  box-shadow: 0 6px 15px rgba(58, 181, 108, 0.7);
  outline: none;
}

.project-button:active {
  transform: scale(1);
  box-shadow: 0 2px 6px rgba(58, 181, 108, 0.5);
}
/* Contact Section Overlay */
#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* Elevate content above overlay */
#contact {
  position: relative;
  z-index: 1;
}

#contact .container {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

/* Enhanced Submit Button Animation */
#contact button#cf-submit {
  display: block;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0 24px;
  line-height: 50px;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

#contact button#cf-submit:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

#contact button#cf-submit span::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.5s;
}

#contact button#cf-submit:hover span::before {
  left: 100%;
}



