/* ===================================================================
   CSS VARIABLES
   =================================================================== */
:root {
  --font-primary: "Roboto", sans-serif;
  --font-display: "Montserrat", sans-serif;
  --font-logo: "Montserrat Alternates", sans-serif;
  --font-effect: "Concert One", sans-serif;
  --color-background-dark: #131314;
  --color-navbar-footer: #161617;
  --color-text-dark: #eaeaea;
  --color-text-light: #1d1d1f;
  --color-accent: #007aff;
  --radius-default: 16px;
  --radius-button: 10px;
  --shadow-subtle: 0 4px 10px rgba(0, 0, 0, 0.2);
  --shadow-lift: 0 0 30px rgba(0, 0, 0, 0.5);
  --border-subtle: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================================================
   GLOBAL & TYPOGRAPHY
   =================================================================== */
html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-dark);
  font-family: var(--font-display);
}

h1 {
  font-size: 48px;
}

h2 {
  margin-top: 50px;
}

p {
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 1.6;
}

hr {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===================================================================
   NAVIGATION
   =================================================================== */
.custom-navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: var(--color-navbar-footer) !important;
  border-bottom: var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  height: 60px; /* unified height */
  display: flex;
  align-items: center; /* ensures vertical centering */
}

/* Make brand content flex-aligned */
.navbar-brand.custom-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Logo scaling (auto-centers perfectly in 60px navbar) */
.logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.custom-navbar-toggler .menu-icon {
  height: 30px;
  width: 30px;
  stroke: var(--color-text-dark);
}

/* --- LOGO ANIMATION RESTORED --- */
.split-text-container {
  display: flex;
  font-size: 20px;
  font-weight: bold;
  font-family: var(--font-logo);
  text-transform: none;
  overflow: hidden;
}

.text-part {
  display: inline-block;
  position: relative;
  transform: translateX(0);
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  color: var(--color-text-dark);
}

.text-part.left {
  transform: translateX(-200%);
  animation-name: slide-in-left;
  margin-right: 6px;
}

.text-part.right {
  transform: translateX(200%);
  animation-name: slide-in-right;
}

@keyframes slide-in-left {
  0% {
    transform: translateX(-200%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  0% {
    transform: translateX(200%);
  }

  100% {
    transform: translateX(0);
  }
}

/* --- END LOGO ANIMATION RESTORED --- */

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* STYLE LINKS AS BUTTONS */
.navbar-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin: 5px 10px;
  color: var(--color-text-dark);
  padding: 6px 14px;
  border-radius: var(--radius-button);
  transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow: 0 0 10px rgba(0, 122, 255, 0.2);
  transform: translateY(-1px);
}

.contact-link {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  margin: 5px 10px;
  border-radius: var(--radius-button);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.contact-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 122, 255, 0.2);
  transform: translateY(-1px);
}

.contact-link img {
  filter: brightness(0) invert(1);
  height: 20px;
  width: 20px;
  margin-top: 0;
}

.navbar-collapse .navbar-nav {
  text-align: left;
  margin-left: 20px;
}

/* ===================================================================
   SECTION 1: HERO & INTRO
   =================================================================== */
#section-1 {
  height: 100%;
  overflow: auto;
  background: var(--color-background-dark);
  padding-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Container Style (Frosted Card) */
.custom-container-hero {
  height: auto;
  min-height: 500px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lift);
  margin-top: 20px;
  margin-bottom: 50px;
}

/* --- Hero Layout (Single Centered Column) --- */
.cs {
  justify-content: center;
}

.simple-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-text-dark);
  margin-top: 20px;
  margin-bottom: 0;
}

.profile {
  width: 100%;
  max-width: 400px;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 0;
  margin-bottom: 0;
  border: none;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.introduction>h1 {
  margin-top: 20px;
  color: var(--color-accent);
  font-size: 32px;
  text-align: center;
}

.introduction>p {
  margin-top: 20px;
  text-align: left;
  color: var(--color-text-dark);
}

#greeting {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-accent);
  text-align: center;
}

