/* =========================
   VARIABLES
   ========================= */
:root {
    --hero-image: url("../images/15.jpg");
    --accent: #934f4f;
    --dark: #111;
    --white: #fff;
}

/* =========================
   GLOBAL RESET
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lora', serif;
  background: #000;
  color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   HERO SECTION
   ========================= */

/* Fixed container for email and phone */
.fixed-contact {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  z-index: 9999; /* make sure it stays on top */
  pointer-events: none; /* only allow clicks on links inside */
}

/* Email link (top-left) */
.fixed-contact .contact-email {
  color: var(--white);
  font-weight: bold;
  text-decoration: none;
  pointer-events: auto;
}

/* Phone link (top-right) */
.fixed-contact .contact-phone {
  color: var(--white);
  font-weight: bold;
  text-decoration: none;
  pointer-events: auto;
}

/* Optional hover effect */
.fixed-contact a:hover {
  color: var(--accent); /* #934f4f */
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
}

/* Header container */
.site-header {
    width: 100%;
    text-align: center;      /* Centers the logo horizontally */
    padding: 20px 0;         /* Optional: adds space above and below */
    position: relative;      /* Keeps it in normal flow */
    background-color: #fff;  /* Optional: set a background color if needed */
    z-index: 1000;           /* Ensures it stays above other elements */
}

/* Logo image */
.site-header .logo {
    max-width: 200px;        /* Adjust the logo size */
    height: auto;            /* Maintain aspect ratio */
}

.hero {
  position: relative;
  height: 95vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000; /* fallback */
}

/* =========================
   FRAGMENTS (Animated background)
   ========================= */
.fragment {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
  animation: fragmentCycle 10s ease-in-out infinite;
}

.fragment1 { clip-path: polygon(0 0, 60% 0, 50% 40%, 0 30%); animation-delay: 0.2s; }
.fragment2 { clip-path: polygon(60% 0, 100% 0, 100% 40%, 50% 40%); animation-delay: 0.6s; }
.fragment3 { clip-path: polygon(0 30%, 50% 40%, 40% 100%, 0 100%); animation-delay: 1s; }
.fragment4 { clip-path: polygon(50% 40%, 100% 40%, 100% 100%, 40% 100%); animation-delay: 1.4s; }
.fragment5 { clip-path: polygon(20% 20%, 80% 30%, 70% 70%, 30% 80%); animation-delay: 1.8s; }

@keyframes fragmentCycle {
  0%   { opacity: 0; transform: scale(1.25); }
  10%  { opacity: 1; transform: scale(1); }
  45%  { opacity: 1; transform: scale(1); }
  55%  { opacity: 0; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(0.9); }
}

/* =========================
   HERO TEXT
   ========================= */
