/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.85));
  color: #000000;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00C853;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #1B1B1B;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links .active {
  color: #00C853;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}




.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 1200px;
  margin: auto;
  padding: 100px 20px;
  gap: 50px;
  flex-wrap: wrap; /* Prevent overlap */
}

.hero-content {
  flex: 1;
  min-width: 300px;
}







.hero h1 span {
  color: #00E676;
}


.typed-text {
  display: inline-block;
  min-width: 220px; /* Reserve enough width for longest text */
  white-space: nowrap;
}
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 100px 20px;
  gap: 50px;
  flex-wrap: wrap; /* Prevent overlap */
}

.hero-photo {
  flex: 1;
  display: flex;
  justify-content: center;
  /* ❌ Remove fixed positioning */
  position: relative;
  left: auto;
}

.hero-photo img {
  width: 25vw;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.sep {
  /* ❌ Remove fixed */
  position: relative;
}

.hero-content {
  color: white;
  animation: fadeIn 1.2s ease-in-out;
  /* ❌ Remove fixed positioning */
  position: relative;
  left: auto;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 50px;
  }

  .hero-photo img {
    width: 60vw;
  }

  .hero-content {
    margin-top: 20px;
  }
  #home{
    margin-bottom: 100px;
  }
}



/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
  color: white;
}


.profile-img {
  width: 50vh;
  height: 25vw;
  border-radius: 50%;
  border: 3px solid #00C853;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero h1 span {
  color: #00E676;
}

.hero p {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: white;
}

.hero-buttons {
  margin-top: 1rem;
}

.btn,
.btn-outline {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(to right, #00C853, #009624);
  color: white;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin: 0.3rem;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  border: 2px solid #00C853;
  color: #00C853;
}

.btn-outline:hover {
  background: #00C853;
  color: white;
}

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

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #00C853;
}

/* About Section */
.about {
  padding: 20px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}


.about-content img {
  width: 250px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-content div {
  max-width: 500px;
}

.about p {
  margin-bottom: 1rem;
}

/* Projects */
.projects {
  padding: 100px 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  text-align: center;
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

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

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

.btn-small {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #00C853;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  margin: 0 0.3rem;
  transition: background 0.3s;
}

.btn-small:hover {
  background: #009624;
}

/* Skills */
.skills {
  padding: 100px 20px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.05));
}

.skills-slider {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.skills-container {
  display: flex;
  gap: 20px;
  animation: scrollSkills 25s linear infinite;
}

.skill {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.skill-container:hover{
      transform: scale(1.03);
      color: rgb(0, 220, 55);
} 

.skill i:hover{
      transform: scale(1.03);
      color: rgb(0, 220, 55);
}   

.skill i {
  font-size: 2rem;
  color: #00C853;
  display: block;
  margin-bottom: 0.5rem;
}


@keyframes scrollSkills {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Contact */
.contact {
  padding: 100px 20px;
}
.contact-info p{
    color: white;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  width: 100%;
}

form input, form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

form button {
  background: linear-gradient(to right, #00C853, #009624);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

form button:hover {
  transform: scale(1.03);
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-info i {
  color: #00C853;
  margin-right: 10px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  margin-top: 50px;
  font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

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

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

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

/* Success and error states */
.btn.success {
  background: #00C853;
}

.btn.error {
  background: #e53935;
}
