/* Google Font CDN Link */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&display=swap"
);
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
}

/* Custom Scroll Bar CSS */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #6e93f7;
    border-radius: 12px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #4070f4;
}
/* navbar styling */
nav{
  position: fixed;
  width: 100%;
  padding: 20px 0;
  z-index: 998;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
  background: #e6ecf8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* halka shadow */
}
nav.sticky{
  background: #4070f4;
  padding: 13px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* thoda strong shadow */
}
nav .navbar{
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
}
nav .navbar .logo a{
  font-weight: 600;
  font-size: 32px;
  padding: 0 2rem;
  color: #4070f4;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
}
nav.sticky .navbar .logo a{
  color: #eee7e7;
}
nav .navbar .menu{
  display: flex;
  position: relative;
  gap: 10px;
}
nav .navbar .menu li{
  list-style: none;
  margin: 0 8px;
}
.navbar .menu a{
  font-size: 18px;
  font-weight: 500;
  color: #0E2431;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.navbar .menu a:hover{
  background: rgba(64,112,244,0.1);
  color: #4070f4;
}
nav.sticky .menu a{
  color: #e9dcdc;
}
nav.sticky .menu a:hover{
  background: rgba(255,255,255,0.2);
  color: #f3ecec;
}


/* Side Navigation Menu Button CSS */
nav .menu-btn,
.navbar .menu .cancel-btn{
  position: absolute;
  color: #f0ebeb;
  right: 30px;
  top: 20px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}
nav .menu-btn{
  color: #4070f4;
}
nav.sticky .menu-btn{
  color: #f4eaea;
}
.navbar .menu .menu-btn{
  color: #f0e5e5;
}

/* home section styling */
.home{
  height: 100vh;
  width: 90%;
  margin: auto;
  padding: 15 0%;
  /* background: url("images/background.png") no-repeat; */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Ubuntu', sans-serif;
}
.home .home-content{
  width: 90%;
  height: 100%;
  margin: auto;
  display: flex;
  flex-direction: row;
  align-items: center; 
  justify-content:space-between;
 
}
.text {
  flex: 1;                  /* text left side */
  text-align: left;
}
.home .text-one{
  font-size: 25px;
  color: #0E2431;
}
.home .text-two{
  color: #05202f;
  font-size: 75px;
  font-weight: 600;
  margin-left: -3px;
}
.home .text-three{
  font-size: 40px;
  margin: 5px 0;
  color: #6b7bae;
}
.home .text-four{
  font-size: 23px;
  margin: 5px 0;
  color: #020d14;
}
.home .button .btn{
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}
.home .button .btn:hover{
background: #0056b3;
}

/* Image styling */
.home-image img {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  object-fit: cover;
  border-radius: 100%; /* makes it circular */
  animation: floatImage 4s ease-in-out infinite;
}
@keyframes floatImage {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px); /* thoda upar jaye */
  }
  100% {
    transform: translateY(0px);   /* wapas neeche aaye */
  }
}
.typing {
  border-right: 2px solid #000;
  white-space: nowrap;
  overflow: hidden;
  font-weight: bold;
  font-size: 1.5rem;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: black; }
}

.typing::after {
  content: '';
  animation: blink 0.7s infinite;
}


/* About Section Styling */

/* Left Side (About Me Text) */

.about {
  padding: 60px 20px;
  min-height: 100vh;   /* section full screen jitna ho */
  display: flex;
  align-items: center; /* vertical center */

}

.about .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;     /* dono columns (text + cards) vertical center me */
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}
.about-text {
  flex: 4 4 5%;
  max-width: 600px;
  
}
.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.about-text p {
  font-size: 1.1rem;   /* normal text ka size */
  line-height: 1.4;    /* text ke beech gap */
  color: #444;         /* halka grey color */
  margin-bottom: 10px;
  text-align: justify; /* optional: clean look ke liye */
}

/* Download Button */
.about-text .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.about-text .btn:hover {
  background: #0056b3;
}

/* Right Side (Cards Grid) */
.about-cards {
  flex: 1 1 45%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-cards .card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* ✅ Blue glowing border */
  border: 2px solid rgba(0,123,255,0.3); 
  box-shadow: 0 0 20px rgba(0,123,255,0.25);
  
  transition: all 0.3s ease;
}

