/* -------- Design tokens & base type -------- */
:root {
  --font-color: #333333;
  --background-color: #f9f9f9;
  --border-radius: 5px;
  --transition-duration: 0.3s;
  --dot-color: rgba(0, 0, 0, 0.3);
  --bg-color: #f8fafc;
  --line-color: #e2e8f0;
}
/* -------- Global resets & typography -------- */
* {
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif, "Noto Sans", "Roboto", "TASA Explorer";
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
html,
body {
  background-color: var(--background-color);
  color: var(--font-color);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0; /* Ensure no padding is applied */
  line-height: 1.6;
}
/* -------- Icon font defaults -------- */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 40;
}
/* -------- Background utility patterns -------- */
.dotted-bg {
  /* min-height: 100vh; */
  width: 100%;
  background-size: 30px 30px;
  background-position: 0 0;
  background-color: var(--background-color);
  background-image: radial-gradient(
    circle,
    var(--dot-color) 1.5px,
    transparent 0.5px
  );
}
.grid-bg {
  /* min-height: 100vh; */
  width: 100%;
  background-color: var(--background-color);
  background-image: linear-gradient(
      90deg,
      var(--line-color) 1px,
      transparent 1px
    ),
    linear-gradient(180deg, var(--line-color) 1px, transparent 1px);
  background-size: 80px 80px;
  /* background-position: 0 0; */
  /* z-index: -1; */
  /* opacity: 0.1; /* adjust opacity here */
}
/* Combined bottom fade and grid background */
.bottom-fade-grid {
  position: relative;
  /* min-height: 100vh; */
  width: 100%;
  background-color: var(--bg-color);
  overflow: hidden;
}

.bottom-fade-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  /* background-image:
    linear-gradient(to right, var(--line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-color) 1px, transparent 1px); */
  background-image: radial-gradient(
    circle,
    var(--dot-color) 0.5px,
    transparent 1.5px
  );

  background-size: 40px 40px;

  /* Bottom fade mask */
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 100%,
    #000 60%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 100%,
    #000 60%,
    transparent 100%
  );
}

/* Keep content above the grid */
.bottom-fade-grid > * {
  position: relative;
  z-index: 1;
}
/* -------- Header & navigation shell -------- */
.header {
  text-align: center;
  /* margin-bottom: 20px; */
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333333;
  color: white;
  overflow: visible;
  position: sticky;
  top: 0;
  padding: 0 10px 0 10px;
  z-index: 1000;
}
#menu-icon {
  cursor: pointer;
  font-size: 32px;
  display: block;
  /* padding: 1px; */
  user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  z-index: 1001;
  position: relative;
}
#menu-icon:hover {
  color: #ddd;
  border-radius: var(--border-radius);
  transition: color var(--transition-duration);
  -webkit-transition: color var(--transition-duration);
  -moz-transition: color var(--transition-duration);
  -ms-transition: color var(--transition-duration);
  -o-transition: color var(--transition-duration);
}
/* Dropdown & mobile menu behaviour */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 36px;
  cursor: pointer;
  color: white;
  z-index: 1002;
}
.navbar .container {
  position: absolute;
  top: 100%;
  right: 10px;
  min-width: 250px;
  width: auto;
  background-color: #333333;
  flex-direction: column;
  padding: 10px 0;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 9999;

  /* Hidden by default */
  display: none;
}

/* Dropdown menu active state */
.navbar .container.active {
  display: flex !important;
}
#logo {
  position: relative;
  width: 100px;
  /* left: 10px; */
}
.navbar a {
  position: relative;
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  display: block;
}
.navbar a:hover {
  background-color: #121212;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-duration);
}

/* Dropdown menu link styles */
.navbar .container a {
  color: white !important;
  border-bottom: 1px solid #444;
  text-decoration: none;
  padding: 15px 20px;
  display: block !important;
  transition: background-color 0.3s;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.3;
  width: 100%;
  box-sizing: border-box;
}

.navbar .container a:last-child {
  border-bottom: none;
}

.navbar .container a:hover {
  background-color: #171717 !important;
}

/* Force visibility of all menu items */
.navbar .container.active a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Remove height constraints - let it expand naturally */
.navbar .container.active {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
/* -------- Hero banner styling -------- */
.banner {
  background: var(--background-color) url("/dinesh-photos/dinesh-3-crop.jpg");  /* Fallback color with image */
  /* overlay */
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  /* height: 300px; */
  min-height: 200px;
  padding: 50px 20px;
  /* margin: 0 auto 20px auto; */
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  text-align: center;

  /* color: var(--font-color); */
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); Optional: adds a shadow for better readability */
}
.banner h1 {
  color: #f9f9f9;
  font-size: 2em;
  margin: 0;
  padding: 0;
  font-weight: 400;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  /* Optional: adds a shadow for better readability */
}
/* -------- Main layout & content defaults -------- */
.main {
  /* displaying text in justified format */
  text-align: justify;
  text-justify: inter-word;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;

  /* Add any additional styles for the main content area */
}
.main h1,
.main h2,
.main h3,
.main h4,
.main h5,
.main h6 {
  margin: 0;
  padding: 10px 0;
  font-weight: 600;
  /* text-justify: inter-word; */
  color: var(--font-color);
}
.main h2:first-of-type {
  text-decoration: underline;
}
.main p {
  margin: 0 0 10px 0;
  padding: 0;
}
/* -------- Generic CTA button -------- */
#get-started-button {
  background-color: #f0f0f0;
  color: black;
  border: none;
  padding: 5px 15px;
  font-size: 16px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-duration);
  -webkit-border-radius: var(--border-radius);
  -moz-border-radius: var(--border-radius);
  -ms-border-radius: var(--border-radius);
  -o-border-radius: var(--border-radius);
}
#get-started-button:hover {
  background-color: #ddd;
}
/* -------- Footer & social links -------- */
footer {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  align-content: center;
  font-size: medium;
  padding: 10px;
  background-color: #333333;
  color: white;
  /* position: fixed; */
  bottom: 0;
  width: 100%;
}
.social-media-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.social-media-icons a {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.social-media-icons a:nth-child(1) {
  animation-delay: 0.1s;
}

.social-media-icons a:nth-child(2) {
  animation-delay: 0.2s;
}

.social-media-icons a:nth-child(3) {
  animation-delay: 0.3s;
}

.social-media-icons a:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.social-media-icons a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  display: inline-block;
  transition: all 0.3s ease;
}

.social-media-icons a:hover {
  transform: translateY(-3px);
}

.social-media-icons a img {
  width: 30px;
  height: 30px;
  filter: invert(1);
  transition: all 0.3s ease;
}

.social-media-icons a:hover img {
  filter: invert(1) sepia(51.4) saturate(39.5) hue-rotate(359deg);
  transform: scale(1.1);
}

#copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
/* -------- Dark-mode palette overrides -------- */
@media (prefers-color-scheme: dark) {
  :root {
    --font-color: #ffffff;
    --background-color: #121212;
    --dot-color: rgba(255, 255, 255, 0.3);
    --line-color: rgba(255, 255, 255, 0.3);
    --bg-color: #171717;
    --line-color: rgba(255, 255, 255, 0.1);
  }
  body {
    background-color: var(--background-color);
    color: var(--font-color);
  }
}
/* -------- Responsive tweaks -------- */
@media screen and (min-width: 768px) {
  .banner {
    min-height: 300px;
    padding: 100px 20px;
  }
}
@media screen and (min-width: 768px) {
  .banner h1 {
    font-size: 3em;
  }
}
@media screen and (min-width: 768px) {
  .banner h1 {
    font-size: 3em;
  }
}
