* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); 
  font-family: Arial, sans-serif;
  color: #fff;
  animation: fadeInBody 1.5s ease;
}

@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  height: 55px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  animation: slideDown 1s ease;
  z-index: 1000;
}

.logo, .resume-btn {
  flex-shrink: 1;
}

.logo {
  height: 48px;
  width: 80px;
  ;
}
nav h2 {
  color: aliceblue;
  font-size: 26px;
  text-align: center;
  flex: 1;
  transition: 0.4s;
}

.dark-toggle{
  margin-left: 19px;
}

.resume-btn {
  padding: 6px 12px;
  background-color: transparent;
  color:white;
  border-color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
  margin-left: 12px;
}


.resume-btn:hover{
  background-color: white;
  color: black;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
body.dark-mode {
  background: #111;
  color: #eee;
}

body.dark-mode nav {
  background: #222;
}

body.dark-mode .project,
body.dark-mode .about-card {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .resume-btn,
body.dark-mode .dark-toggle {
  border-color: #eee;
  color: #eee;
}

body.dark-mode nav a:hover {
  color: black !important;
}
nav a {
  transition: color 0.3s ease;
}
body.dark-mode nav .resume-btn:hover{
  color: black;
}

.zoom-in-element {
  transform: scale(0.85);
  opacity: 0.2;
  transition: transform 0.8s ease-in, opacity 0.8s ease-out;
  
}

.zoom-in-element.visible {
  transform: scale(1);
  opacity: 1;
}


.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 50px 50px;
  flex-wrap: wrap;
  animation: fadeIn 1.2s ease;
}

.content {
  max-width: 600px;
}

.content h3 {
  font-size: 22px;
  font-style: italic;
}

.content h1 {
  font-size: 55px;
  margin: 10px 0;
  font-style: italic;
}

.content p {
  font-size: 20px;
  color: #eee;
  font-style: italic;
}

.circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid black;
  box-shadow: 10px 10px 20px rgb(10, 8, 8);
  transition: 0.4s;
  animation: float 3s ease-in-out infinite, zoomIn 1s ease;
}

.circle:hover {
  transform: scale(1.1);
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section {
  padding: 60px 40px;
  animation: fadeInSection 1.5s ease;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

#section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 30px;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
}

#section-title:hover {
  animation: glow 2s infinite ;
  cursor: pointer;
}

.projects-container, .about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  text-align: center;
}

.project, .about-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
  transition: transform 0.3s ease;
 
}

.project:hover, .about-card:hover {
  transform: scale(1.05);
}

.project h3, .about-card h3 {
  color: #fff;
  margin-bottom: 10px;
}

.project p, .about-card p {
  color: #ddd;
}
#projects div button:hover{
   transform: scale(1.04);
}

.contact-details {
  text-align: center;
}

.contact-details h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.contact-details .k {
  font-size: 20px;
  margin-bottom: 30px;
}

.contact-details .h {
  font-weight: bold;
  color: #fff;
}
#about div button:hover{
  transform: scale(1.04);
}

.hi {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  animation: bounceIn 1.5s ease;
}

.hi li a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
  transition: transform 0.3s, background-color 0.3s;
}

.hi li a:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.2);
}

.hi img {
  height: 24px;
  width: 24px;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
  }
  nav a {
  display: none;
}

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
  }
  .circle { width: 180px; height: 180px; margin: 20px auto; }
}

@media (max-width: 600px) {
   nav {
    flex-wrap: nowrap;
    padding: 15px 20px;
  }
  nav a {
  display: none;
}

  .logo {
    height: 40px;
    width: 60px;
  }

  .resume-btn {
    font-size: 14px;
    padding: 5px 10px;
  }

  nav h2 {
    font-size: 20px;
  }
  .hi {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  animation: bounceIn 1.5s ease;
}
}
@keyframes zoomIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px #fff; }
  50% { box-shadow: 0 0 8px #00f7ff, 0 0 15px #00f7ff; }
  100% { box-shadow: 0 0 5px #fff; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes cardFadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
