/* Root */
:root {
  --primary-color: #800bb6;
  --secondary-color: #9c09e0fa;
  --dark-color: #44028a;
  --darker-color: #130119;
  --font: aliceblue;
  --highlight: goldenrod;
  --font-family-sans: "IBM Plex Sans", sans-serif;
  --font-family-serif: "IBM Plex Serif", serif;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --border-radius: 0.5rem;
  --transition-duration: 0.3s;
}

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

/* Body */
body {
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  font-family: var(--font-family-sans);
  line-height: 1.6;
  color: var(--font);
  background-image: linear-gradient(
    #340464fa 25%,
    #380356 50%,
    #2c043c 75%,
    #06000d 100%
  );
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-serif);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
  color: var(--highlight);
}
h4 {
  font-size: 1.2rem;
}

/* Container */
.container {
  overflow: hidden;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--darker-color);
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--highlight);
  text-transform: uppercase;
  text-decoration: none;
  padding: 5px 10px;
  transition: color var(--transition-duration) ease;
}

.logo span,
.home-title span {
  color: var(--secondary-color);
  font-weight: bold;
}

.logo:hover {
  color: var(--secondary-color);
}

.navbar-toggler,
.navbar-closer {
  display: block;
  color: var(--secondary-color);
  background: transparent;
  border: none;
  font-size: 1.5rem;
}

.navbar-closer {
  display: none;
}

.navbar-closer.show {
  display: block;
}

.navbar-toggler.hide {
  display: none;
}

.nav-link {
  position: relative;
  color: var(--highlight);
  font-size: 1.2rem;
  transition: color var(--transition-duration) ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: var(--primary-color);
  transition: width var(--transition-duration) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Buttons */
.btn {
  font-size: 1.2rem;
  padding: 10px 20px;
  border: 1px solid var(--highlight);
  background-color: var(--primary-color);
  color: var(--font);
  transition: box-shadow var(--transition-duration),
    background-color var(--transition-duration),
    font-weight var(--transition-duration);
}

.btn-small {
  display: none;
  margin: 0 auto;
  width: 50%;
  font-size: 1rem;
}

.btn-fixed {
  min-width: 120px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn:hover {
  border: 2px solid var(--highlight);
  background-color: var(--secondary-color);
  box-shadow: 0 0 10px var(--highlight);
  font-weight: bolder;
}

/* Cards */
.card {
  background: linear-gradient(135deg, #dbc3f5 0%, #fdfcfd 50%, #f5da82ad 100%);
  padding: var(--spacing-sm);
  border: 1px solid var(--highlight);
  border-radius: var(--border-radius);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-duration) ease,
    box-shadow var(--transition-duration) ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 350px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 1);
}

.card-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  text-shadow: 1px 1px 2px var(--darker-color);
}

/* Home Section */
.home {
  position: relative;
  overflow: hidden;
  height: 100vh;
  color: var(--font);
}

.home-content,
.img-container {
  z-index: 2;
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.home-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px var(--darker-color);
}

.typewriter {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: bolder;
  margin-bottom: 15px;
  display: inline-block;
  overflow: hidden;
}

.arrow {
  font-size: 1.5rem;
  color: var(--highlight);
  animation: arrow 1s infinite;
}

.home-desc {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-style: italic;
  font-weight: bold;
  color: var(--highlight);
}

/* Social Links */
.social-links {
  margin-bottom: 20px;
  text-align: center;
}

.social-links a {
  margin: 0 10px;
  font-size: 2rem;
  padding: 10px;
  color: var(--highlight);
  transition: color var(--transition-duration) ease,
    transform var(--transition-duration) ease,
    text-shadow var(--transition-duration) ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 5px var(--highlight);
  transform: translateY(-3px);
}

.ionos {
  font-size: 2rem;
  height: 100px;
  width: auto;
}

/* Profile Image */
.home .rounded-circle {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border: none;
  background: linear-gradient(
    90deg,
    var(--highlight),
    var(--secondary-color),
    var(--highlight)
  );
  background-size: 200% 100%;
  animation: gradientAnimation 5s ease infinite;
  box-shadow: 0 0 20px var(--secondary-color);
  transition: transform var(--transition-duration),
    box-shadow var(--transition-duration);
  border-radius: 50%;
  padding: 3px;
}

.hr-small {
  width: 25%;
  margin: 20px auto;
  border: none;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--highlight),
    var(--secondary-color),
    var(--highlight)
  );
  background-size: 200% 100%;
  animation: gradientAnimation 5s ease infinite;
}

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

.home .rounded-circle:hover {
  animation: scaleHover 3s ease-in-out;
}

@keyframes scaleHover {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px var(--secondary-color);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 50px var(--highlight);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px var(--secondary-color);
  }
}

