/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4a90e2;
  --secondary: #50c878;
  --dark: #2c3e50;
  --light: #f5f6fa;
}

html {
  scroll-behavior: smooth;
}

/* body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
} */

body {
  /* background: #5d5e60; */
}
a {
  color: #fff;
  text-decoration: none;
}

/* Loader Animation */
.loader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeOut 1s ease-in-out forwards 2s;
}

/* .loader::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
} */

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

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 8rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

nav a:hover::after {
  width: 100%;
}


.home {
  display: flex;
  align-items: center;
  gap: 70px;
  height: 100vh;
  padding: 60px 9% 0;
  color: #fff;
}
.home-info h1 {
  font-size: 55px;
  color: #1f242d;
}
.home-info h2 {
  display: inline-block;
  font-size: 32px;
  margin-top: -10px;
  color: #1f242d;
}

.home-info h2 span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 0.7px #7cf03d;
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

@keyframes fill-text {
  10%,
  100% {
    width: 0;
  }
  70%,
  90% {
    width: 100%;
  }
}

@keyframes display-text {
  25%,
  100% {
    display: none;
  }
}

.home-info h2 span::before {
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: 2px solid #7cf03d;
  color: #7cf03d;
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 4s linear infinite;
}

.home-info p {
  font-size: 16px;
  margin: 10px 0 25px;
  color: #1f242d;
}
.btn-sci {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 30px;
  background: #7cf03d;
  border: 2px solid #7cf03d;
  border-radius: 40px;
  box-shadow: 0 0 10px;
  font-size: 16px;
  color: #1f242d;
  font-weight: 600;
  transition: 0.5s;
}
.btn:hover {
  background: transparent;
  cursor: pointer;
  color: #7cf03d;
  box-shadow: none;
}
.sci {
  margin-left: 20px;
}
.sci a {
  display: inline-flex;
  padding: 8px;
  border: 2px solid #7cf03d;
  border-radius: 50px;
  font-size: 20px;
  color: #1f242d;
  margin: 0 8px;
  transition: 0.5s;
}
.sci a:hover {
  background: #7cf03d;
  color: #1f242d;
  box-shadow: 0 0 10px;
}

.img-box {
  width: 32vw;
  height: 32vw;
  /* background: red; */
  border-radius: 50%;
  padding: 1px;
}
.img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgb(245, 245, 247);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.img-item img {
  position: absolute;
  display: block;
  top: 20px;
  width: 85%;
  object-fit: cover;
}



/* Hero Section */
/* .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 1;
} */

/* .hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1rem;
  animation: slideUp 1s ease forwards;
} */

/* .hero p {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideUp 1s ease forwards 0.5s;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  opacity: 0;
  animation: slideUp 1s ease forwards 1s;
  transition: transform 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-5px); */
}

/* Projects Section */
.projects {
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.5s ease;
}

.project-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-card:hover .project-info {
  transform: translateY(0);
}
.project-content {
  padding: 2rem;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.project-description {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.project-buttons {
  display: flex;
  gap: 1rem;
}

.project-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.live-btn {
  background: var(--primary);
  color: white;
}

.live-btn:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.github-btn {
  background: var(--dark);
  color: white;
}

.github-btn:hover {
  background: black;
  transform: translateY(-3px);
}

.profile {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  /* background: white; */
  border-radius: 15px;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

.container {
  width: 100%;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Profile info styles */
.profile-info h3,
.skills-info h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d3748;
}

.profile-info p,
.skills-info p {
  color: #718096;
  margin-bottom: 2rem;
}

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

.list-group-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.list-group-item p {
  margin: 0;
  color: #2d3748;
  font-size: 0.95rem;
}

.text-primary {
  color: #f70b75;
}

/* Skills styles */
.skill-item {
  margin-bottom: 1.5rem;
}

.skill-item h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.progress {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #f70b75;
  border-radius: 5px;
  transition: width 1s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  font-size: 0.75rem;
  color: white;
}

/* Buttons container */
.buttons-container {
  margin-top: 3rem;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  margin: 0.5rem;
}

.btn-outline-dark {
  color: #2d3748;
  border: 2px solid #2d3748;
}

.btn-outline-dark:hover {
  background: #2d3748;
  color: white;
}

.btn-dark {
  color: #1a202c;
  border: 2px solid #2d3748;
}

.btn-dark:hover {
  background: #1a202c;
  color: #e2e8f0;
  border-color: #1a202c;
}

/* Animation for progress bars */
@keyframes progressAnimation {
  from {
    width: 0;
  }
}

.progress-bar {
  animation: progressAnimation 1.5s ease-out forwards;
}

/* Responsive design */
@media (max-width: 768px) {
  .profile {
    padding: 1rem;
  }

  .row {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
    max-width: 300px;
  }
}
/* Contact Section */
.contact {
  padding: 5rem 2rem;
  background: var(--light);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.5s ease;
}

.contact-form.visible {
  transform: translateY(0);
  opacity: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #eee;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 2rem;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: red;
}
.social-links .fa-facebook:hover {
  color: var(--primary);
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: row;
    text-align: center;
    gap: 2rem;
  }

  .hero {
    padding: 1rem;
  }

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