/* Fonts */
:root {
  --default-font: "Roboto", sans-serif;     /* Default font for body text */
  --heading-font: "Montserrat", sans-serif;     /* Font used for all headings */
  --nav-font: "Poppins", sans-serif;            /* Font used for navbar */
  --optional-font: "Open Sans", sans-serif;     /* Optional font (used manually with class when needed) */
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #413e66; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #0044b8; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #413e66;  /* The default color of the main navmenu links */
  --nav-hover-color: #0044b8; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #444444; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #1bb1dc; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f5f8fd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #2d2b46;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #413e66;
  --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/

/* Preloader container */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-out;
  pointer-events: all; /* Prevent clicks underneath */
}

/* While preloader is active, lock body scroll */
body.preloader-active {
  overflow: hidden !important;
  height: 100vh;
  pointer-events: none;
}

/* When preloader fades out */
#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Preloader logo with spin + swing effect */
.preloader-logo {
  width: 100px;
  animation: spin 1.2s linear infinite;
  transform-origin: top center;
  transform-style: preserve-3d;
  display: block;
  will-change: transform;
}

/* Continuous 3D Y-axis spin */
@keyframes spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

/* Completely hide scrollbar while preloading */
body.preloader-active {
  overflow: hidden !important;
  height: 100vh;
  pointer-events: none;
  scrollbar-width: none;        /* Firefox */
}

/* For WebKit browsers (Chrome, Safari, Edge) */
body.preloader-active::-webkit-scrollbar {
  display: none;
}

/* End Preloader Section
------------------------ */


/*--------------------------------------------------------------
# Smooth Scroll
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
}

/* WebKit browsers (Chrome, Edge, Safari on all devices) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1; /* Track background (optional light gray) */
}

::-webkit-scrollbar-thumb {
  background-color: #007bff; /* Blue thumb */
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

/* Firefox (Desktop + Android support) */
* {
  scrollbar-width: thin; /* Thin or auto */
  scrollbar-color: #007bff #f1f1f1; /* Thumb | Track */
}


/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

/* Use manually where needed */
.open-sans {
  font-family: var(--optional-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
}

/* Scroll Progress Bar Track + Filled Line */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.1); /* Track background */
}

#scrollProgress::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--scrollPercent, 0%);
  background-color: #007bff; /* Blue fill */
  transition: width 0.2s ease-out;
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo img {
  display: block;
  max-height: 80px;
  float: left;
  margin-left: 0;
  margin-right: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: -15px !important;
  margin-top: -10px !important; /* Adjust for centering */
  padding-right: 0 !important; /* Remove extra padding */
  background: none !important; /* No background */
  box-shadow: none !important; /* No shadow */
  border: none !important;     /* No border */
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  margin-left: -10px;
  font-weight: 700;
  color: var(--heading-color);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.3);
}

/* Index Page Header
------------------------------*/
.index-page .header {
  --background-color: rgba(255, 255, 255, 0);
}

/* Index Page Header on Scroll
------------------------------*/
.index-page.scrolled .header {
  --background-color: #ffffff;
}

/* Dark Mode Header
------------------------------*/

/* Light mode scroll background */
.scrolled .header {
  --background-color: #ffffff;
}

