/* style.css */

/* Global Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  scroll-behavior: smooth;
}

.section {
  padding: 80px 10%;
  position: relative;
}

h2 {
  font-size: 2.5rem;
  color: #58a6ff;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.greeting {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: linear-gradient(270deg, #14213d, #1e3a8a, #0f172a);
  background-size: 600% 600%;
  animation: backgroundBlink 6s ease infinite;
  color: #74b9ff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(116, 185, 255, 0.2);
  margin-top: 25px;
  margin-left: 25px;
}

@keyframes backgroundBlink {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.wave {
  display: inline-block;
  margin: 0 5px;
  animation: wave-animation 2s infinite;
  transform-origin: 70% 70%;
  font-size: 16px;
}

@keyframes wave-animation {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

.animated-move {
  animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}



/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: #161b22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 10%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 8px #58a6ff, 0 0 16px #58a6ff;
  }
  50% {
    opacity: 0.2;
    transform: scale(1.05);
    text-shadow: 0 0 4px #58a6ff;
  }
}

.logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #58a6ff 0%, #004e92 100%);
  padding: 8px 16px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  animation: blink 1.7s infinite ease-in-out;
  box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
  transition: all 0.3s ease;
}




.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links li a {
  color: #c9d1d9;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
}

.nav-links li a:hover::after {
  content: '';
  width: 100%;
  height: 2px;
  background: #58a6ff;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.project-btn {
  background: #238636;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Home Section */
.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 100px;
  flex-wrap: wrap;
  top: -60px;
}

.left {
  flex: 1;
  min-width: 300px;
  top: -30px;
}

.name {
  font-size: 3rem;
  background: linear-gradient(to right, #58a6ff, #d946ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role .highlight {
  color: #d946ef;
}

.contact {
  margin: 5px 0;
}

.buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.btn {
  background: #58a6ff;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #1f6feb;
}

.typing-text {
  font-size: 1.5rem;
  margin-top: 10px;
}

#changing-text {
  display: inline;  /* ✅ Keep it on the same line */
  color: #d946ef;
  font-weight: 600;
  border-right: 2px solid white;
  white-space: nowrap;
  overflow: hidden;
  animation: blink-caret 0.75s step-end infinite;
}


@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}


.btn-outline {
  background: transparent;
  border: 2px solid #58a6ff;
  color: #58a6ff;
}

.btn-outline:hover {
  background: #58a6ff;
  color: white;
}

.right .profile-pic {
  width: 450px;
  height: 450px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
  margin-top: -100px; /* 👈 move image upward */
  margin-left: -200px;
  margin-right: -100px;

}





/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.skill-card {
  background: #21262d;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.skill-card:hover {
  transform: scale(1.05);
  background: #30363d;
}

/* Education Cards */
.edu-entry {
  background: #161b22;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .home-content {
    flex-direction: column;
    text-align: center;
  }

  .right {
    margin-top: 30px;
  }
}

/* 👇 This should be separate, not nested inside the one above */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    overflow-x: auto; /* ✅ ensure container allows scroll */
    width: 100vw;      /* ✅ full width */
  }

  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    gap: 12px;
    padding: 10px 0;
    margin: 0;
  }

  .nav-links li {
    display: inline-block;
    flex: 0 0 auto; /* ✅ prevent shrinking */
    white-space: nowrap;
  }

  .nav-links li a,
  .nav-links li .button {
    font-size: 0.85rem;
    padding: 6px 12px;
    background-color: #21262d;
    border-radius: 6px;
    color: white;
    white-space: nowrap;
  }

  /* Optional scroll bar styles */
  .nav-links::-webkit-scrollbar {
    height: 6px;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: #58a6ff;
    border-radius: 4px;
  }
}
html, body {
  overflow-x: hidden;  /* prevent page scroll */
}

.nav-links {
  overflow-x: auto;
}







/* Hide hamburger by default */
.hamburger {
  display: none;
  font-size: 1.2rem;
  cursor: pointer;
  background: #161b22;
  padding: 6px 10px;
  border-radius: 8px;
  color: #3b82f6;
}

