* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html,
body {
  overflow-x: hidden;
  background-color: black;
  color: white;
}

.d-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.max-width {
  max-width: 1200px;
  margin: 0 auto;
}

.logo-text {
  display: flex;
  align-items: center;
}

/* Logo Image */
.logo-img {
  height: 70px; /* size control */
  width: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: 0.3s ease;
}

/* Hover effect (premium feel 🔥) */
.logo-img:hover {
  transform: scale(1.08);
}

/* navbar section */

header {
  padding: 15px 40px;
  justify-content: space-between;
  align-items: center;
  background: black;
  color: #fff;
  flex-wrap: wrap;
}

header .d-flex {
  display: flex;
}
ul {
  list-style-type: none;
}

ul.nav-links {
  gap: 40px;
}
.nav-links a {
  color: white;
  font-weight: 700;
}

.menu-icon {
  display: none;
  font-size: 26px;
  cursor: pointer;
}
.nav-links a:hover {
  color: #00aaff !important;
}

/* Hide normal header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: black; 
  z-index: 1000;

  transform: translateY(-100%);
  transition: all 0.3s ease;
}

/* Show sticky header */
.sticky-header.show {
  transform: translateY(0);
}

/* IMPORTANT (same layout maintain) */
.sticky-header .max-width {
  display: flex;
  justify-content: space-between;
  align-items: center;
 
}
/* banner section */
.banner-sec {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.banner {
  width: 47%;
  min-width: 300px;
}

.banner h1 {
  font-size: 40px;
  line-height: 60px;
}

.banner p {
  font-size: 15px;
  line-height: 30px;
  color: rgb(199, 195, 195);
  margin-bottom: 20px;
  font-weight: 300;
}

/* contact */

.contact {
  gap: 20px;
  flex-wrap: wrap;
}

.contact button {
  padding: 10px;
  background-color: #d3e97a;
  color: black;
  font-weight: 700;
  border: none;
  border-radius: 10px;
}

.contact span {
  padding: 10px;
  border-radius: 50%;
  background-color: #222222;
  color: #d3e97a;
}

button:hover {
  background-color: aqua;
  color: black;
}

.photo {
  width: 36%;
}
.photo img {
  margin-top: 30px;
  width: 100%;
  height: 500px;
  border-radius: 10px;
  margin-bottom: 50px;
}
.banner-hr hr {
  margin-top: 60px;
  height: 1px;
  background-color: #484848;
}

/* about us */

.about-section {
  padding: 100px 20px;
  background: #000002;
  color: white;
}

.role {
  color: #38bdf8;
  margin-top: 5px;
}

/* Description */
.about-description {
  font-size: 17PX;
  text-indent: 50px;
  margin: 20px;
}

.about-description p {
 color: rgb(199, 195, 195);
  line-height: 1.8;
  margin-top: -20px;
}

/* Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* Cards */
.info-box {
  background: #0f172a;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
}

.info-box h4 {
  color: #38bdf8;
  margin-bottom: 5px;
}

.info-box p {
   color: rgb(199, 195, 195);
  font-size: 14px;
}

/* Hover */
.info-box:hover {
  transform: translateY(-5px);
  background: #1e293b;
}

/* Button */
.about-btn {
  margin-top: 40px;
}

.cv-btn {
  padding: 12px 25px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.cv-btn:hover {
  transform: scale(1.05);
}
/* projects section */
.Project-sec {
  margin-top: 120px;
}

.projects {
  margin: 40px auto;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
}

.projects-images {
  width: 45%;
}

.color {
  width: 100%;
  max-width: 600px;
  background-color: #322b2b;
  border-radius: 20px;
  margin: auto;
  height: 400px;
}

.color img {
  margin-top: 50px;
  margin-left: 55px;
  width: 80%;
  border-radius: 20px;
  height: 300px;
}

.projects-content {
  width: 45%;
  margin: 0 auto;
}

.head {
  text-align: center;
}

.head h1 {
  font-size: 40px;
  line-height: 40px;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.head p {
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 3px;
  color: rgb(169, 176, 181);
  margin-bottom: 60px;
}

.projects-content h2 {
  font-size: 35px;
  font-weight: 600;
  line-height: 40px;
  margin-bottom: 10px;
}

.projects-content p {
  font-size: 13px;
  color: #cac2c2;
  font-weight: 300;
  line-height: 30px;
  margin-bottom: 20px;
}

.projects-content h5 {
  font-weight: 400;
}

.project-hr hr {
  margin-bottom: 30px;
  color: #484848 !important;
  height: 1px;
}

.years,
.role {
  justify-content: space-between;
}

.years h6,
.role h6 {
  color: gray;
}

.ancore {
  margin-top: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.ancore span {
  color: #d3e97a;
}

a {
  text-decoration: none;
  color: #d3e97a;
}

.ancore a:hover {
  color: #00aaff;
}

/* skills section — FLEX ONLY */
.skills-section {
  margin-top: 120px;
}

.skills-heading {
  text-align: center;
  margin-bottom: 40px;
}

.skills-heading h1 {
  font-size: 40px;
  font-weight: 800;
  color: white;
  margin: 30px;
}

.skills-heading p {
  font-size: 20px;
  color: #ccc;
  max-width: 600px;
  margin: auto;
  line-height: 40px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  width: 100%;
  margin-bottom: 80px;
}

.skill-card {
  width: 30%;
  min-width: 250px;
  padding: 40px;
  border-radius: 18px;
  text-align: center;
  border: 2px solid #444;
  transition: 0.4s ease;
}

.skill-icon {
  font-size: 50px;
  color: #00aaff;
  margin-bottom: 15px;
}

.skill-card h2 {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 700;
  color: white;
}

.skill-card p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 40px;
}

.read-btn {
  padding: 10px 18px;
  background: #00aaff;
  border-radius: 5px;
  color: white;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 20px #00aaff;
  border-color: #00aaff;
}

/* contact section */
.contact-sec {
  margin-top: 120px;
  width: 100%;
  background: #000000;
}

/* Center container */
.contact-wrapper {

  margin: auto;
  text-align: center;
  color: #fff;
}

/* Heading */
.contact-wrapper h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.contact-wrapper p {
  color: #aaa;
  margin-bottom: 20px;
}

.contact-wrapper a {
  color: #00bfff;
  text-decoration: none;
}

/* FORM */
form {
  margin-top: 30px;
  background: #000000;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  text-align: left;
}

/* INPUT GROUP */
.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid #333;
  outline: none;
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
}

.input-group textarea {
  height: 120px;
  resize: none;
}

/* LABEL */
.input-group label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: #111;
  padding: 0 5px;
  color: #777;
  font-size: 13px;
  transition: 0.3s;
}

/* FLOAT EFFECT */
.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: -8px;
  font-size: 11px;
  color: #00bfff;
}

