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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  background: linear-gradient(135deg, #000000 0%, #0f0f0f 50%, #1a1a1a 100%);
  color: white;
  overflow-x: hidden;
}

nav {
  width: 100%;
  height: 80px;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.05);
}

.nav-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo span {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  position: relative;
}

.hamburger,
.cancel {
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
}

.hamburger:hover,
.cancel:hover {
  color: #188c43;
  transform: scale(1.1);
}

.nav-container .links {
  display: flex;
  gap: 2rem;
}

.nav-container .links .link a.active {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-container .links .link a.active::before {
  width: 100%;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

/* Also update the particle background color to white */
.particle {
  background: rgba(255, 255, 255, 0.2) !important;
}

.nav-container .links .link a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-container .links .link a::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  transition: all 0.3s ease;
}

.nav-container .links .link a:hover::before {
  width: 100%;
}

.nav-container .links .link a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.dropdown {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s ease;
}

.dropdown.active {
  display: flex;
  opacity: 1;
}

.dropdown .links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.dropdown .links a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.dropdown .links a:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.cancel {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
}

.hero-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 0;
  position: relative;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
}

/*With SVG particle fx*/

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23ffffff" opacity="0.08"/><circle cx="75" cy="75" r="0.5" fill="%23ffffff" opacity="0.08"/><circle cx="50" cy="10" r="0.3" fill="%23ffffff" opacity="0.06"/><circle cx="10" cy="60" r="0.4" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.main-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
  position: relative;
}

.image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.image::before {
  content: "";
  position: absolute;
  width: 110%;
  height: 110%;
  border: 2px solid transparent;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  background-size: 400% 400%;
  animation: pulse 3s ease-in-out infinite alternate;
  z-index: -1;
}

.image img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.1),
    inset 0 0 50px rgba(255, 255, 255, 0.05);
  transition: all 0.5s ease;
  position: relative;
}

.image:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.2),
    inset 0 0 50px rgba(255, 255, 255, 0.1);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.02);
  }
}

.content {
  color: white;
  width: 100%;
}

.content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.content h1 span {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  position: relative;
}

.typewritter {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typewritter-text {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  position: relative;
}

.typewritter-text::after {
  content: "|";
  animation: blink 1s infinite;
  margin-left: 5px;
}

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

.content p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin: 1.5rem 0;
  line-height: 1.6;
  opacity: 0.9;
}

.social-links {
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: all 0.5s ease;
}

.social-links a:hover::before {
  left: 100%;
}

.social-links a:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.btn {
  margin-top: 2rem;
}

.btn button {
  padding: 15px 35px;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  color: #000000;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.btn button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.5s ease;
}

.btn button:hover::before {
  left: 100%;
}

.btn button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.15);
}

/*About*/
.about-section {
  padding: 100px 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(255, 255, 255, 0.1);
}

.about-content h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.highlight:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.highlight i {
  font-size: 1.5rem;
  color: #ffffff;
  min-width: 24px;
}

.highlight span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* Education Section */
.education-section {
  padding: 100px 2rem;
}

.education-container {
  max-width: 1000px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    #ffffff,
    rgba(255, 255, 255, 0.3),
    #ffffff
  );
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
  width: 100%;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  border: 4px solid black;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.timeline-content {
  flex: 0 0 calc(50% - 3rem); /* Fixed width instead of flex: 1 */
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

/* Left side items (odd) */
.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 3rem;
}

/* Right side items (even) */
.timeline-item:nth-child(even) .timeline-content {
  margin-left: 3rem;
}

.timeline-content:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

