/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

/* Top Nav */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

.top-nav .nav-left {
  font-weight: bold;
  font-size: 1.8em;
  text-decoration: none;
  color: black;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 0;
}

/* Full name by default; "AS" when viewport is tighter (see media queries) */
.nav-brand-short,
.dropbtn-label-short {
  display: none;
}

.top-nav .nav-right a {
  margin-left: 15px;
  text-decoration: none;
  color: #333;
}

/* Hamburger: hidden on desktop */
.nav-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-menu-toggle:focus-visible {
  outline: 2px solid #00bfff;
  outline-offset: 2px;
}

.nav-menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-nav.menu-open .nav-menu-toggle .nav-menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.top-nav.menu-open .nav-menu-toggle .nav-menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.top-nav.menu-open .nav-menu-toggle .nav-menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 50px;
  left: 0;
  width: 290px;
  padding: 20px;
  border-right: 1px solid #ddd;
  height: calc(100% - 50px);
  overflow-y: auto;
  background: #fafafa;
}

#right-sidebar {
  position: fixed;
  right: 0;
  top: 50px;
  width: 290px;
  height: 100vh;
  background-color: #fafafa;
  border-left: 1px solid #ccc;
  overflow: auto;
  padding: 10px;
  z-index: 1;
}

.sidebar .profile-pic {
  width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.sidebar p.location {
  margin-top: 20px;
  margin-bottom: 20px;
}

.sidebar h2 {
  margin: 10px 0;
  font-size: 1.2em;
}


/* Main Content */
.main-content {
  margin-left: 300px;
  /* Sidebar width + some space */
  padding: 80px 40px 40px;
  max-width: 800px;
}


main h1 {
  font-size: 1.5em;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-top: 40px;
}

main ul {
  margin-left: 20px;
}

main p {
  margin-bottom: 10px;
}

.sidebar p a i {
  color: #333;
  margin-right: 10px;
}

.sidebar p a:hover i {
  color: #0072b1;
  /* LinkedIn blue on hover */
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  font: inherit;
  color: #333;
  cursor: pointer;
  margin-left: 15px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.dropdown-content a {
  color: #333;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Touch devices: open dropdown via click/toggle class */
.dropdown.show .dropdown-content {
  display: block;
}

.sidebar p a.social-link {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: #333;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

/* Icon spacing + transition */
.sidebar p a.social-link i {
  margin-right: 8px;
  transition: color 0.2s ease;
}

/* LINKEDIN: hover changes both icon and text to blue */
.sidebar p a.social-link.linkedin:hover {
  color: #0072b1;
}

.sidebar p a.social-link.linkedin:hover i.fab.fa-linkedin {
  color: #0072b1;
}

/* GITHUB: hover changes both icon and text to orange */
.sidebar p a.social-link.github:hover {
  color: #f09333;
}

.sidebar p a.social-link.github:hover i.fab.fa-github {
  color: #f09333;
}

#globeContainer {
  width: 1100px;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
  border: 1px solid #ccc;
}

#globeContainer canvas {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;

  top: 0 !important;
  left: 0 !important;
}

#otherContent {
  display: inline-block;
  padding: 20px;
}

.top-nav a.active {
  color: #00bfff;
  /* light blue highlight */
  font-weight: bold;
  text-decoration: underline;
}

/* Abbreviate brand when horizontal space is tight (desktop layout unchanged above 992px) */
@media (max-width: 992px) {
  .nav-brand-full {
    display: none;
  }

  .nav-brand-short {
    display: inline;
  }

  .top-nav .nav-left {
    font-size: 1.45em;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .top-nav {
    padding: 0 12px;
  }

  .nav-menu-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Stack nav in a panel below the bar; hamburger toggles */
  .top-nav .nav-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fafafa;
    border-bottom: 1px solid #ddd;
    padding: 4px 16px 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .top-nav.menu-open .nav-right {
    display: flex;
  }

  .top-nav .nav-right>a {
    margin-left: 0;
    padding: 12px 4px;
    border-bottom: 1px solid #eee;
  }

  .top-nav .dropdown {
    display: block;
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .top-nav .dropbtn {
    width: 100%;
    text-align: left;
    margin-left: 0;
    padding: 12px 4px;
  }

  /* Shorter label in the mobile menu row */
  .dropbtn-label-full {
    display: none;
  }

  .dropbtn-label-short {
    display: inline;
  }

  .top-nav .dropdown-content {
    position: static;
    min-width: unset;
    box-shadow: none;
    border-left: 3px solid #ddd;
    margin: 0 0 8px 8px;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 80px 20px 20px;
  }

  /* Contact form: make fields fill available width */
  #contact input[type="text"],
  #contact input[type="email"],
  #contact textarea {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1370px) {
  #right-sidebar {
    display: none;
    /* hide it on small screens */
  }
}