@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* ================= GLOBAL VARIABLES & RESETS ================= */
:root {
  --gredient-bg: linear-gradient(135deg, #4158D0 0%, #08D9D6 100%);
  --text-ocan: #08D9D6;
  --white: #ffffff;
  --black: #000000;
  --gray: #bdbdbd;
  --sub-text: #475467;
  --blog-text: linear-gradient(135deg, #4158d0c4 0%, #08d9d6d1 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  --sb-track-color: #151717;
  --sb-thumb-color: linear-gradient(135deg, #4158D0 0%, #08D9D6 100%);
  --sb-size: 5px;
}

body::-webkit-scrollbar {
  width: var(--sb-size);
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 3px;
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

select option {
  color: var(--black);
}

/* ================= HOME POPUP STYLES ================= */
.somnath-pop-home-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none; 
    align-items: center;
    justify-content: center;
}

.somnath-pop-home-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: popupIn 0.5s ease-out forwards;
}

.somnath-pop-home-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.somnath-pop-home-close:hover {
    background: #e0e0e0;
    color: var(--text-ocan);
}

.somnath-pop-home-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(8, 217, 214, 0.1);
    color: var(--text-ocan);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.somnath-pop-home-title {
    font-size: 32px;
    color: var(--black);
    margin-bottom: 15px;
}

.somnath-pop-home-text {
    color: var(--sub-text);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.somnath-pop-home-btn-primary {
    display: inline-block;
    background: var(--gredient-bg);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.somnath-pop-home-btn-primary:hover {
    transform: translateY(-2px);
}

@keyframes popupIn {
    0% { transform: scale(0.8) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes fadeOutOverlay {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes closeAnimation {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.9) translateY(20px); opacity: 0; }
}

/* ================= HEADER BASE STYLES ================= */
.somnath-head-site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.somnath-head-site-header.somnath-head-scrolled {
  background-color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.somnath-head-brand-area {
  display: flex;
  align-items: center;
  gap: 25px;
}

.somnath-head-brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.somnath-head-scrolled .somnath-head-brand-logo {
  color: var(--black);
}

/* ================= DESKTOP NAVIGATION ================= */
.somnath-head-main-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.somnath-head-menu-item {
  position: relative;
}

.somnath-head-menu-item > a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.somnath-head-scrolled .somnath-head-menu-item > a {
  color: var(--black);
}

.somnath-head-menu-item > a:hover,
.somnath-head-menu-item > a.active {
  color: var(--text-ocan) !important;
}

.somnath-head-small-icon {
  font-size: 10px;
  opacity: 0.8;
  transition: transform 0.4s ease;
}

/* ACTIVE MENU ANIMATION */
.somnath-head-main-navigation .somnath-head-menu-item a.menu-active {
  color: var(--text-ocan) !important;
  transition: all 0.4s ease;
  animation: somnathActiveGlow 2s infinite ease-in-out;
}

@keyframes somnathActiveGlow {
  0% { color: var(--text-ocan); text-shadow: 0 0 0px rgba(8, 217, 214, 0.159); }
  50% { color: var(--text-ocan); text-shadow: 0 0 8px rgba(8, 217, 214, 0.341), 0 0 16px rgba(8, 217, 214, 0.488); }
  100% { color: #08D9D6; text-shadow: 0 0 0px rgba(8, 217, 214, 0.138); }
}

/* ================= GLOBAL DROPDOWN FIX ================= */
.somnath-head-dropdown-content {
  overflow: visible !important;
}
.somnath-head-has-sub-dropdown {
  position: relative;
}
.somnath-head-has-sub-dropdown::after {
  display: none;
}

/* Desktop Dropdowns (min-width: 1200px) */
@media (min-width: 1200px) {
  .somnath-head-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 230px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 200;
    padding: 10px 0;
  }

  .somnath-head-has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
  }

  /* CLICK TRIGGER (Hover Removed) */
  .somnath-head-has-dropdown.somnath-head-is-open > .somnath-head-dropdown-content {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .somnath-head-dropdown-content li a {
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
  }

  .somnath-head-dropdown-content li:hover > a {
    background-color: rgba(8, 217, 214, 0.15);
    color: var(--text-ocan);
  }

  .somnath-head-sub-dropdown-content {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--white);
    min-width: 210px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s ease;
    padding: 10px 0;
  }

  .somnath-head-has-sub-dropdown::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 20px;
    height: 100%;
  }

  /* CLICK TRIGGER (Hover Removed) */
  .somnath-head-has-sub-dropdown.somnath-head-is-open > .somnath-head-sub-dropdown-content {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
}

/* ================= HEADER ACTIONS & LOGIN ICON ================= */
.somnath-head-header-actions-area {
  display: flex;
  align-items: center;
  gap: 14px !important;
}

.somnath-head-new-login-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 10px;
  outline: none;
}

.somnath-head-new-login-btn i {
  font-size: 22px;
}

.somnath-head-scrolled .somnath-head-new-login-btn {
  color: var(--black);
}

.somnath-head-new-login-btn:hover {
  color: var(--text-ocan) !important;
}

/* ================= LOGGED IN USER PROFILE ================= */
.somnath-head-user-profile-wrapper {
  position: relative;
}

.somnath-head-user-profile-btn {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 12px 5px 5px;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.somnath-head-user-profile-btn:hover {
  background: rgba(8, 217, 214, 0.1);
}

.somnath-head-user-profile-btn img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.somnath-head-nav-user-name {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
}

.somnath-head-user-profile-btn i {
  color: var(--white);
  font-size: 12px;
  transition: transform 0.3s ease;
}

.somnath-head-scrolled .somnath-head-nav-user-name,
.somnath-head-scrolled .somnath-head-user-profile-btn i {
  color: var(--black);
}

.somnath-head-user-profile-btn.active i {
  transform: rotate(180deg);
}

.somnath-head-profile-dropdown {
  position: absolute;
  top: 65px;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .35s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  z-index: 1001;
}

.somnath-head-profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.somnath-head-profile-top {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
}

.somnath-head-profile-top img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
}

.somnath-head-profile-top h4 {
  font-size: 18px;
  color: #111;
}

.somnath-head-profile-top p {
  color: #777;
  font-size: 14px;
}

.somnath-head-profile-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.somnath-head-profile-action-btn {
  width: 100%;
  border: none;
  background: #f7f7f7;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all .3s ease;
}

.somnath-head-profile-action-btn:hover {
  background: var(--gredient-bg);
  color: #fff;
}

.logout-btn {
  background: #fff0ed;
  color: #ff4b4b;
}

/* ================= AUTH MODAL (LOGIN & SIGNUP) ================= */
.somnath-auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all .4s ease;
  backdrop-filter: blur(8px);
}

.somnath-auth-modal.active {
  opacity: 1;
  visibility: visible;
}

.somnath-auth-box {
  width: 95%;
  max-width: 460px;
  background: #fff;
  border-radius: 15px;
  padding: 40px;
  position: relative;
  transform: translateY(40px) scale(.95);
  transition: all .4s ease;
}

.somnath-auth-modal.active .somnath-auth-box {
  transform: translateY(0) scale(1);
}

.somnath-auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.somnath-auth-close:hover {
  background: #e0e0e0;
  color: var(--text-ocan);
}

.somnath-auth-header {
  margin-bottom: 28px;
}

.somnath-auth-header h2 {
  font-size: 34px;
  color: #111;
}

.somnath-auth-header p {
  color: #777;
  margin-top: 6px;
}

.somnath-auth-input-group {
  margin-bottom: 18px;
}

.somnath-auth-input-group input {
  width: 100%;
  height: 58px;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  padding: 0 18px;
  font-size: 15px;
  outline: none;
  transition: all .3s ease;
}

.somnath-auth-input-group input:focus {
  border-color: var(--text-ocan);
  box-shadow: 0 0 0 4px rgba(8, 217, 214, .12);
}

.somnath-auth-submit-btn {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 16px;
  background: var(--gredient-bg);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s ease;
}

.somnath-auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(8, 217, 214, 0.2);
}

.somnath-google-login-area {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.somnath-auth-toggle-text {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 14.5px;
}

.somnath-auth-toggle-text span {
  color: var(--text-ocan);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
}

.somnath-auth-toggle-text span:hover {
  text-decoration: underline;
}

.somnath-auth-file-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.somnath-auth-file-group input[type="file"] {
  height: auto;
  padding: 10px;
  background: #f9f9f9;
}

/* ================= MOBILE MENU & CLICK ACCORDION ================= */
.somnath-head-mobile-menu-toggle {
  display: none;
}

@media (max-width: 1420px) {
  .somnath-head-header-actions-area {
    margin-left: auto;
    margin-right: 20px;
  }

  .somnath-head-mobile-menu-toggle {
    display: block !important;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.4s ease;
    order: 3;
    z-index: 1003;
    outline: none;
  }

  .somnath-head-scrolled .somnath-head-mobile-menu-toggle {
    color: var(--black);
  }

  .somnath-head-mobile-menu-toggle.is-active i {
    transform: rotate(90deg);
    color: var(--text-ocan);
  }

  /* Overlay */
  .somnath-head-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
  }

  .somnath-head-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Drawer Sidebar */
  .somnath-head-main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 25px 30px 25px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .somnath-head-main-navigation.somnath-head-is-mobile-active {
    left: 0;
  }

  .somnath-head-menu-item {
    width: 100%;
    border-bottom: 1px solid #f2f2f2;
  }

  .somnath-head-menu-item > a {
    color: var(--black) !important;
    padding: 16px 0;
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
  }

  .somnath-head-menu-item.somnath-head-is-open > a .somnath-head-small-icon,
  .somnath-head-has-sub-dropdown.somnath-head-is-open > a .somnath-head-small-icon {
    transform: rotate(180deg);
    color: var(--text-ocan);
  }

  /* Submenu Styling & Animation */
  .somnath-head-dropdown-content,
  .somnath-head-sub-dropdown-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background-color: #fafafa;
    border-radius: 0 6px 6px 0;
    border-left: 2px solid var(--text-ocan);
    padding: 0 15px;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  }

  .somnath-head-menu-item.somnath-head-is-open > .somnath-head-dropdown-content,
  .somnath-head-has-sub-dropdown.somnath-head-is-open > .somnath-head-sub-dropdown-content {
    max-height: 800px;
    opacity: 1;
    padding: 10px 0px;
    position: static;
  }

  .somnath-head-dropdown-content li a,
  .somnath-head-sub-dropdown-content li a {
    color: #555;
    padding: 12px 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px dashed #e5e5e5;
    display: flex;
    justify-content: space-between;
  }

  .somnath-head-dropdown-content li:last-child a,
  .somnath-head-sub-dropdown-content li:last-child a {
    border: none;
  }
}

@media (max-width: 768px) {
  .somnath-head-main-navigation {
    width: 85%;
  }
  
  .somnath-head-new-login-btn span {
    display: none; 
  }
  
  .somnath-head-nav-user-name {
    display: none; 
  }
}