/* =======================
   🌐 Global Styles & Reset
   ======================= */

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

html,
body {
  height: 100vh;
  height: 100dvh;
  min-width: 100%;
  background-color: #0f0f0f;
  color: white;
  font-family: Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

img,
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  text-decoration: none;
}

section {
  min-height: 100%;
  padding: 2rem 5rem;
  line-height: 1.6;
}

.hidden {
  display: none;
}

.flex-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

/* =======================
   🧱 Layout & Structure
   ======================= */
.container {
  width: 100%;
  display: flex;
}

.sidebar {
  width: 30%;
  max-width: 30%;
  height: 100vh;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
  text-align: center;
  position: relative; /* Needed for pseudo-element */
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 2px;
  height: 80%;
  background: rgba(255, 255, 255, 0.15); /* Solid soft white */
  border-radius: 2px;
  pointer-events: none;
}

.sidebar h1 {
  font-size: 2rem;
}

.sidebar-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20%;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.skills-title {
  font-size: 1.75rem;
}

.intro p {
  /* border: 1px solid white; */
  width: 80%;
}
.intro p:not(:last-child) {
  margin-bottom: 2rem;
}

.intro h2 {
  margin-bottom: 2rem;
}

.content {
  width: 70%;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.content p {
  font-size: 1.125rem;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 3px solid #4a90e2;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
}

.profile-photo-mobile {
  display: none;
}

.nav-list {
  list-style: none;
  width: 100%;
  margin-top: 2rem;
}

.nav-list a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  font-weight: 500;
  color: white;
}

.nav-list a:hover,
.nav-list a.active,
.nav-list a:focus {
  background-color: black;
  color: white;
}

.section-divider {
  border: none;
  height: 2px;
  width: 10rem;
  background: rgba(255, 255, 255, 0.15); /* Same as sidebar border */
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
}

/* About */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.skill-category {
  background: #232323;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s, background 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.skill-category:hover {
  background: #282828;
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.skill-category h3 {
  color: #5bbad5;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.skill-category p {
  color: #bbb;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category li {
  color: #fff;
  padding: 0.5rem 0;
  border-bottom: 1px solid #333;
  position: relative;
  padding-left: 1.5rem;
}

.skill-category li:before {
  content: "▹";
  color: #5bbad5;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.skill-category li:last-child {
  border-bottom: none;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card.skeleton {
  background: #232323;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  padding: 2rem 1.5rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transition: box-shadow 0.2s, background 0.2s, transform 0.2s, filter 0.2s;
}

.project-card.skeleton:hover {
  background: #282828;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.project-desc {
  color: #bbb;
  font-size: 1rem;
}

/* contact */
#contact {
  height: auto;
  min-height: auto;
}

/* Social Icons Styling */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 50%;
  padding: 0.25rem;
}

.social-icon-link:hover,
.social-icon-link:focus {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25);
  outline: none;
}

.social-icon-link svg {
  display: block;
}

/* Email Form Styling */
.email-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.email-form label {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.email-form textarea {
  width: 320px;
  min-width: 220px;
  max-width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #232323;
  resize: vertical;
  font-size: 1rem;
  font-family: inherit;
  background: #181818;
  color: #fff;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.08);
  transition: box-shadow 0.2s, border 0.2s;
}

.email-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #4a90e2;
  border-color: #4a90e2;
}

.email-form button {
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 6px;
  background: #232323;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.email-form button:hover,
.email-form button:focus {
  background: #181818;
  transform: translateY(-2px) scale(1.05);
  outline: none;
}

/* Scroll button */
.scroll-up-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.75rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 1000;
}

.scroll-up-btn:hover,
.scroll-up-btn:focus {
  background: transparent;
  transform: scale(1.15);
  outline: none;
}

.scroll-up-btn svg {
  display: block;
  fill: #fff;
  transition: filter 0.2s;
}

.scroll-up-btn:hover svg,
.scroll-up-btn:focus svg {
  filter: brightness(1.5);
}

/* =======================
   📱 Responsive & Media Queries
   ======================= */
.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  margin-right: 0.75rem;
  cursor: pointer;
}

.mobile-menu-toggle svg {
  display: block;
  width: 28px;
  height: 28px;
  transition: opacity 0.2s;
}

.mobile-menu-toggle:hover svg {
  opacity: 0.8;
}

.mobile-header {
  display: none;
  width: 100%;
  height: 60px;
  justify-content: end;
  align-items: center;
  background-color: #0f0f0f;
  border-bottom: 1px solid #333;
  position: fixed;
}

.mobile-nav {
  background-color: #0f0f0f;
  padding: 1rem;
  width: 100%;
  position: fixed;
  top: 60px;
  left: 0;
  z-index: 999;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
}

.mobile-nav li {
  margin-bottom: 1rem;
}

.mobile-nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .profile-photo-desktop {
    display: none;
  }

  .profile-photo-mobile {
    display: block;
  }

  .sidebar {
    justify-content: center;
  }

  section {
    padding: 2rem;
  }

  .intro p {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    display: none;
  }

  .content {
    /* padding: 0.5rem; */
    width: 100%;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    margin-top: 60px;
    overscroll-behavior: contain;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .skill-category h3 {
    font-size: 1.25rem;
  }

  .container {
    flex-direction: column;
  }

  .scroll-up-btn {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .project-card.skeleton {
    padding: 1.25rem 1rem;
    min-height: 120px;
  }
  .project-title {
    font-size: 1.1rem;
  }
  .project-desc {
    font-size: 0.95rem;
  }
}

/* =======================
   The End
   ======================= */

/* Here's a chill Pikachu as well (is this what they call, an easter egg?) */
/*
quu..__
 $$$b  `---.__
  "$$b        `--.                          ___.---uuudP
   `$$b           `.__.------.__     __.---'      $$$$"              .
     "$b          -'            `-.-'            $$$"              .'|
       ".                                       d$"             _.'  |
         `.   /                              ..."             .'     |
           `./                           ..::-'            _.'       |
            /                         .:::-'            .-'         .'
           :                          ::''\          _.'            |
          .' .-.             .-.           `.      .'               |
          : /'$$|           .@"$\           `.   .'              _.-'
         .'|$u$$|          |$$,$$|           |  <            _.-'
         | `:$$:'          :$$$$$:           `.  `.       .-'
         :                  `"--'             |    `-.     \
        :##.       ==             .###.       `.      `.    `\
        |##:                      :###:        |        >     >
        |#'     `..'`..'          `###'        x:      /     /
         \                                   xXX|     /    ./
          \                                xXXX'|    /   ./
          /`-.                                  `.  /   /
         :    `-  ...........,                   | /  .'
         |         ``:::::::'       .            |<    `.
         |             ```          |           x| \ `.:``.
         |                         .'    /'   xXX|  `:`M`M':.
         |    |                    ;    /:' xXXX'|  -'MMMMM:'
         `.  .'                   :    /:'       |-'MMMM.-'
          |  |                   .'   /'        .'MMM.-'
          `'`'                   :  ,'          |MMM<
            |                     `'            |tbap\
             \                                  :MM.-'
              \                 |              .''
               \.               `.            /
                /     .:::::::.. :           /
               |     .:::::::::::`.         /
               |   .:::------------\       /
              /   .''               >::'  /
              `',:                 :    .'
                                   `:.'
*/
