body {
    background-color: #0a0a1a;
    color: white;
    text-align: center;
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 100px;
}


/* ================= NAVBAR ================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
    background: rgba(0,0,0,0.7);
    position: fixed;
    width: 100%;
    top: 0;
    box-sizing: border-box;
    z-index: 999;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;

    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    background: transparent !important;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    box-shadow: none;
}


.nav-links a {
    color: white;
    text-decoration: none;
}

/* ================= HERO ================= */


/* buttons */
/* General button styling */
button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 25px;
    margin: 5px;
    transition: all 0.3s ease;
    color: #fff;
}


/* Home action buttons */
.home-actions button.sos {
    background-color: #ef4444; /* Red */
}

.home-actions button.service {
    background-color: #10b981; /* Green */
}

.home-actions button.explore {
    background-color: #f59e0b; /* Amber */
}

.home-actions button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Hero section buttons */
.home-actions {
    display: flex;               /* arrange buttons in a row */
    justify-content: center;     /* center horizontally */
    gap: 20px;                   /* spacing between buttons */
    margin-top: 30px;            /* space from the main hero button */
}

/* Optional: make buttons a bit bigger for hero section */
.home-actions button {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Responsive buttons for mobile */
@media (max-width: 768px) {
    button {
        width: 80%;
        padding: 10px 0;
    }
}

#starCanvas {
    position: fixed;   /* makes it cover full page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;       /* behind everything */
}

/* Rainbow gradient only for text */
#title, #description {
    background: linear-gradient(
        90deg,
        rgb(245, 125, 125),
        orange,
        yellow,
        rgb(80, 241, 80),
        rgb(253, 70, 125),
        rgb(76, 252, 99),
        violet,
        red
    );
    background-size: 200% 100%;
    color: transparent;               /* Make text show gradient */
    -webkit-background-clip: text;    /* Chrome, Safari */
    -moz-background-clip: text;       /* Firefox */
    background-clip: text;            /* Standard */
    animation: rainbowFlow 15s linear infinite;
}

/* Animation moves the gradient */
@keyframes rainbowFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}
/* ================= MODAL SYSTEM ================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

/* when opened */
.modal.show {
    display: flex;
}

/* modal box */
.modal-content {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    width: 350px;
    max-width: 90%;
    position: relative;
}

/* login/register sizes */
.modal-login .modal-content {
    width: 300px;
}

.modal-register .modal-content {
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

/* close button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

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

.modal-content input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-content button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ================= SERVICE CHECKBOX ================= */


/* ================= DROPDOWN ================= */

.dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background: #222;
    padding: 10px;
    border-radius: 6px;
}

.dropdown a {
    display: block;
    color: white;
    padding: 8px;
    text-decoration: none;
    cursor: pointer; /* ✅ ADD THIS */
}

.dropdown a:hover {
    background: #444;
}

/* ================= PROFILE ================= */

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}



/* ================= LOGO MODAL ================= */

#logoModal {
    background: rgba(0,0,0,0.6);
}

#logoImg {
    max-width: 80%;
    height: auto;
    display: block;
    margin: auto;
    background: transparent;
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.profile-pic {
  width: 40px;
  height: 40px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}

    .live-popup {
  position: fixed;
  top: 90px;
  right: 20px;

  width: 320px;

  background: white;
  color: black;

  border-radius: 14px;

  padding: 18px;

  z-index: 99999;

  box-shadow: 0 10px 40px rgba(0,0,0,0.3);

  display: none;

  animation: slideIn 0.4s ease;
}

.popup-content h3 {
  margin-bottom: 10px;
}

.popup-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.popup-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#acceptPopupBtn {
  background: #28a745;
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
  }

  to {
    transform: translateX(0);
  }
}
/* ========== HOME PAGE DESIGN ========== */


.hero{

max-width:430px;

margin:auto;

padding:20px;

}



.home-search{


width:90%;

height:45px;


border-radius:15px;


border:

1px solid rgba(255,255,255,.25);



background:

rgba(255,255,255,.15);



color:white;


padding-left:15px;


font-size:15px;


}



.home-search::placeholder{

color:#ccc;

}



.category-card{


margin-top:25px;


padding:20px;


border-radius:25px;


background:

rgba(255,255,255,.08);



border:

1px solid rgba(255,255,255,.25);



box-shadow:

0 0 30px rgba(255,255,255,.15);


}




.category-card h3{

font-size:16px;

}



.category-grid{


display:grid;


grid-template-columns:

repeat(3,1fr);


gap:25px;


}




.category-grid div{


font-size:32px;


cursor:pointer;


}



.category-grid span{


display:block;


font-size:14px;


margin-top:8px;


color:white;


}



.hero > button{


background:transparent;


border:

1px solid #60a5fa;


color:#60a5fa;


margin-top:20px;


}

/* KNOW MORE BUTTON FIX */

.category-card > button {

    background: transparent;

    border: 1px solid #60a5fa;

    color: #60a5fa;

    margin-top:20px;

    padding:12px 25px;

    border-radius:8px;

    font-weight:600;

}


.category-card > button:hover {

    background:#60a5fa;

    color:#0a0a1a;

}

.video-modal{


display:none;

position:fixed;

inset:0;

background:rgba(0,0,0,.8);

z-index:99999;

justify-content:center;

align-items:center;


}



.video-box{


width:90%;

max-width:800px;

background:#111;

padding:25px;

border-radius:20px;


}



.video-close{


float:right;

font-size:30px;

cursor:pointer;

}



.video-scroll{


display:flex;

gap:20px;

overflow-x:auto;

padding:20px 0;


}



.video-card{


min-width:220px;

background:#222;

border-radius:15px;

padding:15px;


}



.video-card img{


width:100%;

height:120px;

object-fit:cover;

border-radius:10px;


}



.video-card button{


background:#4f46e5;

color:white;


}


/* ================= MODERN PROFILE DROPDOWN ================= */
.profile-pic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border: 2px solid rgba(162,155,254,0.4);
  transition: 0.3s;
}

.profile-pic:hover {
  border-color: rgba(162,155,254,0.8);
  transform: scale(1.05);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
  cursor: pointer; /* ✅ ADD THIS */
}

.profile-menu-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.profile-menu-logout {
  color: #ff6b6b !important;
  border-bottom: none;
}

.profile-menu-logout:hover {
  background: rgba(255,107,107,0.08) !important;
}

.menu-icon {
  cursor: pointer;
  font-size: 22px;
}

@media (max-width: 768px) {

  /* ✅ fix home action buttons on mobile */
  .home-actions {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .home-actions button {
    width: auto !important;
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
    flex: 1;
    min-width: 80px;
    max-width: 120px;
  }

  /* ✅ fix category grid on small screens */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .category-grid div {
    font-size: 26px;
  }

  .category-grid span {
    font-size: 11px;
  }

  /* ✅ fix hero padding */
  .hero {
    padding: 10px;
  }

  /* ✅ fix know more button */
  .category-card > button {
    width: auto !important;
    padding: 10px 20px !important;
  }

}