/* Mobile dropdown menu */
.mobile-menu {
  position: fixed;
  top: 60px;
  left: 10px;
  right: 10px;
  background: #0d1117;
  padding: 20px;
  border-radius: 12px;
  z-index: 999;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  align-items: center;    /* ✅ Center horizontally */
  text-align: center;
}

.mobile-menu.active {
  display: flex;
}

.hidden {
  display: none !important;
}


.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.mobile-nav-links li a {
  text-decoration: none;
  color: white;
  background: #161b22;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 1rem;
}

@media screen and (max-width: 768px) {
  .nav-links,
  #loggedInFeatures {
    display: none !important;
  }

  .hamburger {
    display: block;
  }
}


.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto; /* ✅ pushes to right */
}






/* From Uiverse.io by Damithkumara */ 



/*.nav-links li .buttonn {
  position: relative;
  overflow: hidden;
  padding: 0.4em 1em;
  font-size: 13px;
  border: 2px solid #ff0;
  background: transparent;
  color: #ff0; /* show visible text */
  /*text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  z-index: 1;
}

/* From Uiverse.io by mrhyddenn */ 
.nav-links li .button {
  position: relative;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid rgb(61, 106, 255);
  font-size: 14px;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 2px;
  background: transparent;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 0 transparent;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}

.nav-links li .button:focus {
  outline: none;
  box-shadow: none;
}

.nav-links li .a.button {
  border-bottom: none;
  text-decoration: none;
}



.nav-links li .button:hover {
  background: rgb(61, 106, 255);
  box-shadow: 0 0 30px 5px rgba(0, 142, 236, 0.815);
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.nav-links li .button:hover::before {
  -webkit-animation: sh02 0.5s 0s linear;
  -moz-animation: sh02 0.5s 0s linear;
  animation: sh02 0.5s 0s linear;
}

.nav-links li .button::before {
  content: '';
  display: block;
  width: 0px;
  height: 86%;
  position: absolute;
  top: 7%;
  left: 0%;
  opacity: 0;
  background: #fff;
  box-shadow: 0 0 50px 30px #fff;
  -webkit-transform: skewX(-20deg);
  -moz-transform: skewX(-20deg);
  -ms-transform: skewX(-20deg);
  -o-transform: skewX(-20deg);
  transform: skewX(-20deg);
}

@keyframes sh02 {
  from {
    opacity: 0;
    left: 0%;
  }

  50% {
    opacity: 1;
  }

  to {
    opacity: 0;
    left: 100%;
  }
}

.nav-links li .button:active {
  box-shadow: 0 0 0 0 transparent;
  -webkit-transition: box-shadow 0.2s ease-in;
  -moz-transition: box-shadow 0.2s ease-in;
  transition: box-shadow 0.2s ease-in;
}
.nav-btn {
  padding: 8px 14px;
  transition: all 0.3s ease;
  color: white;
  border: none;
  background: transparent;
  font-size: 16px;
  letter-spacing: 1px;
}

.nav-btn:hover {
  letter-spacing: 3px;
  color: #ffcc00;
}

.scroll-ticker {
  width: 100vw;
  overflow: hidden;
  background: transparent;
  margin-top: 20px;
  position: fixed;         /* ✅ Fixed at bottom */
  bottom: 0;
  left: 0;
  height: 30px;            /* Your original height */
  z-index: 9999;
}

.scroll-text {
  position: absolute;
  white-space: nowrap;
  display: inline-block;
  color: #ff5858;           /* 🔥 Your color */
  font-size: 1.1rem;        /* ✅ Your font size */
  text-shadow: 
    0 0 5px #ff5858, 
    0 0 10px #b62020;       /* ✅ Your glowing red-pink shadow */
  animation: scroll-left 17s linear infinite;
  padding-right: 50px;     /* ✅ Smooth looping */
}

@keyframes scroll-left {
  0% {
    transform: translateX(100vw);  /* Start off-screen right */
  }
  100% {
    transform: translateX(-100%);  /* Scroll off-screen left */
  }
}

html, body {
  overflow-x: hidden;
}

.left {
  position: relative;
  z-index: 1; /* keep it below the ticker */
}


/* Home Section Background */
#home {
  background-image: url('');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}