/* Sections */
#about,
#skills,
#projects {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.services-content,
.projects-content,
.skills-content,
.contact-content {
  background: linear-gradient(135deg, #e5dbf5 0%, #39215b7b 100%);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border: 1px solid var(--highlight);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-duration) ease,
    box-shadow var(--transition-duration) ease;
}

.section-heading {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.section-title h2,
.modal-title {
  color: var(--highlight);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px var(--darker-color);
}

.section-title p {
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: var(--spacing-sm);
  color: var(--darker-color);
  width: 75%;
  margin: 0 auto;
}

.subtitle {
  color: var(--highlight);
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px var(--darker-color);
}

/* About Section */
.about-content {
  background: linear-gradient(135deg, #110024a9 0%, #38015c93 100%);
  color: var(--font);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border: 1px solid var(--highlight);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  color: var(--font);
}

.inline-link {
  color: var(--highlight);
  text-decoration: none;
  font-style: italic;
  font-weight: 500;
  transition: all var(--transition-duration) ease;
}

.inline-link:hover {
  color: var(--highlight);
  text-shadow: 2px 2px 4px var(--darker-color);
  border-bottom: 1px solid var(--highlight);
  cursor: pointer;
}

/* Skills Section */
.skills-list-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.skill-item {
  position: relative;
  display: inline-block;
}

.skill-logo {
  display: block;
  max-width: 100px;
  max-height: 100px;
  margin: 0 auto;
  padding: 5px;
}

.skill-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-duration) ease,
    visibility var(--transition-duration) ease;
}

.skill-item:hover .skill-text {
  opacity: 1;
  visibility: visible;
}

/* Services Section */
.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

/* Certifications Section */

#certifications {
  padding: var(--spacing-lg) 0;
}

.badge-category {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}
#certifications .certifications-content {
  background: linear-gradient(135deg, #e5dbf5 0%, #39215b7b 100%);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border: 1px solid var(--highlight);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#certifications .section-title h2 {
  color: var(--highlight);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px var(--darker-color);
}

/* Nav Pills (Tabs) */
#certifications .nav-pills .nav-link {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  background-color: transparent;
  border: 1px solid var(--highlight);
  margin: 0 0.5rem;
  padding: 0.5rem 1.5rem;
  transition: all var(--transition-duration) ease;
}

#certifications .nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: var(--font);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--highlight);
}

#certifications .nav-pills .nav-link:hover {
  background-color: var(--secondary-color);
  color: var(--font);
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px var(--highlight);
}

#certificateId {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
}

/* Footer */
.footer {
  background-color: var(--darker-color);
  color: var(--font);
  font-size: 0.9rem;
  border-top: 2px solid var(--primary-color);
}

.footer-text {
  margin: 0;
  color: var(--font);
}

.footer-link {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-duration) ease,
    text-shadow var(--transition-duration) ease;
}

.footer-link:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 5px var(--primary-color);
}

.footer-separator {
  color: var(--font);
  margin: 0 0.5rem;
}

/* Modal */
.modal .modal-dialog.modal-lg {
  max-width: 90%;
  max-height: 90vh;
  margin: 1rem auto;
  border-radius: var(--border-radius);
  border: var(--highlight) 3px double;
  box-shadow: 0 0 15px var(--highlight);
}

.modal .modal-header {
  background: var(--dark-color);
  color: var(--font);
  border-bottom: var(--highlight) 2px solid;
}

.modal .modal-content {
  background: var(--dark-color);
  height: 100%;
}

.modal .modal-body {
  background: linear-gradient(135deg, #dbc3f5 0%, #fdfcfd 50%, #f5da82ad 100%);
  overflow-y: auto;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
}

.modal .modal-body img {
  max-width: 100%;
  max-height: 50vh;
  height: auto;
  width: auto;
}

.modal .modal-footer {
  background: var(--dark-color);
  border-top: var(--highlight) 2px solid;
  flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer {
    font-size: 0.8rem;
  }

  .footer-link {
    display: block;
    margin: 0.5rem 0;
  }

  .footer-separator {
    display: none;
  }

  .social-links {
    margin-bottom: 0.5rem;
  }

  .social-link {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .btn-large {
    display: none;
  }
  .btn-small {
    display: block;
    font-size: 1rem;
    padding: 5px 10px;
  }
  .home {
    margin-top: 80px;
    text-align: center;
  }
  .home .rounded-circle {
    width: 200px;
    height: 200px;
  }
  .logo {
    font-size: 1.5rem;
  }
  .card-img-top {
    height: 200px;
  }
  .about-content p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
  .section-title p {
    font-size: 1rem;
  }
  .skill-logo {
    max-width: 60px;
    max-height: 35px;
  }
  .footer {
    font-size: 0.8rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .home-content,
  .social-links,
  .btn-large {
    margin-bottom: 20px;
  }
  .home {
    margin-top: 60px;
    text-align: center;
  }
  .home .rounded-circle {
    width: 300px;
    height: 300px;
  }
  .logo {
    font-size: 1.8rem;
  }
  .skill-logo {
    max-width: 75px;
    max-height: 50px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .home-content,
  .social-links,
  .btn-large {
    margin-bottom: 20px;
  }
  .home {
    margin-top: 80px;
    text-align: center;
  }
  .home .rounded-circle {
    width: 350px;
    height: 350px;
  }
  .logo {
    font-size: 2rem;
  }
  .skill-logo {
    max-width: 75px;
    max-height: 50px;
  }
}

@media (min-width: 1201px) {
  .home-content,
  .social-links,
  .btn-large {
    margin-bottom: 20px;
  }
  .home {
    margin-top: 100px;
    text-align: center;
  }
  .home .rounded-circle {
    width: 450px;
    height: 450px;
  }
  .logo {
    font-size: 2.5rem;
  }
}