.about-cards .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(64, 112, 244, 0.9),
              0 0 50px rgba(64, 112, 244, 0.6);
}

.about-cards .card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #007bff;
}

.about-cards .card p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .about .container {
    flex-direction: column;
    text-align: center;
  }

  .about-text, .about-cards {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .about-cards {
     grid-template-columns: repeat(2, minmax(300px, 1fr)); /* pehle 220px ya 250px tha */
  gap: 30px
  }
}

/* Skills Section */
.skills {
  min-height: 100vh;
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4da6ff;
  margin-bottom: 50px;
}

/* Container for cards */
.skills .container {
  display: flex;
  justify-content: center;
  gap: 40px; /* space between cards */
  flex-wrap: wrap;
}

/* Skills Cards */
.skills-card {
  flex: 1 1 400px; /* responsive width */
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  border: 2px solid rgba(0,123,255,0.3);
  box-shadow: 0 0 20px rgba(0,123,255,0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skills-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(0,123,255,0.4);
}

.skills-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 25px;
}

/* Technical Skills Progress Bars */
.skill {
  margin-bottom: 20px;
  text-align: left;
}

.skill-name {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
  font-size: 1.1rem;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  flex: 1;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.progress {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #4facfe, #527df4);
  transition: width 0.5s ease-in-out;
}

.percent {
  min-width: 40px;
  text-align: right;
  font-weight: 600;
  color: #555;
}

/* Tools & Technologies Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.tech {
  background: #f4f4f4;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.tech:hover {
  background: #4da6ff;
  color: #fff;
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 900px) {
  .skills .container {
    flex-direction: column;
    align-items: center;
  }
}


/* My Services CSS */
.projects {
  padding: 80px 0;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  color: #06061b;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-content: center;
}

.project-card {
  background: #fff;
  border-radius: 16px;
  border: 2px solid rgba(0,123,255,0.3); /* 👈 glow border */
  box-shadow: 0 0 20px rgba(0,123,255,0.25); /* 👈 blue glow */
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 420px;   /* 👉 thoda bada taaki content comfortably fit ho */
}

.project-card:hover {
  transform: translateY(-10px);
   box-shadow: 0 0 30px rgba(0,123,255,0.4); /* 👈 hover pe aur strong glow */
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  /* border-bottom: 2px solid rgba(0,123,255,0.3); */
}

.project-content {
  padding: 25px;
  text-align: left;
}

.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #010d19;
}

.project-content p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #444;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #6884a1;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.btn:hover {
  background: #b2c0ce;
}

/* Contact Me CSS */
.contact {
  padding: 80px 0;
  text-align: center;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 40px;
  border-radius: 18px;
  border: 2px solid rgba(0,123,255,0.3); /* 👈 glow border */
  box-shadow: 0 0 20px rgba(0,123,255,0.25); /* 👈 glowing effect */
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  text-align: left;
}

.contact-info h3 {
  margin-bottom: 15px;
  color: #0655a9;
}

.contact-info p {
  margin-bottom: 15px;
  color: #444;
   /* display: block;      
  text-align: center; */

}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid rgba(0,123,255,0.3);
  border-radius: 8px;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0,123,255,0.3);
}

.btn {
  padding: 12px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #0056b3;
}
.social-links {
  margin-top: 15px;
  display: flex;
  gap: 12px;
  justify-content: flex-start; /* left align (aap chahe toh center bhi kar sakte ho) */
}

.social-links a img {
  width: 28px;   /* 👈 medium size */
  height: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links a img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(0,123,255,0.35);
  border-radius: 50%;
}

/* Footer CSS */
footer{
  background: #c5d4fd;
  padding: 15px 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
footer .text span{
  font-size: 17px;
  font-weight: 400;
  color: #030303;
}
footer .text span a{
  font-weight: 500;
  color: #070707;
}
footer .text span a:hover{
  text-decoration: underline;
}
/* Scroll TO Top Button CSS */
.scroll-button a{
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #fff;
  background: #3b486a;
  padding: 7px 12px;;
  font-size: 18px;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.15);
  display: none;
}

/* For tablets */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }
  .nav-menu {
    flex-direction: column;
  }
}

/* For mobile */
@media (max-width: 480px) {
  .header {
    font-size: 1.2rem;
  }
}