.introduction_btn_group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-left: 0;
}

.cursor-box {
  width: fit-content;
  height: 50px;
  border-radius: var(--radius-button);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  font-weight: bold;
  border: var(--border-subtle);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-dark);
}

.cursor-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0, 122, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
}

.pointer {
  cursor: pointer;
  background: transparent;
  color: var(--color-text-dark);
  text-decoration: none;
  font-family: var(--font-display);
}

.pointer:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0, 122, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===================================================================
   SECTION 2: SKILLS
   =================================================================== */
#section-2 {
  background-color: var(--color-background-dark);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-fluid {
  padding: 0;
}

.custom-container-skills {
  width: 100%;
  height: auto;
  min-height: 500px;
  padding-top: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lift);
  margin-top: 20px;
}

.skills {
  font-weight: bold;
  color: var(--color-accent);
  background: none;
  -webkit-text-fill-color: var(--color-accent);
}

.custom-row {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

#change-skills {
  color: var(--color-text-dark);
  text-align: left;
}

.sub-titile {
  color: var(--color-accent);
  margin-top: 50px;
}

.sub-p {
  color: rgba(255, 255, 255, 0.6);
  font-weight: bold;
}

.btn-secondary {
  gap: 5px;
  margin: 5px;
  padding: 5px 15px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-dark);
  border: var(--border-subtle);
  border-radius: var(--radius-button);
  transition: all 0.2s ease-out;
  width: fit-content;
  min-width: 120px;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-subtle);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer-container {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  background-color: var(--color-navbar-footer) !important;
  border-top: var(--border-subtle);
  flex-shrink: 0;
}

.footer-icon {
  padding: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.footer-icon img {
  height: 20px;
  width: 20px;
  filter: brightness(0) invert(1);
}

.rights {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
}

/* ===================================================================
   MEDIA QUERIES
   =================================================================== */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 60px; /* match navbar height */
    left: 0;
    width: 100vw;
    background-color: var(--color-navbar-footer) !important;
    padding: 10px 0;
    z-index: 1029;
  }

  .navbar .container,
  .navbar .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .navbar-nav {
    width: 100%;
    align-items: flex-start !important;
  }

  .navbar-nav .nav-link,
  .contact-link {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    color: var(--color-text-dark) !important;
  }

  .navbar-nav .nav-link:hover,
  .contact-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Smaller logo for mobile if desired */
  .logo-img {
    height: 25px;
    margin-left:10px;
  }

  /* Remove container padding so menu aligns flush with screen edges */
  .navbar .container,
  .navbar .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #section-1 {
    padding-top: 50px;
  }

  #section-2 {
    padding-bottom: 100px;
  }

  .custom-container-hero {
    padding: 20px 15px;
    background-color: transparent;
    border: none;
    box-shadow: none;
  }

  .custom-container-skills {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
      linear-gradient(320deg,
        rgb(41, 74, 66) 3%,
        rgb(18, 40, 62) 38%,
        rgb(66, 50, 28) 68%,
        rgb(33, 26, 26) 98%);
    animation: gradient 18s ease infinite;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  @keyframes gradient {
    0% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }

    100% {
      background-position: 0% 50%;
    }
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 24px;
    margin-top: 30px;
  }

  .simple-title {
    font-size: 2rem;
    text-align: center;
  }

  .introduction>h1 {
    font-size: 28px;
  }

  .profile img {
    width: 250px;
    height: 250px;
    margin-bottom: 20px;
  }

  .skills {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .btn-secondary {
    font-size: 13px;
    padding: 8px 15px;
    margin: 3px;
    min-width: 100px;
  }

  .footer-container {
    height: auto;
    padding: 10px 0;
  }

  .footer-icon img {
    height: 18px;
    width: 18px;
  }

  .rights {
    font-size: 0.65rem;
  }
}

@media (min-width: 992px) {
  .profile img {
    width: 350px;
    height: 350px;
  }

  .custom-row {
    max-width: 60vw;
  }
}