@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&display=swap');

/* RESET */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
}

a{
  text-decoration: none;
  color:#fff;
  transition:0.3s;
}

ul{
  list-style:none;
}

img{
  max-width: 100%;
  /* display: block; */
}

body{
  font-family: 'Lexend', sans-serif;
  font-size:16px;
  line-height:24px;
  background-color:#202020;
}

/* CONTAINER */
.container{
  max-width: 1170px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px; /* FIX: prevents content touching edges */
}

/*---------------------------Header---------------------------*/

.header-area{
  padding: 18px 0; /* FIX: reduced from 25px */
  transition: all .3s ease;
}

.header-area.sticky{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: #202020;
  padding: 10px 0; /* FIX: better than 5px */
  box-shadow: 0 2px 10px rgba(0,0,0,0.3); /* optional but clean */
}

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

/* LOGO */
.logo{
  display: flex;
  align-items: center;
  position: relative;
  text-transform: uppercase;
  font-size: 24px; /* slightly reduced */
  font-weight: 700;
  gap: 8px; /* FIX: spacing instead of margin hacks */
}

.signature{
  width: 90px; /* slightly reduced */
  height:auto;
}

/* ICON FIX */
.logo .fa-bolt{
  color: #fed700;
  font-size: 18px;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(5px, -50%); /* FIX: cleaner alignment */
}

/* MENU */
.header ul{
  display: flex;
  align-items: center;
  gap: 20px; /* FIX: better than margin on li */
}

.header ul li{
  margin: 0; /* removed uneven spacing */
}

.header ul li:first-child{
  margin-right: auto;
}

.header ul li a{
  text-transform: capitalize;
  display: block;
  padding: 5px 0; /* FIX: clickable area */
}

.header ul li a.active{
  color: #fed700;
}

.header ul li a:hover{
  color:#fed700;
}

/* MOBILE MENU ICON */
.header .menu_icon{
  color:#fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
}
.navbar {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.navbar li {
  margin-right: 15px;
}
.menu_icon {
  display: none;
  cursor: pointer;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
  .navbar {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 70px;
      left: 0;
      background-color: #444;
      width: 100%;
      padding: 10px 0;
      z-index: 1000;
      align-items: center; /* Align items in the middle vertically */
  }
  .navbar.active {
      display: block; /* Show the navbar when active */
  }
  .navbar li {
      margin: 10px 0; /* Add vertical margin to each menu item for spacing */
      text-align: center; /* Center the text within each menu item */
  }
  .navbar li.active {
      margin: 10px 0; /* Apply the same margin to the active item */
  }
  .menu_icon {
      display: block;
  }
}

/*---------------------------HomePage--------------------------*/

.FirstElement{
   display:flex;
   justify-content: space-around;
   align-items: center;
   padding-top: 5rem; 
} 

.FirstElement.adjusted-padding {
  padding-top: 40px; 
}

.FirstElement .profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  padding: 5px;
  background: linear-gradient(135deg, #fed700, #ff8c00);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.5s, box-shadow 0.5s;
}

.FirstElement .profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s;
}

/* Hover effect */
.FirstElement .profile-photo:hover img {
  transform: scale(1.1) rotate(2deg);
}

.FirstElement .profile-photo:hover {
  box-shadow: 0 0 20px #fed700, 0 0 40px #ff8c00;
}
.profile-text{
  max-width: 750px;
  display: flex;
  flex-direction: column;
}
.profile-text h5{
  color: #e5e5e5;
  font-size: 14px;
}
.profile-text h1{
  color: #fed700;
  font-size: 3rem; 
}
.profile-text p{
  color:#e5e5e5;
}
.profile-text .social i{
  color : #e5e5e5;
  font-size: 18px;
  margin-right: 10px;
  transition: 0.5s;
}
.profile-text .social i:hover{
  color:#fed700;
  transform: rotate(360deg);
}
.badge {
  display: inline-block;
  background: linear-gradient(135deg, #0073e6, #00c6ff);
  color: #fff;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0;
}
.badge::before {
  content: "✔ ";
  font-weight: bold;
}
.skills-text {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
}

/* BUTTON + SOCIAL ALIGNMENT */
.btn-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

/* BUTTON (optional improvement) */
.btn-group .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fed700;
  color: #000;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-group .btn:hover {
  background: #ff8c00;
  color: #fff;
}

