/* =========================================================
   GLOBAL RESET / PAGE CONSTRAINTS
   ========================================================= */



/* Lock page width */
html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

html {
  /* Smooth scrolling for anchor links */
  scroll-behavior: smooth;

  /* Optional layout settings
  scroll-padding-top: 22rem;
  height: 100%;
  overflow-x: hidden;
  */

  margin: 0;
  padding: 0;
  width: 100%;
  overscroll-behavior-y: none;
}

/* Root layout wrapper to prevent horizontal overflow */
.site-wrapper {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
}

.body {
  background-color: white;
  overscroll-behavior-y: none;
  padding-top: 100px;
  margin: 0;

  display: flex;
  flex-direction: column;

  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   WELCOME / HERO SECTION
   ========================================================= */

.welcome {
  z-index: 1;
  height: calc(102vh - 85px);
  margin-top: -30px;
  width: 100%;

  background-image: url('../../src/assets/images/black_hero.webp');
  background-size: cover;
  background-position: center center;

  /* Center content */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  box-shadow: 0px 10px 20px rgb(255, 255, 255);
  position: relative;
}

/* Gradient overlay for hero background */
.welcome::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;

  background: linear-gradient(to right, #1b1b1b, #252525);

  opacity: 0.60;
  z-index: 1;
}

/* Main hero text */
.welcome-statement {
  font-family: Helvetica;
  font-style: italic;
  text-align: center;
  font-size: 48px;
  color: rgb(255, 255, 255);
  z-index: 3;
}

/* Highlighted animated word */
.highlight-word {
  font-size: 60px;
  background: linear-gradient(90deg, #ffffff, #c3c3c3);
  font-style: normal;
  background-size: 200% 200%;

  animation: pulse 12s ease infinite;

  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shared gradient animation */
@keyframes pulse {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.vision {
  font-size: 20px;
  color: rgb(255, 255, 255);
  text-align: center;
  max-width: 550px;
  z-index: 5;
}

/* Glass hero container */
.hero-content {
  z-index: 2;

  background: rgba(127, 127, 127, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.3);

  padding: 2rem;
  border-radius: 15px;

  text-align: center;
  color: #ffffff;

  width: 90%;
  max-width: 875px;

  padding: 2vmin;
  margin: 20px auto;

  box-sizing: border-box;
}


/* =========================================================
   INTRO SECTION
   ========================================================= */

.text-block {
  width: auto;
  margin-left: 20px;

  border-bottom: 2.5px solid rgb(0, 0, 0, .3);

  margin: 0px;
}

/* Animated section title */
.gradient-text {
  font-size: 45px;
  background: linear-gradient(90deg, #1d3557, #fba8d5);
  background-size: 200% 200%;

  animation: pulse 12s ease infinite;

  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro {
  margin-top: 120px;
  margin-bottom: 120px;

  height: 50vh;

  display: flex;
  justify-content: space-evenly;

  padding: 10px 0px;

  /* Optional debug border
border: 1px dotted black;
*/
}

.text-int {
  font-size: 20px;
}


/* =========================================================
   COMPANY STATS
   ========================================================= */

.company-stats {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;

  gap: 2vmin;
  width: 100%;
}

#intro-stats {
  float: left;
  gap: 100px;
}

.stat {
  font-size: clamp(1.8rem, 8vw, 4rem);
  margin: 0;
  line-height: 1;
  font-weight: 800;
}

.company-stats h3 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin: 0.5em 0;
}

.company-stats h4 {
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  opacity: 0.8;
}



/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {
  margin-top: 205px;
  padding: 50px;

  background-color: rgb(249, 250, 251);
}


/* =========================================================
   MISSION SECTION
   ========================================================= */

.sunexcore-mission {

  box-shadow: 5px 10px 5px black;
  max-width: 300px;

  margin: 40px;
  text-align: center;

  background-color: white;
}


/* =========================================================
   SERVICES CAROUSEL
   ========================================================= */

.service-content {

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100dvh;

  z-index: 1;

  background-color: rgb(249, 250, 251);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#services-header {
  padding-top: 75px;
}

.services {

  position: relative;

  width: 500px;
  height: 600px;

  display: flex;

  justify-content: center;
  align-items: center;

  perspective: 1300px;

  touch-action: pan-y;
}

.ring {
  width: 100%;
  height: 100%;

  transform-style: preserve-3d;

  cursor: grab;
}


/* Individual service cards */
.service {

  position: absolute;

  height: 600px;
  width: 550px;

  background-color: #fbfbfb;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);

  border-radius: 10px;

  backface-visibility: hidden;

  background-size: cover;
  background-position: center;

  transform-origin: center;
}


/* Prevent image dragging */
.container,
.ring,
.img {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.img {
  pointer-events: none;
}


/* Service image */
.image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.service ul {
  list-style: none;
}


/* =========================================================
   SERVICE CARD CONTENT
   ========================================================= */

.service-info {

  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  list-style: none;
  box-sizing: border-box;
  flex-grow: 1;
}

.service-info h1 {

  font-size: 30px;
  font-weight: 800;
  margin: 0;
  text-decoration: underline;
  letter-spacing: -0.5px;
  filter: drop-shadow(0px 2px 2px rgba(29, 53, 87, 0.057));
}

.service-info p {

  font-size: 22px;
  font-weight: 600;
  color: #000000;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.project-description {

  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-description li h5 {

  margin: 0;
  font-size: 22px;
  align-items: center;
}


/* =========================================================
   DEPLOYMENT STATUS
   ========================================================= */

.deployment-status {

  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid #eaeaea;
}

.deployment-status p {

  font-size: 24px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-dot {

  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.live {

  background-color: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-dot.dev {

  background-color: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button-group {
  margin-top: 10px;

  display: flex;

  gap: 10px;
}

.btn-primary,
.btn-secondary {

  padding: 10px 18px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  flex: 1;
  transition: 0.3s;
}

.btn-primary {
  background: #000000;
  color: white;
}

.btn-secondary {
  background: #f1f1f1;
  color: #000000;
  border: 1px solid #ddd;
}

.btn-primary:hover {
  background: #323232;
}

.theme-toggle {
  background: none;
  border: none;
  margin-left: 40px;
  /* padding: 0;
  margin: 0;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer; */
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact {

  width: auto;

  color: white;

  height: auto;

  display: flex;

  flex-direction: column;

  align-items: center;

  padding: 50px;

  background-color: rgb(249, 250, 251);
}

.main-contact-title {

  color: #3a507a;

  margin-bottom: 30px;

  font-size: 2em;

  font-style: italic;

  text-align: center;
}

.main-contact-paragraph {

  color: #3a507a;

  margin-bottom: 30px;

  font-style: italic;

  max-width: 700px;

  font-size: 20px;

  text-align: center;
}

.contact-wrapper {

  display: flex;

  flex-direction: row;

  justify-content: space-evenly;

  align-items: flex-start;

  width: 100%;

  gap: 50px;
}

.contact-container {

  width: 55%;

  height: 100%;

  background: linear-gradient(to right, #7f899d, #1D3557);

  align-items: center;

  border-radius: 10px;

  box-shadow: inset 10px 10px 5px rgba(0, 0, 0, 0.5);

  padding-left: 40px;
}


/* =========================================================
   FORM INPUTS
   ========================================================= */

#name,
#email {

  width: 92%;

  height: 30px;

  border-radius: 5px;

  border-style: none;

  background-color: #e4edfd;
}

#subject {

  width: 96%;

  height: 30px;

  border-radius: 5px;

  border-style: none;

  background-color: #e4edfd;
}

#message {

  width: 96%;

  height: 300px;

  border-radius: 5px;

  border-style: none;

  background-color: #e4edfd;
}

.form-row {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  font-family: sans-serif;

  font-size: 15px;
}

.form-group {

  width: 100%;

  margin-top: 15px;
}


/* =========================================================
   SCROLL ICON ANIMATION
   ========================================================= */

.scroll-icon img {

  width: 75px;

  height: 75px;

  animation-name: slide;

  animation-duration: 3.5s;

  animation-iteration-count: infinite;

  animation-direction: alternate;

  animation-timing-function: ease-in-out;
}

@keyframes slide {

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100px);
  }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1920px) {

  .service-content {
    padding-top: 65px;
  }

}


@media (max-width: 800px),
(max-height: 700px) {

  .service-content {

    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .services {

    height: auto;
    perspective: none;
    width: 100%;
  }

  .ring {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    transform: none !important;
  }

  .service {

    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 0;
    transform: none !important;
  }

  .btn-primary,
  .btn-secondary {

    font-size: 10px !important;
  }

  .scroll-icon img {

    visibility: hidden;
  }
  .theme-toggle {
  background: none;
  border: none;
  margin-left: 0px;
  
}
}


/* Firefox fallback */
@supports (-moz-appearance: none) {

  .service-content {

    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .services {

    height: auto;
    perspective: none;
    width: 100%;
  }

  .ring {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    transform: none !important;
  }

  .service {

    position: relative;
    width: 90%;
    max-width: 380px;
    margin: 0;
    transform: none !important;
  }

  .btn-primary,
  .btn-secondary {

    font-size: 10px !important;
  }

  .scroll-icon img {

    visibility: hidden;
  }
}