/* About Section Background */
#about {
  background-image: url('images/bg-about.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

/* Skills Section Background */
#skills {
  background-image: url('images/bg-skills.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

/* Certificates Section Background */
#certificates {
  background-image: url('images/bg-certificates.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

/* Education Section Background */
#education {
  background-image: url('images/bg-education.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

#home {
  background-image: url();  /* Path to your image */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: scroll;
}

/* Background Canvas */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, #020111 0%, #000000 100%);
}


/* NAVBAR WRAPPER */
/* Main navbar - transparent by default */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px 0;
  display: flex;
  justify-content: center;
  z-index: 999;
  transition: all 0.4s ease;
  background-color: transparent;
}

/* Container inside navbar */
.nav-container {
  display: flex;
  align-items: center;
  width: 100%;              /* ✅ Full width */
  padding: 6px 16px;
  gap: 15px;
  box-sizing: border-box;   /* ✅ Prevent overflow */
  transition: all 0.4s ease;
}


/* Default state - no background, no border, no curve */
.nav-container {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* SCROLLED STATE — stylish design */
.navbar.scrolled .nav-container {
  background-color: rgba(22, 27, 34, 0.85);
  border: 1px solid #3b82f6;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Logo */
.logo {
  font-size: 1.rem;
  font-weight: bold;
  color: white;
  background-color: #3b82f6;
  padding: 6px 10px;
  border-radius: 10px;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
}

.nav-links a:hover {
  border-bottom: 2px solid #3b82f6;
}

/* Right-side actions */
.actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

/* Dark mode toggle */
.dark-toggle {
  background-color: #21262d;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  color: #3b82f6;
  transition: background-color 0.3s;
}

.dark-toggle:hover {
  background-color: #2a3039;
}

/* Project button */
.project-btn {
  background-color: #3b82f6;
  color: white;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.project-btn:hover {
  background-color: #2563eb;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .home-content {
    flex-direction: column;
    text-align: center;
  }

  .left, .right {
    width: 100%;
  }

  .profile-pic {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}






ul {
  list-style: none;
}

.example-2 {
  display: flex;
  justify-content: left;
  align-items: last baseline;
   /* Position adjust */
  margin-top: 30px;   /* move down */ 
  margin-left: -50px; /* move left */
}
.example-2 .icon-content {
  margin: 0 10px;
  position: relative;
}
.example-2 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}
.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}
.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
}
.example-2 .icon-content a:hover {
  color: white;
}
.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="whatsapp"] .filled,
.example-2 .icon-content a[data-social="whatsapp"] ~ .tooltip {
  background-color: #00ff4c;
}

.example-2 .icon-content a[data-social="facebook"] .filled,
.example-2 .icon-content a[data-social="facebook"] ~ .tooltip {
  background-color: #3b5998;
}
.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(
    45deg,
    #405de6,
    #5b51db,
    #b33ab4,
    #c135b4,
    #e1306c,
    #fd1f1f
  );
}
.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
  background-color: #ff0000;
}

.example-2 .icon-content a[data-social="linkedin"] .filled,
.example-2 .icon-content a[data-social="linkedin"] ~ .tooltip {
  background-color: #3b5998;
}

.name {
  font-size: 60px;
  line-height: 2;         /* removes extra spacing above and below */
  margin: 0;              /* removes default margins */
  padding: 0;
}




/*                                    ABOUT ME                                                             */





/* About Section Layout */
.about-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: white;
}

/* Container */
.about-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 50px 30px;
  max-width: 850px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1.2s ease-in-out;
}

