/* === General Reset & Background === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    height: 100%;
    background: linear-gradient(-45deg, #000000, #4f4f4f, #000000); /* black → grey → black loop */
    background-size: 400% 400%;
    animation: gradientBG 8s ease infinite;
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
  }  
  @keyframes gradientBG {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  /* Social Icons */
.social-icons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.social-icons .icon-link i {
  font-size: 60px; /* larger size */
  color: white;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.social-icons .icon-link i:hover {
  color: #ffeb35;
  transform: scale(1.3);
  text-shadow: 0 0 10px #ffeb35, 0 0 20px #ffeb35;
}


  
  .section-break {
    height: 2px;
    border: none;
    background: linear-gradient(to right, #ffeb35, #bfb353, #ffeb35);
    margin: 80px auto;
    width: 80%;
  }  

  html {
    scroll-behavior: smooth;
  }

  .btn {
    position: relative;
    background-color: transparent;
    color: #ffeb35;
    border: 2px solid #ffeb35;
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    z-index: 0;
    transition: color 0.4s ease;
    text-decoration: none; /* for <a> button */
    display: inline-block;
  }
  
  .btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 0%;
    height: 100%;
    background-color: #ffeb35;
    z-index: -1;
    transition: width 0.4s ease;
  }
  
  .btn:hover::before {
    width: 100%;
  }
  
  .btn:hover {
    color: #0d0b1e;
  }
  
  
  
 /* === Main Content Styling === */
.main-content {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  position: relative;
  padding: 0 20px;
}

/* === Wrapper === */
.content-wrapper {
  max-width: 90%;
  margin: auto;
}



/* === Typewriter Styling === */
.typewriter-text {
  font-size: 56px;
  font-weight: bold;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  border-radius: 10px;
  display: inline-flex;             /* <-- inline-flex keeps content on the same line */
  align-items: center;             /* vertically aligns cursor */
  box-shadow:0 2px 6px rgba(0, 0, 0, 0.25);
  font-family: 'Orbitron', sans-serif;
}

#typewriter {
  white-space: normal; /* allow wrapping */
  word-break: break-word;
}

.cursor {
  white-space: nowrap;
}


/* Cursor blinking */
.cursor {
  color: #ffeb35;
  animation: blink 0.8s infinite;
  font-weight: normal;
  font-size: 56px;
  margin-left: 5px;  /* small gap from last letter */
}

/* Optional: prevent line break */
#typewriter {
  display: inline;
}

/* Animations */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

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

/* === Subheading === */
.sub-text {
  font-size: 20px;
  color: white;
  margin-top: 20px;
}

/* Highlight color */
.highlight {
  color: #ffeb35;
}