/* SOCIAL CONTAINER */
.btn-group .social {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* SOCIAL ICON BOX */
.btn-group .social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2b2b2b;
  color: #e5e5e5;
  transition: 0.3s;
}

/* ICON */
.btn-group .social i {
  font-size: 16px;
  margin: 0; /* IMPORTANT FIX */
}

/* HOVER EFFECT */
.btn-group .social a:hover {
  /* background: #fed700; */
  color: #000;
  transform: translateY(-3px);
}

#typing-name::after {
  content: "|";
  margin-left: 5px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}
/* ================= ABOUT SECTION (MODERN BLACK) ================= */

.about-section{
  padding: 80px 0;
  background: #111; /* FULL BLACK SECTION */
  position: relative;
   margin-top: 60px; /* 🔥 THIS FIXES THE GAP */
}
.about-subtitle {
  color: #aaa;
  font-size: 14px;
  margin-top: -25px;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}
/* subtle gradient glow (modern touch) */
.about-section::before{
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: #fed700;
  filter: blur(120px);
  opacity: 0.08;
  top: -50px;
  left: -50px;
}

/* WRAPPER */
.about-wrapper{
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* TITLE */
.about-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  margin-bottom: 30px;
  color: #fed700;
}

.about-title i{
  font-size: 24px;
}

/* GRID */
.about-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* CARD - MODERN STYLE */
.about-card{
  background: rgba(255,255,255,0.03); /* glass effect */
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* glowing border effect */
.about-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(120deg, transparent, #fed700, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.3s;
}

/* hover effect */
.about-card:hover{
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.about-card:hover::before{
  opacity: 1;
}

/* LIST */
.about-card ul{
  padding: 0;
}

.about-card ul li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #ddd;
  line-height: 1.5;
}

/* ICON */
.about-card ul li i{
  color: #fed700;
  font-size: 14px;
  margin-top: 4px;
  min-width: 18px;
}

/* RESPONSIVE */
@media (max-width: 992px){
  .about-grid{
    grid-template-columns: 1fr;
  }
}

/* ================= SKILLS SECTION ================= */

.skills-section{
  padding: 80px 0;
  
}

/* WRAPPER */
.skills-wrapper{
  display: flex;
  flex-direction: column;
}
.skills-subtitle{
  color: #aaa;
  font-size: 14px;
  margin-top: -25px;
  margin-bottom: 25px;
  
  letter-spacing: 0.5px;
}
/* TITLE */
.skills-content h4{
  color: #fed700;
  font-size: 28px;
  margin-bottom: 25px;
}

/* GRID */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* ================= CARD ================= */

.skills-card{
  background: #2a2a2a;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;

  box-shadow: 0 5px 15px rgba(0,0,0,0.3);

  /* HOVER ANIMATION */
  transition: all 0.4s ease;

  /* ENTRY ANIMATION FROM LEFT */
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeSlide 0.6s ease forwards;
}

/* ALTERNATE FROM RIGHT (PREMIUM LOOK) */
.skills-card:nth-child(even){
  transform: translateX(50px);
}

/* STAGGER DELAY */
.skills-card:nth-child(1){ animation-delay: 0.1s; }
.skills-card:nth-child(2){ animation-delay: 0.3s; }
.skills-card:nth-child(3){ animation-delay: 0.5s; }
.skills-card:nth-child(4){ animation-delay: 0.7s; }

/* GLOW BORDER */
.skills-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(120deg, transparent, #fed700, transparent);

  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: 0;
  transition: 0.4s;
}

/* HOVER EFFECT */
.skills-card:hover{
  transform: translateY(-10px) scale(1.03);
  background: #1f1f1f;

  box-shadow: 
    0 15px 40px rgba(0,0,0,0.7),
    0 0 20px rgba(254,215,0,0.3);
}

/* ACTIVATE BORDER */
.skills-card:hover::before{
  opacity: 1;
}

/* ================= CONTENT ================= */

/* HEADING */
.skills-card h5{
  color: #fed700;
  margin-bottom: 12px;
  font-size: 16px;
}

/* LIST */
.skills-card ul{
  column-count: 2;
  column-gap: 20px;
}

.skills-card ul li{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #fff;
}

/* ICON */
.skills-card ul li i{
  color: #fed700;
  font-size: 13px;
  transition: 0.3s;
}

/* ICON HOVER */
.skills-card:hover ul li i{
  transform: scale(1.2);
}

/* TITLE ROW */
.skills-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  margin-bottom: 20px;
  color: #fff;
}

