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

body {
  background: #f0f2f5;
  color: #333;
  transition: all 0.5s ease;
}

body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

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

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.logo img {
  height: 45px; /* Adjust the height of the logo as needed */
  width: auto; /* Maintain aspect ratio */
}

/* Glowing Logo Effect */
.glowing-logo {
  transition: all 0.3s ease;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.3), 
                0 0 10px rgba(0, 212, 255, 0.2), 
                0 0 15px rgba(0, 212, 255, 0.1);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.7), 
                0 0 20px rgba(0, 212, 255, 0.5), 
                0 0 30px rgba(0, 212, 255, 0.3);
  }
}

.glowing-logo:hover {
  transform: scale(1.1); /* Slight scale-up on hover */
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.9), 
              0 0 30px rgba(0, 212, 255, 0.7), 
              0 0 45px rgba(0, 212, 255, 0.5);
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  margin-left: 30px;
  font-weight: 400;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #00d4ff;
}

.theme-toggle {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
}

.theme-toggle:hover {
  color: #00d4ff;
}

.hamburger {
  display: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero-content h1 {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 2px;
}

.tagline {
  font-size: 24px;
  margin: 20px 0;
  color: #e0e0e0;
}

.typed-text {
  color: #00d4ff;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #00d4ff;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #fff;
  color: #1a1a2e;
  transform: scale(1.05);
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  color: #fff;
  font-size: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Sections */
.section {
  padding: 100px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

h2 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 50px;
  color: #1a1a2e;
}

body.dark-mode h2 {
  color: #e0e0e0;
}

/* Profile Section */
.profile-wrapper {
  display: flex;
  justify-content: center;
}

.profile-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  transition: transform 0.3s;
}

body.dark-mode .profile-card {
  background: #1e1e1e;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.profile-card:hover {
  transform: translateY(-10px);
}

.profile-avatar {
  position: relative;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s;
}

.profile-avatar:hover .profile-pic {
  transform: scale(1.1);
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

.profile-avatar:hover .avatar-overlay {
  opacity: 1;
}

.profile-details h3 {
  font-size: 28px;
  color: #1a1a2e;
  margin-bottom: 10px;
}

body.dark-mode .profile-details h3 {
  color: #e0e0e0;
}

.bio {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #00d4ff;
}

.stat-item p {
  font-size: 14px;
  color: #666;
}

body.dark-mode .stat-item p {
  color: #bbb;
}

.social-links a {
  margin-right: 20px;
  color: #1a1a2e;
  font-size: 28px;
  transition: all 0.3s;
}

body.dark-mode .social-links a {
  color: #e0e0e0;
}

.social-links a:hover {
  color: #00d4ff;
  transform: translateY(-5px);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.skill-item {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  position: relative;
}

body.dark-mode .skill-item {
  background: #1e1e1e;
}

.skill-item:hover {
  transform: translateY(-10px);
}

.skill-item i {
  font-size: 40px;
  color: #00d4ff;
  margin-bottom: 10px;
}

.skill-item p {
  font-weight: 600;
}

.skill-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.skill-item:hover::after {
  opacity: 1;
  bottom: 110%;
}

/* Projects Section */
.projects-showcase {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 30px;
  padding-bottom: 20px;
  scroll-behavior: smooth;
}

.projects-showcase::-webkit-scrollbar {
  height: 8px;
}

.projects-showcase::-webkit-scrollbar-thumb {
  background: #00d4ff;
  border-radius: 4px;
}

.project-item {
  flex: 0 0 350px;
  scroll-snap-align: center;
}

.project-preview {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.project-item:hover .project-preview {
  transform: scale(1.05);
}

.project-preview img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(0, 212, 255, 0.7));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-item:hover .project-hover {
  opacity: 1;
}

.project-hover h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.project-hover p {
  font-size: 14px;
  margin-bottom: 15px;
}

.project-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.nav-arrow {
  background: #00d4ff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-arrow:hover {
  background: #00aaff;
}

/* Contact */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  transition: border-color 0.3s;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00d4ff;
  outline: none;
}

.contact-form textarea {
  height: 150px;
  resize: none;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00d4ff;
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: #00aaff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.9);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    margin: 15px 0;
    text-align: center;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
  }

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

  .stats {
    justify-content: center;
  }

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

  .project-item {
    flex: 0 0 300px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .tagline {
    font-size: 18px;
  }
}

/* Profile Popup */
.profile-popup {
  position: fixed;
  bottom: -300px; /* Hidden below screen initially */
  left: 50%;
  transform: translateX(-50%);
  transition: bottom 0.5s ease-in-out;
  z-index: 1000;
}

.profile-popup.active {
  bottom: 20px; /* Slides up when active */
}

.popup-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

@media (max-width: 768px) {
  .popup-pic {
    width: 150px;
    height: 150px;
  }
}