/* ====================== */
/* ==== BASE STYLES ===== */
/* ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


.intro-text,
.typewriter-line {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}


body {
  background: #0a0a12;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
  width: 100%;
}

section {
  scroll-margin-top: 80px;
  padding: 4rem 1rem;
}

/* ====================== */
/* ==== ANIMATIONS ====== */
/* ====================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes neon-glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ====================== */
/* ==== HEADER ========== */
/* ====================== */
.glass-header {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  z-index: 100;
}

.glass-header h1 {
  background: linear-gradient(90deg, #00f7ff, #ff00e4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.rotating-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.rotating-nav a.active::after {
  width: 100%;
}

.rotating-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
}

.rotating-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f7ff, #ff00e4);
  transition: width 0.3s;
}

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

.nav-toggle {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 200;
  display: none;
}

/* ====================== */
/* ==== HERO SECTION ==== */
/* ====================== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  gap: 5rem;
}

.hero-text {
  flex: 1;
}

.intro-text {
  font-size: 3rem;
  font-weight: bold;
  color: white;
}

.intro-text .highlight {
  background: linear-gradient(90deg, #00f7ff, #ff00e4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.typewriter-line {
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
  color: #00f7ff;
}

.hero-subtext {
  color: #ccc;
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.laptop-mockup {
  position: relative;
  width: 50%;
  animation: float 6s ease-in-out infinite;
}

.laptop-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #00f7ff, #ff00e4);
  z-index: -1;
  filter: blur(20px);
  opacity: 0.5;
}

.laptop-mockup img {
  margin-top: 100px;
  width: 100%;
  border-radius: 10px;
  border: 3px solid #333;
}

/* ====================== */
/* ==== BUTTONS ========= */
/* ====================== */
.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.neon-button {
  background: transparent;
  color: #00f7ff;
  border: 2px solid #00f7ff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.neon-button.secondary {
  color: #ff00e4;
  border-color: #ff00e4;
}

.neon-button:hover {
  background: #00f7ff;
  color: #0a0a12;
  box-shadow: 0 0 20px #00f7ff;
  transform: translateY(-3px);
}

.neon-button.secondary:hover {
  background: #ff00e4;
  box-shadow: 0 0 20px #ff00e488;
}

.resume-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1f1f1f;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 0 15px #00f7ff3b;
  transition: all 0.3s ease;
}

.resume-button:hover {
  background: #00f7ff;
  color: #000;
  box-shadow: 0 0 25px #00f7ff90;
  transform: scale(1.05);
}

/* ====================== */
/* ==== POPUP =========== */
/* ====================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #161622;
  padding: 2rem;
  border-radius: 15px;
  width: 80%;
  max-width: 700px;
  position: relative;
  border: 1px solid rgba(0, 247, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
}

.popup-laptop {
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid #333;
}

.popup-laptop img {
  width: 100%;
  display: block;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #00f7ff;
  transition: transform 0.3s;
}

.close-btn:hover {
  transform: rotate(90deg);
}

/* ====================== */
/* ==== ABOUT SECTION === */
/* ====================== */
.about-section {
  padding: 4rem 2rem;
  background: #0a0a12;
  backdrop-filter: blur(12px);
  color: #f0f0f0;
  margin: 4rem 0;
  scroll-margin-top: 50px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.about-image {
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
  margin-top: -300px;
}

.about-image img {
  width: 100%;
  max-width: 250px;
  border-radius: 50%;
  border: 3px solid #00ffc3;
  box-shadow: 0 0 15px #00ffc3;

}

.about-content {
  flex: 2 1 400px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  display: inline-block;
}

.section-title .highlight {
  background: linear-gradient(90deg, #00f7ff, #ff00e4);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}


.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
}

.section-title span {
  color: #fff;
}

.about-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: left;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  color: #ccc;
  font-size: 1rem;
  padding: 0.5rem;
}

.info-label {
  width: 120px;
  color: #ff00e4;
  font-weight: 700;
}

.info-value {
  color: #fff;
  font-weight: 400;
}

.neon-line {
  height: 2px;
  width: 100%;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, #00f7ff, #ff00e4, #00f7ff);
  background-size: 300% 100%;
  animation: neon-glow 3s linear infinite;
  border-radius: 2px;
  box-shadow: 0 0 8px #00f7ff, 0 0 16px #ff00e4;
}

/* ====================== */
/* ==== TAB SYSTEM ====== */
/* ====================== */
.tab-system {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.info-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 70px;
  align-items: flex-start;
}

.info-btn {
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid #00ffff;
  color: #00ffff;
  padding: 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 200px;
  text-align: left;
  font-weight: bold;
}

.info-btn i {
  margin-right: 10px;
}

.info-btn:hover {
  background: #00ffffaa;
  color: #000;
  box-shadow: 0 0 15px #00ffff, 0 0 30px #00ffffaa;
}

.tab-content-column {
  flex: 1;
  position: relative;
  min-height: 300px;
  margin-top: 30px;
}

.tab-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 247, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
  pointer-events: none;
  display: block;
  z-index: 0;
  visibility: hidden;
  backdrop-filter: blur(5px);
}

