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

body {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  padding: 30px 0;
  justify-content: center;
  align-items: center;
}

.back-vid {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}

@media (max-aspect-ratio: 16/9) {
  .back-vid {
      width: auto;
      height: 100%;
  }
}

@media (min-aspect-ratio: 16/9) {
  .back-vid {
      width: 100%;
      height: auto;
  }
}

.main-section {
  width: 90%;
  height: 90%;
  background-color: #4ad0ee1b;
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 5px 5px 20px 1px #4acfee;
  overflow-y: auto;
  scrollbar-width: none;
}

.main-section::-webkit-scrollbar {
  display: none;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  position: sticky;
  top: 0;
  background-color: #0e1217b3;
  z-index: 100;
  backdrop-filter: blur(5px);
}

nav h1 {
  color: white;
  font-size: 30px;
  font-weight: 900;
}

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

nav a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: 0.2s;
  padding: 0px 25px;
  position: relative;
}

nav a:hover,
.active {
  color: #4acfee;
  text-decoration: underline;
}

/* Common Section Styles */
.section {
  padding: 80px 10%;
  color: white;
}

.section-title {
  font-size: 50px;
  margin-bottom: 50px;
  text-align: center;
}

.section-title span {
  color: #4acfee;
}

/* Home Section */
.hero {
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: 0 10%;
  color: white;
  justify-content: space-between;
}

.hero h1 {
  font-size: 60px;
}

.hero h2 {
  margin-top: 20px;
  font-size: 30px;
  text-transform: uppercase;
  background: linear-gradient(to right, #4acfee, #53f8c9, #6070fd, #5bbdff, #4acfee);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 2.5s linear infinite;
}

.hero p {
  max-width: 450px;
  margin-top: 7px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.info-sec {
  display: flex;
  width: 100%;
  gap: 20px;
  padding: 0 10%;
  flex-wrap: wrap;
  justify-content: space-between;
}

.info-card {
  display: flex;
  width: 100%;
  align-items: center;
  max-width: fit-content;
}

.info-sec h1 {
  font-size: 55px;
  text-transform: uppercase;
  background: linear-gradient(to right, #4acfee, #53f8c9, #6070fd, #5bbdff, #4acfee);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 2.5s linear infinite;
  margin-right: 10px;
}

.info-sec p {
  color: white;
  font-size: 20px;
}

/* About Section */
.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.about-img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 20px #4acfee;
  transition: 0.5s;
  flex-shrink: 0;
}

.about-img:hover {
  box-shadow: 0 0 30px #4acfee;
  transform: scale(1.02);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  max-width: 600px;
}

.about-content h2 {
  font-size: 25px;
  margin-bottom: 20px;
  background: linear-gradient(to right, #4acfee, #53f8c9, #6070fd, #5bbdff, #4acfee);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 2.5s linear infinite;
}

.skills {
  margin-top: 30px;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-item h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #fff;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, #4acfee, #53f8c9);
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(74, 207, 238, 0.2);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(74, 207, 238, 0.3);
}

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

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #4acfee;
}

.project-content p {
  margin-bottom: 15px;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  background: rgba(74, 207, 238, 0.2);
  color: #4acfee;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-links a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}

.project-links a:hover {
  color: #4acfee;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(74, 207, 238, 0.2);
}

.skill-category h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #4acfee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-list i {
  color: #4acfee;
  font-size: 20px;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 50px;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(74, 207, 238, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4acfee;
  font-size: 20px;
}

.contact-text h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #4acfee;
}

.contact-text p, 
.contact-text a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-text a:hover {
  color: #4acfee;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(74, 207, 238, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #4acfee;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(74, 207, 238, 0.3);
  border-radius: 10px;
  color: white;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #4acfee;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: #4acfee;
  color: #0e1217;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.submit-btn:hover {
  background: transparent;
  color: #4acfee;
  box-shadow: 0 0 10px #4acfee;
}

/* Common Components */
.Buttons {
  display: flex;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: #4acfee;
  border: 2px solid #4acfee;
  border-radius: 40px;
  box-shadow: 0 0 10px #4acfee;
  font-size: 16px;
  font-weight: 900;
  color: #0e1217;
  cursor: pointer;
  margin-right: 15px;
  transition: 0.3s;
  text-wrap: nowrap;
}

.btn:hover {
  background-color: transparent;
  box-shadow: none;
  color: #4acfee;
}

.ul-icons {
  display: flex;
  align-items: center;
}

.ul-icons li {
  list-style: none;
  margin-left: 10px;
}

.ul-icons a {
  display: inline-flex;
  padding: 8px;
  border: 2px solid #4acfee;
  border-radius: 50%;
  font-size: 20px;
  color: #4acfee;
  text-decoration: none;
  margin: 0 7px;
  transition: 0.3s;
}

.ul-icons a:hover {
  background: #4acfee;
  color: #0e1217;
  box-shadow: 0 0 10px #4acfee;
}

.hero-img {
  width: 400px;
  height: 400px;
  background-color: none;
  position: relative;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 10px #4eddfd;
  transition: 0.5s;
}

.hero-img:hover {
  box-shadow: 0 0 25px #4acfee;
}

.hero-img img {
  position: absolute;
  width: 85%;
  mix-blend-mode: lighten;
}

@keyframes animate-gradient {
  to {
      background-position: 200%;
  }
}

/* Responsive Styles */
@media (min-width: 1220px) {
  body {
      width: 100%;
      height: 100vh;
      overflow: hidden;
  }
}

@media (max-width: 980px) {
  body {
      height: fit-content;
      overflow: auto;
  }

  .main-section nav ul {
      display: none;
  }

  .Buttons {
      display: flex;
      flex-direction: column;
      gap: 20px;
  }

  .hero {
      display: flex;
      flex-direction: column;
  }

  .hero-img {
      width: 400px;
      height: 400px;
      margin: 20px 0;
  }

  /* About section responsive */
  .about-container {
      flex-direction: column;
  }

  .about-img {
      width: 350px;
      height: 350px;
      margin-bottom: 30px;
  }

  .about-content {
      text-align: center;
  }

  .contact-container {
      grid-template-columns: 1fr;
  }
}

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

  .skills-container {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .hero-img {
      width: 350px;
  }

  .hero h1 {
      font-size: 40px;
  }

  /* About section responsive */
  .about-img {
      width: 300px;
      height: 300px;
  }

  .about-content h1,
  .section-title {
      font-size: 40px;
  }

  .about-content h2 {
      font-size: 20px;
  }

  nav h1 {
      font-size: 24px;
  }
}