/* Dark mode scroll background */
[data-theme="dark"].scrolled .header,
body.dark-mode.scrolled .header {
  --background-color: #000000;
  border-bottom: 2px solid #222; /* Add border in dark mode */
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */

.mobile-nav-toggle.bi-list {
  font-size: 2.2rem;
  font-weight: bold;
  color: #3a86ff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
  line-height: 1;
}

@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color-color);
    padding: 18px 17px;
    font-size: 15px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: #3a86ff;
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}
/* Dark mode for Navmenu - Mobile */
@media (max-width: 1199px) {
  [data-theme="dark"] .navmenu ul,
  body.dark-mode .navmenu ul {
    background-color: #181a1b;
  }
  [data-theme="dark"] .navmenu .dropdown ul,
  body.dark-mode .navmenu .dropdown ul {
    background-color: #23272b;
    border-color: #333;
  }
  [data-theme="dark"] .navmenu a,
  [data-theme="dark"] .navmenu a:focus,
  body.dark-mode .navmenu a,
  body.dark-mode .navmenu a:focus {
    color: #fff;
  }
  [data-theme="dark"] .navmenu a:hover,
  [data-theme="dark"] .navmenu .active,
  [data-theme="dark"] .navmenu .active:focus,
  body.dark-mode .navmenu a:hover,
  body.dark-mode .navmenu .active,
  body.dark-mode .navmenu .active:focus {
    color: #3a86ff; /* changed from yellow to blue */
  }
  [data-theme="dark"] .navmenu .active i,
  [data-theme="dark"] .navmenu .active:focus i,
  body.dark-mode .navmenu .active i,
  body.dark-mode .navmenu .active:focus i {
    background-color: #3a86ff; /* changed from yellow to blue */
    color: #23272b;
  }
  [data-theme="dark"] .navmenu a i,
  [data-theme="dark"] .navmenu a:focus i,
  body.dark-mode .navmenu a i,
  body.dark-mode .navmenu a:focus i {
    background-color: color-mix(in srgb, #3a86ff, transparent 90%); /* changed from yellow to blue */
    color: #3a86ff; /* changed from yellow to blue */
  }
  [data-theme="dark"] .mobile-nav-active .navmenu,
  body.dark-mode .mobile-nav-active .navmenu {
    background: rgba(24, 26, 27, 0.96);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: black;
  color: var(--contrast-color);
  transform: translateY(-2px);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/* Dark mode for Scroll Top Button */
[data-theme="dark"] .scroll-top,
body.dark-mode .scroll-top {
  background-color: #232336;
}

[data-theme="dark"] .scroll-top i,
body.dark-mode .scroll-top i {
  color: #3a86ff;
}

[data-theme="dark"] .scroll-top:hover,
body.dark-mode .scroll-top:hover {
  background-color: #3a86ff;
}

[data-theme="dark"] .scroll-top:hover i,
body.dark-mode .scroll-top:hover i {
  color: #23272b;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title p {
  margin-bottom: 0;
}


/* Dark Mode Color Overrides */
[data-theme="dark"] {
  --background-color: #0e0e0e;
  --default-color: #e0e0e0;
  --heading-color: #ffffff;
  --accent-color: #3a86ff;
  --surface-color: #1c1c1c;
}

/* Dark/Light Toggle Button Styles */
.theme-toggle-btn {
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent-color);
  transition: all 0.3s ease;
  margin-left: 15px;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  outline: none;
  transform: translateY(-2px);
}

[data-theme="dark"] .theme-toggle-btn {
  color: var(--accent-color); /* golden sun icon */
}

[data-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] .theme-toggle-btn:focus {
  background: var(--accent-color);
  color: #23272b;
  border-color: var(--accent-color);
  outline: none;
}

/* Mobile/Tablet (<1200px): show theme icon just before mobile toggle */
@media (max-width: 1199px) {
  #themeToggle {
    display: inline-flex;
    margin-right: 10px;
  }

  .mobile-nav-toggle {
    margin-left: 0;
  }
}

@media (min-width: 1200px) {
  .navmenu {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between nav links and theme icon */
  }

  .navmenu > ul {
    margin: 0;
  }

  #themeToggle {
    display: inline-flex;
    margin-left: 10px;
  }
}

@media (max-width: 1199px) {

  /* Absolutely position the theme icon inside header */
  #themeToggle {
    position: absolute;
    top: 16px;
    right: 70px; /* Place it before hamburger (hamburger is ~right: 16px) */
    z-index: 10000;
    display: inline-flex !important;
    margin: 0;
  }

  /* Adjust mobile nav icon to match */
  .mobile-nav-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10001;
  }

  /* Ensure theme toggle stays visible when mobile nav is active */
  .mobile-nav-active #themeToggle {
    position: absolute;
    top: 16px;
    right: 60px;
    z-index: 10000;
    display: inline-flex !important;
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    --background-color: light gray;
    --surface-color: #fff;
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
}

.hero h3 {
    font-size: 32px;
    font-weight: 600;
    color: black;
}

.hero h2 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    color: #0044b8;
}

.hero p {
    margin: 10px 0 0 0;
    font-size: 24px;
    color: black;
    font-weight: 700;
}

.hero .countdown {
    margin-top: 25px;
}