.timeline-year {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.timeline-degree {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-school {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.timeline-achievements {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.timeline-achievements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

.timeline-achievements li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2rem;
}

.timeline-achievements li:hover {
  opacity: 1;
  transform: translateX(5px);
  transition: all 0.3s ease;
}

/* Work Section */
.work-section {
  padding: 100px 2rem;
}

.work-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Skills Section */
.skills-section {
  padding: 100px 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffffff;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

.skill-category h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.skill-tag {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: all 0.5s ease;
}

.skill-tag:hover::before {
  left: 100%;
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Progress bar */
.progressBar {
  background: linear-gradient(90deg, #ffffff, #e0e0e0) !important;
}

/* Projects Section */
.projects-section {
  padding: 100px 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px 20px 0 0;
}

.project-image::after {
  content: "Hover to explore";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  text-align: center;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.3s ease;
  pointer-events: none;
}

.project-card:hover .project-image::after {
  opacity: 0;
  transform: translateY(10px);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.project-overlay:hover .project-link {
  transform: scale(1);
}

.project-link.disabled {
  background: rgba(100, 100, 100, 0.2);
  border-color: rgba(100, 100, 100, 0.5);
  color: rgba(100, 100, 100, 0.7);
  cursor: not-allowed;
  opacity: 0.5;
}

.project-link.disabled:hover {
  background: rgba(100, 100, 100, 0.2);
  color: rgba(100, 100, 100, 0.7);
  transform: scale(0.8);
  border-color: rgba(100, 100, 100, 0.5);
}

.project-link:hover {
  background: #ffffff;
  color: black;
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
}

.project-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

/* Services Section */
.services-section {
  padding: 100px 2rem;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: all 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: white;
}

.service-card p {
  line-height: 1.6;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
  padding: 100px 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(10px);
}

.contact-item i {
  font-size: 1.3rem;
  color: #ffffff;
  margin-right: 1rem;
  width: 30px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  border: none;
  border-radius: 10px;
  color: #000000;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.15);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.9);
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-info p {
  margin: 0.3rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-info p:first-child {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -3px;
  left: 0;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: all 0.5s ease;
}

.footer-links a:hover::before {
  left: 100%;
}

.footer p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer span {
  color: #ffffff;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  min-width: 350px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.9),
    rgba(5, 150, 105, 0.9)
  );
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.toast.error {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.9),
    rgba(220, 38, 38, 0.9)
  );
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast-icon {
  font-size: 1.5rem;
  min-width: 24px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.toast-message {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.toast-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  width: 100%;
  transform-origin: left;
  animation: toast-progress 5s linear forwards;
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Custom Email Toast */
.email-toast {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.95),
    rgba(37, 99, 235, 0.95)
  ) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  min-width: 400px;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.email-toast-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.email-toast-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.email-toast-icon {
  font-size: 2rem;
  color: #ffffff;
  animation: emailPulse 2s ease-in-out infinite;
}

.email-toast-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.email-toast-body {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

.email-address {
  font-family: "Courier New", monospace;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  display: inline-block;
  margin: 0.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.email-toast-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.email-action-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.email-copy-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.email-copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.email-open-btn {
  background: #ffffff;
  color: #1e40af;
  border: 1px solid transparent;
}

.email-open-btn:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

@keyframes emailPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* Responsive Design */
@media (max-width: 884px) {
  .legend-items {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .social-links {
    justify-content: center;
  }

  .cancel {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .cancel:hover {
    color: #ffffff;
    transform: scale(1.1);
  }

  .dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .dropdown.active {
    display: flex;
    opacity: 1;
  }

  .dropdown .links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .dropdown .links a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }

  .dropdown .links a:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .project-image {
    height: 200px;
  }

  .hamburger {
    display: block;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .hamburger:hover {
    color: #ffffff;
    transform: scale(1.1);
  }

  .nav-container .links {
    display: none;
  }

  .main-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .image img {
    width: 300px;
    height: 300px;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .timeline::before {
    left: 2rem;
  }

  .timeline-item {
    flex-direction: column;
    margin-left: 2rem;
  }

  .timeline-item::before {
    left: 0.15rem;
    transform: translateX(-50%);
  }

  .timeline-content {
    margin: 0 1rem 0 2rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .typewritter {
    text-align: center;
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .project-overlay {
    opacity: 0;
  }

  .project-card:hover .project-overlay {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .footer-content {
    gap: 1rem;
  }

  .footer-links {
    gap: 1rem;
  }

  .footer-links a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .email-toast {
    min-width: auto;
    width: calc(100vw - 2rem);
    padding: 1.2rem 1.5rem;
  }

  .email-toast-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .email-action-btn {
    justify-content: center;
  }
}

@media (max-width: 440px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    top: 1rem;
  }

  .toast {
    min-width: auto;
    width: 100%;
    transform: translateY(-100%);
  }

  .toast.show {
    transform: translateY(0);
  }

  .skills-section {
    padding: 80px 1rem;
  }

  .social-links {
    justify-content: center;
  }

  .projects-section {
    padding: 80px 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 1.5rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .hero-section,
  .about-section,
  .education-section,
  .skills-section,
  .services-section,
  .contact-section {
    padding: 120px 1rem 0;
  }

  .image img {
    width: 250px;
    height: 250px;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  color: #000000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.scroll-top.show {
  display: flex;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

/* Loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (hover: none) and (pointer: coarse) {
  .project-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
  }

  .project-hover-hint,
  .project-image-enhanced::after {
    display: none;
  }
}
