* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

:root {
  --primary-color: #f9b233;
  --text-color: #ffffff;
  --bg-color: #000000;
  --font-main: "Poppins", sans-serif;
  --max-width: 1200px;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  max-width: var(--max-width);
  margin: auto;
  position: sticky;
  top: 0;
  background-color: var(--bg-color);
  z-index: 1000;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-color);
}

nav {
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

nav ul {
  display: flex;
  gap: 35px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: 0.3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4em 80px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: auto;
  gap: 20px;
}

.hero-content {
  max-width: 450px;
}

.hero-content span {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
}

.hero-content h1 {
  font-size: 3.7rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 10px 0;
}

.highlight {
  color: var(--primary-color);
  font-size: 4rem;
  font-weight: 800;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.btn {
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-yellow {
  background: var(--primary-color);
  color: black;
  box-shadow: 0 4px 12px rgba(249, 178, 51, 0.3);
}

.btn-yellow:hover {
  background: #e5a42c;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: black;
}

.hero-image-wrapper {
  flex-shrink: 0;
}

.hero img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
}

#typing-h1 {
  min-height: 90px;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.4;
}
#typed-role {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 3.7rem;
}

@media (max-width: 991px) {
  #typed-role {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  #typed-role {
    font-size: 2.3rem;
  }
}

@media (max-width: 480px) {
  #typed-role {
    font-size: 1.8rem;
  }
}

@media (max-width: 991px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 70px 20px 60px;
  }

  nav ul {
    flex-direction: column;
    position: absolute;
    top: 75px;
    right: 40px;
    background-color: #111;
    padding: 20px;
    border-radius: 10px;
    display: none;
  }

  nav ul.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero-content h1,
  #typing-h1 {
    font-size: 2.4rem;
  }

  .hero-content span {
    font-size: 2rem;
  }

  .highlight {
    font-size: 2.6rem;
  }

  .hero img {
    max-width: 420px;
  }

  .logo {
    font-size: 1.6rem;
  }

  /* .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  } */
  .btn {
    display: none;
  }
}

/* section2 */
.s2 {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  justify-content: space-around;
  padding: 50px 40px;
  gap: 50px;
  max-width: 1700px;
  margin: auto;
  flex-wrap: wrap;
  /* background-color: #111; */
  color: white;
}

.s2 img {
  max-width: 400px;
  width: 100%;
  border-radius: 15px;
}

.content {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}

.content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
}

.content h3 {
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
  font-weight: 400;
  color: #999999;
}

.all-info {
  margin-bottom: 30px;
  /* display: flex;
  flex-direction: column;
  gap: 0.3em; */
}

.info-item {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #999999;
}

.info-item span {
  font-weight: 590;
  display: inline-block;
  width: 140px;
  color: white;
}
.content h3 {
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.content h3 span {
  font-size: 1.7rem;
  font-weight: 600;
  color: #f9b233;
  margin-right: 5px;
}
.content h3 {
  font-size: 18px;
  color: white;
}
.para {
  margin-bottom: 50px;
  font-size: 1rem;
  color: #999999;
  font-weight: 400;
}
.btnz {
  margin-top: 20px;
}

.btn1 {
  background-color: #f9b233;
  color: #000;
  border: none;
  padding: 4px 16px; /* Smaller padding */
  font-size: 0.3rem;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn1:hover {
  background-color: #e5a42c;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .s2 {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
  }

  .content h2 {
    font-size: 2rem;
  }

  .content h3 {
    font-size: 0.92rem;
    margin: auto 180px;
  }

  .info-item {
    font-size: 0.95rem;
  }

  .info-item span {
    width: 100%;
    display: block;
    margin-bottom: 4px;
  }

  .btn1 {
    padding: 8px 24px;
    font-size: 0.95rem;
  }

  .s2 img {
    max-width: 280px;
    display: none;
  }
}

@media (max-width: 480px) {
  .content h2 {
    font-size: 1.6rem;
  }

  .content h3 {
    font-size: 0.75rem;
    margin: auto 120px;
  }

  .info-item {
    font-size: 0.9rem;
  }

  .btn1 {
    width: 100%;
  }
}

/* section3 */
/* Resume Section */
.s3 {
  padding: 80px 10%;
  background-color: #0a0a0a;
  color: white;
  text-align: center;
}

.s3 h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--primary-color); /* Use your theme color */
}

.s3 h4 {
  font-size: 1.01rem;
  font-weight: 400;
  color: #ccc;
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 800px;
  margin-inline: auto;
}

.gridd {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 550px));
  justify-content: center;
  gap: 40px;
}

.g1 {
  background: #111;
  padding: 40px;
  /* border-radius: 20px; */
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
  color: #fff;
  text-align: left;
  transition: all 0.3s ease;
}

.g1:hover {
  transform: translateY(-5px);
}

.g1 h3 {
  font-size: 1.5rem;
  margin: 10px 0;
  color: var(--primary-color);
}
.g1 .high {
  color: white;
  font-weight: 500;
}
.g1 h5 {
  font-size: 1rem;
  margin: 15px 0px;
  font-weight: 500;
  color: #aaa;
  margin-bottom: 25px;
  color: #999999;
}

.g1 p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 2;
  color: #999999;
}

