/* GENERAL */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  /* Color Palette */
  --primary-purple: #6a0572;
  --secondary-purple: #9b59b6;
  --light-purple: #e0c3fc;
  --light-blue: #8ec5fc;
  --dark-text: #343a40;
  --medium-text: #6c757d;
  --light-text: #adb5bd;
  --background-light: #f8f9fa;
  --background-medium: #f0f2f5;
  --background-white: #ffffff;
  --border-light: #e9ecef;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-strong: rgba(0, 0, 0, 0.25);

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--background-medium);
}

html {
  scroll-behavior: smooth;
}

p {
  padding: 0 var(--spacing-sm);
  font-size: 1.05rem;
  color: var(--medium-text);
  line-height: 1.7;
  text-align: justify;
  margin-bottom: var(--spacing-sm);
}

/* TRANSITION */
a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  font-size: 1.05rem;
  font-weight: 500;
}

a {
  color: var(--dark-text);
  text-decoration: none;
}

a:hover {
 
  text-decoration: underline;
  text-underline-offset: var(--spacing-xs);
  text-decoration-color: var(--secondary-purple);
}

/* Active navigation link style */
.active-nav-link {
  color: var(--primary-purple) !important; /* Force color */
  font-weight: 700 !important; /* Make it bold */
  text-decoration: underline !important;
  text-underline-offset: var(--spacing-xs) !important;
  text-decoration-color: var(--secondary-purple) !important;
}


.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-purple);
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */
#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--dark-text);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--background-white);
  width: fit-content;
  min-width: 180px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px var(--shadow-medium);
}

.menu-links a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1.05rem;
  color: var(--dark-text);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links a:hover {
  background-color: var(--background-light);
  color: var(--primary-purple);
  text-underline-offset: 4px;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* SECTIONS */
section {
  padding: var(--spacing-xxl) var(--spacing-md);
  margin: 0 auto;
  box-sizing: border-box;
  min-height: fit-content;
  overflow: hidden;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-container {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
}

/* PROFILE SECTION */
#profile {
  /* height: 650px; */
  padding-top: 100px;
  position: relative;
  overflow: hidden;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Background shapes for profile section */
#profile::before,
#profile::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  filter: blur(50px);
  opacity: 0.6;
  z-index: 0;
}

#profile::before {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -50px;
}

#profile::after {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -100px;
}

#image1 {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
}

#image1 img {
  height: 380px;
  width: 380px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px var(--shadow-strong);
}

.section__pic-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 400px;
}

.section__text {
  align-self: center;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.section__text p {
  font-weight: 500;
  margin: 5px auto;
  color: var(--dark-text);
  text-align: center;
}

.section__text__p1 {
  font-size: 1.2rem;
  color: var(--medium-text);
}

.section__text__p2 {
  font-size: 2.2rem;
  color: var(--dark-text);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.title {
  background: linear-gradient(to right, var(--primary-purple), var(--secondary-purple));
  -webkit-background-clip: text;
  padding: 2px;
  -webkit-text-fill-color: transparent;
  font-size: 3.5rem;
  text-align: center;
  margin: var(--spacing-sm) auto var(--spacing-lg) auto;
  font-weight: 800;
}

/* Typing animation specific styles */
#typing-name {
  display: inline-block;
}

.typing-cursor {
  display: inline-block;
  background-color: var(--primary-purple);
  width: 3px;
  height: 1.1em;
  vertical-align: middle;
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


/* BUTTONS */
.btn-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
}

.btn-color-2 {
  background: linear-gradient(to right, var(--primary-purple), var(--secondary-purple));
  color: white;
  box-shadow: 0 6px 15px var(--shadow-light);
}

.btn-color-2:hover {
  background: linear-gradient(to right, #500456, #84479e);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow-medium);
}

/* ABOUT SECTION */
#about {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) auto;
  box-shadow: 0 8px 25px var(--shadow-light);
  padding: var(--spacing-xxl) var(--spacing-md);
}

.about-containers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: center;
  margin-top: var(--spacing-lg);
  width: 100%;
}

.about-details-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 300px;
}

.about-pic {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px var(--shadow-light);
  max-width: 100%;
  height: auto;
}

/* EXPERIENCE SECTION */
#experience {
  background-color: var(--background-medium);
  padding: var(--spacing-xxl) var(--spacing-md);
}

