* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  list-style-type: none;
  color: whitesmoke;
}
:root {
  --bg-color: #000000;
  --second-bg-color: #2b052dfd;
  --text-color: rgb(224, 224, 224);
  --main-color: #a115a8;
  --card-bg: rgba(43, 5, 45, 0.15);
  --border-color: rgba(161, 21, 168, 0.2);
  --hover-bg: rgba(161, 21, 168, 0.3);
  --form-bg: rgba(43, 5, 45, 0.3);
  --shadow-color: rgba(161, 21, 168, 0.2);
}


body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}
main {
  background-color: var(--bg-color);
  width: 100%;
  height: 60px;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: var(--text-color);
}

nav h1 {
  margin: 1rem;
  color: rgb(128, 10, 128);
}

.nav-header {
  display: flex;
  align-items: center;
}

.nav-header ul {
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-header ul li {
  margin: 0 2rem;
}


.nav-header ul li a {
  color: var(--text-color);
}

.nav-header ul li a:hover{
  color: #a115a8;
}
button {
  background: linear-gradient(to right, #a115a8, #a05e16);
  margin-left: 2rem;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(161, 21, 168, 0.4);
}

#theme-toggle {
  background: linear-gradient(135deg, var(--main-color), #a05e16);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  background: linear-gradient(135deg, #a05e16, var(--main-color));
  border-color: var(--main-color);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(161, 21, 168, 0.3);
}

#theme-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

#theme-toggle:hover #theme-icon {
  transform: rotate(15deg) scale(1.1);
}
/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

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

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

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* main section */

.main-part {
  width: 50%;
  margin: 3rem;
  margin-top: 5rem;
}
.main-part h1 {
  padding: 10px;
  font-size: 2.2rem;
  color: var(--text-color);
}
.main-part h2 {
  padding: 10px;
  font-size: 2.5rem;
  background: linear-gradient(90deg, #a115a8, #a05e16);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.main-part p {
  padding: 15px;
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 2rem;
}
.main-part button {
  margin: 1rem;
  width: 20%;
  /* border: 2px solid linear-gradient(90deg, #a115a8, #a05e16); */
  background: linear-gradient(90deg, #a115a8, #a05e16);
}
.main-part button:hover {
  background: transparent;
  border: 2px solid var(--main-color);
}
.main-part-profile {
  width: 40%;
  float: right;
  margin-top: -38rem;
  display: flex;
  justify-content: end;
  align-items: end;
}
.main-part-profile img {
width: 100%;
height: 100%;
margin-top: 7rem;
border-radius: 20px;
transition: all 0.3s ease-in-out;
filter: brightness(0.95) contrast(1.05);
box-shadow: 0 10px 30px var(--shadow-color);
}

/* Light mode adjustments for profile image */
[data-theme="light"] .main-part-profile img {
  filter: brightness(1) contrast(1.1) saturate(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Dark mode adjustments for profile image */
[data-theme="dark"] .main-part-profile img {
  filter: brightness(0.9) contrast(1.1) saturate(1.02);
  box-shadow: 0 10px 30px rgba(161, 21, 168, 0.2);
}

.main-part-profile:hover img {
  transform: scale(1.02);
  filter: brightness(1) contrast(1.15) saturate(1.1);
}

/* Enhanced hover effects for profile image */
[data-theme="light"] .main-part-profile:hover img {
  filter: brightness(1.05) contrast(1.2) saturate(1.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .main-part-profile:hover img {
  filter: brightness(1) contrast(1.15) saturate(1.05);
  box-shadow: 0 15px 40px rgba(161, 21, 168, 0.3);
}
.home-social {
  width: 170px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 1rem;
}
.home-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--card-bg);
  border: 0.2rem solid var(--main-color);
  border-radius: 50px;
  font-size: 20px;
  color: var(--main-color);
  padding: 10px;
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.home-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--main-color), #a05e16);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 50px;
}

.home-social a:hover {
  background: transparent;
  border-color: var(--main-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(161, 21, 168, 0.3);
}

.home-social a:hover::before {
  opacity: 1;
}

.home-social a i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease-in-out;
}

.home-social a:hover i {
  color: white;
  transform: scale(1.1) rotate(5deg);
}

/* Light mode adjustments for home social icons */
[data-theme="light"] .home-social a {
  background: rgba(248, 249, 250, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .home-social a:hover {
  box-shadow: 0 8px 25px rgba(161, 21, 168, 0.2);
}

/* Dark mode adjustments for home social icons */
[data-theme="dark"] .home-social a {
  background: rgba(43, 5, 45, 0.3);
  box-shadow: 0 2px 8px rgba(161, 21, 168, 0.1);
}

[data-theme="dark"] .home-social a:hover {
  box-shadow: 0 8px 25px rgba(161, 21, 168, 0.4);
}
 /* About Part */
.about {
  width: 100%;
  height: 100%;
  display: flex;
  margin-top: 8rem;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
 .about h1{
   font-size: 3rem;
   color: var(--text-color);
   padding-top: 1rem;
}
span{
  color: var(--main-color);
}
.about h2{
  padding: 10px;
  font-size: 2.5rem;
  background: linear-gradient(90deg, #a115a8, #a05e16);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about p {
  padding: 15px;
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 2rem;
  text-align: center;
  width: 80%;
}
/* Skills */
.skills{
  width: 100%;
  height: 100%;
  display: flex;
  margin-top: 5rem;
  flex-direction: column;
}
.skills h1{
   font-size: 3rem;
   color: var(--text-color);
   padding-top: 1rem;
   text-align: center;
   margin-bottom: 2rem;
}
.skills table{
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  border-collapse: collapse;
  border-spacing: 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(161, 21, 168, 0.2);
}

.skills table tr{
  display: table-row;
}

.skills table td{
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  transition: all 0.3s ease-in-out;
  position: relative;
  width: 25%;
}

.skills table td img{
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: brightness(0.8) contrast(1.1);
  transition: all 0.3s ease-in-out;
  border-radius: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.05);
}

/* Light mode adjustments for skills images */
[data-theme="light"] .skills table td img {
  filter: brightness(0.9) contrast(1.2) saturate(1.1);
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments for skills images */
[data-theme="dark"] .skills table td img {
  filter: brightness(0.8) contrast(1.1) saturate(1.05);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 8px rgba(161, 21, 168, 0.1);
}

.skills table td h4{
  font-size: 1rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

.skills table td:hover{
  background: var(--hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.skills table td:hover img{
  filter: brightness(1.2) contrast(1.3) saturate(1.2);
  transform: scale(1.1);
  box-shadow: 0 4px 15px var(--shadow-color);
}

/* Enhanced hover effects for light mode */
[data-theme="light"] .skills table td:hover img {
  filter: brightness(1.1) contrast(1.4) saturate(1.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced hover effects for dark mode */
[data-theme="dark"] .skills table td:hover img {
  filter: brightness(1.3) contrast(1.2) saturate(1.2);
  box-shadow: 0 4px 15px rgba(161, 21, 168, 0.3);
}

.skills table td:hover h4{
  color: #fff;
  transform: scale(1.05);
}

/* Responsive Design for 4-column table */
@media (max-width: 1200px) {
  .skills table{
    max-width: 900px;
  }
  
  .skills table td{
    padding: 1.8rem 1.2rem;
  }
  
  .skills table td img{
    width: 55px;
    height: 55px;
  }
  
  .skills table td h4{
    font-size: 0.95rem;
  }
}

@media (max-width: 992px) {
  .skills table{
    max-width: 800px;
  }
  
  .skills table td{
    padding: 1.5rem 1rem;
  }
  
  .skills table td img{
    width: 50px;
    height: 50px;
  }
  
  .skills table td h4{
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .skills table{
    max-width: 100%;
    margin: 1rem 2rem;
    border-radius: 10px;
  }
  
  .skills table td{
    padding: 1.2rem 0.8rem;
  }
  
  .skills table td img{
    width: 40px;
    height: 40px;
  }
  
  .skills table td h4{
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .skills table{
    margin: 1rem 1.5rem;
    border-radius: 8px;
  }
  
  .skills table td{
    padding: 1rem 0.6rem;
  }
  
  .skills table td img{
    width: 35px;
    height: 35px;
  }
  
  .skills table td h4{
    font-size: 0.75rem;
  }
}

/* For very small screens, make table scrollable */
@media (max-width: 480px) {
  .skills{
    overflow-x: auto;
  }
  
  .skills table{
    min-width: 400px;
    margin: 0.5rem 1rem;
  }
  
  .skills table td{
    padding: 0.8rem 0.4rem;
    min-width: 100px;
  }
  
  .skills table td img{
    width: 30px;
    height: 30px;
  }
  
  .skills table td h4{
    font-size: 0.7rem;
  }
}

/* Additional responsive adjustments for 4-column table */
@media (max-width: 400px) {
  .skills table{
    min-width: 360px;
    margin: 0.5rem 0.8rem;
  }
  
  .skills table td{
    min-width: 90px;
    padding: 0.6rem 0.3rem;
  }
  
  .skills table td img{
    width: 25px;
    height: 25px;
  }
  
  .skills table td h4{
    font-size: 0.65rem;
  }
}

/* Projects Section */
.projects {
  width: 100%;
  min-height: 100vh;
  padding: 5rem 0;
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(161, 21, 168, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(160, 94, 22, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.projects h1 {
  font-size: 3rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.projects h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color), #a05e16);
  border-radius: 2px;
}

/* Project Filter Tabs */
.project-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-color);
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--main-color), #a05e16);
  transition: left 0.3s ease-in-out;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  border-color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(161, 21, 168, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
  position: relative;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(161, 21, 168, 0.05), rgba(160, 94, 22, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(161, 21, 168, 0.25);
  border-color: var(--main-color);
}

.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.project-image img,
.project-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease-in-out;
  filter: brightness(0.9) contrast(1.05);
  border-radius: 15px 15px 0 0;
  background: #000;
  position: relative;
  z-index: 1;
}

/* Light mode adjustments for project images */
[data-theme="light"] .project-image img,
[data-theme="light"] .project-image video {
  filter: brightness(0.95) contrast(1.1) saturate(1.05);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments for project images */
[data-theme="dark"] .project-image img,
[data-theme="dark"] .project-image video {
  filter: brightness(0.85) contrast(1.1) saturate(1.02);
  box-shadow: inset 0 0 20px rgba(161, 21, 168, 0.1);
}

/* Ensure video controls are always accessible */
.project-image video::-webkit-media-controls {
  z-index: 10;
  position: relative;
}

.project-image video::-webkit-media-controls-panel {
  background: rgba(0, 0, 0, 0.7);
}

.project-card:hover .project-image img,
.project-card:hover .project-image video {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.2) saturate(1.1);
}

/* Enhanced hover effects for light mode project images */
[data-theme="light"] .project-card:hover .project-image img,
[data-theme="light"] .project-card:hover .project-image video {
  filter: brightness(1.05) contrast(1.3) saturate(1.15);
}

/* Enhanced hover effects for dark mode project images */
[data-theme="dark"] .project-card:hover .project-image img,
[data-theme="dark"] .project-card:hover .project-image video {
  filter: brightness(1.1) contrast(1.2) saturate(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(161, 21, 168, 0.9), rgba(160, 94, 22, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease-in-out;
}

.project-card:hover .project-links {
  transform: translateY(0);
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.6rem;
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.project-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.15) rotate(5deg);
  border-color: rgba(255, 255, 255, 0.5);
}

.project-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.project-content h3 {
  font-size: 1.6rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--text-color), #a05e16);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease-in-out;
}

.project-card:hover .project-content h3 {
  transform: translateY(-2px);
}

.project-content p {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  opacity: 0.9;
  transition: all 0.3s ease-in-out;
}

.project-card:hover .project-content p {
  opacity: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-tech span {
  background: linear-gradient(135deg, var(--main-color), #a05e16);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.project-tech span::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease-in-out;
}

.project-tech span:hover::before {
  left: 100%;
}

.project-tech span:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(161, 21, 168, 0.4);
}

/* Responsive Design for Projects */
@media (max-width: 1200px) {
  .projects-container {
    padding: 0 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
  }
  
  .project-card {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .projects h1 {
    font-size: 2.8rem;
  }
  
  .project-filter {
    gap: 0.8rem;
    margin: 2.5rem 0;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-content {
    padding: 1.8rem;
  }
  
  .project-content h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: 4rem 0;
  }
  
  .projects-container {
    padding: 0 1rem;
  }
  
  .projects h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .project-filter {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem 0;
  }
  
  .filter-btn {
    width: 200px;
    padding: 12px 24px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 0.5rem;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .project-card {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .project-image {
    height: 220px;
  }
  
  .project-content {
    padding: 2rem;
  }
  
  .project-content h3 {
    font-size: 1.6rem;
  }
  
  .project-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .project-links {
    gap: 1.2rem;
  }
  
  .project-link {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .projects {
    padding: 3rem 0;
  }
  
  .projects h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .projects h1::after {
    width: 60px;
    height: 3px;
  }
  
  .project-filter {
    margin: 1.5rem 0;
  }
  
  .filter-btn {
    width: 180px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .projects-grid {
    gap: 2rem;
    padding: 0 0.25rem;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }
  
  .project-content p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  .project-tech {
    gap: 0.5rem;
  }
  
  .project-tech span {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }
  
  .project-links {
    gap: 1rem;
  }
  
  .project-link {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .projects h1 {
    font-size: 2rem;
  }
  
  .project-filter {
    margin: 1rem 0;
  }
  
  .filter-btn {
    width: 160px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .projects-grid {
    gap: 1.8rem;
  }
  
  .project-image {
    height: 180px;
  }
  
  .project-content {
    padding: 1.2rem;
  }
  
  .project-content h3 {
    font-size: 1.3rem;
  }
  
  .project-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .project-tech span {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }
  
  .project-link {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 360px) {
  .projects-container {
    padding: 0 0.5rem;
  }
  
  .projects h1 {
    font-size: 1.8rem;
  }
  
  .filter-btn {
    width: 140px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .project-content h3 {
    font-size: 1.2rem;
  }
  
  .project-content p {
    font-size: 0.85rem;
  }
  
  .project-tech span {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  
  .project-link {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
}

/* Contact Section */
.contact {
  width: 100%;
  min-height: 100vh;
  padding: 5rem 0;
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(161, 21, 168, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(160, 94, 22, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.contact h1 {
  font-size: 3rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.contact h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color), #a05e16);
  border-radius: 2px;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 3rem;
  opacity: 0.8;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

/* Contact Information */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(10px);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(161, 21, 168, 0.2);
  border-color: var(--main-color);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--main-color), #a05e16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  flex-shrink: 0;
  transition: all 0.3s ease-in-out;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(161, 21, 168, 0.4);
}

.contact-details h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details p {
  color: var(--text-color);
  margin-bottom: 0.8rem;
  opacity: 0.9;
  font-size: 1rem;
}

.contact-details a {
  color: var(--main-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.contact-details a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--main-color), #a05e16);
  transition: width 0.3s ease-in-out;
}

.contact-details a:hover::after {
  width: 100%;
}

.contact-details a:hover {
  color: #a05e16;
}

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: var(--form-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 20px rgba(161, 21, 168, 0.3);
  background: var(--hover-bg);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(224, 224, 224, 0.6);
  transition: all 0.3s ease-in-out;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  opacity: 0.5;
  transform: translateY(-5px);
}

.form-group label {
  position: absolute;
  top: -8px;
  left: 15px;
  background: var(--bg-color);
  padding: 0 0.5rem;
  color: var(--main-color);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  opacity: 1;
  transform: translateY(0);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.submit-btn {
  background: linear-gradient(135deg, var(--main-color), #a05e16);
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease-in-out;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(161, 21, 168, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.submit-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease-in-out;
}

.submit-btn:hover i {
  transform: translateX(5px);
}

/* Contact Social */
.contact-social {
  text-align: center;
  padding: 3rem 0;
  margin: 2rem 0;
}

/* Main Section Social Links */
.main-part .contact-social {
  text-align: left;
  padding: 1rem 0;
  margin: 1rem 0;
}

.main-part .contact-social .social-links {
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-social h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--main-color);
  font-size: 1.8rem;
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--main-color), #a05e16);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 50%;
}

.social-links a:hover::before {
  opacity: 1;
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 30px rgba(161, 21, 168, 0.4);
  color: white;
  border-color: var(--main-color);
}

/* Enhanced hover effects for light mode contact social icons */
[data-theme="light"] .social-links a:hover {
  box-shadow: 0 15px 30px rgba(161, 21, 168, 0.3);
}

/* Enhanced hover effects for dark mode contact social icons */
[data-theme="dark"] .social-links a:hover {
  box-shadow: 0 15px 30px rgba(161, 21, 168, 0.5);
}

.social-links a i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease-in-out;
}

.social-links a:hover i {
  transform: scale(1.1);
}

/* Responsive Design for Contact */
@media (max-width: 1024px) {
  .contact-content {
    gap: 3rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .contact-item {
    padding: 1.8rem;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 4rem 0;
  }
  
  .contact-container {
    padding: 0 1rem;
  }
  
  .contact h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .contact-item {
    padding: 1.5rem;
    gap: 1.2rem;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .contact-details h3 {
    font-size: 1.2rem;
  }
  
  .form {
    gap: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 1rem 1.2rem;
  }
  
  .submit-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .contact-social h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .social-links {
    gap: 1.2rem;
  }
  
  .social-links a {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .contact {
    padding: 3rem 0;
  }
  
  .contact h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .contact h1::after {
    width: 60px;
    height: 3px;
  }
  
  .contact-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .contact-content {
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-item {
    padding: 1.2rem;
    gap: 1rem;
  }
  
  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .contact-details h3 {
    font-size: 1.1rem;
  }
  
  .contact-details p {
    font-size: 0.95rem;
  }
  
  .form {
    gap: 1.2rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
  
  .submit-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .contact-social h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-links a {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .contact h1 {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 1.2rem;
  }
  
  .contact-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .contact-details h3 {
    font-size: 1rem;
  }
  
  .contact-details p {
    font-size: 0.9rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .submit-btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
  
  .contact-social h3 {
    font-size: 1.3rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 360px) {
  .contact-container {
    padding: 0 0.5rem;
  }
  
  .contact h1 {
    font-size: 1.8rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .contact-item {
    padding: 0.8rem;
  }
  
  .contact-icon {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
  }
  
  .submit-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* ===========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   =========================================== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  /* Navigation */
  .nav-header ul {
    margin-right: 1rem;
  }
  
  .nav-header ul li {
    margin: 0 1.5rem;
  }
  
  /* Main Section */
  .main-part {
    width: 60%;
    margin: 2rem;
    margin-top: 4rem;
  }
  
  .main-part h1 {
    font-size: 2rem;
  }
  
  .main-part h2 {
    font-size: 2.2rem;
  }
  
  .main-part p {
    font-size: 1.1rem;
    line-height: 1.8rem;
  }
  
  .main-part button {
    width: 25%;
  }
  
  .main-part-profile {
    width: 35%;
    margin-top: -35rem;
  }
  
  .main-part-profile img {
    margin-top: 5rem;
  }
  
  /* Contact Social Links */
  .contact-social {
    margin-left: 0;
  }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
  /* Navigation */
  .hamburger {
    display: flex;
  }
  
  /* Skills Section Mobile */
  .skills {
    padding: 2rem 1rem;
  }
  
  .skills table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .skills table tr {
    display: inline-block;
    vertical-align: top;
    margin-right: 1rem;
  }
  
  .skills table td {
    display: block;
    width: 80px;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: var(--second-bg-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding-top: 4rem;
    height: 100vh;
    z-index: 1000;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 2rem 0;
  }
  
  .nav-menu li a {
    font-size: 1.2rem;
    font-weight: 500;
  }
  
  #theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    margin: 0;
    padding: 10px 15px;
  }
  
  #theme-text {
    display: none;
  }
  
  /* Main Section */
  section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .main-part {
    width: 100%;
    margin: 0;
    order: 2;
  }
  
  .main-part h1 {
    font-size: 1.8rem;
    padding: 5px;
  }
  
  .main-part h2 {
    font-size: 2rem;
    padding: 5px;
  }
  
  .main-part p {
    font-size: 1rem;
    line-height: 1.6rem;
    padding: 10px;
  }
  
  .main-part button {
    width: 50%;
    margin: 1rem auto;
    display: block;
  }
  
  .main-part-profile {
    width: 80%;
    float: none;
    margin: 0;
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .main-part-profile img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0;
    border-radius: 15px;
  }
  
  /* Projects Section Mobile */
  .projects {
    padding: 3rem 0;
  }
  
  .projects-container {
    padding: 0 1rem;
  }
  
  .projects h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .project-filter {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem 0;
  }
  
  .filter-btn {
    width: 200px;
    padding: 12px 24px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 0.5rem;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .project-card {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .project-image {
    height: 220px;
  }
  
  .project-content {
    padding: 2rem;
  }
  
  .project-content h3 {
    font-size: 1.6rem;
  }
  
  .project-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .project-links {
    gap: 1.2rem;
  }
  
  .project-link {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  
  /* Contact Section Mobile */
  .contact {
    padding: 4rem 0;
  }
  
  .contact-container {
    padding: 0 1rem;
  }
  
  .contact h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .contact-item {
    padding: 1.5rem;
    gap: 1.2rem;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .contact-details h3 {
    font-size: 1.2rem;
  }
  
  .form {
    gap: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 1rem 1.2rem;
  }
  
  .submit-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .contact-social h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-social .social-links {
    gap: 1.2rem;
  }
  
  .contact-social .social-links a {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}

/* Small Mobile Styles (576px and below) */
@media (max-width: 576px) {
  /* Navigation */
  nav {
    padding: 0.5rem 1rem;
  }
  
  nav h1 {
    font-size: 1.5rem;
    margin: 0.5rem;
  }
  
  .nav-menu li {
    margin: 1.5rem 0;
  }
  
  .nav-menu li a {
    font-size: 1.1rem;
  }
  
  #theme-toggle {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  /* Main Section */
  .main-part h1 {
    font-size: 1.6rem;
  }
  
  .main-part h2 {
    font-size: 1.8rem;
  }
  
  .main-part p {
    font-size: 0.95rem;
    line-height: 1.5rem;
  }
  
  .main-part button {
    width: 70%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .main-part-profile {
    width: 90%;
  }
  
  .main-part-profile img {
    max-width: 250px;
  }
  
  /* Skills Section */
  .skills h1 {
    font-size: 2.5rem;
  }
  
  .skills table {
    margin: 1rem 0.5rem;
    border-radius: 8px;
  }
  
  .skills table td {
    padding: 0.8rem 0.4rem;
  }
  
  .skills table td img {
    width: 30px;
    height: 30px;
  }
  
  .skills table td h4 {
    font-size: 0.7rem;
  }
  
  /* Projects Section */
  .projects h1 {
    font-size: 2.2rem;
  }
  
  /* Contact Section */
  .contact h1 {
    font-size: 2.2rem;
  }
  
  .contact-social .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Extra Small Mobile Styles (480px and below) */
@media (max-width: 480px) {
  /* Navigation */
  nav h1 {
    font-size: 1.3rem;
  }
  
  #theme-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  /* Main Section */
  .main-part h1 {
    font-size: 1.4rem;
  }
  
  .main-part h2 {
    font-size: 1.6rem;
  }
  
  .main-part p {
    font-size: 0.9rem;
    line-height: 1.4rem;
  }
  
  .main-part button {
    width: 80%;
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  .main-part-profile img {
    max-width: 200px;
  }
  
  /* Skills Section */
  .skills h1 {
    font-size: 2rem;
  }
  
  .skills table {
    margin: 0.5rem 0.25rem;
    border-radius: 6px;
  }
  
  .skills table td {
    padding: 0.6rem 0.3rem;
  }
  
  .skills table td img {
    width: 25px;
    height: 25px;
  }
  
  .skills table td h4 {
    font-size: 0.65rem;
  }
  
  /* Projects Section */
  .projects h1 {
    font-size: 2rem;
  }
  
  /* Contact Section */
  .contact h1 {
    font-size: 2rem;
  }
  
  .contact-social .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Landscape Mobile Styles */
@media (max-width: 768px) and (orientation: landscape) {
  .main-part-profile {
    width: 50%;
    order: 2;
  }
  
  .main-part {
    order: 1;
  }
  
  .main-part-profile img {
    max-width: 200px;
  }
}

