/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }
  
  body {
    background-color: #0a0f1c;
    color: white;
    line-height: 1.6;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }

  #typing {
    color: #00c8ff;
    font-weight: bold;
    border-right: 3px solid #00c8ff;
    padding-right: 5px;
    animation: blink 0.7s infinite;
  }
  
  @keyframes blink {
    50% {
      border-color: transparent;
    }
  }

  @media (max-width: 768px) {
    /* styles for mobile */
  }
  
/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: #111827;              /* Dark square background */
  border: 2px solid #00c8ff;        /* Border color */
  border-radius: 12px;              /* Square with slightly rounded corners */
  margin: 20px 40px;                /* Space around navbar */
  box-shadow: 0 0 15px #00c8ff, 
              0 0 30px rgba(0, 200, 255, 0.5); /* Light glow */
  transition: 0.3s ease-in-out;
}

nav:hover {
  box-shadow: 0 0 25px #00c8ff, 
              0 0 50px rgba(0, 200, 255, 0.7); /* Stronger glow on hover */
}

.logo {
  font-size: 30px;
  font-weight: bold;
  color: #00c8ff;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 18px;
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: 8px;
  color: #00fbff;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
  color: #f5f5f7;
  background: #00c8ff;
  border-color: #00c8ff;
  box-shadow: 0 0 15px #00c8ff,
              0 0 30px rgba(0, 200, 255, 0.7);
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}

/* 🔥 REPLACE your mobile navbar part with this */

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #00c8ff;
}

@media (max-width: 768px) {

  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #111827;
    flex-direction: column;
    align-items: center;
    display: none;   /* hide all links */
  }

  .nav-links a {
    width: 100%;
    padding: 15px;
    text-align: center;
  }

  .nav-links.active {
    display: flex;   /* show only when clicked */
  }
}
  
  /* Hero Section */
  .hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px;
    min-height: 90vh;
  }
  
  .hero-text {
    max-width: 50%;
  }
  
  .hero-text h1 {
    font-size: 50px;
    margin-bottom: 15px;
  }
  
  .hero-text h1 span {
    color: #00c8ff;
  }
  
  .hero-text p {
    margin-bottom: 25px;
    font-size: 20px;
    color: #b0b6ee;
  }
  
  .connect-btn {
    display: inline-block;
    border: 2px solid #00c8ff;
    padding: 12px 25px;
    border-radius: 50px;
    color: #00c8ff;
    font-weight: bold;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
  }
  
  .connect-btn:hover {
    background: #00c8ff;
    color: #feffff;
    box-shadow: 0 0 15px #00c8ff,
                0 0 30px rgba(0, 200, 255, 0.7),
                0 0 45px rgba(0, 200, 255, 0.5);
    transform: scale(1.05);  /* Slight zoom effect */
  }  
  
 /* Hero Image */
.hero-img {
  max-width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img img {
  width: 100%;
  border-radius: 50%;         /* Makes the image circular */
  object-fit: cover;          /* Ensures image fits inside */
  border: 4px solid #00c8ff;  /* Base border color */
  box-shadow: 0 0 25px #00c8ff, 
              0 0 50px rgba(0, 200, 255, 0.5); /* Light glow effect */
  transition: 0.3s ease-in-out;
}

.hero-img img:hover {
  box-shadow: 0 0 35px #00c8ff, 
              0 0 70px rgba(0, 200, 255, 0.7); /* Stronger glow on hover */
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-img {
    max-width: 80%;
    margin-top: 20px;
  }
}

  
/* Footer */
footer {
  background: #111827;               /* Dark background */
  text-align: center;
  padding: 20px 40px;
  margin: 40px;
  border: 2px solid #00c8ff;         /* Same glowing border as navbar */
  border-radius: 12px;
  box-shadow: 0 0 15px #00c8ff,
              0 0 30px rgba(0, 200, 255, 0.5);
  transition: 0.3s ease-in-out;
}

footer:hover {
  box-shadow: 0 0 25px #00c8ff,
              0 0 50px rgba(0, 200, 255, 0.7); /* Glow stronger on hover */
}

footer p {
  color: #cfdcd1;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* 🔥 UPDATE icon style (keep your same glow style) */

.footer-links a {
  font-size: 35px;
  color: #00ffe1;
  transition: 0.3s ease-in-out;
  text-shadow: 0 0 5px #00ffe1,
               0 0 10px rgba(0, 255, 225, 0.7);
}

.footer-links a:hover {
  color: #ff8a66;
  text-shadow: 0 0 8px #ff8a66,
               0 0 15px rgba(255, 138, 102, 0.8);
}


/* Sections */
.section {
  padding: 40px 40px;
  text-align: center;
}

.section h2 {
  font-size: 32px;
  color: #00c8ff;
  margin-bottom: 40px;
  text-shadow: 0 0 10px #00c8ff;
}

@media (max-width: 768px) {
  .skills-container {
    width: 100%;
  }

  .skill {
    width: 90%;
  }
}

/* Cards */
.card-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.card {
  background: #111827;
  padding: 25px;
  border-radius: 12px;
  border: 2px solid #00c8ff;
  width: 250px;
  transition: 0.3s;
  box-shadow: 0 0 10px rgba(0,200,255,0.3);
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 25px #00c8ff,
              0 0 50px rgba(0,200,255,0.6);
}

@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: auto;
}

/* Timeline item with image */
.timeline-item {
  display: flex;
  align-items: center;
  gap: 160px;
  background: #111827;
  margin: 20px 0;
  padding: 20px;
  border-left: 4px solid #00c8ff;
  box-shadow: 0 0 10px rgba(0,200,255,0.3);
  transition: 0.3s;
}

/* Image */
.timeline-item img {
  width: 210px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #00c8ff;
}

/* Hover */
.timeline-item:hover {
  transform: translateX(10px);
  box-shadow: 0 0 20px #00c8ff;
}

/* Alternate sides */
.timeline-item.right {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .timeline-item {
    flex-direction: column !important;
    text-align: center;
  }

  .timeline-item img {
    width: 100%;
    height: auto;
  }
}

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

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 2px solid #00c8ff;
  border-radius: 8px;
  background: #0a0f1c;
  color: white;
}