.hero .countdown div {
    text-align: center;
    border: 2px solid color-mix(in srgb, var(--default-color), white 90%);
    border-radius: 8px;
    margin: 10px 10px;
    width: 100px;
    padding: 15px 0;
    background: var(--surface-color);
    transition: 
        border-color 0.3s,
        box-shadow 0.3s,
        transform 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hero .countdown div:hover,
.hero .card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 6px 24px rgba(0, 68, 184, 0.12);
    transform: translateY(-6px) scale(1.04);
}

.hero .countdown div h3 {
    font-weight: 600;
    font-size: 32px;
    margin-bottom: 15px;
    color: black;
}

.hero .countdown div h4 {
    font-size: 16px;
    font-weight: 700;
    color: black;
}

.hero .card {
    max-width: 600px;
    width: 100%;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: black;
    padding: 32px 24px;
    border: 2px solid color-mix(in srgb, var(--default-color), white 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: 
        border-color 0.3s,
        box-shadow 0.3s,
        transform 0.3s;
}

.hero .card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(0, 68, 184, 0.14);
    transform: translateY(-8px) scale(1.05);
}

.internship-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    color: black;
    margin-bottom: 0;
}

.internship-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #0044b8;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.internship-message {
    font-weight: 700;
    color: black;
    margin-bottom: 1rem;
}

.hero .social-links {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .social-links i {
    color: black;
}

.hero .social-links a:hover i {
    color: white;
}

.hero .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
    font-size: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    margin-right: 10px;
    transition: 
        color 0.3s,
        border-color 0.3s,
        background 0.3s,
        transform 0.3s;
}

.hero .social-links a:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    transform: translateY(-3px) scale(1.08);
}

/* Dark mode for Hero Section */
[data-theme="dark"] .hero,
body.dark-mode .hero {
    --background-color: #181a1b;
    --surface-color: #23272b;
    background-color: var(--background-color);
}

[data-theme="dark"] .hero h2,
body.dark-mode .hero h2 {
    color: #3a86ff;
}

[data-theme="dark"] .hero h3,
body.dark-mode .hero h3,
[data-theme="dark"] .hero p,
body.dark-mode .hero p,
[data-theme="dark"] .hero .countdown div h3,
body.dark-mode .hero .countdown div h3,
[data-theme="dark"] .hero .countdown div h4,
body.dark-mode .hero .countdown div h4,
[data-theme="dark"] .internship-subtitle,
body.dark-mode .internship-subtitle,
[data-theme="dark"] .internship-message,
body.dark-mode .internship-message {
    color: #e0e0e0;
}

[data-theme="dark"] .hero .countdown div,
body.dark-mode .hero .countdown div {
    background: var(--surface-color);
    border-color: color-mix(in srgb, var(--default-color), #23272b 80%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .hero .countdown div:hover,
body.dark-mode .hero .countdown div:hover,
[data-theme="dark"] .hero .card:hover,
body.dark-mode .hero .card:hover {
    border-color: var(--accent-color);
}

[data-theme="dark"] .hero .card,
body.dark-mode .hero .card {
    background: var(--surface-color);
    border-color: color-mix(in srgb, var(--default-color), #23272b 90%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #e0e0e0;
}

[data-theme="dark"] .internship-title,
body.dark-mode .internship-title {
    color: #3a86ff;
}

[data-theme="dark"] .hero .social-links i,
body.dark-mode .hero .social-links i {
    color: #e0e0e0;
}

[data-theme="dark"] .hero .social-links a,
body.dark-mode .hero .social-links a {
    border-color: color-mix(in srgb, var(--default-color), transparent 60%);
    color: color-mix(in srgb, var(--default-color), transparent 10%);
    background: transparent;
}

[data-theme="dark"] .hero .social-links a:hover,
body.dark-mode .hero .social-links a:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #23272b;
}

[data-theme="dark"] .hero .social-links a:hover i,
body.dark-mode .hero .social-links a:hover i {
    color: #23272b;
}

/*--------------------------------------------------------------
# Responsive Media Queries
--------------------------------------------------------------*/

/* Tablets */
@media (max-width: 1024px) {
    .hero h2 {
        font-size: 42px;
    }

    .internship-title {
        font-size: 3rem;
    }

    .internship-subtitle {
        font-size: 2rem;
    }
}

/* Medium devices */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .internship-title {
        font-size: 2.5rem;
    }

    .internship-subtitle {
        font-size: 1.8rem;
    }

    .hero .card {
        padding: 24px 20px;
    }

    .hero .social-links a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Small devices */
@media (max-width: 575px) {
    .hero h2 {
        font-size: 28px;
    }

    .hero h3 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero .countdown div {
        width: 70px;
        padding: 10px 0;
        margin: 10px 6px;
    }

    .hero .countdown div h3 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .hero .countdown div h4 {
        font-size: 12px;
    }

    .hero .card {
        padding: 20px 16px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .hero h2 {
        font-size: 24px;
    }

    .hero h3 {
        font-size: 20px;
    }

    .hero p {
        font-size: 14px;
    }

    .internship-title {
        font-size: 2rem;
    }

    .internship-subtitle {
        font-size: 1.5rem;
    }

    .hero .social-links a {
        width: 32px;
        height: 32px;
        font-size: 12px;
        margin-right: 6px;
    }
}


/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/

/* FAQ Section Styles */
#faq {
  background: var(--background-color);
  padding: 60px 0;
  padding-bottom: 100px;
  font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
}

.faq .section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #22223b;
  margin-bottom: 10px;
  font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
}

.faq .section-title p {
  font-size: 1.1rem;
  color: #4a4e69;
}

.faq .accordion-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 18px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(34, 34, 59, 0.04);
  transition: box-shadow 0.2s, transform 0.2s ease-in-out;
}