.hero-text-explore {
  position: absolute;
  bottom: 4rem;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text-explore-pg {
  margin-top: 3rem;
}

.explore-btn-wrap-pg {
  margin-top: 1rem;
}

.hero-text.show,
.hero-text-explore.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.hero-text h1,
.hero-text-explore h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-text p,
.hero-text-explore p {
  font-size: 1.2rem;
  opacity: 0.95;
  line-height: 1.5;
}

/* =========================
   HERO GROUPS
   ========================= */
.group-1,
.group-2 {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  margin-bottom: 1rem; /* default spacing for desktop */
}

.group-1.active, 
.group-2.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   EXPLORE BUTTON
   ========================= */
.explore-btn-wrap {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease, transform 400ms ease;
  width: 100%;
  display: flex;
  justify-content: center;
}

.explore-btn-wrap.show {
  opacity: 1;
  transform: translateY(0);
}

.explore-btn {
  display: inline-block;
  padding: 14px 38px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #000);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.explore-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 48px rgba(0,0,0,0.5);
}

.explore-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: oklch(100% 0.00011 271.152 / 0.18);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.explore-btn:hover::after {
  left: 130%;
}

/* =========================
   SERVICES CAROUSEL
   ========================= */
.services-carousel {
  height: 5vh;
  width: 100%;
  background: #111;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.services-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: scroll 40s linear infinite;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.service-item {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  gap: 10px;
  align-items: center;
}

.service-item svg {
  width: 25px;
  height: 40px;
  stroke: var(--accent);
  transition: stroke 0.3s ease;
}

/* =========================
   LOGO COLORS
   ========================= */
.logo-colr1 { color: #fff; }
.logo-color-orange { color: var(--accent); }

/* =========================
   FRAGMENTS POINTER FIX
   ========================= */
.fragment {
  pointer-events: none;
}

/* =========================
   HELPER TEXT CLASSES
   ========================= */
.welcome-msg,
.group-2 h2,
.hero-description {
    width: 100%;
    max-width: 100%;
    line-height: 1.3;
    text-align: center;
}

/* =========================
   SEO HIDDEN TEXT
   ========================= */
.seo-h1 {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================
   HERO TEXT RESPONSIVENESS
   ========================= */
.hero-text-explore {
    display: block; /* default desktop */
}

/* =========================
   MEDIA QUERIES
   ========================= */

/* Large tablets & below */
@media (max-width: 992px) {
  .hero-text h1, .hero-text-explore h1 { font-size: 2.5rem; }
  .hero-text p, .hero-text-explore p { font-size: 1.1rem; }

  /* BOTH GROUPS: 1rem spacing from button */
  .hero-text-explore .group-1 + .explore-btn-wrap,
  .hero-text-explore .group-2 + .explore-btn-wrap {
      margin-top: 1rem;
  }
}

/* Tablets & mobile */
@media (max-width: 768px) {
  .hero-text h1, .hero-text-explore h1 { font-size: 2rem; }
  .hero-text p, .hero-text-explore p { font-size: 1rem; }
  .explore-btn { padding: 12px 32px; font-size: 1rem; }

  /* HERO TEXT FLEX FOR MOBILE */
  .hero-text-explore {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 100vh;
      text-align: center;
      padding: 0 1rem;
  }

  /* Remove extra margin from groups */
  .hero-text-explore .group-1,
  .hero-text-explore .group-2 {
      margin-bottom: 0;
  }

  /* BOTH GROUPS: exact 1rem spacing from button */
  .hero-text-explore .group-1 + .explore-btn-wrap,
  .hero-text-explore .group-2 + .explore-btn-wrap {
      margin-top: 1rem;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .services-track { animation: scroll 60s linear infinite; }
  .service-item { gap: 5px; font-size: 0.85rem; }
  .explore-btn { padding: 10px 28px; font-size: 0.95rem; }
  .hero-text h1, .hero-text-explore h1 { font-size: 1.8rem; }
  .hero-text p, .hero-text-explore p { font-size: 0.9rem; }

  /* BOTH GROUPS: exact 1rem spacing from button */
  .hero-text-explore .group-1 + .explore-btn-wrap,
  .hero-text-explore .group-2 + .explore-btn-wrap {
      margin-top: 1rem;
  }
}

/* Desktop only text centering */
@media (min-width: 769px) {
  .hero-text-explore h2.text-center,
  .welcome-msg {
      text-align: center;
  }
}


.full-stack-txt{
  margin-bottom: 2rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #934f4f;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #ffffff;
    color: #934f4f;
}

.web-finger {
    position: absolute;
    bottom: calc(100% + 2rem);
    left: 50%;
    transform: translateX(-50%);
    transform-origin: 30px 20px;
    opacity: 0;
}

/* Only runs when JS adds .swing */
.web-finger.swing {
    animation: molecularSwing 3s cubic-bezier(.65,-0.8,.2,1.6);
}

@keyframes molecularSwing {

    0%   { opacity: 1; transform: translateX(-50%) rotate(-18deg); }
    20%  { transform: translateX(-50%) rotate(24deg); }
    40%  { transform: translateX(-50%) rotate(-14deg); }
    60%  { transform: translateX(-50%) rotate(12deg); }
    80%  { transform: translateX(-50%) rotate(-6deg); }
    100% { opacity: 0; transform: translateX(-50%) rotate(0deg); }

}