/* Navbar container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  cursor: pointer;
}

/* ADD THESE NEW BLOCKS BELOW: */

/* Wraps links + toggle button together (PC view) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap; /* prevents wrapping */
}

/* Toggle + hamburger button container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.logo, .nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.logo-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-text {
    color: #6c63ff; /* example color */
    font-weight: 600;
    font-size: 20px;
    text-decoration: none; /* remove underline */
    cursor: pointer;
  }
  
  .logo-text:hover {
    text-decoration: none; /* optional hover effect */
  }

.nav-links {
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.theme-button {
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.theme-button:hover {
  transform: scale(1.1);
}

.theme-toggle-button {
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.theme-toggle-button:hover {
  transform: scale(1.1);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 5% 4rem;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content {
  flex: 1;
  max-width: 600px;
  padding-right: 2rem;
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text);
}

.highlight {
  color: var(--primary);
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(108, 99, 255, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.typewriter {
  height: 2.5rem;
  margin: 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn.secondary:hover {
  background: rgba(108, 99, 255, 0.1);
}

.slideshow-container {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.profile-pic {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
  transition: opacity 0.5s ease-in-out;
}

.skills-section {
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero.visible .skills-section {
  opacity: 1;
  transform: translateY(0);
}

.skills-section {
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero.visible .skills-section {
  opacity: 1;
  transform: translateY(0);
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.skill-item {
  position: relative; /* To place skill-level inside */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  padding: 0.6rem 1rem; /* slightly bigger for text + medal */
  min-width: 90px; /* ensure medal + text fits */
  border-radius: 50px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
  overflow: hidden; /* Keep text inside oval */
}

.hero.visible .skill-item {
  opacity: 1;
  transform: translateY(0);
}

.skill-item:nth-child(1) { transition-delay: 0.5s; }
.skill-item:nth-child(2) { transition-delay: 0.6s; }
.skill-item:nth-child(3) { transition-delay: 0.7s; }
.skill-item:nth-child(4) { transition-delay: 0.8s; }
.skill-item:nth-child(5) { transition-delay: 0.9s; }
.skill-item:nth-child(6) { transition-delay: 1.0s; }
.skill-item:nth-child(7) { transition-delay: 1.1s; }
.skill-item:nth-child(8) { transition-delay: 1.2s; }

.skill-icon {
  color: var(--primary);
  transition: var(--transition);
  z-index: 2;
}

.skill-item:hover .skill-icon {
  transform: rotate(15deg) scale(1.2);
}

.skill-text {
  transition: opacity 0.3s ease;
  z-index: 2;
}

.skill-level {
  position: absolute;
  inset: 0; /* Fill the card */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.9rem; /* smaller text to fit medals nicely */
  opacity: 0;
  transform: translateY(10px); /* Start slightly lower */
  transition: opacity 0.3s ease, transform 0.3s ease; /* Animate fade + slide */
  z-index: 3;
  background: var(--card-bg);
  border-radius: 50px;
  gap: 0.3rem; /* small gap between medal and text */
}

/* On hover: hide skill name, show level with animation */
.skill-item:hover .skill-text {
  opacity: 0;
}

.skill-item:hover .skill-level {
  opacity: 1;
  transform: translateY(0); /* Slide up into place */
}


footer {
  background: #000;
  padding: 1.5rem 2%;
  font-size: 0.9rem;
}

/* Container holding all footer content in one line */
.footer-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: nowrap; /* prevent wrapping */
}

/* Contact info on the left */
.footer-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto; /* grow and shrink as needed */
}

/* Individual contact spans */
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: white;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--primary);
  font-size: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-left: 5rem;     
  margin-right: 4rem;     
}


.footer-social a {
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}


.footer-copyright {
  flex-shrink: 0; /* do not shrink */
  margin-left: 22px; /* push to the far right */
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  white-space: nowrap; /* keep on one line */
}

@media (max-width: 992px) {
  .hero {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 4rem 3% 2rem;
  }

  .hero-content {
    flex: 1 1 55%;
    padding-right: 1rem;
    text-align: left;
    margin-bottom: 0;
  }

  .slideshow-container {
    flex: 1 1 40%;
    margin-top: 0;
  }

  .profile-pic {
    width: 160px;
    height: 160px;
  }

  /* ... other mobile styles for fonts and buttons ... */
}