.faq .accordion-item:hover {
  box-shadow: 0 4px 16px rgba(34, 34, 59, 0.10);
  transform: translateY(-2px);
}

.faq .accordion-header {
  font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
}

.faq .accordion-button {
  font-size: 1.08rem;
  font-weight: 600;
  color: #22223b;
  background: none;
  border: none;
  box-shadow: none;
  padding: 18px 24px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-family: 'Poppins', Arial, sans-serif;
}

.faq .accordion-button:hover,
.faq .accordion-button:focus {
  background: #e9ecef;
  color: #3a86ff;
}

.faq .accordion-button:not(.collapsed) {
  color: #fff;
  background: #3a86ff;
}

.faq .accordion-body {
  font-size: 1rem;
  color: #22223b;
  padding: 18px 28px 18px 28px;
  font-family: 'Open Sans', Arial, sans-serif;
}

.faq .benefits-list {
  margin-top: 10px;
  padding-left: 20px;
}

.faq .benefits-list li {
  font-size: 0.98rem;
  color: #22223b;
  margin-bottom: 8px;
  line-height: 1.7;
  font-family: 'Open Sans', Arial, sans-serif;
  border-bottom: 1px solid #ececec;
  padding-bottom: 6px;
}

.faq .benefits-list li:last-child {
  border-bottom: none;
}

/* FAQ Section Dark Mode */
body.dark-mode #faq,
[data-theme="dark"] #faq {
  background: #171819;
}

body.dark-mode .faq .section-title h2,
[data-theme="dark"] .faq .section-title h2,
body.dark-mode .faq .section-title p,
[data-theme="dark"] .faq .section-title p {
  color: #fff;
}

body.dark-mode .faq .accordion-item,
[data-theme="dark"] .faq .accordion-item {
  background: #232336;
  border-color: #232336;
  box-shadow: 0 2px 8px rgba(34, 34, 59, 0.18);
}

body.dark-mode .faq .accordion-button,
[data-theme="dark"] .faq .accordion-button {
  color: #e0e0e0;
  background: none;
}

body.dark-mode .faq .accordion-button:hover,
body.dark-mode .faq .accordion-button:focus,
[data-theme="dark"] .faq .accordion-button:hover,
[data-theme="dark"] .faq .accordion-button:focus {
  background: #232336;
  color: #3a86ff;
}

body.dark-mode .faq .accordion-button:not(.collapsed),
[data-theme="dark"] .faq .accordion-button:not(.collapsed) {
  color: #fff;
  background: #3a86ff;
}

body.dark-mode .faq .accordion-body,
[data-theme="dark"] .faq .accordion-body {
  color: #e0e0e0;
}

/* Dark mode for chevron icons in accordion */
body.dark-mode .faq .accordion-button::after,
[data-theme="dark"] .faq .accordion-button::after {
  filter: brightness(0) invert(1);
  /* If using SVG or font icons, set color: #fff; */
}

/* Dark mode for benefits list */
body.dark-mode .faq .benefits-list li,
[data-theme="dark"] .faq .benefits-list li {
  color: #e0e0e0;
  border-bottom: 1px solid #232336;
}