/* ================= ANIMATION ================= */

@keyframes fadeSlide{
  to{
    opacity: 1;
    transform: translateX(0);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px){
  .skills-grid{
    grid-template-columns: 1fr;
  }

  /* REMOVE RIGHT ANIMATION ON MOBILE */
  .skills-card:nth-child(even){
    transform: translateX(-50px);
  }
}

@media (max-width: 576px){
  .skills-card ul{
    column-count: 1;
  }
}




/* ================= EDUCATION SECTION ================= */


.education-content {
  background: #111;
  padding: 80px 0;
}
.education-subtitle{
  color: #aaa;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
/* CONTAINER */
.education-content .container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ROW */
.education-content .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center alignment */
  gap: 30px;
}

/* BOTH COLUMNS */
.education,
.internship {
  flex: 1 1 48%;
  max-width: 48%;
}

/* TITLES */
.education-content .title {
  font-size: 26px;
  font-weight: 700;
  color: #fed700;
  margin-bottom: 15px;
}

/* CARD */
.card-section {
  background: linear-gradient(145deg, #1e1e1e, #262626);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: 0.35s ease;
  width: 100%;
}

.card-section:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* TIMELINE ITEM */
.timeline-item {
  background: #202020;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.3s;
}

.timeline-item:hover {
  transform: translateY(-5px);
  border: 1px solid rgba(254,215,0,0.4);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* DATE */
.timeline-item span {
  display: inline-block;
  font-size: 12px;
  color: #fed700;
  margin-bottom: 8px;
  font-weight: 500;
}

/* TITLE */
.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.timeline-title i {
  color: #fed700;
  margin-right: 8px;
}

/* SUBTITLE */
.timeline-subtitle {
  font-size: 14px;
  color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .education,
  .internship {
    max-width: 100%;
    flex: 1 1 100%;
  }
}
/* Internship Popup */
.intern-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.intern-popup.active {
    display: flex;
}

.intern-popup-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
}

.intern-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}
.internship  {
    cursor: pointer;
}
/* Disable scroll */
body.no-scroll {
    overflow: hidden;
}
/* ===== Internship certificate indicator ===== */

.internship .timeline-item {
  cursor: pointer;
  position: relative;
}

/* Corner icon (no SVG) */
.internship .timeline-item::after {
  content: "📄";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 14px;
  opacity: 0.6;
  transition: 0.3s ease;
}

/* Hover (desktop) */
.internship .timeline-item:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

/* Tap feedback (mobile) */
.internship .timeline-item:active {
  transform: scale(0.98);
}
/*---------------------------Projects---------------------------*/

.project-content {
  padding: 80px 0;
}

/* TITLE */
.project-title {
  text-align: center;
  margin-bottom: 50px;
}

.project-title h4 {
  font-size: 32px;
  color: #fff;
}

.project-title p {
  color: #94a3b8;
  padding: 8px;
}

/* GRID (FIXED CENTER ISSUE) */
.projects {
  /*display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 300px)); 
  justify-content: center;
  gap: 30px;*/
}

.project-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 30px;
  margin-left: -15px;
  margin-right: -15px;
}