/* Title */
.about-title {
  font-size: 3rem;
  margin-bottom: 20px;
}
.about-title span {
  background: linear-gradient(to right, #ff758c, #ff7eb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Intro text */
.about-intro {
  font-size: 1.3rem;
  font-style: italic;
  color: #ddd;
  margin-bottom: 30px;
  animation: fadeIn 1.5s ease-in;
}

/* Detailed paragraph */
.about-details {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 35px;
  animation: fadeIn 2s ease-in;
}

/* Highlighted keywords */
.highlight {
  color: #ff9de2;
  font-weight: 600;
}

/* Button */
.about-btn {
  background: linear-gradient(90deg, #00d2ff, #3a47d5);
  padding: 14px 28px;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 210, 255, 0.4);
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .about-title {
    font-size: 2.2rem;
  }
  .about-intro, .about-details {
    font-size: 1rem;
  }
}


#skills {
  text-align: center;
  padding: 60px 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  justify-items: center;
  margin-top: 30px;
}

.skill-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-icon img {
  width: 50%;
  height: auto;
}

.skill-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}





/* -------------------- certificate                                 */

.certificate-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: all 0.5s ease-in-out;
}

.certificate-slide {
  display: none;
  animation: fadeIn 1s ease-in-out;
}

.certificate-slide.active {
  display: block;
}

.certificate-slider.hovered {
  animation: borderGlow 1s infinite alternate;

}

.certificate-slide img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  object-fit: contain;
  display: block;
  border-radius: 10px;
}