/* BUTTON */
button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, #00bfff, #007bff);
  border: none;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* footer */
footer {
  margin: 40px 0px;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
}
ul {
  gap: 40px;
}

.footer ul li span {
  background-color: #484848;
  padding: 10px 15px;
  border-radius: 50%;
  color: #d3e97a;
}
span :hover {
  background-color: #00aaff;
  color: white;
}

/* education details */
.education-section {
  margin-top: 20px;
  width: 90%;
  padding: 70px 0px 10px 0px;
}

.education-title {
  font-size: 32px;
  margin-bottom: 10px;
  text-align: center;
}

.education-subtitle {
  font-size: 14px;
  text-align: center;
  color: #9ca3af;
  margin-bottom: 30px;
}

.edu-item {
  position: relative;
  margin-bottom: 25px;
  padding-left: 25px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.6s ease-out forwards;
}
.edu-item:nth-child(1) {
  animation-delay: 0.1s;
}
.edu-item:nth-child(2) {
  animation-delay: 0.3s;
}
.edu-item:nth-child(3) {
  animation-delay: 0.5s;
}
.edu-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border 0.2s ease;
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.8);
  border-color: #38bdf8;
}

.edu-level {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #38bdf8;
  margin-bottom: 10px;
}

.edu-degree {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 7px;
}

.edu-institute {
  font-size: 14px;
  color: #cbd5f5;
  margin-bottom: 7px;
}

.edu-year {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 7px;
}
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
  .max-width {
    max-width: 700px;
  }

  .project-reverse {
    flex-wrap: wrap-reverse !important;
  }

  .projects-content {
    width: 100% !important;
    margin: 40px 0px;
  }

  .banner,
  .photo,
  .projects-images,
  .projects-content {
    width: 100%;
  }

  .color {
    width: 100%;
  }

  .skills-container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .max-width {
    max-width: 500px;
  }
  .logo-img {
    height: 35px;
  }
  .skill-card {
    width: 90%;
  }
  ul li {
    margin-bottom: 30px;
  }
  ul li a {
    font-size: 15px;
  }
  ul.nav-links {
    margin-top: 20px;
    width: 100%;
    background: #222;
    flex-direction: column;
    padding: 20px;
    display: none;
  }
  ul.nav-links.show {
    display: block;
  }
  .menu-icon {
    display: block;
  }
  .color img {
    margin-left: 35px;
  }
  .head h1 {
    font-size: 30px;
  }
  .head p {
    font-size: 15px;
  }

  .banner h1 {
    font-size: 32px;
  }

  .projects-content h2 {
    font-size: 28px;
  }

  .contact {
    margin: 0px 20px;
  }
  label {
    margin-left: 27px;
  }
  ul {
    gap: 20px;
  }
  .education-title {
    font-size: 26px;
  }
  .edu-degree {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .max-width {
    max-width: 400px;
  }
}