.experience-sub-title {
  color: var(--medium-text);
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: var(--spacing-lg);
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.article-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background-color: var(--background-white);
  box-shadow: 0 4px 15px var(--shadow-light);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

article:hover::before {
  opacity: 1;
}

article:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px var(--shadow-medium);
}

article .tool-icon {
 
  height: 50px;
  object-fit: contain;
  margin-top: 15px;
  transition: transform 0.3s ease, filter 0.3s ease;
  position: relative;
  z-index: 1;
}

article:hover .tool-icon {
  transform: scale(1.1);
  filter: brightness(1.5);
}

article::after {
  content: attr(title);
  position: relative;
  bottom: auto;
  color: var(--dark-text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
  z-index: 1;
  margin-top: auto;
}


/* PROJECTS SECTION */
#recent-projects {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) auto;
  box-shadow: 0 8px 25px var(--shadow-light);
  padding: var(--spacing-xxl) var(--spacing-md);
}

.projects-container-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#recent-projects .projects-carousel {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: var(--spacing-lg);
  overflow-x: visible;
  scroll-behavior: auto;
  width: 100%;
}

.project-card {
  background: var(--background-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 6px 20px var(--shadow-light);
  flex-shrink: 0;
  width: 320px;
  min-width: 280px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow-medium);
}

.project-img {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: var(--spacing-sm);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.project-title {
  font-size: 1.5rem;
  color: var(--dark-text);
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
}

.proj-p {
  font-size: 1rem;
  padding: 0;
  color: var(--primary-purple);
  text-align: center;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.project-tag {
  color: var(--medium-text);
  font-size: 0.85rem;
  margin-bottom: var(--spacing-sm);
  flex-grow: 1;
  text-align: center;
}

.more-details-link {
  display: inline-block;
  background: linear-gradient(to right, var(--primary-purple), var(--secondary-purple));
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.more-details-link:hover {
  background: linear-gradient(to right, #500456, #84479e);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.view-all-projects-link {
  display: inline-block;
  margin-top: var(--spacing-lg);
  font-size: 1.1rem;
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 25px;
  border: 2px solid var(--secondary-purple);
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.view-all-projects-link:hover {
  background-color: var(--secondary-purple);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* SERVICES */
#service .what-i-do-container {
  background-color: #eae5ff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-xxl) var(--spacing-md);
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.what-i-do-description {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  color: var(--medium-text);
}

.service-boxes {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.service-box {
  background: var(--background-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  width: 280px;
  box-shadow: 0 6px 20px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-box:hover {
  background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--primary-purple) 100%);
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--shadow-medium);
}

.service-box h3 {
  color: var(--primary-purple);
  margin: var(--spacing-sm) 0 var(--spacing-xs);
  font-size: 1.4rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-box p {
  font-size: 1rem;
  color: var(--medium-text);
  padding: 0;
  transition: color 0.3s ease;
}

.service-box:hover h3,
.service-box:hover p {
  color: white;
}

/* CONTACT */
#contact {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  height: fit-content;
  padding: var(--spacing-xxl) var(--spacing-md);
  color: white;
}


#contact .section__text__p1 {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

#contact .title {
  background: none;
  -webkit-text-fill-color: white;
  color: white;
  text-align: center;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px var(--shadow-strong);
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-md);
  max-width: 600px;
  width: 100%;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin: 0;
  width: auto;
  flex-basis: auto;
}

.contact-info-container p {
  font-size: 1.1rem;
  color: white;
  padding: 0;
  text-align: center;
}

.contact-info-container p a {
  color: white;
  text-decoration: none;
}

.contact-info-container p a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.contact-icon {
  cursor: default;
  height: 35px;
  filter: brightness(2);
}

.email-icon {
  height: 35px;
}

/* FOOTER SECTION */
footer {
  margin-top: var(--spacing-lg);
  text-align: center;
  width: 100%;
  padding: var(--spacing-md) 0;

}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 0.95rem;
  padding: 0;
  margin-bottom: 0;
}

footer p a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin: 0;
  font-size: 0.95rem;
}

footer p a:hover {
  color: var(--light-purple);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--light-purple);
}

.copyright {
  margin-top: var(--spacing-xs);
}

/* ANIMATIONS */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(80px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slideInUp 0.9s ease-out forwards;
  opacity: 0;
}