/* Contact button */
.btn-custom {
  background-color: transparent;
  color: #ffeb35;
  font-weight: bold;
  border: 2px solid #ffeb35;
  border-radius: 50px;
  padding: 10px 25px;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.btn-custom:hover {
  background-color: #ffeb35;
  color: #0d0b1e;
}


  h2.section-heading {
    font-family: 'Orbitron', sans-serif;
    color: #ffeb35;
    font-size: 48px;
    text-align: center;
    margin-bottom: 40px;
  }
  
  /* === Glass Morphism Navbar === */
.navbar {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Navbar container & links */
.navbar-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.navbar-links {
  display: flex;
  gap: 70px;
}

.navbar-links a {
  text-decoration: none;
  color: #ffeb35;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar-links a:hover {
  color: white;
  text-shadow: 0 0 5px #ffeb35;
}


/* === Hamburger & Sidebar (Mobile View) === */

/* Hamburger Button */
.menu-btn {
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease, color 0.2s ease;
  position: fixed;
  top: 15px;
  left: 15px;
  display: none;
}

.menu-btn:hover {
  color: #ffeb35;
  transform: scale(1.2);
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 1);
}

/* Sidebar Drawer */
.sidebar {
  width: 250px;
  max-width: 80%;
  height: 100vh;
  background-color: #0b0d1e;
  position: fixed;
  top: 0;
  left: -100%;
  z-index: 1000;
  transition: left 0.4s ease-in-out;
  padding-top: 20px;
  font-family: 'Orbitron', sans-serif;
  display: none; /* hidden by default */
  flex-direction: column;
  align-items: center;
}

.sidebar.show {
  left: 0;
  display: flex;
  animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
  from {
    left: -100%;
  }
  to {
    left: 0;
  }
}

.sidebar {
  overflow-y: auto;  /* allows scrolling if content exceeds screen */
}


/* Close Button */
.close-btn {
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1100;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close-btn:hover {
  color: #ffeb35;
  transform: scale(1.2);
}


/* Sidebar Nav Links */
.nav-links {
  list-style: none;
  padding: 0;
  margin: 30px 0 0 0;  /* 👈 add top margin to separate from logo */
  text-align: center;
  width: 100%;
}


.nav-links li {
  margin: 50px 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffeb35;
}

.nav-links a,
.menu-btn,
.close-btn {
  cursor: pointer;
}

/* === Media Queries === */

/* Hide desktop navbar on mobile */
@media (max-width: 768px) {
  .desktop-navbar {
    display: none;
  }

  .menu-btn,
  .sidebar {
    display: block;
  }
  .typewriter-text {
    font-size: 28px;
    padding: 10px 15px;
    line-height: 1.3;
    display: block; /* allow line wrap */
    white-space: normal; /* allow wrapping */
  }

  .cursor {
    font-size: 28px;
  }

  .sub-text {
    font-size: 15px;
    padding-top: 10px;
  }

  .btn {
    font-size: 14px;
    padding: 8px 20px;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    padding-right: 0;
    margin-bottom: 30px;
  }

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

  .about-image img {
    max-width: 250px;
  }
  .education-grid {
    flex-direction: column;
    gap: 30px;
  }

  .cert-accordion-container {
    flex-direction: column;
    align-items: center;
  }

  .accordion-item.cert {
    width: 100%;
  }
  .contact-row {
    flex-direction: column;
  }

  .contact-icon {
    font-size: 20px;
    padding: 15px;
  }

  .contact-form {
    padding: 30px 20px;
  }
}

/* Hide hamburger and sidebar on desktop */
@media (min-width: 769px) {
  .menu-btn,
  .sidebar {
    display: none !important;
  }

  .desktop-navbar {
    display: block;
  }
}


/* === Prevent content from hiding under fixed navbar === */
body {
  padding-top: 80px; /* adjust based on navbar height */
}

  
  
  /*about*/ 
/* === About Section === */
.about-section {
    background-color: transparent;
    padding: 30px 20px;
    color: white;
  }
  
  .about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
  }
  
  .about-text {
    flex: 1 1 500px;
    padding-right: 30px;
  }
  
  .about-heading {
    color: #ffeb35;
    font-size: 40px;
    margin-bottom: 20px;
    text-align: left;
  }
  
  .about-paragraph {
    font-size: 16px;
    line-height: 1.7;
    color: white;
  }
  
  .about-paragraph .highlight {
    color: #ffeb35;
    font-weight: 600;
  }
  
  .resume-button {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 25px;
    background-color: #ffeb35;
    color: #0b0d1e;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    transition: 0.3s ease;
  }
  
  .resume-button:hover {
    background-color: white;
    color: #0b0d1e;
  }
  
  .about-image {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .about-image img {
    width: 100%;
    max-width: 350px;
    border: 3px solid #ffeb35;
    border-radius: 10px;
  }
  
  
  /*skills*/
/* === Skills Section === */
.skills-section {
    background-color: transparent;
    padding: 30px 10px;
    color: white;
  }
  
  .skills-heading {
    color: #ffeb35;
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
  }
  .brain-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
  }
  
  .brain-image {
    width: 320px;
    transition: transform 0.3s ease;
    cursor: pointer;
  }
  .brain-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px #ffeb35);
  }
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
  }
  
  .brain-image.pulse {
    animation: pulse 2s infinite;
  }
  
  .skill-tag {
    position: absolute;
    background-color: #ffeb35;
    color: #0d0b1e;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.8s ease, opacity 0.8s ease;
    font-size: 16px;
    white-space: nowrap;
    z-index: 10;
  }
  
  /* Burst positions */
  #skill1.show { transform: translate(-220px, -160px); opacity: 1; }
  #skill2.show { transform: translate(220px, -160px); opacity: 1; }
  #skill3.show { transform: translate(-180px, 140px); opacity: 1; }
  #skill4.show { transform: translate(180px, 140px); opacity: 1; }
  
  
  /* === Education Section === */
  .education-section {
    background-color: transparent;
    color: #e1dcad;
    padding: 30px 10px;
    min-height: 80vh; /* 👈 ensures the section takes space */
    position: relative;
  }
  
  
  .section-heading {
    text-align: center;
    color: #ffeb35;
    font-size: 40px;
    margin-bottom: 50px;
  }
  /* === Education Section === */