.project-col {
  width: 100%;
  flex: 0 0 auto;
  padding-left: 15px;
  padding-right: 15px;  
}

@media (min-width: 768px) {
  .project-col {
    width: 50%;
  }
}

@media (min-width: 992px) {
  .project-col {
    width: 33.333333%;
  }
}

/* CARD */
.project {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* HOVER EFFECT */
.project:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #facc15;
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.2);
}

/* IMAGE (ROUND FIX) */
.project-image img {
  width: 90px;
  height: 90px;
  object-fit: cover; /* 🔥 better than contain */
  border-radius: 50%; /* 🔥 MAKE ROUND */
  margin-bottom: 15px;
  transition: 0.3s;
}

/* IMAGE HOVER */
.project:hover .project-image img {
  transform: scale(1.1);
}

/* TEXT */
.project-info h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.company {
  color: #cbd5f5;
  font-size: 14px;
}

.date {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 5px;
}

/* BUTTON (IMPROVED MODERN LOOK) */
.load-more {
  margin: 40px auto 0;
  display: block;
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #facc15, #fde047);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* BUTTON HOVER */
.load-more:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(250, 204, 21, 0.4);
}

/* OPTIONAL: HIDE CARDS */
.project.hidden {
  display: none;
}
/* 🔥 HEADING YELLOW */
.project-title h4 {
  color: #facc15; /* yellow */
}

/* 🔥 IMAGE WITH YELLOW BORDER */
.project-image img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  transition: 0.3s;

  border: 3px solid #facc15; /* 🔥 yellow border */
  padding: 4px; /* gives nice spacing inside border */
  background: rgba(255, 255, 255, 0.05); /* keeps glass effect */
}

/* OPTIONAL: NICE GLOW ON HOVER */
.project:hover .project-image img {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.6);
}

.more-projects {
  display: none;
}
/* ============================= */
/* CERTIFICATIONS SECTION */
/* ============================= */

.certifications-section {
  padding: 50px 20px;
  background: #0f0f0f;
  color: #fff;
  text-align: center;
}

/* SUBTITLE */
.certifications-subtitle {
  color: #e5e5e5;
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.5;

  /* 🔥 Animation */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

/* HEADING */
.certifications-section h2 {
  font-size: 2rem;
  color: #fed700;
  margin-bottom: 40px;
  position: relative;

  /* 🔥 Animation */
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeDown 0.6s ease forwards;
}

/* UNDERLINE */
.certifications-section h2::after {
  content: '';
  width: 0;
  height: 4px;
  background: #fed700;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;

  /* 🔥 Animation */
  animation: lineExpand 0.6s ease forwards;
  animation-delay: 0.3s;
}

/* CONTAINER */
.certifications-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* CARD */
.cert-card {
  background: #1c1c1c;
  border-radius: 15px;
  padding: 20px 25px;
  width: 250px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: default;

  /* 🔥 Animation */
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.6s ease forwards;

  /* Smooth hover */
  transition: transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* STAGGER EFFECT */
.cert-card:nth-child(1) { animation-delay: 0.4s; }
.cert-card:nth-child(2) { animation-delay: 0.5s; }
.cert-card:nth-child(3) { animation-delay: 0.6s; }
.cert-card:nth-child(4) { animation-delay: 0.7s; }
.cert-card:nth-child(5) { animation-delay: 0.8s; }
.cert-card:nth-child(6) { animation-delay: 0.9s; }

/* ICON */
.cert-card i {
  font-size: 2rem;
  color: #fed700;
  transition: 0.3s;
}

/* TEXT */
.cert-card p {
  margin: 0;
  font-size: 1rem;
  text-align: left;
}

/* HOVER EFFECT */
.cert-card:hover {
  background: #fed700;
  color: #0f0f0f;
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 25px rgba(254, 215, 0, 0.3);
}

.cert-card:hover i {
  color: #0f0f0f;
}
#certificate {
    padding: 50px 20px;
    text-align: center;
    overflow-x: hidden; /* fix scroll */
}

#certificate .certifications-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#certificate .cert-card {
    width: 220px;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

#certificate .cert-card:hover {
    transform: translateY(-5px);
}

