/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0d1117;
  color: #fff;
  line-height: 1.6;
}

/* Navbar */
header {
  background: #0a0f16;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff6b00;
  letter-spacing: 2px;
}

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

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ff6b00;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding-top: 80px;
}

.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid #ff6b00;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero h1 span {
  color: #ff6b00;
}

.hero p {
  margin: 15px 0;
  color: #bbb;
}

.hero-buttons {
  margin-top: 20px;
}

.btn {
  background: #ff6b00;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  margin: 5px;
  display: inline-block;
  transition: 0.3s;
}

.btn:hover {
  background: #ff8533;
}

.btn-alt {
  background: #222;
  border: 1px solid #ff6b00;
}

.btn-alt:hover {
  background: #ff6b00;
}

/* Section Titles */
section {
  padding: 80px 10%;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #ff6b00;
}

/* About Section */
.about {
  background: #161b22; /* dark theme background */
  padding: 100px 20px;
  text-align: center;
  color: #f0f0f0; /* light text for visibility */
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #ff7e5f; /* orange highlight */
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0; /* lighter gray text */
  transition: transform 0.3s, color 0.3s;
}

.about-text:hover {
  transform: translateY(-5px);
  color: #ffffff; /* bright on hover */
}

.about-image img {
  width: 350px;
  max-width: 100%; /* responsive */
  height: auto;
  border-radius: 15px;
  box-shadow: 0px 8px 25px rgba(255, 126, 95, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0px 12px 35px rgba(255, 126, 95, 0.8);
}


/* Skills */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.skill-card {
  background: #161b22;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  border: 1px solid #ff6b00;
}

/* Projects */
/* Projects Section */
.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* 2 cards max per row */
  gap: 30px;
  justify-content: center;
  padding: 20px 0;
}

.project-card {
  background: #161b22;
  color: #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s forwards;
}

/* Staggered animation for 4 cards */
.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }
.project-card:nth-child(4) { animation-delay: 0.8s; }

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(255,126,95,0.5);
}

/* Project image */
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Project text */
.project-card h3 {
  font-size: 1.3rem;
  margin: 15px 15px 10px;
  color: #ff7e5f; /* highlight color */
}

.project-card p {
  font-size: 0.95rem;
  margin: 0 15px 10px;
  color: #ccc;
}

.project-card span {
  display: block;
  font-size: 0.9rem;
  margin: 0 15px 15px;
  color: #ff9e5f;
}

/* Fade-up animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: 1 project per row on small screens */
@media screen and (max-width: 768px) {
  .project-container {
    grid-template-columns: 1fr;
  }
}


/* Experience */
.experience-card {
  background: #161b22;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Education */
.edu-card {
  background: #161b22;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Achievements */
.achievements ul {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.achievements li {
  background: #161b22;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: 0.3s;
}

.achievements li:hover {
  transform: translateX(5px);
  border-left: 4px solid #ff6b00;
}

/* Contact */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

.contact-form {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 10px;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.contact-form button {
  border: none;
  cursor: pointer;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #0a0f16;
  color: #bbb;
  font-size: 0.9rem;
}
/* Scroll Animation */
section, .skill-card, .project-card, .experience-card, .edu-card, .achievements li {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-in-out;
}

section.active, .skill-card.active, .project-card.active, 
.experience-card.active, .edu-card.active, .achievements li.active {
  opacity: 1;
  transform: translateY(0);
}

/* Skill Bars */
.skill-bar {
  background: #333;
  border-radius: 20px;
  overflow: hidden;
  margin: 10px 0;
}

.skill-progress {
  height: 10px;
  width: 0;
  background: linear-gradient(90deg, #ff6b00, #ff8533);
  border-radius: 20px;
  transition: width 2s ease;
}
.cv-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.cv-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(106, 17, 203, 0.7);
}
/* Hero Section Styling */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3c72, #2a5298); /* new gradient bg */
  color: white;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

/* Floating Animation for Image */
.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* Name Styling */
.hero-name {
  font-size: 3rem;
  margin: 20px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s infinite alternate;
}

.hero-name span {
  font-weight: 900;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #ff8a00; }
  to   { text-shadow: 0 0 20px #e52e71; }
}

/* Buttons with Hover Effects */
.hero-buttons .btn {
  background: #ff8a00;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px;
  transition: 0.3s ease;
}

.hero-buttons .btn:hover {
  background: #e52e71;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Contact Info Inside Hero */
.hero-contact {
  margin-top: 20px;
  font-size: 1rem;
}

.hero-contact p {
  margin: 5px 0;
  opacity: 0.9;
}