.contact-form button {
  padding: 12px;
  border: none;
  background: #00c8ff;
  color: black;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  box-shadow: 0 0 20px #00c8ff;
}

@media (max-width: 768px) {
  .contact-box {
    width: 90%;
    padding: 20px;
  }
}


/* Scroll Animation */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-in-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}
  
  /* Responsive */
  @media (max-width: 768px) {
    .hero {
      flex-direction: column;
      text-align: center;
    }
  
    .hero-text {
      max-width: 100%;
    }
  
    .hero-img {
      max-width: 80%;
      margin-top: 30px;
    }
  
    nav {
      flex-direction: column;
      gap: 15px;
    }
  
    .footer-links {
      flex-direction: column;
      gap: 10px;
    }
  }
  

  /* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Active link highlight */
.nav-links a {
  position: relative;
}

/* Underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #00c8ff;
  transition: 0.3s;
}

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

/* Active class */
.nav-links a.active {
  color: #00c8ff;
}

.nav-links a.active::after {
  width: 100%;
}

/* Sticky navbar */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Scroll effect (background glow stronger) */
#navbar.scrolled {
  box-shadow: 0 0 25px #00c8ff,
              0 0 50px rgba(0, 200, 255, 0.7);
}

/* Contact Box */
.contact-box {
  max-width: 600px;
  margin: auto;
  padding: 30px;
  background: #111827;
  border: 2px solid #00c8ff;
  border-radius: 15px;
  box-shadow: 0 0 20px #00c8ff,
              0 0 40px rgba(0, 200, 255, 0.5);
  transition: 0.3s;
}

.contact-box:hover {
  box-shadow: 0 0 30px #00c8ff,
              0 0 60px rgba(0, 200, 255, 0.7);
}

/* Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 2px solid #00c8ff;
  border-radius: 8px;
  background: #0a0f1c;
  color: white;
  outline: none;
  transition: 0.3s;
}

/* Input focus glow */
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 10px #00c8ff;
}

/* Button */
.contact-form button {
  padding: 12px;
  border: none;
  background: #00c8ff;
  color: black;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  box-shadow: 0 0 20px #00c8ff,
              0 0 40px rgba(0, 200, 255, 0.6);
  transform: scale(1.05);
}


/* Snake Container */
.snake-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

/* Snake Image Styling */
.snake-container img {
  max-width: 100%;
  border: 2px solid #00c8ff;
  border-radius: 10px;
  transition: 0.3s ease-in-out;
}

/* Hover Glow Effect */
.snake-container img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px #00c8ff,
              0 0 60px rgba(0, 200, 255, 0.7);
}

/* Table Center */
.skills-table {
  display: flex;
  justify-content: center;
}

/* Skill Box */
.skill-box {
  background-color: #063e69;
  color: white;
  border: 2px solid #00c8ff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  font-weight: bold;
  transition: 0.3s;
}

/* Icons */
.skill-box img {
  width: 60px;
  margin-top: 5px;
}

/* Hover Effect */
.skill-box:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 15px #00c8ff,
              0 0 30px rgba(0, 200, 255, 0.6);
}

/* Add spacing between table cells */
.skills-table table {
  border-spacing: 30px; /* controls space between boxes */
}