:root {
    --primary: #007ce0;
    --primary-dark: #005bb5;
    --secondary: #14213D;
    --accent: #FCA311;
    --accent-dark: #e6920f;
    --black: #000000;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

:root {
	--orange: #fca311;
	--dark-blue: #14213D;
	--light-blue: #007ce0;
	--black: #000;
	--white: #fff;
	--grey: #e5e5e5;
}


/* Custom Scroll Bar CSS */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #2d2d2d;
}
::-webkit-scrollbar-thumb {
  background: #007ce0;
  border-radius: 12px;
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: #4070f4;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {scroll-behavior: smooth;}

::selection {
	background: var(--orange);
	color: var(--black) !important;
}

/* Basic styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Scroll Up button styles */
.scroll-up-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(20, 18, 61, 0.9);
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-up-btn i {
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.scroll-up-btn:hover {
  background: var(--orange);
  color: var(--dark-blue);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(252, 163, 17, 0.4);
}

/* Hide on phones */
@media (max-width: 768px) {
  .scroll-up-btn {
    display: none !important; /* Always hidden on phones */
  }
}

@media (max-width: 480px) {
  .scroll-up-btn {
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    border-width: 1.5px;
  }
  
  .scroll-up-btn i {
    font-size: 1.3rem;
  }
}

/* preloader section  */
.preloader, #loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #14213d, #1b2a49, #0f172a, #14213d);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.preloader-logo {
  width: 200px;
  height: auto;
  margin-top: 30px;
  animation: pulse 2s infinite ease-in-out;
  filter: drop-shadow(0 10px 30px rgba(252, 163, 17, 0.3));
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.preloader-hide {
  opacity: 0;
  visibility: hidden;
}

.hidden {
  display: none !important;
}


body {
	display: block;
	position: relative;
    z-index: 2;
}

body {
  margin: 0;
  background-color: #14213d; /* Base color */
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%), 
  linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%);
  background-size: 40px 40px, 40px 40px, 100px 100px;
  background-repeat: repeat, repeat, repeat;
  background-position: 0 0, 20px 20px, 0 0;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.671); /* Adjust opacity as needed */
    z-index: -1; /* Ensures it stays behind other content */
}

.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--orange);
    z-index: 999;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(15px); }
}



.nav-active {
  color: var(--primary) !important;
  text-decoration: underline 2px solid !important;
  text-underline-offset: 5px;
  background: rgba(252, 163, 17, 0.1);
}

.text-glow {
	text-shadow: 0 0 80px rgba(192, 219, 255, 0.35), 0 0 32px rgba(65, 120, 255, 0.24);
	color: var(--white);
}

div#bubble_container {
	background-color: var(--black);
}

/* Main header styling */
.header-content h2.m-text {
  font-size: 2rem;
  font-weight: bold;
  color: var(--light-blue); /*  color for "WELCOME TO" */
  margin: 0;
}

.header-content h1.m-title {
  font-size: 3rem;
  font-weight: bold;
  color: var(--white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px; 
}

.header-content h1.m-title .line {
  display: inline-block;
  width: 60px; /* Adjust width as needed */
  height: 2px; /* Adjust thickness as needed */
  background-color: var(--orange);
  vertical-align: middle;
}

.header-content h3.m-tagline {
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--white);
  margin: 0;
}

.header-content p.m-date {
  font-size: 1rem;
  color: var(--white);
  margin-top: 10px;
}

@media (max-width: 720px) {
  .line{
    visibility: hidden;
  }
  
}

/* main header content */
#main-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#main-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.header-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
  gap: 10px;
  flex-direction: column;
	justify-content: center;
	align-items: center;
  z-index: 2; /* Keeps the content on top of the overlay */
  color: var(--white); /* Adjust the color of the text as needed */
  padding: 20px;
  text-align: center;
}

/* Social Media Sidebar */
.hsocial {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.hsocial ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hsocial .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(20, 18, 61, 0.9);
    border: 2px solid var(--orange);
    border-radius: 50%;
    color: var(--orange);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hsocial {
        right: 20px;
    }
    
    .hsocial .social-link {
        width: 45px;
        height: 45px;
    }
    
    .hsocial .social-link i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hsocial {
        right: 15px;
    }
    
    .hsocial .social-link {
        width: 40px;
        height: 40px;
        border-width: 1.5px;
    }
    
    .hsocial .social-link i {
        font-size: 1.1rem;
    }
}

.navbar {
  background-color: transparent;
  color: var(--white);
  border-radius: 25px;
  padding: 15px 30px;
  max-width: 1000px;
  width: 950px;
  position: fixed;
  align-items: center;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#nav.scrolled {
  background-color: rgba(20, 33, 61, 0.9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 82px;
  font-size: 1.3rem;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.logo {
  height: 40px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .logo {
    transform: rotate(10deg) scale(1.1);
}

/* Ensure navbar items don't overflow */
.navbar-nav {
  display: flex;
  flex-wrap: nowrap; /* Prevents items from wrapping to next line */
  gap: 5px; /* Reduced spacing */
}

.navbar-nav .nav-item {
  flex-shrink: 0; /* Prevents items from collapsing */
}

.nav-links .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  margin: 0 0.1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav-links .nav-link:hover {
  color: #fff;
  background: rgba(252, 163, 17, 0.1);
}

.nav-links .nav-link.nav-active {
  color: var(--orange) !important;
  text-decoration: underline 2px solid !important;
  text-underline-offset: 5px;
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  /* Instead of "display: none" which can't be smoothly transitioned */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}

/* Show the dropdown when hovering over the parent */
.dropdown:hover .dropdown-menu, 
.dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* This ensures the dropdown stays visible during the brief gap between elements */
.dropdown-menu:hover {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Arrow rotation */
.dropdown-toggle::after {
  display: none;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  margin-left: 5px;
}

.dropdown:hover .dropdown-arrow, 
.dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

.navbar-toggler {
  padding: 0.5rem;
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Responsive fix */
@media (max-width: 992px) {
  .navbar {
      padding: 10px 15px;
      width: 400px;
  }
  
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .nav-links .nav-link {
    padding: 0.8rem 1rem;
    margin: 0.2rem 0;
    font-size: 1rem;
  }
  
  .dropdown-menu {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 425px) {
  .navbar {
      width: 350px;
  }
  
  .text-white {font-size: medium;}
}
@media (max-width: 375px) {
  .navbar {
      width: 280px;
  }
  
  .navbar-brand {
    margin-right: 2px;
  }

  .text-white {font-size: small;}
}


.tab-content h2 {
	margin-bottom: 20px;
}

.footer {
  background: var(--dark-blue);
  color: #fff;
  padding: 1px 1px;
}
.footer a {
  color: var(--white);
  text-decoration: none;
  margin: 0 5px;
}
.footer a:hover {
  color: var(--orange);
  text-decoration: underline 2px solid !important;
  text-underline-offset: 5px;
}

.footer-text {
    display: inline-block;
    text-align: center;
}

.collab-text {
    white-space: nowrap;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.copyright-text {
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
}

@media (max-width: 768px) {
    .footer-text {
        width: 100%;
    }
    
    .collab-text {
        white-space: normal;
        display: block;
    }
}

/* Responsive AOS animations for mobile */
@media (max-width: 768px) {
    [data-aos="fade-left"] {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}