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

body {
  background: linear-gradient(135deg, #0f2a26, #0f2a26);
  padding-top: 80px; /* navbar ki height ke barabar */
  color: white;
}

html {
  scroll-behavior: smooth;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background-color: #05171a;
}

.logo {
  font-size: 26px;
  justify-content: start;
  color: white;
}

.logo span {
  color: #0ff;
}

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

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px;
  margin-bottom: 10%;
}

.content {
  max-width: 600px;
}

.content h3 {
  font-size: 24px;
}

.content h1 {
  font-size: 50px;
  margin: 10px 0;
}

.content h4 {
  font-size: 24px;
  color: #ccc;
}

.highlight {
  color: #0ff;
}

.cursor {
  color: #0ff;
  font-weight: bold;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.content p {
  margin: 20px 0;
  line-height: 1.6;
  font-size: 16px;
}
/* Animate from left */
.animate-left {
  opacity: 0;
  transform: translateX(-300px);
  animation: slideInLeft 1s forwards;
}

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

.socials {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px #0ff solid;
  background: #0f2a26;
  color: #0ff;
  font-size: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.socials a:hover {
  background: #0ff;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff;
}

.btn {
  padding: 12px 25px;
  border: none;
  background: #0ff;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 25px;
  transition: 0.3s;
}

.btn:hover {
  background: #0ff;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 20px #0ff, 0 0 30px #0ff;
}

.profile-image {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer Ring — Pure Cyan + Glow */
.outer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#0ff 0deg, #0ff 360deg);
  box-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #0ff;
  z-index: 1;
}

/* Profile image inside */
.profile-image img {
  width: 92%;
  height: 92%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  background-color: #0b0c2a;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}
.cursor {
  font-weight: bold;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.about-section {
  background-color: #0f2a26;
  padding: 80px 20px;
  color: white;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 80px;
}

.about-image img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 9px solid #0ff; /* Optional: cyan border */
  box-shadow: 0 0 20px #0ff; /* Optional: glowing shadow */
}

.about-text {
  flex: 1 1 55%;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-text h2 .white {
  color: white;
}

.about-text h2 .cyan {
  color: #0ff;
}

.about-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #ddd;
}

/* Slide-in animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(300px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-right {
  animation: slideInRight 1s ease-out forwards;
}

.skills-section {
  padding: 60px;
  background-color: #0f2a26;
  color: #fff;
}

.skills-container {
  max-width: 1000px;
  margin: auto;
  margin-top: 5%;
}

.skills-container h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.skills-list .skill {
  margin-bottom: 25px;
}

.skill h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.progress-bar {
  background-color: #333;
  height: 25px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #0ff, #7700ff);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  position: relative;
  color: #fff;
  font-weight: bold;
  animation: fillProgress 2s ease-out forwards;
  border-radius: 15px;
}

.percentage {
  font-size: 14px;
}

@keyframes fillProgress {
  from {
    width: 0;
  }
}
.animate-left {
  opacity: 0;
  transform: translateX(-100px);
  animation: slideInLeft 1s ease-out forwards;
}

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

.projects-section {
  padding: 60px 20px;
  background-color: #0f2a26;
  text-align: center;
}
.cyan {
  color: cyan;
}
h2 {
  font-size: 2.5rem; /* Adjust as needed */
  font-weight: bold;
}

.projects {
  padding: 2rem 1rem;
  text-align: center;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.project-card {
  background-color: #1e1e1e;
  flex: 1 1 300px;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

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

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 15px;
}

.project-info h3 {
  margin: 10px 0 5px;
  color: #0ff;
}

.project-info p {
  color: #ccc;
  font-size: 14px;
}

.contact-section {
  background-color: #0f2a26;
  padding: 80px 30px;
  color: white;
}

.contact-heading {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
  color: white;
}

.contact-heading .highlight {
  color: cyan;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.contact-form-box,
.contact-info-box {
  flex: 1 1 400px;
  background-color: #111111;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

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

.contact-form-box input,
.contact-form-box textarea {
  padding: 12px;
  border: none;
  border-radius: 5px;
  background-color: #222;
  color: white;
}

.contact-form-box input::placeholder,
.contact-form-box textarea::placeholder {
  color: #aaa;
}

.contact-form-box button {
  padding: 12px;
  background-color: cyan;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.contact-form-box button:hover {
  background-color: #00cccc;
}

.contact-info-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background-color: #1c1c1c;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: scale(1.05);
}

.info-card h3 {
  margin-bottom: 10px;
  color: white;
}

.info-card p {
  margin: 0;
  color: #ccc;
}

/* Common */
.animate-section {
  opacity: 0;
  transition: all 0.8s ease-out;
}

/* Left to Right */
.animate-left {
  transform: translateX(-50px);
}
.animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Right to Left */
.animate-right {
  transform: translateX(50px);
}
.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.footer {
  background-color: #05171a;
  color: #fff;
  padding: 20px 0;
  border-top: 1px solid #333;
  text-align: center;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  display: flex;
}
/* flex-wrap: wrap;*/

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
}

.footer-left p {
  margin: 0;
  font-size: 20px;
}

.footer-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  background-color: #0f2a26;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 1px solid #444;
}

.footer-right a:hover {
  color: cyan;
  background-color: #0f2a26;
  transform: scale(1.15);
  border: 1px solid cyan;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }

  .hero {
    flex-direction: column;
    padding: 30px;
    text-align: center;
  }

  .profile-image {
    margin-top: 30px;
    width: 250px;
    height: 250px;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image img {
    width: 250px;
    height: 250px;
  }

  .skills-section {
    padding: 40px 20px;
  }

  .projects-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-container {
    flex-direction: column;
    gap: 20px; /* Slightly reduced gap for mobile */
    padding: 15px;
  }

  .contact-heading {
    font-size: 28px; /* Slightly smaller for mobile */
    text-align: center;
    margin-bottom: 15px;
  }

  .contact-form-box,
  .contact-info-box {
    padding: 15px;
    width: 100%; /* Ensure full width on mobile */
    box-sizing: border-box;
  }

  .info-card {
    text-align: center;
    padding: 15px 10px;
    margin-bottom: 15px;
  }
  .info-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .contact-form-box button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-right {
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }
}

/* Hover effects only for desktop */
@media (min-width: 769px) {
  .contact-form:hover,
  .contact-info:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px cyan;
  }

  .info-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px cyan;
    border-color: cyan;
  }

  .info-box:active {
    transform: scale(1.07);
    border-color: cyan;
    box-shadow: 0 0 25px cyan;
  }
}

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .profile-image {
    width: 280px;
    height: 280px;
    margin-top: 30px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 300px;
    height: 300px;
  }

  .skills-container,
  .projects-container,
  .contact-container {
    padding: 0 20px;
  }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
  .socials {
    justify-content: center;
  }

  .logo {
    text-align: left;
    margin-left: 20px;
  }
  .hero {
    text-align: center;
  }
  .content h1 {
    font-size: 28px;
  }

  .content h4 {
    font-size: 16px;
  }

  .about-text p,
  .project-info p,
  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }

  .skills-section h2,
  .projects-section h2,
  .contact-section h2 {
    font-size: 24px;
  }
  .contact-heading {
    font-size: 24px;
  }
  .contact-container {
    gap: 15px;
  }

  .info-card {
    padding: 12px 8px;
  }

  .info-card h3 {
    font-size: 17px;
  }

  .info-card p {
    font-size: 14px;
  }

  .footer {
    background-color: #111; /* ya koi dark color */
    color: #fff; /* contrast color */
    padding: 20px 0;
    width: 100%;
  }

  /* .footer-left p {
    font-size: 14px;
  } */
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 1001;
    color: #fff;
  }

  .logo {
    text-align: left;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #05171a;
    color: white;
    position: relative;
  }

  nav ul {
    display: none;
    flex-direction: row;
    width: 100%;
    background-color: #05171a;
    padding: 10px 0;
  }

  nav ul.active {
    display: flex;
  }
  .socials {
    justify-content: center;
  }

  .hero {
    text-align: center;
  }
  .contact-container {
    flex-direction: column;
    align-items: center; /* Center boxes */
  }
  .contact-form-box textarea {
    max-width: 100%; /* Prevents overflow */
    resize: vertical; /* Allows only vertical resize */
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: none;
  }
  .contact-form button {
    background: cyan;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
  }
  .contact-info {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .contact-info div {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    color: white;
  }
  .contact-form-box,
  .contact-info-box {
    width: 90%; /* Better spacing */
    margin: 10px 0;
  }

  .contact-form,
  .contact-info {
    flex: 1 1 45%;
    max-width: 480px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s ease;
    box-shadow: 0 0 0 transparent;
  }

  /* Hover effect with cyan glow and zoom */
  .contact-form:hover,
  .contact-info:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px cyan;
  }
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .info-box {
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 8px;
    transition: 0.3s ease;
  }

  .info-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px cyan;
    border-color: cyan;
  }
}

/* @media (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    margin-top: 10px;
  }
} */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    margin-top: 10px;
  }
}