@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes borderGlow {
  from { box-shadow: 0 0 20px #00c2ff; }
  to { box-shadow: 0 0 30px #6f00ff; }
}


/*                              education                    /*

/* Keyframe for blinking */
@keyframes softBlinkBlue {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

@keyframes moveDownTiny {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}

.edu-entry:hover {
  animation: softBlinkBlue 2s infinite, moveDownTiny 0.3s ease forwards;
  background: linear-gradient(135deg, #4facfe, #00f2fe); /* Bluish gradient */
  border-radius: 10px;
  color: #fff;
  padding: 8px 12px;
  box-shadow: 0 0 6px #4facfe, 0 0 8px #00f2fe; /* Soft blue glow */
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}




/*      -----------------     leetcode                  */



.leetcode-section {
  text-align: center;
  padding: 60px 20px;
  background: transparent; /* No background */
}

.leetcode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.leetcode-avatar {
  width: 600px;
  height: auto;
  border: 3px solid #28a745;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.leetcode-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(40, 167, 69, 0.8);
  animation: green-blink 0.8s infinite alternate;
}

@keyframes green-blink {
  from {
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.7);
  }
  to {
    box-shadow: 0 0 35px rgba(40, 255, 120, 1);
  }
}

.leetcode-info {
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.leetcode-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: #28a745;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.leetcode-link:hover {
  background: #218838;
  transform: scale(1.05);
}




/*  ----------               github                          */

.github-section {
  padding: 40px;
  color: #fff;
  background: transparent;
  text-align: center;
}

.github-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.github-card {
  background: #0e0e1a;
  border: 1px solid #1a1a2e;
  border-radius: 12px;
  padding: 20px;
  width: 280px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  cursor: pointer;
}

.github-card:hover {
  background: linear-gradient(135deg, #1f3b4d, #1b2735);
  transform: scale(1.03);
  border-color: #00f7ff;
}

.github-title {
  font-size: 1.2rem;
  color: #3498db;
  font-weight: bold;
  text-decoration: none;
}

.github-description {
  margin: 10px 0;
  color: #ccc;
  transition: color 0.3s ease;
}

.github-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #888;
}

.stats {
  font-size: 1rem;
}

.github-info-text {
  margin-top: 30px;
  font-size: 1.1rem;
  color: #bbb;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.github-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  background: linear-gradient(135deg, #00c9ff, #92fe9d);
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.github-button:hover {
  background: linear-gradient(135deg, #0ff0fc, #a1ffce);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.6);
}




/*                                                   get in touch                                */


/* Glass effect background + layout */
.contact-section {
  padding: 70px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
}

.glass-card {
  flex: 1 1 350px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.glass-card:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
  border-color: rgba(0, 255, 255, 0.9);
  transform: scale(1.02);
}

/* Info Section */
.contact-info h2.glow-heading {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffffaa;
  margin-bottom: 15px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin: 16px 0;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info i {
  color: #00ffff;
  font-size: 20px;
}

.hover-glow {
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.hover-glow:hover {
  color: #00ffff;
  text-shadow: 0 0 8px #00ffffaa;
  animation: glow-blink 1.2s infinite;
}

@keyframes glow-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #ccc;
  padding: 12px;
  margin: 10px 0;
  color: #fff;
  font-size: 16px;
  border-radius: 10px;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00ffff;
  outline: none;
  box-shadow: 0 0 10px #00ffff66;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background: #00ffff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #00cccc;
  box-shadow: 0 0 12px #00ffffaa;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00ffff;
  outline: none;
  box-shadow: 0 0 15px #00ffffaa; /* Slightly more glow */
  background-color: rgba(255, 255, 255, 0.05);
}




/*                                     footer                     */



.footer {
  margin-top: 80px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 -2px 12px rgba(0, 255, 255, 0.1);
  color: #ccc;
  animation: fadeIn 1s ease-in;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-nav a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

.footer-nav a:hover {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
}

.footer-socials {
  margin: 20px 0;
}

.footer-socials a {
  margin: 0 10px;
  font-size: 24px;
  color: #ccc;
  transition: 0.3s;
}

.footer-socials a:hover {
  color: #00ffff;
  transform: scale(1.2);
}

.footer-text {
  font-size: 14px;
  color: #aaa;
  margin-top: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Animate footer icons on hover */
.footer-socials a {
  position: relative;
  transition: 0.3s ease;
  animation: pulse-glow 1.5s infinite alternate;
}

.footer-socials a:hover {
  color: #00ffff;
  transform: scale(1.3) rotate(6deg);
  text-shadow: 0 0 8px #00ffff, 0 0 16px #00ffff;
  animation: bounce-glow 0.5s ease-in-out;
}

/* Optional: Make the icon softly pulse even when idle */
@keyframes pulse-glow {
  0% {
    text-shadow: 0 0 4px #00ffff33;
    transform: scale(1);
  }
  100% {
    text-shadow: 0 0 10px #00ffff88;
    transform: scale(1.1);
  }
}

/* On hover: bounce & glow */
@keyframes bounce-glow {
  0%   { transform: scale(1.2) rotate(0deg); }
  50%  { transform: scale(1.3) rotate(6deg); }
  100% { transform: scale(1.2) rotate(0deg); }
}
.orbital-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border-top: 3px solid #58a6ff;
  border-right: 3px solid transparent;
  border-bottom: 3px solid #58a6ff;
  border-left: 3px solid transparent;
  animation: spinOrbit 0.3s linear infinite;
  margin: 30px auto 0;
  box-shadow: 0 0 10px #58a6ff88;
  background: transparent;
}

@keyframes spinOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.skill-icon {
  position: relative;
}

.skill-icon .tooltip {
  position: absolute;
  top: 50%;
  right: 110%; /* position it to the left */
  transform: translateY(-50%);
  background: #1e293b;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.3);
}

.skill-icon:hover .tooltip {
  opacity: 1;
  visibility: visible;
  right: 120%; /* slight movement left on hover */
}








/*                                             login/signin                             */




.hidden {
  display: none !important;
}

.auth-container {
  background: #161b22;
  padding: 30px 40px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  margin: auto;
}

#authModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  margin-top: 10px;
  background: #0d1117;
  color: white;
}

#submitBtn {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  background: #238636;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.toggle {
  color: #aaa;
  margin-top: 10px;
}

.toggle span {
  color: #58a6ff;
  cursor: pointer;
}

.separator {
  margin: 20px 0;
  color: #555;
}

.btn.google {
  background: #4285F4;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  width: 100%;
  font-weight: bold;
  cursor: not-allowed;
  opacity: 0.6;
}



/*        --                        new feature                    --            */




.blink-new {
      position: relative;
      animation: blinkButton 1.5s infinite;
      color: #ffcc00;
      font-weight: bold;
    }

    .blink-new sup {
      font-size: 0.6em;
      color: #ff004f;
      animation: blinkNewLabel 1s infinite;
    }

    @keyframes blinkNewLabel {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.2; transform: scale(1.1); }
    }

    @keyframes blinkButton {
      0%, 100% { text-shadow: 0 0 8px #ff0, 0 0 12px #f00; }
      50% { text-shadow: 0 0 2px #ff0; }
    }




    /*              -----------             Resume download button              -----               */


    .resume-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: transparent;
    border: 2px solid #f63b3b;
    border-radius: 30px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(246, 59, 59, 0.933);
    animation: blueGlow 0.4s infinite alternate;
  }

  .resume-btn:hover {
    border-color: #ffcc00;
    color: #000;
    background-color: #ffcc00;
    animation: yellowPulse 0.2s infinite alternate;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.7);
  }

  @keyframes blueGlow {
    from {
      box-shadow: 0 0 8px rgba(227, 50, 50, 0.941);
    }
    to {
      box-shadow: 0 0 16px rgb(246, 59, 59);
    }
  }

  @keyframes yellowPulse {
    from {
      transform: scale(1);
      box-shadow: 0 0 12px rgba(255, 204, 0, 0.4);
    }
    to {
      transform: scale(1.05);
      box-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
    }
  }



  
  .resume-btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background-color: transparent;
    border: 2px solid #ff4d4d; /* 🔴 red border */
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.6); /* 🔴 red glow */
    animation: redGlow 0.8s infinite alternate;
    overflow: hidden;
    position: relative;
  }

  @keyframes redGlow {
    from { box-shadow: 0 0 6px rgba(255, 77, 77, 0.4); }
    to { box-shadow: 0 0 16px rgba(255, 77, 77, 1); }
  }

  #resumeText {
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .fade-out {
    opacity: 0;
    transform: translateY(-5px);
  }

  .fade-in {
    opacity: 1;
    transform: translateY(0);
  }


  /* Mobile menu login button - blue style */
.blue-button {
  background-color: #3b82f6; /* Blue */
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  display: inline-block;
  transition: background 0.3s ease;
  text-decoration: none;
  border: none;
}

.blue-button:hover {
  background-color: #2563eb; /* Darker blue on hover */
}
.mobile-nav-links .blue-button {
  width: 100%;
  display: block;
}

/* 🔵 Always-blue button for mobile menu login */
.mobile-blue-btn {
  background-color: #3b82f6 !important;  /* Bright blue */
  color: white !important;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  border: none;
  width: 100%;         /* Optional: full width */
  text-decoration: none;
  margin-left: 20px;
}




/*                   -           mobile view       */



/* Center social icons in mobile view */
@media screen and (max-width: 768px) {
  .example-2 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 10px;               /* ✅ Reduce space between icons */
    list-style: none;
    padding: 0;
    margin: 0 auto;          /* ✅ Center horizontally only */
    width: 100%;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .icon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    
  }

  .icon-content a {
    font-size: 22px;
    margin: 0;
    padding: 0;
  }

  .tooltip {
    margin-top: 4px;         /* Optional: spacing under icon */
  }
}






/* Center profile image on mobile */
@media screen and (max-width: 768px) {
  .right {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }

  .right .profile-pic {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
  }
}



/* 🔵 Styled logout button */
.blue-logout {
  background-color: #3b82f6;    /* Blue */
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: 100%;                  /* ✅ Full width */
  box-sizing: border-box;
  border: none;
}

.blue-logout:hover {
  background-color: #2563eb;    /* Darker blue on hover */
}

@media screen and (max-width: 768px) {
  .blue-logout {
    margin-top: 12px;
    margin-bottom: 12px;
  }
}





@media screen and (max-width: 768px) {
  /* 🔹 Remove background from all nav links in mobile */
  .mobile-nav-links a {
    background: none !important;
    color: white !important;
    padding: 6px 10px !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
  }

  

  .mobile-nav-links li {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 🔹 Keep blue background ONLY for logout */
  .logout-btn {
    background-color: #3b82f6 !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
  }
}


.blink-new {
  background: none !important;
  color: white;
  font-weight: bold;
}


@media screen and (max-width: 768px) {
  /* ✅ Remove background from all nav links EXCEPT login & logout */
  .mobile-nav-links a:not(.logout-btn):not(.mobile-blue-btn) {
    background: none !important;
    color: white !important;
    padding: 10px 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block;
    width: 100%;
    text-align: center;
  }

  /* 🔵 Keep blue style for Logout button */
  .mobile-nav-links .logout-btn {
    background-color: #3b82f6 !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: bold;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
  }

  /* 🔵 Keep blue style for Login / Signin button */
  .mobile-nav-links .mobile-blue-btn {
    background-color: #3b82f6 !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: bold;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
  }
}










/* ─── DESKTOP & TABLET (≥769px) ───────────────────────────────── */

.home-content {
  display: flex;
  align-items: center;             /* Vertically center left + right */
  justify-content: space-between;  /* Space between columns */
  flex-wrap: nowrap;               /* Keep side‑by‑side */
  gap: 40px;                       
  padding: 40px 5%;
  margin-top: 100px;
}

.home-content .left {
  flex: 1;
  min-width: 300px;
  padding-left: 20px;              /* tweak as needed */
}

.home-content .right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  padding-right: 20px;
}

.profile-pic {
  width: 300px;
  height: 300px;                   /* force square */
  object-fit: cover;
  border-radius: 50%;              /* perfect circle */
  overflow: hidden;
  border: none;
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
  margin: 0 auto;
}

/* ─── MOBILE (≤768px) ──────────────────────────────────────── */

@media (max-width: 768px) {
  .home-content {
    flex-direction: column;        /* stack vertically */
    padding: 20px 5%;
    margin-top: 40px;
    gap: 20px;
  }

  .home-content .left {
    padding-left: 0;
    margin: 0;
    text-align: center;  
    margin-top: 20px;          /* center text if you like */
  }

  .home-content .right {
    padding: 0;
    margin: 0;
  }

  .profile-pic {
    width: 100%;
    max-width: 250px;
    height: auto;                  /* natural height */
    margin: 0 auto;
    border-radius: 50px;
  }
  .right .profile-pic {
    margin-top: -10px; /* Move image upward */
  }

}

@media screen and (max-width: 768px) {
  .home-content .right {
    padding: 0;
    margin: 0;
    position: relative; /* Add this */
  }

  .right .profile-pic {
    position: relative;
    top: -30px;          /* Move image upward */
    margin-bottom: -20px; /* Pull text closer if needed */
  }

  
}

@media screen and (max-width: 768px) {
  .right .profile-pic {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 auto;
    display: block;
    position: relative;
    top: -30px;
  }
}









@media screen and (max-width: 768px) {
  .home-content {
    display: flex;
    flex-direction: column;
  }

  .home-content .right {
    order: -1; /* Show image first */
  }

  .home-content .left {
    order: 1;  /* Show text after */
  }
}




@media screen and (max-width: 768px) {
  .greeting {
    margin-left: -10px; /* Shift text slightly to the left */
    justify-content: flex-start; /* Align content to left if it's a flex container */
    text-align: left;
  }
}









@media screen and (max-width: 768px) {
  .leetcode-avatar {
    width: 90%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}




/* 🚫 Prevent navbar from being scrollable */
.navbar,
.nav-wrap,
.nav-container,
.nav-links {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

/* Remove scrollbars if they were forced */
.navbar::-webkit-scrollbar,
.nav-wrap::-webkit-scrollbar,
.nav-links::-webkit-scrollbar {
  display: none;
}

/* Optional: Remove outline/focus glitches */
*:focus {
  outline: none !important;
}





/* 🔳 Minimal Google-style launcher icon */

.app-launcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  height: 42px;

  /* 👈 Move it slightly left from extreme right */
  margin-right: 80px;
  margin-left: 12px;
}

/* 📦 Icon inside launcher - now bigger */
.grid-icon {
  font-size: 25px; /* 👈 Increased size */
  color: white;
  transition: transform 0.2s ease;
}

.grid-icon:hover {
  color: #facc15;
  transform: rotate(90deg);
}




/* Dropdown menu for apps */
.app-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 10px;
  min-width: 200px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

/* App links inside the dropdown */
.app-dropdown a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
}

.app-dropdown a:hover {
  background-color: #333;
  color: #facc15;
}