/*--------------------------------------------------------------
# FAQ Section Responsive Styles
--------------------------------------------------------------*/

/* Medium Devices (Tablets, 768px and up) */
@media (max-width: 991.98px) {
  #faq {
    padding: 50px 0;
  }

  .faq .accordion-button {
    font-size: 1rem;
    padding: 16px 20px;
  }

  .faq .accordion-body {
    font-size: 0.95rem;
    padding: 16px 22px;
  }

  .faq .section-title h2 {
    font-size: 1.9rem;
  }

  .faq .section-title p {
    font-size: 1rem;
  }

  .faq .benefits-list li {
    font-size: 0.95rem;
  }
}

/* Small Devices (Phones, 576px and up) */
@media (max-width: 767.98px) {
  #faq {
    padding: 40px 0;
  }

  .faq .accordion-button {
    font-size: 0.96rem;
    padding: 14px 18px;
  }

  .faq .accordion-body {
    font-size: 0.9rem;
    padding: 14px 20px;
  }

  .faq .section-title h2 {
    font-size: 1.75rem;
  }

  .faq .section-title p {
    font-size: 0.95rem;
  }

  .faq .benefits-list li {
    font-size: 0.9rem;
  }
}

/* Extra Small Devices (very small phones) */
@media (max-width: 575.98px) {
  #faq {
    padding: 36px 0;
  }

  .faq .accordion-button {
    font-size: 0.88rem;
    padding: 12px 14px;
  }

  .faq .accordion-body {
    font-size: 0.86rem;
    padding: 12px 16px;
  }

  .faq .section-title h2 {
    font-size: 1.55rem;
  }

  .faq .section-title p {
    font-size: 0.9rem;
  }

  .faq .benefits-list li {
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

/* Large Devices (Desktops & Large Screens, 1200px and up) */
@media (min-width: 1200px) {
  .faq .accordion-button {
    font-size: 1.1rem;
  }

  .faq .accordion-body {
    font-size: 1rem;
  }

  .faq .section-title h2 {
    font-size: 2.3rem;
  }

  .faq .section-title p {
    font-size: 1.15rem;
  }

  .faq .benefits-list li {
    font-size: 1rem;
  }
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

#footer {
  font-family: "Montserrat", sans-serif;
}

.footer {
  background-color: var(--background-color);
  color: var(--default-color);
  font-size: 14px;
  position: relative;
  padding-bottom: 10px;
}

.footer .footer-top .row > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-contact {
  padding-bottom: 15px;
}

.footer .footer-about .footer-contact a {
  font-size: 14px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  text-decoration: none !important;
  font-family: var(--heading-font) !important;
  color: var(--default-color);
}

.footer .footer-contact a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Dark mode for footer email link and hover */
[data-theme="dark"] .footer .footer-contact a,
body.dark-mode .footer .footer-contact a {
  color: #3a86ff;
}
[data-theme="dark"] .footer .footer-contact a:hover,
body.dark-mode .footer .footer-contact a:hover {
  color: #0044b8;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  transform: translateY(-5px);
}

.footer .footer-contact-us {
  margin-left: auto;
  margin-right: 0;
}

/* WhatsApp Card Wrapper - freely positionable and animated */
.whatsapp-community-wrapper {
  position: absolute;
  /* Remove fixed margin-top and alignment */
  top: auto;
  left: auto;
  right: 5vw;
  bottom: 40px;
  width: 100%;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 10;
  pointer-events: auto;
}

.whatsapp-community-card {
  background: linear-gradient(#080e82, #000000);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 20px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Keeps top, middle, bottom alignment */
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.whatsapp-community-card::before,
.whatsapp-community-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 70%);
  animation: innerPulse 3s ease-out infinite;
  z-index: 0;
  pointer-events: none;
}
.whatsapp-community-card::after {
  animation-delay: 1.5s;
}

@keyframes innerPulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { opacity: 0; }
}

.whatsapp-community-card:hover {
  background: linear-gradient(#0d2235, #000000);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  transform: translateY(-5px);
}

/* Pulse turns green on hover */
.whatsapp-community-card:hover::before,
.whatsapp-community-card:hover::after {
  background: radial-gradient(circle, rgba(37, 211, 102, 0.18) 0%, transparent 70%);
}

.whatsapp-community-card h5 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  z-index: 2;
  margin: 0 0 12px 0; /* Clean spacing under title */
  align-self: center;
  text-align: center;
}

