:root {
  --primary-blue: #2563eb;
  --light-blue: #3b82f6;
  --dark-blue: #1d4ed8;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #e2e8f0;
  --dark-gray: #64748b;
  --text-dark: #1e293b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.4s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light-gray);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--primary-blue);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-decoration: none;
}

.logo span {
  color: var(--dark-gray);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.05) 0%,
    rgba(37, 99, 235, 0.01) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1) 0%,
    rgba(37, 99, 235, 0.05) 100%
  );
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-text h1 span {
  color: var(--primary-blue);
  position: relative;
}

.hero-text h1 span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 10px;
  background: rgba(37, 99, 235, 0.2);
  bottom: 5px;
  left: 0;
  z-index: -1;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--dark-gray);
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-img-container {
  width: 400px;
  height: 400px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  border: 10px solid var(--medium-gray);
  position: relative;
  box-shadow: var(--shadow);
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

.hero-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About Section */
.about {
  background: var(--white);
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-image {
  flex: 1;
}

.about-img-container {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.about-img-container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1) 0%,
    rgba(37, 99, 235, 0.05) 100%
  );
  z-index: 1;
}

.about-img-container img {
  width: 100%;
  display: block;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  background: var(--light-gray);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.stat-item .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.stat-item .label {
  font-size: 1rem;
  color: var(--dark-gray);
}

/* Skills Section */
.skills {
  background: var(--light-gray);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.skill-item {
  margin-bottom: 25px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-weight: 600;
}

.skill-percent {
  color: var(--primary-blue);
  font-weight: 600;
}

.skill-bar {
  height: 10px;
  background: var(--medium-gray);
  border-radius: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary-blue);
  border-radius: 5px;
  position: relative;
  width: 0;
  transition: width 1.5s ease-in-out;
}

/* Projects Section */
.projects {
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--light-gray);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-img {
  height: 250px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-content p {
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Contact Section (modified) */
.contact {
  background: linear-gradient(
    135deg,
    var(--light-blue) 0%,
    var(--primary-blue) 100%
  );
  color: var(--white);
}

.contact .section-title h2 {
  color: var(--white);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info {
  text-align: center; /* Center heading and paragraph */
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center; /* Center contact items */
}

.contact-item {
  display: flex;

  align-items: center; /* Align icon and text vertically */
  gap: 15px;
  justify-content: center; /* Center icon and text horizontally */
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--white);
}

/* Removed: All .contact-form, .form-group, .form-control, and related styles */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-form .btn {
  background: var(--white);
  color: var(--primary-blue);
  width: 100%;
  font-weight: 600;
}

.contact-form .btn:hover {
  background: var(--light-gray);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--light-gray);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--primary-blue);
  bottom: -10px;
  left: 0;
}

.footer-col p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-blue);
  transform: translateY(-5px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-blue);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    margin-bottom: 50px;
  }

  .hero-btns {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%; /* Hidden by default */
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0; /* Shown when active class is added */
  }
}

@media (max-width: 576px) {
  section {
    padding: 70px 0;
  }

  .hero {
    height: auto;
    padding-top: 120px;
    padding-bottom: 70px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
  border: 3px solid var(--secondary);
}

.author-info h4 {
  font-size: 20px;
  margin-bottom: 5px;
}

.author-info p {
  color: var(--gray);
}