@media (max-width: 991px) {
  .gridd {
    grid-template-columns: repeat(2, 1fr);
  }

  .s3 h2 {
    font-size: 2.8rem;
  }

  .s3 h4 {
    font-size: 1.1rem;
  }
}

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

  .g1 {
    padding: 20px;
  }

  .s3 h2 {
    font-size: 2.3rem;
  }

  .s3 h4 {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .s3 {
    padding: 60px 5%;
  }

  .s3 h2 {
    font-size: 2rem;
  }

  .s3 h4 {
    font-size: 0.95rem;
  }

  .g1 h3 {
    font-size: 1.1rem;
  }

  .g1 h5 {
    font-size: 0.9rem;
  }

  .g1 p {
    font-size: 0.9rem;
  }
}
.btnqq {
  margin-top: 40px;
  padding: 20px 28px;
  font-weight: 530;
  letter-spacing: 2px;
  font-size: 14px;
  text-transform: uppercase;
}
.s5 .gridd {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  justify-content: center;
  gap: 40px;
}

.s5 .g1 {
  background: #111;
  padding: 60px 40px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: 1px solid #222;
  border-radius: 10px;
}

.s5 .g1:hover {
  transform: translateY(-5px);
  /* background-color:#e5a42c; */
  background-color: #1a1a1a;
}

.s5 .g1 i {
  font-size: 40px;
  color: #f9b233;
  margin-bottom: 20px;
}

.s5 .g1:hover i {
  color: #fff;
}

.s5 .g1 .high {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.s5 .g1:hover .high {
  color: #f9b233;
}

.s5 .g1 p {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
  margin: 0;
}

@media (max-width: 1200px) {
  .s5 .gridd {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .s5 .g1 {
    max-width: 300px;
    padding: 50px 30px;
  }
}

@media (max-width: 768px) {
  .s5 .gridd {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .s5 .g1 {
    max-width: 98%;
    padding: 60px 20px;
  }

  .s5 .g1 .high {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .s5 .g1 p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .s5 .g1 {
    padding: 40px 15px;
  }

  .s5 .g1 .high {
    font-size: 14px;
  }

  .s5 .g1 p {
    font-size: 12px;
  }
}

/* Section background */
.s4 {
  padding: 80px 20px;
  background-color: #000;
  color: white;
}

.skills-section {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.skills-section h1 {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 3rem;
  color: #f8b52e;
}

.skills-section p {
  color: #aaa;
  margin-bottom: 60px;
  font-size: 15px;
  margin-top: 30px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px 60px;
}

.skill {
  text-align: left;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 600;
  color: white;
}
@media (max-width: 768px) {
  .skill-header span {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .skill-header span {
    font-size: 14px;
  }
}

.percentage {
  font-weight: 400;
  font-size: 16px;
}
@media (max-width: 768px) {
  .percentage {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .percentage {
    font-size: 14px;
  }
}

.progress-bar {
  background-color: #222;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #f8b52e;
  width: 0;
  transition: width 1s ease-in-out;
}

@media (max-width: 768px) {
  .skills-section h1 {
    font-size: 38px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* section6 */
.s6 {
  /* background-color: #0e0024; */
  padding: 80px 20px;
  color: #fff;
  text-align: center;
}

.section-title {
  font-size: 42px;
  margin-bottom: 60px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-card {
  background: #1b1b1b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
}

.img-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.img-container:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.img-container:hover .overlay {
  opacity: 1;
}

.play-btn {
  color: white;
  font-size: 30px;
  border: 2px solid white;
  border-radius: 50%;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 16px 0 5px 0;
  text-align: center;
}

.project-tags {
  font-size: 14px;
  color: #aaaaaa;
  text-align: center;
  padding-bottom: 20px;
}
.s6 h2{
  font-size: 2.5rem;
  color: #f8b52e;
  /* letter-spacing: normal; */
}
/* Animattion */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-up {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.btn,
.btn1 {
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover,
.btn1:hover {
  background: #e6a400;
  transform: scale(1.05);
}

/* ===== Footer Section ===== */
.footer {
  background-color: #111;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  margin-top: 50px;
}

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

.footer-logo {
  font-size: 28px;
  font-weight: 800;
  color: #f7ca3e;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.footer-links a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.footer-socials a {
  color: #ccc;
  font-size: 22px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  color: #f7ca3e;
  transform: scale(1.1);
}

.footer-copy {
  font-size: 14px;
  color: #888;
  margin-top: 15px;
  letter-spacing: 0.5px;
}

/* ===== Responsive Footer ===== */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-socials {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-logo {
    font-size: 24px;
  }

  .footer-links a {
    margin: 6px 0;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 15px;
  }

  .footer-logo {
    font-size: 20px;
  }

  .footer-socials a {
    font-size: 20px;
  }

  .footer-copy {
    font-size: 13px;
  }
}

.btn1, .bntq {
  background-color: #f9b233;
  color: #000;
  border: none;
  padding: 15px 22px;
  font-size: 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s ease;

}

/* Hover Effect */
.btn1:hover,
.bntq:hover {
  background-color: #e5a42c;
}

/* Responsive Design */
@media (max-width: 768px) {
  .btn1, .bntq {
    margin-top: 30px;
    padding: 12px 18px;
    font-size: 0.7rem;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .btn1, .bntq {
    padding: 10px 15px;
    font-size: 0.65rem;
    border-radius: 15px;
  }
}