.whatsapp-logo-container {
  background: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  animation: pulseBlueRing 2.5s ease-in-out infinite;
}

@keyframes pulseBlueRing {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.5), 0 0 10px rgba(0, 123, 255, 0.3), 0 0 20px rgba(0, 123, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 123, 255, 0.7), 0 0 16px rgba(0, 123, 255, 0.5), 0 0 32px rgba(0, 123, 255, 0.3);
  }
}

.whatsapp-community-card:hover .whatsapp-logo-container {
  animation: pulseGreenRing 2.5s ease-in-out infinite;
}

@keyframes pulseGreenRing {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.5), 0 0 10px rgba(37, 211, 102, 0.4), 0 0 20px rgba(37, 211, 102, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.7), 0 0 16px rgba(37, 211, 102, 0.6), 0 0 32px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-logo {
  max-width: 50px;
  max-height: 50px;
  animation: swing 2s ease-in-out infinite alternate, spin 4s linear infinite;
  transform-origin: top center;
  transform-style: preserve-3d;
}

@keyframes swing {
  0% { transform: rotateZ(-10deg); }
  100% { transform: rotateZ(10deg); }
}

@keyframes spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.btn.btn-join-whatsapp {
  background: #fff !important;
  color: #0d2235 !important;
  border-radius: 4px !important;
  padding: 6px 16px !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  transition: 0.3s;
  margin-top: 16px !important;
  line-height: 1.2 !important;
  align-self: center;
}

