/* ================= HEADER + NAV (CLEAN) ================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins', sans-serif;
}

html{ scroll-behavior:smooth; }
section{ scroll-margin-top:140px; }

/* Body gap for fixed header+nav */
body{
  padding-top:140px; /* header (70~80) + nav (50~60) */
}

/* ---------------- HEADER (Fixed) ---------------- */
header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 50px;
  border-bottom:1px solid #eee;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  z-index:9999;
  transition: transform 0.3s ease; /* for hide/show */
}

/* LEFT LOGO */
.header-left .logo img{
  height:60px;
  width:auto;
  object-fit:contain;
}
.header-left .logo a{
  display:inline-block;
  cursor:pointer;
}

/* RIGHT */
.header-right{
  display:flex;
  align-items:center;
  gap:25px;
}

/* CONTACT */
.contact-links{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
}
.header-link{
  text-decoration:none;
  color:#333;
  transition:0.3s ease;
  white-space:nowrap;
}
.header-link:hover{ color:#0077b5; }
.divider{ color:#aaa; }

/* SOCIAL */
.social{
  display:flex;
  align-items:center;
  gap:10px;
}
.social a{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#fff;
  font-size:14px;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.social a:hover{
  transform:translateY(-3px);
  box-shadow:0 5px 12px rgba(0,0,0,0.2);
}
.social .linkedin{ background:#0077b5; }
.social .instagram{ background:#e4405f; }
.social .facebook{ background:#1877f2; }
.social .twitter{ background:#000000; }

/* ---------------- NAV (Fixed under header) ---------------- */
.main-nav{
  position:fixed;
  top:80px;             /* header height */
  left:0;
  width:100%;
  background:rgb(102, 9, 102);
  z-index:9998;
  padding:0;
  transition: transform 0.3s ease; /* for hide/show */
}

.menu{
  list-style:none;
  display:flex;
  justify-content:center;
  margin:0;
  padding:0 30px;
}

.menu-item{
  position:relative;
  padding:16px 22px;
}

.menu-item a{
  color:#ffffff;
  text-decoration:none;
  font-size:16px;
  font-weight:500;
  transition:0.3s ease;
}

.menu-item:hover > a{
  color:#ffd700;
}

/* arrow */
.arrow{
  color:#ffffff;
  font-size:10px;
  margin-left:6px;
  vertical-align:middle;
}

/* dropdown */
.submenu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  background:#ffffff;
  min-width:240px;
  box-shadow:0 8px 16px rgba(0,0,0,0.2);
  z-index:10000;
  padding:10px 0;
  border-radius:8px;
}

.menu-item:hover .submenu{
  display:block;
}

.submenu li{ list-style:none; }

.submenu li a{
  color:#333;
  padding:10px 20px;
  display:block;
  font-size:14px;
}

.submenu li a:hover{
  background:#f1f1f1;
  color:#5c0a5c;
}

/* ---------------- Scroll Hide/Show ---------------- */
body.hide-topbar header{
  transform: translateY(-100%);
}
body.hide-topbar .main-nav{
  transform: translateY(-100%);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 992px){
  header{
    padding:12px 18px;
  }

  .header-right{
    display:none; /* mobile clean */
  }

  .main-nav{
    top:72px;
  }

  body{
    padding-top:130px;
  }

  .menu{
    flex-direction:column;
    padding:10px 0;
  }

  .submenu{
    position:relative;
    box-shadow:none;
    min-width:100%;
  }

  .menu-item:hover .submenu{
    display:none; /* hover off in mobile (JS toggle use) */
  }

  .menu-item.open .submenu{
    display:block;
  }
}


/* ===== Disable custom cursor on mobile/touch ===== */
@media (max-width: 992px){
  .cursor, .cursor-dot{
    display:none !important;
  }
}

/* Touch devices (phone/tablet) */
@media (hover: none){
  .cursor, .cursor-dot{
    display:none !important;
  }
}


/* --- Desktop Styles (Keep your current ones, but ensure this) --- */
.menu-toggle {
    display: none; /* Hide hamburger on desktop */
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
}

/* --- Mobile & Tablet Styles --- */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block; /* Show hamburger */
        background: whitesmoke;
        text-align: right;
    }

    .menu {
        display: none; /* Hide menu by default */
        flex-direction: column;
        width: 100%;
        background-color: rgb(102, 9, 102);
        color: white;
    }

    .menu.active {
        display: block; /* Show menu when clicked */
    }

    .menu-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    /* Submenu styling for mobile */
    .submenu {
        display: none; 
        position: static; /* Make it flow naturally below the parent */
        width: 100%;
        box-shadow: none;
    }

    .menu-item.open .submenu {
        display: block; /* Show submenu when parent is clicked */
    }

    .arrow {
        float: right;
        transition: transform 0.3s;
    }

    .menu-item.open .arrow {
        transform: rotate(90deg); /* Rotate arrow when open */
    }
}

.services-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap:20px;
  padding:30px;
}

.service-card{
  background:#fff;
  border-radius:18px;
  padding:28px 22px;
  font-size:20px;
  font-weight:500;
  color:#333;
  text-align:left;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,.15);
  transition:.3s ease;
  position:relative;
}

.service-card::after{
  content:"→";
  position:absolute;
  right:22px;
  top:50%;
  transform:translateY(-50%);
  font-size:22px;
  opacity:.6;
}

.service-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,0,0,.25);
}

/* ===== Footer Styles ===== */
footer {
  background-color: rgb(102, 9, 102);
  color: #fff;
  padding: 40px 12%;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-about, .footer-links, .footer-contact {
  flex: 1 1 250px;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
}

.footer-about p,
.footer-contact p {
  font-size: 14px;
  line-height: 1.5;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #a9c8ff;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  padding: 20px 0;
}

/* Icon Style */
.footer-social a {
  position: relative;
  font-size: 20px;
  color: whitesmoke;
  text-decoration: none;
  transition: 0.3s ease;
}

/* Underline animation */
.footer-social a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #22d3ee);
  transition: 0.4s ease;
}

.footer-social a:hover::after {
  width: 100%;
}

/* Hover effects */
.footer-social a:hover {
  transform: translateY(-4px);
}

/* Brand colors on hover */
.footer-social a:nth-child(1):hover { color: #0A66C2; }
.footer-social a:nth-child(2):hover { color: #E1306C; }
.footer-social a:nth-child(3):hover { color: #1877F2; }
.footer-social a:nth-child(4):hover { color: #000000; }
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #dddee1;
  padding-top: 15px;
  font-size: 14px;
  color: whitesmoke;
}

/* Responsive */
@media(max-width:768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
}

.footer-location{
  display:inline-block;
  margin-top:10px;
  color:#4da3ff;
  text-decoration:none;
  font-weight:500;
}

.footer-location:hover{
  text-decoration:underline;
}

.map-preview{
  width:100%;
  max-width:260px;
  border-radius:12px;
  margin-bottom:10px;
  border:1px solid rgba(255,255,255,0.2);
}


.footer-bottom-note{
  margin-top: 18px;
  padding: 14px 16px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom-note strong{
  font-weight: 800;
  color: #ffd166;  /* highlight color */
}













/* =======================
   CUSTOM CURSOR
======================= */
.cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 2px solid rgb(102, 9, 102);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: 0.1s ease-out;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: rgb(102, 9, 102);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

a:hover ~ .cursor,
button:hover ~ .cursor {
  transform: translate(-50%, -50%) scale(1.3);
}
