/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f4f6f9;
  color: #333;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  color: white;
  font-size: 20px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 10px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links .active {
  color: #00c6ff;
}

/* Dark Mode Toggle */
.dark-toggle {
  margin-left: 15px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 20px;
  color: white;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Hero Section (Home) */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  color: white;
}

.hero h2 {
  font-size: 36px;
  margin: 15px 0;
}

.hero span {
  color: #ffeb3b; /* yellow highlight for your name */
}

.hero p {
  font-size: 20px;
  margin-bottom: 15px;
}

.hero .offer {
  display: inline-block;
  background: #ff4b2b;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  margin: 15px 0;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Profile Image */
.profile-pic {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 20px rgba(0, 114, 255, 0.6);
  margin-bottom: 20px;
}

/* Typing Text */
#typed-text {
  font-size: 20px;
  color: #fff;
  font-weight: 500;
  border-right: 2px solid #ffeb3b; /* blinking cursor */
}

/* Common Page Hero (About, Skills, Projects, Pricing, Contact) */
.page-hero {
  background: linear-gradient(135deg, #6a11cb, #2575fc); /* purple-blue gradient */
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.page-hero h2 {
  font-size: 30px;
  margin: 15px 0;
}

.page-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

/* Sections */
.page-section {
  padding: 60px 20px;
  text-align: center;
}

.page-section h2 {
  margin-bottom: 20px;
  font-size: 26px;
}

/* Buttons */
.btn {
  background: linear-gradient(45deg, #0072ff, #00c6ff);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin: 5px;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-style: italic;
}

.testimonial-card h4 {
  margin-top: 10px;
  color: #0072ff;
}

/* Skills */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.skills-list span {
  background: #0072ff;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
}

/* Projects & Pricing Grid */
.project-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card, .pricing-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.project-card:hover, .pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background: #0072ff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Responsive */
@media(max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #222;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 15px;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero h2 {
    font-size: 28px;
  }

  .page-hero h2 {
    font-size: 24px;
  }
}
