/* Reset and base styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0a1026 url('images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

header {
  background: rgba(10, 10, 30, 0.92);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.logo img {
  height: 44px;
  filter: drop-shadow(0 2px 8px #0008);
}
.logo span {
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffd700;
  text-shadow: 0 2px 8px #000a;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
  text-shadow: 0 2px 8px #000a;
}
.nav-links li a:hover {
  color: #ffd700;
  text-shadow: 0 4px 16px #ffd70044;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70vh;
  padding: 4rem 2rem 2rem 2rem;
  background: linear-gradient(120deg, rgba(10,10,30,0.8) 60%, rgba(40,40,80,0.7) 100%);
  /* border-radius: 0 0 40px 40px; */
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  overflow: hidden;
}
.hero-content {
  max-width: 50%;
  z-index: 2;
  animation: fadeInLeft 1.2s;
}
.hero-content h1 {
  font-size: 2.7rem;
  margin-bottom: 1.2rem;
  color: #ffd700;
  text-shadow: 0 4px 24px #000a;
}
.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 0 2px 8px #000a;
}
.cta-btn {
  background: linear-gradient(90deg, #ffd700 60%, #fff700 100%);
  color: #222;
  padding: 0.8rem 2.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: bold;
  box-shadow: 0 2px 16px #ffd70044;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.cta-btn:hover {
  background: #fff;
  color: #222;
  transform: scale(1.07);
  box-shadow: 0 4px 32px #ffd70088;
}
.hero-img {
  max-width: 38%;
  height: auto;
  border-radius: 30px;
  /* box-shadow: 0 8px 32px #000a; */
  z-index: 2;
  animation: fadeInRight 1.2s, vibrate 2.5s infinite linear;
}
.hero-img:hover {
  animation-play-state: paused, paused;
}
/* .hero-bg {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.18;
  pointer-events: none;
} */

/* About Section */
.about {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 2.5rem auto;
  background: rgba(20, 20, 40, 0.5);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  box-shadow: 0 2px 16px #000a;
  animation: fadeInUp 1.2s;
}
.about-img img {
  width: 160px;
  border-radius: 50%;
  box-shadow: 0 4px 24px #ffd70044, 0 2px 16px #000a;
  background: #222;
}
.about-content h2 {
  color: #ffd700;
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.about-content p {
  font-size: 1.15rem;
  color: #fff;
  text-shadow: 0 2px 8px #000a;
}

/* Projects Section */
.projects {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 2rem 1rem;
  background: rgba(30, 30, 60, 0.5);
  border-radius: 24px;
  box-shadow: 0 2px 16px #000a;
  animation: fadeInUp 1.2s;
}
.projects h2 {
  color: #ffd700;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.project-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}
.project-card {
    background-image: url('images/cardBg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
   
  /* background: rgba(40,40,70,0.92); */
  border-radius: 18px;
  box-shadow: 0 4px 24px #000a, 0 2px 16px #ffd70022;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: fadeInUp 1.2s;
  position: relative;
}
.project-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px #ffd70044, 0 2px 8px #000a;
  background: #fff2;
}
.project-card h3 {
  color: #ffd700;
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}
.project-card p {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
.project-card a {
  color: #ffd700;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.2s;
}
.project-card a:hover {
  color: #fff;
}
.project-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 8px 32px #ffd70055, 0 2px 16px #000a;
}

/* Skills Section */
.skills {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 2rem 1rem;
  background: rgba(20, 20, 40, 0.5);
  border-radius: 24px;
  box-shadow: 0 2px 16px #000a;
  animation: fadeInUp 1.2s;
}
.skills h2 {
  color: #ffd700;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.skill-cards {
    
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 1.5rem;
}
.skill-card {
    background-image: url('images/cardBg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
  border-radius: 16px;
  box-shadow: 0 2px 12px #000a, 0 2px 8px #ffd70022;
  padding: 1.5rem 2rem;
  min-width: 220px;
  max-width: 260px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s cubic-bezier(.4,2,.6,1);
  animation: fadeInUp 1.2s;
  position: relative;
}
.skill-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.7rem;
  filter: drop-shadow(0 2px 8px #ffd70088);
}
.skill-card h3 {
  color: #ffd700;
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}
.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.skill-card li {
  background: rgba(60,60,100,0.85);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  text-align: center;
  font-size: 1rem;
  transition: background 0.2s;
}
.skill-card li:last-child {
  margin-bottom: 0;
}
.skill-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 8px 32px #ffd70055, 0 2px 16px #000a;
}

/* Contact Section */
.contact {
  max-width: 900px;
  margin: 2.5rem auto 3rem auto;
  padding: 2rem 1rem;
  background: rgba(30, 30, 60, 0.5);
  border-radius: 24px;
  box-shadow: 0 2px 16px #000a;
  animation: fadeInUp 1.2s;
}
.contact h2 {
  color: #ffd700;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.contact-content {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: center;
}
.contact-img {
  width: 180px;
  border-radius: 18px;
  box-shadow: 0 4px 24px #ffd70044, 0 2px 16px #000a;
  background: #222;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}
.contact-form label {
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  padding: 0.7rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background: #222;
  color: #fff;
  box-shadow: 0 2px 8px #000a;
}
.contact-form button {
  background: #ffd700;
  color: #222;
  padding: 0.7rem;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px #ffd70044;
}
.contact-form button:hover {
  background: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 16px #ffd70088;
}

/* Footer */
footer {
  background: rgba(10, 10, 30, 0.92);
  padding: 1.2rem 0;
  text-align: center;
  box-shadow: 0 -2px 12px #000a;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.footer-content img {
  height: 32px;
  filter: drop-shadow(0 2px 8px #0008);
}
.footer-content span {
  color: #ffd700;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes vibrate {
  0% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-1px, 1px) rotate(-1deg); }
  20% { transform: translate(-1px, -1px) rotate(1deg); }
  30% { transform: translate(1px, 1px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 1px) rotate(-1deg); }
  60% { transform: translate(-1px, -1px) rotate(0deg); }
  70% { transform: translate(1px, 1px) rotate(-1deg); }
  80% { transform: translate(1px, -1px) rotate(1deg); }
  90% { transform: translate(-1px, 1px) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(-1deg); }
}
img {
  animation: vibrate 2.5s infinite linear;
}
img:hover {
  animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .about, .projects, .skills, .contact {
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
  }
  .project-cards, .skill-cards {
    gap: 1.2rem;
  }
}
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }
  .hero-content, .hero-img {
    max-width: 100%;
  }
  .hero-img {
    margin-top: 2rem;
  }
  .about {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  .about-img img {
    margin: 0 auto;
  }
  .contact-content {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .contact-img {
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .about-content h2, .projects h2, .skills h2, .contact h2 {
    font-size: 1.3rem;
  }
  .project-card, .skill-card {
    min-width: 90vw;
    max-width: 98vw;
    padding: 1rem 0.5rem;
  }
  
} 