/* ----------------------------------
   SAN NETWORK – Premium Website UI
---------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f7f9fc;
  color: #222;
  line-height: 1.6;
}



/* HEADER */
header {
    background: #F4F6FA;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    backdrop-filter: blur(12px);
}

header img {
  height: 100px;
  width: 100px;
  object-fit: contain;
  position: absolute;   /* Important */
  left: 30px;           /* Pushes logo to left side */
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0rem;
}

/* S PNG ON THE RIGHT OF BUTTON */
nav .admin img {
    width: 60px;
    height: 60px;
    margin-left: 10px;
    margin-top: -30px;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

/* Hover effect – subtle and premium */
nav .admin img:hover {
    transform: scale(1.15) rotate(5deg);
    opacity: 1;
}

/* Entrance animation */
nav .admin img {
    animation: fadeSlide 0.6s ease-out forwards;
    transform: translateY(-5px);
    opacity: 0;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* NAV CONTAINER */
header nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 60px;   /* Increase or decrease spacing here */
}

/* NAV LINKS */
header nav a {
  font-size: 25px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #4c7fff;
  position: relative;
  transition: 0.3s ease;
}
/* HOVER EFFECT */
header nav a:hover {
  color: #B78ABE;              /* Premium blue shade */
  text-shadow: 0 0 10px rgba(76, 127, 255, 0.4);
  transform: translateY(-2px);
}



/* Remove underline completely */
header nav a::after {
  display: none !important;
}

/* MOBILE HEADER FIX */
@media (max-width: 768px) {
  header {
    height: 70px;
    padding: 10px 20px;
    justify-content: space-between;
  }

  header img {
    height: 55px;
    width: auto;
    left: 0px;
  }

  header nav {
    gap: 10px;
    margin-left: 50px;
  }

  header nav a {
    font-size: 16px;
    margin: 0 5px;
  }
}

/* --- Desktop & General Styles --- */

header .right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

header .right .button {
    position: relative;
    /* CRITICAL: This clips the shine so it doesn't show outside the button */
    overflow: hidden; 
    background: #0052FF;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
    
    /* Ensures text sits on top of the shine */
    z-index: 1; 
}

header .right .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 82, 255, 0.45);
    background: #003ECC;
}

header .right .button:active {
    transform: scale(0.96);
}

/* The Shine Effect */
header .right .button::after {
    content: "";
    position: absolute;
    top: 0;
    /* Start specifically outside the left edge */
    left: -150%; 
    width: 100%;
    height: 100%;
    
    /* Tilted shine looks more premium */
    transform: skewX(-20deg); 
    
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4) 50%,
        transparent
    );
    
    /* Send shine behind the text but in front of background */
    z-index: -1; 
    transition: 0.5s;
}

/* On hover, slide the shine across to the right */
header .right .button:hover::after {
    left: 150%;
    transition: 0.7s ease-in-out;
}

/* --- Mobile Responsive Styles --- */

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 15px 20px;
        /* Ensures flex items wrap to new lines */
        flex-wrap: wrap; 
        gap: 15px;
    }

    /* 1. Logo Centers on top */
    header img {
        margin: 0 auto;
        display: block;
    }

    /* 2. Nav takes full width and centers */
    header nav {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    /* 3. Button container takes full width */
    header .right {
        order: 3;
        width: 100%;
        margin: 0;
        justify-content: center; /* Centers the button horizontally */
    }

    header .right .button {
        width: 150px; /* Optional: Makes button full width on mobile */
        max-width: 300px; /* Prevents it from getting too huge */
        text-align: center;
        padding: 12px 20px; /* Slightly larger touch target */
    }
}


#home {
      scroll-margin-top: 140px;   /* height of the header */
}

#services {
      scroll-margin-top: 140px;   /* height of the header */
}

#about {
  scroll-margin-top: 140px;
}

/* HERO SECTION */
.hero {
  height: 96vh;
  background: linear-gradient(to bottom right, #B78ABE, #4c7fff);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 7%;
  text-align: center;
  padding-top: 120px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.hero button {
  padding: 14px 35px;
  background: #4c7fff;
  border: none;
  color: #fff;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(183,138,190);
  transition: 0.3s;
}

.hero button:hover {
  background: #B78ABE;
  transform: translateY(-3px);
}

/* SECTIONS */
.section {
  padding: 100px 8%;
  text-align: center;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  background: linear-gradient(90deg, #B78ABE, #4c7fff);
  background-clip: text;                 /* NEW */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* MOBILE RESPONSIVE FIX */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 120px 5% 60px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero button {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .section {
    padding: 70px 6%;
  }

  .section h2 {
    font-size: 2rem;
    margin-bottom: 35px;
  }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero button {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .section h2 {
    font-size: 1.7rem;
  }
}

/* ABOUT SECTION */
.about-section {
  padding: 120px 8%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 850px;
  text-align: center;
  animation: fadeUp 1s ease;
}


/* TITLE */
.about h2 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;

  background: linear-gradient(90deg, #B78ABE, #4c7fff);
  background-clip: text;                 /* NEW */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* DESCRIPTION */
.about p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #3e3c3c;
  padding: 0 20px;
}

.about p span {
  font-weight: 600;
  background: linear-gradient(to right, #B78ABE, #4c7fff);
  background-clip: text;
  color: transparent;
}


/* ANIMATION */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* SERVICES */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 35px;
}

/* Box */
.service-box {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(76, 127, 255, 0.25);
  transition: 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Hover */
.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(183, 138, 190, 0.45);
}

/* Heading */
.service-box h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #4c7fff; /* Color will now reflect properly */
}


/* FOOTER */
footer {
  background: linear-gradient(to right, #B78ABE, #4c7fff);
  color: #fff;
  text-align: center;
  padding: 25px;
  margin-top: 50px;
}
/* OVERLAY */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeOverlay 0.4s ease;
}

/* POPUP BOX */
.popup {
  width: 92%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(22px);
  padding: 45px 35px;
  border-radius: 25px;

  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);

  animation: popupElite 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  color: #fff;
}

/* HEADER TEXT */
.popup h2 {
  margin-bottom: 20px;
  font-size: 1.9rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;

  color: #B78ABE;
  text-shadow: 0 2px 10px rgba(10,79,255,0.4);
}



/* INPUT FIELD */
.popup input,
.popup textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 16px;
  resize: none;
  border-radius: 14px;
  font-size: 1rem;

  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(110, 158, 237, 0.23);
  color: #fff;

  outline: none;
  transition: 0.3s;
}

.popup input::placeholder,
.popup textarea::placeholder {
  color: #e8e8e8;
}

.popup input:focus,
.popup textarea:focus {
  border-color: #91c9ff;
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 12px #bcdcff;
}

/* BUTTON */
.popup button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;

  background: linear-gradient(135deg, #4c7fff, #B78ABE);
  color: #fff;

  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 6px 20px rgba(79,172,254,0.35);
}

.popup button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79,172,254,0.55);
}

/* Close Button Styling */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  color: #333;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.close-btn:hover {
  background: #4c7fff;
  color: #fff;
  transform: scale(1.1);
}


/* ANIMATIONS */
@keyframes popupElite {
  0% {
    transform: translateY(40px) scale(0.93);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