.tab-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  z-index: 1;
  visibility: visible;
}
.skills-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.skill-tab-btn {
  padding: 0.4rem 1rem;
  border: 1px solid #00f7ff;
  background: rgba(0, 247, 255, 0.05);
  color: #00f7ff;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.skill-tab-btn:hover,
.skill-tab-btn.active {
  background: rgba(0, 247, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

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

.skill-item {
  background: rgba(0, 247, 255, 0.05);
  border: 1px solid rgba(0, 247, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(0, 247, 255, 0.1);
  transform: translateY(-3px);
}


.skill-item h4 {
  margin: 0;
  color: white;
}

.education-entry {
  border: 1px solid #ff00e4;
  padding: 1.2rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  margin-bottom: 1.5rem;
}

.row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.row1 h3 {
  color: #00f7ff;
  font-size: 1.2rem;
  margin: 0;
}

.cgpa {
  color: #fff;
  font-size: 0.95rem;
}

.date-range {
  color: #ff00e4;
  font-size: 0.9rem;
}

.row2 {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.row2 p {
  margin: 0;
  font-size: 0.95rem;
  color: #ccc;
}

.location {
  text-align: right;
}

.experience-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.experience-left,
.experience-center {
  flex: 1;
  min-width: 250px;
  margin-bottom: 1rem;
}

.experience-left p {
  margin-bottom: 0.8rem;
  color: white;
  text-align: left;
}

.experience-center h3 {
  color: #00f7ff;
  text-align: center;
  margin-bottom: 0.5rem;
}

.experience-center .date-range {
  color: #ff00e4;
  text-align: center;
  font-size: 0.9rem;
}
/* ====================== */
/* === PROJECTS SECTION = */
/* ====================== */

.projects-section {
  padding: 5rem 2rem;
  background: #0a0a12;
  color: #fff;
  scroll-margin-top: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 .highlight{
  background: linear-gradient(90deg, #00f7ff, #ff00e4);
  color: transparent;
  font-size: 2.5rem;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 1rem;
}

/* Filter Buttons */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: rgba(0, 247, 255, 0.1);
  border: 2px solid #00f7ff;
  color: #00f7ff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: #00f7ff;
  color: #0a0a12;
  box-shadow: 0 0 15px #00f7ff;
}

.filter-btn.active {
  background: #00f7ff;
  color: #0a0a12;
  box-shadow: 0 0 15px #00f7ff;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 247, 255, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 247, 255, 0.2);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

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

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

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #00f7ff;
}

.project-category {
  display: inline-block;
  background: rgba(0, 247, 255, 0.1);
  color: #00f7ff;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.project-info p {
  color: #ccc;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.code-link, .demo-link {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}

.code-link {
  background: rgba(0, 247, 255, 0.1);
  color: #00f7ff;
  border: 1px solid #00f7ff;
}

.demo-link {
  background: rgba(255, 0, 228, 0.1);
  color: #ff00e4;
  border: 1px solid #ff00e4;
}

.code-link:hover {
  background: #00f7ff;
  color: #0a0a12;
}

.demo-link:hover {
  background: #ff00e4;
  color: #0a0a12;
}


/* 🔳 Modal Background */
.modal-project {
  display: none; /* Keep only this one */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* 📦 Modal Content */
.modal-project-content {
  background-color: #111;
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 0 25px #00ffc3;
  position: relative;
}

/* ❌ Close Button */
.modal-project .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
}
.modal-project .close:hover {
  color: red;
  border-radius: 50%;
}

/* 🎥 Video Style */
.modal-project-content video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  max-height: 70vh;
}

/* ====================== */
/* ==== YOUTUBE VIDEO === */
/* ====================== */
.youtube-video-container {
  margin-top: 2rem;
  width: 50%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto; 
  text-align: center;
}

.youtube-video-container h4 {
  color: #00f7ff;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid rgba(0, 247, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ====================== */
/* ==== MODALS ========== */
/* ====================== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: 	#2a2a38;
  color: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
  transform: translateY(-100px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal-content h3{
  font-size: 30px;
  text-align: center;
}
.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: red;
}


/* ====================== */
/* ==== CERTIFICATE SECTION ====== */
/* ====================== */
.certificates-section {
  scroll-margin-top: 130px;
  padding: 0px 20px 60px 20px;
  background: #0a0a12;
  text-align: center;
}

.certificates-section h2 .highlight {
  background: linear-gradient(90deg, #00f7ff, #ff00e4);
  color: transparent;
  font-size: 2.5rem;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 1rem;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.flip-card {
  background: transparent;
  width: 270px;
  height: 230px;
  perspective: 1200px;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  box-shadow: 0 8px 24px rgba(0, 255, 195, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #1f1f2e, #131322);
  transition: all 0.3s ease;
}

.flip-card-front img {
  margin-top: -30px;
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 15px;
}

.flip-card-front h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.flip-card-front p {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.3;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #121212, #1e1e2d);
}

.flip-card-back img {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
}

.flip-card-back button {
  padding: 8px 18px;
  background: #00ffc3;
  color: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.flip-card-back button:hover {
  background: #00cfa3;
  transform: scale(1.05);
}

.certificate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.certificate-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 25px #00ffc3;
  border: 2px solid #00ffc3;
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s ease;
}

.close-modal:hover {
  transform: scale(1.2);
  color: #00ffc3;
}

/* ====================== */
/* ==== CONTACT SECTION = */
/* ====================== */
.contact-section {
  scroll-margin-top: 60px;
  background: #0a0a12;
  padding: 80px 20px;
  color: #fff;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1100px;
  margin: auto;
}

.contact-info {
  margin-top: 40px;
  flex: 1;
  min-width: 280px;
  padding: 30px;
}

.contact-info h2 {
  font-size: 2.5rem;
  background: linear-gradient(45deg, #ff00e4, #00ffc3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex; /* Change to flex for horizontal layout */
  gap: 20px; /* Space between icons */
  flex-wrap: wrap; /* Allow wrapping if needed */
}

.contact-info li {
  margin-bottom: 0; /* Remove bottom margin */
}

.contact-info a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-info i {
  color: #00ffc3;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Gradient glow effect on hover */
.contact-info a:hover {
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.7);
}

.contact-info a:hover i {
  color: white;
}

.contact-info a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00f7ff, #ff00e4);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.contact-info a:hover::before {
  opacity: 1;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: #10101a;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 5px 5px 15px #0a0a12,
              -5px -5px 15px #141428;
}

.contact-form h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #00ffc3;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  border-radius: 12px;
  background: #0d0d15;
  color: #fff;
  box-shadow: inset 5px 5px 10px #0a0a12,
              inset -5px -5px 10px #141428;
  font-size: 1rem;
}

.contact-form button {
  background: linear-gradient(45deg, #ff00e4, #00ffc3);
  border: none;
  color: #000;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* ====================== */
/* ==== FOOTER ========== */
/* ====================== */
.footer {
  background: #0a0a12;
  padding: 3rem 1rem;
  color: white;
  position: relative;
  border-top: 2px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  text-align: center;
  padding: 20px;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #00f7ff, #4e00ff);
  color: white;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 247, 255, 0.3);
  transition: transform 0.3s ease;
}

.logo-circle:hover {
  transform: rotate(5deg) scale(1.05);
}

.footer h2 {
  font-size: 2rem;
  background: linear-gradient(90deg, #00f7ff, #ff00e4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.footer p {
  font-size: 1rem;
  color: #ccc;
  margin: 0.5rem 0;
}

.footer-links {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-links a {
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00f7ff;
  text-decoration: underline;
}

/* ====================== */
/* ==== RESPONSIVE ====== */
/* ====================== */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
#about{
  scroll-margin-top: 80px; 
}
#certificates {
  scroll-margin-top: 80px; 
}
#projects {
  scroll-margin-top: 80px; 
}
#contact{
  scroll-margin-top: 30px;
}
  .nav-toggle {
    display: block;
  }

  .rotating-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    padding: 1rem 2rem;
    transform: rotateX(-90deg);
    transform-origin: top;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
  }

  .rotating-nav.active {
    transform: rotateX(0deg);
    opacity: 1;
    pointer-events: auto;
  }

  .rotating-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .glass-header {
    flex-wrap: wrap;
    justify-content: space-between;
  }
.rotating-nav a.active {
  position: relative;
}

.rotating-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #ff00e4;
  box-shadow: 0 0 5px #ff00e4, 0 0 10px #ff00e4;
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 5px #ff00e4;
  }
  to {
    box-shadow: 0 0 15px #ff00e4, 0 0 25px #ff00e4;
  }
}

  .hero {
    flex-direction: column;
    height: auto;
    padding: 6rem 1rem 2rem;
    text-align: center;
    gap: 2rem;
  }

  .intro-text {
    font-size: 2rem;
  }

  .hero-text {
    order: 1;
  }

  .typewriter-line {
    font-size: 1.5rem;
  }

  .laptop-mockup {
    width: 90%;
    margin-top: 4rem;
  }

  .laptop-mockup img {
    margin-top: 4px;
    width: 50%;
    border-radius: 10px;
    border: 3px solid #333;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .neon-button,
  .resume-button {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .popup-content {
    width: 95%;
  }

  .about-image {
    margin: 0 auto;
    max-width: 250px;
    padding: 0;
  }

  .about-image img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
    border: 3px solid #00ffc3;
    box-shadow: 0 0 15px #00ffc3;
  }

  .info-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.5rem;
  }

  section {
    padding: 2rem 1rem !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* === FIX: Ensure about section and tab content flow correctly === */
  .about-section {
    width: 100%;
    padding: 2rem 1rem !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .about-container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 2rem;
  }

  .about-content {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .about .about-content {
    overflow: visible;
    min-height: auto;
  }

  .about .tab-content {
    display: block;
    margin-bottom: 100px; /* FIXED: Added extra space after tabs to push next section down */
  }

  .tab-content-column {
    width: 100%;
    margin-top: 1rem;
  }

  .tab-card {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    display: none; /* Hide by default */
  }

  .tab-card.active {
    display: block; /* Show active tab */
  }

  /* Personal info grid */
  .info-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.5rem;
  }

  .info-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  /* Tab system */
  .tab-system {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 1rem 0;
  }

  .info-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
    gap: 0.5rem;
  }

  .info-btn {
    width: auto;
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .info-btn:hover,
  .info-btn.active {
    background: rgba(0, 255, 195, 0.3);
    box-shadow: 0 0 10px #00ffc3;
  }

  /* Skills grid */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    width: 100%;
  }

  .education-entry {
    padding: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .experience-content {
    /* padding: 1rem; */
    flex-direction: column;
  }

  .about-description,
  .info-label,
  .info-value {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .about-description {
    padding: 0 0.5rem;
  }


    .projects-section {
  padding: 4rem 2rem;
  margin-top: 9rem; /* Increased to avoid overlap */
}

  .certificates-section {
    padding: 0 10px 40px;
  }

  .certificates-section h2 .highlight {
    font-size: 2rem;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
  }
  
}

/* Footer and XS device improvements */
@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    position: static;
    margin-top: 1rem;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .info-btn[data-tab="skills"],
  .info-btn[data-tab="education"] {
    min-width: 100px;
    font-size: 0.8rem;
    padding: 0.6rem 0.4rem;
  }

  .info-btn[data-tab="experience"] {
    max-width: 220px;
    padding: 0.6rem;
  }
}

/* ====================== */
/* ==== ACCESSIBILITY === */
/* ====================== */
a, button {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  background-color: #0d0d15 !important;
  color: #fff !important;
  -webkit-box-shadow: 0 0 0 30px #0d0d15 inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
}