@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --primary: #ff7300;
  --secondary: #ffb347;
  --dark-bg: #0a0a0a;
  --light-bg: #181824;
  --text: #fff;
  --muted: #b0b0b0;
  --gradient: linear-gradient(90deg, #ff7300 0%, #ff3c00 100%);
  --gradient-alt: linear-gradient(90deg, #ffb347 0%, #ff7300 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--dark-bg);
  color: var(--text);
  min-height: 100vh;
  scroll-behavior: smooth;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 6vw 1.5rem 6vw;
  background: var(--light-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.logo-highlight {
  color: var(--primary);
}

.nav {
  position: relative;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu li {
  display: inline-block;
  margin-right: 2.5rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
  background-color: var(--primary);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
  background-color: var(--primary);
}
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.2s;
}
.nav-link.active,
.nav-link:hover {
  color: var(--primary);
}
.btn {
  padding: 0.7em 2.2em;
  border: none;
  border-radius: 2em;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, filter 0.2s;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(255, 115, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn:hover {
  box-shadow: 0 4px 32px 0 rgba(255, 115, 0, 0.25);
  filter: brightness(1.1) drop-shadow(0 0 8px #ff7300);
}
.contact-btn {
  background: var(--gradient);
  color: #fff;
  margin-left: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 16px 0 rgba(255, 115, 0, 0.15);
  transition: box-shadow 0.2s, filter 0.2s;
}
.contact-btn:hover {
  filter: brightness(1.1) drop-shadow(0 0 8px #ff7300);
}
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  padding: 2vw 6vw 0 6vw;
  min-height: 80vh;
  gap: 4vw;
}
.hero-content {
  max-width: 600px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}
.hero-content h2 {
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #fff;
}
.highlight {
  color: var(--primary);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.highlight-alt {
  color: var(--secondary);
  background: var(--gradient-alt);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.desc {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
  justify-content: flex-start;
}
.social {
  color: var(--text);
  font-size: 1.5rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: #181824;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.social:hover {
  background: var(--gradient);
  color: #fff;
  transform: scale(1.12);
}
.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-start;
}
.hero-buttons .btn {
  display: inline-block;
  margin-right: 1.2rem;
}
.btn-hire {
  background: var(--gradient);
  box-shadow: 0 2px 16px 0 rgba(255, 115, 0, 0.15);
}
.btn-hire:hover {
  filter: brightness(1.1) drop-shadow(0 0 8px #ff7300);
}
.btn-contact {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn-contact:hover {
  background: var(--gradient-alt);
  color: #fff;
  border: 2px solid var(--secondary);
  filter: brightness(1.1) drop-shadow(0 0 8px #ffb347);
}
.hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
}
.img-gradient {
  background: var(--gradient);
  padding: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 4px 32px 0 rgba(255, 115, 0, 0.25);
}
.profile-pic {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 8px solid var(--dark-bg);
}
footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: var(--muted);
  font-size: 1rem;
  background: var(--light-bg);
  margin-top: 3rem;
}
@media (max-width: 1000px) {
  .hero {
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
  }
  .hero-content {
    text-align: center;
    align-items: center;
  }
  .social-icons,
  .hero-buttons {
    justify-content: center;
  }
  .hero-img {
    margin-bottom: 2rem;
  }
  .profile-pic {
    width: 270px;
    height: 270px;
  }
}
@media (max-width: 768px) {
  .header {
    padding: 1.2rem 4vw;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--light-bg);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
    margin-right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
    transition: background 0.3s ease;
  }

  .nav-link:hover {
    background: rgba(255, 115, 0, 0.1);
    border-radius: 0.5rem;
  }

  .profile-pic {
    width: 250px;
    height: 250px;
  }
}
@media (max-width: 600px) {
  .header {
    padding: 1rem 3vw;
  }

  .nav-menu {
    top: 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content h2 {
    font-size: 1.3rem;
  }
  .profile-pic {
    width: 230px;
    height: 230px;
  }
}
@media (max-width: 480px) {
  .profile-pic {
    width: 210px;
    height: 210px;
  }
  .img-gradient {
    padding: 8px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    margin-right: 0;
    padding: 0.8em 1.5em;
    font-size: 1rem;
  }
}
@media (max-width: 360px) {
  .profile-pic {
    width: 190px;
    height: 190px;
  }
  .img-gradient {
    padding: 6px;
  }
}

.projects-section {
  padding-top: 2vw;
  padding: 8vw 6vw 6vw 6vw;
  min-height: 80vh;
  background: var(--dark-bg);
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
}
.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}
.project-card {
  background: var(--light-bg);
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(255, 115, 0, 0.1);
  padding: 2rem 1.5rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 370px;
  width: 100%;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 40px 0 rgba(255, 115, 0, 0.18);
}
.project-img {
  width: 100%;
  max-width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 16px 0 rgba(255, 115, 0, 0.1);
}
.project-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--primary);
  text-align: center;
}
.project-desc {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.btn-project {
  background: var(--gradient-alt);
  color: #fff;
  font-size: 1rem;
  padding: 0.6em 1.8em;
  border-radius: 2em;
  font-weight: 600;
  box-shadow: 0 2px 16px 0 rgba(255, 179, 71, 0.1);
  transition: box-shadow 0.2s, filter 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn-project:hover {
  filter: brightness(1.1) drop-shadow(0 0 8px #ffb347);
}
.btn-cv {
  background: var(--gradient);
  box-shadow: 0 2px 16px 0 rgba(255, 115, 0, 0.15);
}
.btn-cv:hover {
  filter: brightness(1.1) drop-shadow(0 0 8px #ff7300);
}
@media (max-width: 800px) {
  .projects-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .projects-section {
    padding: 4vw 2vw 6vw 2vw;
  }
}

.services-section {
  padding-bottom: 2vw;
  padding: 8vw 6vw 6vw 6vw;
  min-height: 80vh;
  background: var(--dark-bg);
}
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}
.service-card {
  background: var(--light-bg);
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(255, 115, 0, 0.1);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 350px;
  width: 100%;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 40px 0 rgba(255, 115, 0, 0.18);
}
.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
  text-align: center;
}
.service-desc {
  color: var(--muted);
  font-size: 1.05rem;
  text-align: center;
}

/* Project Blog Styles */
.projects-blog {
  padding: 4rem 6vw 6rem 6vw;
  background: var(--dark-bg);
  min-height: 100vh;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.blog-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 4rem;
}

.project-blog-item {
  background: var(--light-bg);
  border-radius: 1.5rem;
  margin-bottom: 4rem;
  overflow: hidden;
  box-shadow: 0 8px 40px 0 rgba(255, 115, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 50px 0 rgba(255, 115, 0, 0.18);
}

.project-header {
  position: relative;
  margin-bottom: 3rem;
}

.project-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.5rem 1.5rem 0 0;
  background-color: var(--light-bg);
  border: 2px solid rgba(255, 115, 0, 0.1);
}

.project-meta {
  padding: 2rem 2.5rem 0 2.5rem;
}

.project-name {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--gradient);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 10px 0 rgba(255, 115, 0, 0.15);
}

.project-summary {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.features-section {
  padding: 0 2.5rem 2.5rem 2.5rem;
}

.features-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.feature-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  border: 1px solid rgba(255, 115, 0, 0.1);
  transition: background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.feature-item:hover {
  background: rgba(255, 115, 0, 0.05);
  border-color: rgba(255, 115, 0, 0.2);
}

.feature-img {
  width: 200px;
  height: auto;
  max-height: 150px;
  object-fit: scale-down;
  object-position: center;
  border-radius: 0.8rem;
  flex-shrink: 0;
  box-shadow: 0 4px 20px 0 rgba(255, 115, 0, 0.12);
  display: block;
  transition: transform 0.3s ease;
  background-color: var(--light-bg);
  border: 2px solid rgba(255, 115, 0, 0.1);
}

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

.feature-content {
  flex: 1;
}

.feature-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.feature-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Skills Section Styles */
.skills-section {
  padding: 8vw 6vw 6vw 6vw;
  background: var(--dark-bg);
  min-height: 80vh;
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
}

.skills-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 4rem;
}

.skills-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.skills-heading {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* Education Section */
.education-section {
  background: var(--light-bg);
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(255, 115, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 40px 0 rgba(255, 115, 0, 0.18);
}

.education-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 115, 0, 0.1);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.education-item:hover {
  background: rgba(255, 115, 0, 0.05);
  border-color: rgba(255, 115, 0, 0.2);
}

.education-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-major {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.education-period {
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
}

/* Technical Skills Section */
.technical-skills-section {
  background: var(--light-bg);
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(255, 115, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.technical-skills-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 40px 0 rgba(255, 115, 0, 0.18);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  border: 1px solid rgba(255, 115, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-item:hover {
  background: rgba(255, 115, 0, 0.08);
  border-color: rgba(255, 115, 0, 0.3);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px 0 rgba(255, 115, 0, 0.15);
}

.skill-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.skill-item:hover .skill-icon {
  color: var(--secondary);
  transform: scale(1.1);
}

.skill-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  transition: color 0.3s ease;
}

.skill-item:hover .skill-name {
  color: var(--secondary);
}

/* Responsive Design for Project Blog */
@media (max-width: 1024px) {
  .projects-blog {
    padding: 3rem 4vw 4rem 4vw;
  }

  .blog-title {
    font-size: 2.5rem;
  }

  .project-name {
    font-size: 2rem;
  }

  .feature-item {
    flex-direction: column;
    gap: 1.5rem;
  }

  .feature-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 200px;
    object-fit: scale-down;
    object-position: center;
    align-self: center;
    border: 2px solid rgba(255, 115, 0, 0.1);
  }
}

@media (max-width: 768px) {
  .projects-blog {
    padding: 2rem 3vw 3rem 3vw;
  }

  .blog-title {
    font-size: 2rem;
  }

  .project-meta {
    padding: 1.5rem 2rem 0 2rem;
  }

  .features-section {
    padding: 0 2rem 2rem 2rem;
  }

  .project-name {
    font-size: 1.8rem;
  }

  .features-title {
    font-size: 1.5rem;
  }

  .feature-item {
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .tech-stack {
    gap: 0.5rem;
  }

  .tech-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .projects-blog {
    padding: 1.5rem 2vw 2rem 2vw;
  }

  .blog-title {
    font-size: 1.8rem;
  }

  .project-meta {
    padding: 1rem 1.5rem 0 1.5rem;
  }

  .features-section {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }

  .project-banner {
    height: auto;
    object-fit: cover;
    object-position: center;
  }

  .feature-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border: 2px solid rgba(255, 115, 0, 0.1);
  }
}

@media (max-width: 1024px) {
  .skills-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .skill-item {
    padding: 1.2rem 0.8rem;
  }

  .skill-icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .skills-section {
    padding: 4vw 3vw 6vw 3vw;
  }

  .skills-subtitle {
    margin-bottom: 3rem;
  }

  .education-section,
  .technical-skills-section {
    padding: 2rem 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }

  .skill-item {
    padding: 1rem 0.5rem;
  }

  .skill-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .skill-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .skills-section {
    padding: 3vw 2vw 4vw 2vw;
  }

  .education-section,
  .technical-skills-section {
    padding: 1.5rem 1rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .skill-item {
    padding: 0.8rem 0.4rem;
  }

  .skill-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .education-title {
    font-size: 1.1rem;
  }

  .education-major {
    font-size: 1rem;
  }
}

/* Additional Image Optimization */
img {
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.project-banner,
.feature-img {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