/* Popup (separate, won’t affect design) */
.cert-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.cert-popup.active {
    display: flex;
}

.cert-popup-content {
    max-width: 85%;
    max-height: 85%;
}

.cert-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}
/* ===== Certificate click indicator (ONLY ADD) ===== */

#certificate .cert-card {
  position: relative;
  cursor: pointer;
}

/* Corner icon */
#certificate .cert-card::after {
  content: "📄";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 14px;
  opacity: 0.6;
  transition: 0.3s ease;
}

/* Hover effect (desktop) */
#certificate .cert-card:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

/* Tap feedback (mobile) */
#certificate .cert-card:active {
  transform: scale(0.97);
}
/* ============================= */
/* ANIMATIONS */
/* ============================= */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineExpand {
  to {
    width: 60px;
  }
}
/*---------------------------Contact Me---------------------------*/
.contact-content{
  padding: 100px 0;
  color: #fff;
  text-align: center;
}
.contact-content .contact-title h4{
  font-size: 40px;
  text-transform: capitalize;
  color: #fed700;
  padding-bottom: 10px;
}
.contact-content .contact-title p{
  padding-bottom: 20px;
}
.contact{
  max-width: 700px;
  margin: auto;
}
.contact input,.contact textarea{
  width: 100%;
  padding: 15px;
  border: 0;
  margin-bottom: 10px;
}

.contact .submit {
  width: auto;
  background-color: #fed700;
  padding: 10px 40px;
  font-weight: bold;
  font-size: 18px;
  border-radius: 20px; /* Adjust the border-radius value to control the roundness */
}

.contact .submit:hover{
  transform: scale(1.1);
  cursor: pointer;
}
#msg{
  color: #fff;
  font-size: 20px;
  margin-top: -8px;
  display: block;
}


/* ============================= */
/* QUICK CONNECT */
/* ============================= */

.contact-icons-section {
  padding: 50px 20px;
  background: #0f0f0f;
  color: #fff;
  text-align: center;
}

/* TITLE */
.contact-icons-title h4 {
  font-size: 2rem;
  color: #fed700;
  margin-bottom: 10px;

  /* 🔥 Animation */
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeDown 0.6s ease forwards;
}

/* SUBTITLE */
.contact-icons-title p {
  color: #e5e5e5;
  font-size: 1rem;
  margin-bottom: 30px;

  /* 🔥 Animation */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

/* ICON CONTAINER */
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* BUTTON */
.icon-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1c1c1c;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 8px 15px rgba(0,0,0,0.5);

  /* 🔥 Animation */
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.6s ease forwards;

  /* Smooth hover */
  transition: all 0.3s ease;
}

/* 🔥 STAGGER EFFECT */
.icon-btn:nth-child(1) { animation-delay: 0.4s; }
.icon-btn:nth-child(2) { animation-delay: 0.5s; }
.icon-btn:nth-child(3) { animation-delay: 0.6s; }
.icon-btn:nth-child(4) { animation-delay: 0.7s; }
.icon-btn:nth-child(5) { animation-delay: 0.8s; }

/* ICON */
.icon-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* HOVER EFFECT */
.icon-btn:hover {
  background: #fed700;
  color: #111;
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 25px rgba(254, 215, 0, 0.3);
}

.icon-btn:hover i {
  transform: rotate(15deg) scale(1.2);
}

/* ============================= */
/* ANIMATIONS */
/* ============================= */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/*---------------------------Footer---------------------------*/
.footer {
    max-width: 950px;
    margin: 0 auto;
    padding: 15px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer .message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
  }
  
  .copyright {
    font-size: 12px;
  }




 /*------------------- Responsive Design on small screen -------------------*/