.education-section {
  background-color: transparent;
  color: #e1dcad;
  padding: 60px 20px;
  min-height: 80vh;
  position: relative;
}

.education-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
}

.education-left,
.education-right {
  flex: 1 1 500px;
  max-width: 600px;
}

.section-heading {
  color: #ffeb35;
  font-size: 40px;
  margin-bottom: 30px;
  text-align: center;
}

.edu-subtitle,
.cert-subtitle,
.classes-heading {
  color: #ffeb35;
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
}

.edu-details {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.class-list,
.cert-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.class-list li,
.cert-list li {
  margin-bottom: 8px;
  font-size: 16px;
}

.cert-image {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  margin: 10px 0;
}

/* === Accordion Styling === */
.accordion-item.cert {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.accordion-toggle {
  background-color: #ffeb35;
  color: #0d0b1e;
  font-weight: bold;
  padding: 14px 20px;
  width: 100%;
  border: none;
  border-radius: 0;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
  font-family: 'Orbitron', sans-serif;
}

.accordion-toggle:hover {
  background-color: #ffe600;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-top: 1px solid #ffeb35;
}

.accordion-content.open {
  padding: 20px;
  max-height: 1000px; /* enough room to fit full content */
}

.accordion-content img {
  margin-bottom: 10px;
}

  /* Project Section */
#projects {
  padding: 30px 10px;
  background-color: transparent;
  text-align: center;
}

.section-heading {
  color: #ffeb35;
  font-size: 40px;
  margin-bottom: 40px;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.project-card {
  width: 500px;
  position: relative;
  text-align: center;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: filter 0.4s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 11, 30, 0.6);
  backdrop-filter: blur(4px);
  color: #e1dcad;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
  text-align: center;
}

.image-wrapper:hover img {
  filter: blur(4px) brightness(0.7);
}

.image-wrapper:hover .project-overlay {
  opacity: 1;
}

.github-icon {
  font-size: 32px;
  color: white;
  margin-top: 12px;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.github-icon:hover {
  transform: scale(1.2);
  color: #ffeb35;
}

  
  /* === Contact Section === */
.contact-section {
    background-color: transparent;
    padding: 40px 20px;
    color: white;
    text-align: center;
  }
  
  .contact-heading {
    color: #ffeb35;
    font-size: 40px;
    margin-bottom: 10px;
  }
  
  /* Contact Icons */
  .contact-icons {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: -30px;
    margin-top: 20px;
    position: relative;
    z-index: 1; /* behind form */
  }
  
  .contact-icon {
    background-color: #ffeb35;
    padding: 18px 24px;
    border-radius: 30px 30px 0 0;
    font-size: 24px;
    color: #0d0b1e;
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease, z-index 0.2s ease;
    z-index: 1;
  }
  
  .contact-icon:hover {
    transform: translateY(-10px);  /* visually rises up */
    z-index: 100;                  /* placed above the form */
  }
  
  
  /* Form styling */
  .contact-form {
    margin: auto;
    max-width: 700px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 15px;
    border: none;
    outline: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    background-color: transparent;
    color: white;
    border-radius: 6px;
    width: 100%;
  }
  
  .contact-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }
  
  .contact-form button {
    background-color: #ffeb35;
    color: #0d0b1e;
    font-weight: bold;
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    align-self: center;
    transition: 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: white;
    color: #0d0b1e;
  }
  
  /* Tooltip using ::after */
.contact-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffeb35;
    color: #0d0b1e;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    font-family: 'Share Tech Mono', monospace;
    z-index: 10;
  }
  
  .contact-icon:hover::after {
    opacity: 1;
  }
  
  /*footer*/

  .site-footer {
    background-color: transparent;
    color: #e1dcad;
    text-align: center;
    padding: 40px 20px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
  }
  
  .site-footer a {
    color: #ffeb35;
    text-decoration: none;
  }
  
  .footer-icons {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 20px;
  }  