.btn.btn-join-whatsapp:hover {
  background: linear-gradient(#25d366, #000000) !important;
  color: #fff !important;
}

/* Social Links */
.footer .social-links a {
  display: flex;
  background: var(--accent-color);
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  font-size: 16px;
  color: white;
  margin-right: 10px;
  transition: 0.3s;
  margin-top: -10px;
}

.footer .social-links a:hover {
  background: black;
  transform: translateY(-2px);
}

/* Footer Links & Titles */
.footer h4 {
  font-size: 14px;
  font-weight: bold;
  color: #413e66;
  text-transform: uppercase;
  position: relative;
  margin-top: -10px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
}

.footer .footer-links ul a {
  color: var(--default-color);
  text-decoration: none;
}
.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-about {
  margin-left: -40px;
}

.footer .footer-about a {
  color: var(--heading-color);
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: -14px;
  margin-bottom: -10px;
}

/* Copyright Section */
.footer-bottom {
  background: #ffffff;
  padding: 18px 0;
  text-align: center;
  margin-bottom: -30px;
}

.footer-bottom .copyright-text {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: #535074;
  font-weight: 500;
  margin: 0;
}

/* =========================
  Dark Mode Footer
  ========================= */
[data-theme="dark"] .footer,
body.dark-mode .footer {
  background-color: #121212; /* dark mode of #f5f8fd, slightly different from main background */
  color: #e0e0e0;
}

[data-theme="dark"] .footer .footer-about a,
body.dark-mode .footer .footer-about a {
  color: #3a86ff;
}

[data-theme="dark"] .footer .footer-links ul a,
body.dark-mode .footer .footer-links ul a {
  color: #e0e0e0;
}
[data-theme="dark"] .footer .footer-links ul a:hover,
body.dark-mode .footer .footer-links ul a:hover {
  color: #3a86ff;
}

[data-theme="dark"] .footer .social-links a,
body.dark-mode .footer .social-links a {
  background: #3a86ff;
  color: #23272b;
}
[data-theme="dark"] .footer .social-links a:hover,
body.dark-mode .footer .social-links a:hover {
  background: #23272b;
  color: #3a86ff;
}

[data-theme="dark"] .footer h4,
body.dark-mode .footer h4 {
  color: #3a86ff;
}

[data-theme="dark"] .footer-bottom,
body.dark-mode .footer-bottom {
  background: black;
}

[data-theme="dark"] .footer-bottom .copyright-text,
body.dark-mode .footer-bottom .copyright-text {
  color: white;
}

/* Remove outer shadow in dark mode */
[data-theme="dark"] .whatsapp-community-card,
body.dark-mode .whatsapp-community-card {
  background: linear-gradient(#23272b, #181a1b);
  box-shadow: none;
}

[data-theme="dark"] .whatsapp-community-card:hover,
body.dark-mode .whatsapp-community-card:hover {
  background: linear-gradient(#1f2123, #181a1b);
  box-shadow: none;
}

[data-theme="dark"] .whatsapp-community-card h5,
body.dark-mode .whatsapp-community-card h5 {
  color: white;
}

[data-theme="dark"] .btn.btn-join-whatsapp,
body.dark-mode .btn.btn-join-whatsapp {
  background: #3a86ff !important;
  color: white !important;
}

[data-theme="dark"] .btn.btn-join-whatsapp:hover,
body.dark-mode .btn.btn-join-whatsapp:hover {
  background: linear-gradient(#25d366, #23272b) !important;
  color: #fff !important;
}

[data-theme="dark"] .whatsapp-logo-container,
body.dark-mode .whatsapp-logo-container {
  background: #23272b;
}

/* =========================
    Responsive Footer
  ========================= */

  @media (max-width: 768px) {
    .footer .footer-top .row {
      flex-direction: column !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }

    .footer .col-lg-6,
    .footer .col-md-6,
    .footer .col-sm-6 {
      width: 100% !important;
      max-width: 100% !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }

    .footer-about {
      margin-left: 0 !important;
      margin-top: 40px;
    }

    .footer-contact-us {
      margin-top: 20px;
      text-align: left !important;
    }

    .footer .social-links {
      margin-top: 10px !important;
    }

    .whatsapp-community-wrapper {
      position: static !important;
      animation: none !important;
      margin-top: 30px !important;
      align-self: flex-end !important;
      margin-left: auto !important;
      margin-right: 0 !important;
      width: 100%;
      max-width: 220px !important;
    }
  }

  @media (min-width: 769px) and (max-width: 1024px) {
    .whatsapp-community-wrapper {
      top: auto;
      right: 3vw;
      bottom: 30px;
      margin-top: 0;
    }
  }

  @media (min-width: 1025px) {
    .footer .footer-top .row {
      margin-left: 0 !important;
      margin-right: 0 !important;
    }

    .whatsapp-community-wrapper {
      top: auto;
      right: 5vw;
      bottom: 40px;
      margin-top: 0;
      margin-left: auto;
      margin-right: 0;
      align-self: flex-end;
    }
  }

/* =========================
  Remove Footer Bar in Credits (Light & Dark)
  ========================= */

/* =========================
  DARK MODE FEATURE AND ICON
  ========================= */


/* Dark Mode Color Overrides */
[data-theme="dark"] {
  --background-color: #0e0e0e;
  --default-color: #e0e0e0;
  --heading-color: #ffffff;
  --accent-color: #3a86ff;
  --surface-color: #1c1c1c;
}

/* Dark/Light Toggle Button Styles */
.theme-toggle-btn {
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent-color);
  transition: all 0.3s ease;
  margin-left: 15px;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  outline: none;
  transform: translateY(-2px);
}

[data-theme="dark"] .theme-toggle-btn {
  color: var(--accent-color); /* golden sun icon */
}

[data-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] .theme-toggle-btn:focus {
  background: var(--accent-color);
  color: #23272b;
  border-color: var(--accent-color);
  outline: none;
}

/* Mobile/Tablet (<1200px): show theme icon just before mobile toggle */
@media (max-width: 1199px) {
  #themeToggle {
    display: inline-flex;
    margin-right: 10px;
  }

  .mobile-nav-toggle {
    margin-left: 0;
  }
}

@media (min-width: 1200px) {
  .navmenu {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between nav links and theme icon */
  }

  .navmenu > ul {
    margin: 0;
  }

  #themeToggle {
    display: inline-flex;
    margin-left: 10px;
  }
}

@media (max-width: 1199px) {

  /* Absolutely position the theme icon inside header */
  #themeToggle {
    position: absolute;
    top: 16px;
    right: 70px; /* Place it before hamburger (hamburger is ~right: 16px) */
    z-index: 10000;
    display: inline-flex !important;
    margin: 0;
  }

  /* Adjust mobile nav icon to match */
  .mobile-nav-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10001;
  }

  /* Ensure theme toggle stays visible when mobile nav is active */
  .mobile-nav-active #themeToggle {
    position: absolute;
    top: 16px;
    right: 60px;
    z-index: 10000;
    display: inline-flex !important;
  }
}