/* Medium layout */
@media only screen and (min-width:1000px) and (max-width:1200px){
  .container{
    width: 970px;
  }
}

@media(max-width:1050px){
  .FirstElement{ 
    flex-direction: column;
    padding-top: 2rem;
  }
  .profile-text{
    padding: 40px 0px;
  }
}



/* tablet layout */
@media only screen and (min-width:768px) and (max-width:999px){
  .container{
    width: 750px;
  } 
}  


/* Mobile Layout */
@media only screen and (max-width:767px){
  .container{
    width: 350px;
  }

  .header .menu_icon {
    display: block;
  }
  .header ul{
    display: none;
  }
  .header i{
    color: #e5e5e5;
  }

  .profile-text{
    width: 350px;
  }
  .FirstElement .profile-text p{
    text-align: justify;
  }
  .about{
    flex-direction: column;
    flex-basis: 100%;
    margin-bottom: 30px;
  }
  .about-skills{
    width: 100%;
    margin-top: 30px;
  }
  .education-content .row {
    flex-direction: column;
    height: auto;
    margin-bottom: 50px;
  }

  .education-content .row .education,
  .education-content .row .internship {
    flex-basis: 100%;
    max-width: 100%;
    margin-top: 30px;
  }
  .project{
    flex-basis: 100%;
    margin-bottom: 30px;
  }


}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #fed700; /* Yellow color */
  color: #fff; /* White text color */
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
  background-color: #ffcc00; /* Darker yellow color on hover */
}

.back-to-top i {
  font-size: 24px;
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
  background-color: #fed700; /* Yellow color */
  border-radius: 5px; /* Rounded border */
}

::-webkit-scrollbar-thumb {
  background-color: #fff; /* White color for scrollbar thumb */
  border-radius: 5px; /* Rounded border for scrollbar thumb */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #f0f0f0; /* Light gray color on hover */
}

/* Styles for the modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px; /* Rounded corners */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 10px; /* Rounded corners */
}

.close {
  color: red; /* Yellow color for close button */
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
  margin-top: 0; /* Remove top margin for h2 */
}

.modal-content ul {
  list-style-type: disc;
  color: black;
  padding-left: 20px; /* Add padding to the left */
  padding-right: 20px; /* Add padding to the right */
  padding-top: 10px; /* Add padding to the top */
  padding-bottom: 10px; /* Add padding to the bottom */
}

.modal-content ul li {
  margin-bottom: 10px;
  text-align: justify; /* Justify text */
}
body.modal-open {
  overflow-y: hidden;
}

.overfllowX-hidden {
  overflow-x: hidden !important;
}
/* ================= CONTACT BUTTON ================= */

/* Desktop Default (Button Style) */
.navbar .contact-btn {
    background: #fed700;
    color: #000;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    transition: 0.3s;
}

/* Hover */
.navbar .contact-btn:hover {
    background: #fff;
    color: #000;
}

/* ✅ ACTIVE (REMOVE BUTTON STYLE) */
.navbar .contact-btn.active {
    background: none;     /* ❌ remove yellow block */
    color: #fed700;       /* ✅ yellow text */
    padding: 5px 0;       /* match normal links */
    border-radius: 0;
    font-weight: normal;
}

/* ================= MOBILE VIEW ================= */

@media (max-width: 768px) {

    /* Always behave like normal menu item */
    .navbar .contact-btn {
        background: none;
        color: #fff;
        padding: 5px 0;
        border-radius: 0;
        font-weight: normal;
        box-shadow: none;
        display: block;
        text-align: center;
    }

    /* Hover */
    .navbar .contact-btn:hover {
        color: #fed700;
        background: none;
    }

    /* Active */
    .navbar .contact-btn.active {
        color: #fed700;   /* ✅ yellow text only */
        background: none;
    }
}
.custom-bolt {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('files/bolt.svg') no-repeat center;
  background-size: contain;
  cursor: pointer;
}
