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

body {
  transition: all 0.3s ease;
  background-color: hsl(0 0% 100%);
  color: hsl(222.2 84% 4.9%);
}

body.dark-theme {
  background-color: hsl(222.2 84% 4.9%);
  color: hsl(210 40% 98%);
}

.theme-toggle {
  background: hsl(0 0% 100%);
  border: 1px solid hsl(214.3 31.8% 91.4%);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-right: 30px;
  color: hsl(222.2 84% 4.9%);
}

.theme-toggle:hover {
  background-color: hsla(210, 10%, 73%, 0.959);
  border-color: hsl(214.3 31.8% 84.4%);
}

body.dark-theme .theme-toggle {
  background: hsl(222.2 84% 4.9%);
  border: 1px solid hsl(217.2 32.6% 17.5%);
  color: hsl(210 40% 98%);
}

body.dark-theme .theme-toggle:hover {
  background-color: hsl(217.2 32.6% 17.5%);
  border-color: hsl(217.2 32.6% 25%);
}

html {
  scroll-behavior: smooth;
}

.nav-right li {
  list-style-type: none;
  position: relative;
}

.nav-right li a {
  text-decoration: none;
  color: hsl(222.2 84% 4.9%);
  position: relative;
  display: block;
  transition: all 0.3s ease;
}

.nav-right li a:hover {
  color: hsl(222.2 47.4% 11.2%);
  transform: translateY(-2px);
}

.nav-right li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(222.2 84% 4.9%), hsl(222.2 47.4% 11.2%));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-right li a:hover::after {
  width: 100%;
}

body.dark-theme .nav-right li a {
  color: hsl(210 40% 98%);
}

body.dark-theme .nav-right li a:hover {
  color: hsl(210 40% 80%);
}

body.dark-theme .nav-right li a::after {
  background: linear-gradient(90deg, hsl(210 40% 98%), hsl(210 40% 80%));
}

nav {
  display: flex;
  border: none;
  align-items: center;
}

.nav-right ul {
  display: flex;
  gap: 50px;
  padding: 10px;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-right: 10px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: hsl(222.2 84% 4.9%);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

body.dark-theme .hamburger span {
  background-color: hsl(210 40% 98%);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
  display: flex;
  gap: 50px;
  padding: 10px;
  list-style: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(214.3 31.8% 91.4%);
  font-family: "lexend", sans-serif;
  z-index: 100;
}

body.dark-theme .navbar {
  background-color: hsla(222.2, 84%, 4.9%, 0.8);
  border-bottom: 1px solid hsl(217.2 32.6% 17.5%);
}

.nav-right {
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.nav-left {
  margin-left: 20px;
  display: flex;
}

.nav-left h2 {
  font-size: 20px;
  color: hsl(222.2 84% 4.9%);
  margin-left: 25px;
  font-weight: 600;
}

body.dark-theme .nav-left h2 {
  color: hsl(210 40% 98%);
}

.hero {
  height: 100vh;
  position: relative;
  background-color: hsl(0 0% 100%);
}

body.dark-theme .hero {
  background-color: hsl(222.2 84% 4.9%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  --color: hsl(214.3 31.8% 91.4%);
  background-color: hsl(0 0% 100%);
  background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent);
  background-size: 55px 55px;
  opacity: 0.45;
  z-index: 1;
}

body.dark-theme .hero::before {
  --color: hsl(217.2 32.6% 17.5%);
  background-color: hsl(222.2 84% 4.9%);
  opacity: 0.5;
}

.hero {
  display: flex;
  justify-content: space-between;
  padding: 100px 45px;
  align-items: center;
  font-family: lexend, sans-serif;
  position: relative;
  z-index: 2;
  gap: 30px;
}

a {
  text-decoration: none;
}

.hero .texts {
  flex: 5;
  font-size: 28px;
  margin-top: 170px;
}

.hero .texts .name {
  font-family: "Pixelify Sans", LEXEND, sans-serif;
  font-size: 50px;
  color: hsl(222.2 84% 4.9%);
  margin-bottom: 10px;
  font-size: 1.3em;
  position: relative;
}

/* Typewriter effect */
.hero .texts .name::after {
  content: '|';
  color: hsl(222.2 84% 4.9%);
  animation: blink 1s infinite;
  font-weight: normal;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

body.dark-theme .hero .texts .name {
  color: hsl(210 40% 98%);
}

body.dark-theme .hero .texts .name::after {
  color: hsl(210 40% 98%);
}

.hero .texts .greeting {
  font-size: 50px;
  color: hsl(222.2 84% 4.9%);
}

body.dark-theme .hero .texts .greeting {
  color: hsl(210 40% 98%);
}

.hero img {
  flex: 2;
  display: flex;
  border-radius: 50%;
  border: 2px solid rgb(30 41 59);
  background-color: hsl(210 40% 98%);
  width: 465px;
  justify-content: right;
  margin-top: 30px;
}

body.dark-theme .hero img {
  border: 2px solid rgb(214 211 209);
  background-color: hsl(217.2 32.6% 17.5%);
}

.hero .texts .skills {
  padding: 20px 0;
  gap: 20px;
  display: flex;
}

.hero p {
  margin-top: 13px;
  color: hsl(215.4 16.3% 46.9%);
}

body.dark-theme .hero p {
  color: hsl(215 20.2% 65.1%);
}

.hero h2 {
  margin-top: 5px;
  color: hsl(222.2 84% 4.9%);
}

body.dark-theme .hero h2 {
  color: hsl(210 40% 98%);
}

.hero .skills a {
  display: inline-block;
  border: 2px solid rgb(30 41 59);
  border-radius: 10px;
  padding: 8px 16px;
  background-color: rgb(30 41 59);
  color: rgb(214 211 209);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 20px;
  margin-top: 20px;
  font-weight: 500;
}

.hero .skills a:hover {
  background-color: rgb(214 211 209);
  color: rgb(30 41 59);
  transform: translateY(-3px);
}

body.dark-theme .hero .skills a {
  background-color: rgb(214 211 209);
  color: rgb(30 41 59);
  border: 2px solid rgb(214 211 209);
}

body.dark-theme .hero .skills a:hover {
  background-color: rgb(30 41 59);
  color: rgb(214 211 209);
  transform: translateY(-3px);
}

.container {
  width: 100%;
  height: 100%;
  position: relative; 
  z-index: 2;
}

.about {
  background-color: hsl(210 40% 98%);
  height: 40vh;
  font-family: lexend, sans-serif;
  padding: 20px 0;
}

body.dark-theme .about {
  background-color: hsl(217.2 32.6% 17.5%);
}

.about h2 {
  justify-content: center;
  display: flex;
  font-size: 50px;
  color: hsl(222.2 84% 4.9%);
}

body.dark-theme .about h2 {
  color: hsl(210 40% 98%);
}

.about .text {
  display: flex;
  justify-content: center;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: -10px;
  color: hsl(215.4 16.3% 46.9%);
}

body.dark-theme .about .text {
  color: hsl(215 20.2% 65.1%);
}

.cells {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px 0;
  padding: 0 50px;
  gap: 30px;
}

.cell {
  border: 1px solid hsl(214.3 31.8% 91.4%);
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all 0.2s ease;
  background-color: hsl(0 0% 100%);
  color: hsl(222.2 84% 4.9%);
}

.cell:hover {
  background-color: hsl(210 40% 96%);
  border-color: hsl(214.3 31.8% 84.4%);
  transform: translateY(-5px);
}

body.dark-theme .cell {
  border: 1px solid hsl(217.2 32.6% 17.5%);
  background-color: hsl(222.2 84% 4.9%);
  color: hsl(210 40% 98%);
}

body.dark-theme .cell:hover {
  background-color: hsl(217.2 32.6% 17.5%);
  border-color: hsl(217.2 32.6% 25%);
  transform: translateY(-5px);
}

.cell .javascript {
  border-radius: 100px;
}

.projects {
  background-color: hsl(0 0% 100%);
  height: 76.5vh;
  font-family: lexend, sans-serif;
  transition: all 0.5s ease;
}

body.dark-theme .projects {
  background-color: hsl(222.2 84% 4.9%);
}

.projects h2 {
  text-align: center;
  font-size: 50px;
  padding: 40px 0;
  color: hsl(222.2 84% 4.9%);
}

body.dark-theme .projects h2 {
  color: hsl(210 40% 98%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.project-card {
  background: hsl(0 0% 100%);
  border: 1px solid hsl(214.3 31.8% 91.4%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  transition: all 0.5s ease;
  position: relative;
  height: 320px;
}

.project-card:hover {
  transform: translateY(-9px) scale(1.02);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body.dark-theme .project-card {
  background: hsl(217.2 32.6% 17.5%);
  border: 1px solid hsl(217.2 32.6% 25%);
}

body.dark-theme .project-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
}

.card-image {
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-image.web-app { 
  background-image: url('stopwatch.png');
}

.card-image.mobile-app {
  background-image: url('techvision.png');
}

.card-image.portfolio {
  background-image: url('tic tac.png');
}

.card-content {
  padding: 15px;
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  color: hsl(222.2 84% 4.9%);
  margin-bottom: 8px;
}

body.dark-theme .project-title {
  color: hsl(210 40% 98%);
}

.project-description {
  color: hsl(215.4 16.3% 46.9%);
  line-height: 1.4;
  margin-bottom: 12px;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dark-theme .project-description {
  color: hsl(215 20.2% 65.1%);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
}

.tech-tag {
  background: hsl(210 40% 96%);
  color: hsl(222.2 84% 4.9%);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid hsl(214.3 31.8% 91.4%);
}

body.dark-theme .tech-tag {
  background: hsl(217.2 32.6% 25%);
  color: hsl(210 40% 98%);
  border: 1px solid hsl(217.2 32.6% 35%);
}

.project-links {
  display: flex;
  gap: 8px;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 12px;
  flex: 1;
  justify-content: center;
}

.live-link {
  background: hsl(222.2 84% 4.9%);
  color: hsl(210 40% 98%);
  border: 1px solid hsl(222.2 84% 4.9%);
}

.live-link:hover {
  background: hsl(222.2 47.4% 11.2%);
  transform: translateY(-1px);
}

body.dark-theme .live-link {
  background: hsl(210 40% 98%);
  color: hsl(222.2 84% 4.9%);
  border: 1px solid hsl(210 40% 98%);
}

body.dark-theme .live-link:hover {
  background: hsl(210 40% 96%);
}

.github-link {
  border: 1px solid hsl(214.3 31.8% 91.4%);
  color: hsl(222.2 84% 4.9%);
  background: hsl(0 0% 100%);
}

.github-link:hover {
  background: hsl(210 40% 96%);
  border-color: hsl(214.3 31.8% 84.4%);
  transform: translateY(-1px);
}

body.dark-theme .github-link {
  border: 1px solid hsl(217.2 32.6% 17.5%);
  color: hsl(210 40% 98%);
  background: hsl(217.2 32.6% 17.5%);
}

body.dark-theme .github-link:hover {
  background: hsl(217.2 32.6% 25%);
  border-color: hsl(217.2 32.6% 35%);
}

.contact {
  background-color: hsl(210 40% 98%);
  min-height: 100vh;
  font-family: lexend, sans-serif;
  padding: 80px 20px 40px;
}

body.dark-theme .contact {
  background-color: hsl(217.2 32.6% 17.5%);
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
}

.contact h2 {
  text-align: center;
  font-size: 50px;
  color: hsl(222.2 84% 4.9%);
  margin-bottom: 16px;
  font-weight: 600;
}

body.dark-theme .contact h2 {
  color: hsl(210 40% 98%);
}

.contact-description {
  text-align: center;
  font-size: 18px;
  color: hsl(215.4 16.3% 46.9%);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body.dark-theme .contact-description {
  color: hsl(215 20.2% 65.1%);
}

.contact-container {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  width: 100%;
}

.contact-card {
  background: hsl(0 0% 100%);
  border: 1px solid hsl(214.3 31.8% 91.4%);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
  border-color: hsl(222.2 84% 4.9%);
  background: linear-gradient(135deg, hsl(0 0% 100%) 0%, hsl(210 40% 98%) 100%);
}

body.dark-theme .contact-card {
  background: hsl(222.2 84% 4.9%);
  border: 1px solid hsl(217.2 32.6% 17.5%);
}

body.dark-theme .contact-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

body.dark-theme .contact-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 10px 10px -5px rgb(0 0 0 / 0.2);
  border-color: hsl(210 40% 98%);
  background: linear-gradient(135deg, hsl(222.2 84% 4.9%) 0%, hsl(217.2 32.6% 17.5%) 100%);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: hsl(222.2 84% 4.9%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: hsl(210 40% 98%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 4px 8px -2px rgb(0 0 0 / 0.15);
}

body.dark-theme .contact-icon {
  background: hsl(210 40% 98%);
  color: hsl(222.2 84% 4.9%);
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: hsl(222.2 84% 4.9%);
  margin-bottom: 8px;
}

body.dark-theme .contact-card h3 {
  color: hsl(210 40% 98%);
}

.contact-card p {
  color: hsl(215.4 16.3% 46.9%);
  margin-bottom: 16px;
  font-size: 16px;
}

body.dark-theme .contact-card p {
  color: hsl(215 20.2% 65.1%);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: hsl(222.2 84% 4.9%);
  color: hsl(210 40% 98%);
  border: 1px solid hsl(222.2 84% 4.9%);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.contact-link:hover {
  background: hsl(222.2 47.4% 11.2%);
  transform: translateY(-1px);
}

body.dark-theme .contact-link {
  background: hsl(210 40% 98%);
  color: hsl(222.2 84% 4.9%);
  border: 1px solid hsl(210 40% 98%);
}

body.dark-theme .contact-link:hover {
  background: hsl(210 40% 96%);
}

/* Contact Form */
.contact-form-container {
  background: hsl(0 0% 100%);
  border: 1px solid hsl(214.3 31.8% 91.4%);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

body.dark-theme .contact-form-container {
  background: hsl(222.2 84% 4.9%);
  border: 1px solid hsl(217.2 32.6% 17.5%);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: hsl(222.2 84% 4.9%);
  margin-bottom: 8px;
  font-size: 14px;
}

body.dark-theme .form-group label {
  color: hsl(210 40% 98%);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid hsl(214.3 31.8% 91.4%);
  border-radius: 6px;
  background: hsl(0 0% 100%);
  color: hsl(222.2 84% 4.9%);
  font-size: 14px;
  font-family: lexend, sans-serif;
  transition: all 0.2s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: hsl(222.2 84% 4.9%);
  box-shadow: 0 0 0 2px hsl(222.2 84% 4.9% / 0.1);
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
  background: hsl(217.2 32.6% 17.5%);
  border: 1px solid hsl(217.2 32.6% 25%);
  color: hsl(210 40% 98%);
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
  border-color: hsl(210 40% 98%);
  box-shadow: 0 0 0 2px hsl(210 40% 98% / 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: hsl(215.4 16.3% 46.9%);
}

body.dark-theme .form-group input::placeholder,
body.dark-theme .form-group textarea::placeholder {
  color: hsl(215 20.2% 65.1%);
}

.error-message {
  display: block;
  color: hsl(0 84.2% 60.2%);
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

.submit-btn {
  width: 100%;
  padding: 12px 24px;
  background: hsl(222.2 84% 4.9%);
  color: hsl(210 40% 98%);
  border: 1px solid hsl(222.2 84% 4.9%);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  font-family: lexend, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover {
  background: hsl(222.2 47.4% 11.2%);
  transform: translateY(-1px);
}

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

body.dark-theme .submit-btn {
  background: hsl(210 40% 98%);
  color: hsl(222.2 84% 4.9%);
  border: 1px solid hsl(210 40% 98%);
}

body.dark-theme .submit-btn:hover {
  background: hsl(210 40% 96%);
}

.social-links {
  text-align: center;
}

.social-links h3 {
  font-size: 24px;
  font-weight: 600;
  color: hsl(222.2 84% 4.9%);
  margin-bottom: 24px;
}

body.dark-theme .social-links h3 {
  color: hsl(210 40% 98%);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: hsl(0 0% 100%);
  color: hsl(222.2 84% 4.9%);
  border: 1px solid hsl(214.3 31.8% 91.4%);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  background: hsl(210 40% 96%);
  border-color: hsl(214.3 31.8% 84.4%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px -2px rgb(0 0 0 / 0.1);
}

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

body.dark-theme .social-link {
  background: hsl(222.2 84% 4.9%);
  color: hsl(210 40% 98%);
  border: 1px solid hsl(217.2 32.6% 17.5%);
}

body.dark-theme .social-link::before {
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.05), transparent);
}

body.dark-theme .social-link:hover {
  background: hsl(217.2 32.6% 17.5%);
  border-color: hsl(217.2 32.6% 25%);
  box-shadow: 0 8px 16px -4px rgb(0 0 0 / 0.3);
}

.social-link i {
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:nth-child(1):hover {
  border-color: #333;
  color: #333;
}

.social-link:nth-child(2):hover {
  border-color: #0077b5;
  color: #0077b5;
}

.social-link:nth-child(3):hover {
  border-color: #1da1f2;
  color: #1da1f2;
}

.social-link:nth-child(4):hover {
  border-color: #e4405f;
  color: #e4405f;
}

body.dark-theme .social-link:nth-child(1):hover {
  border-color: #fff;
  color: #fff;
}

body.dark-theme .social-link:nth-child(2):hover {
  border-color: #0077b5;
  color: #0077b5;
}

body.dark-theme .social-link:nth-child(3):hover {
  border-color: #1da1f2;
  color: #1da1f2;
}

body.dark-theme .social-link:nth-child(4):hover {
  border-color: #e4405f;
  color: #e4405f;
}

/* Responsive Design */

@media (max-width: 1024px) {
  .hero {
    padding: 80px 30px;
    gap: 25px;
  }
  
  .hero .texts {
    margin-top: 120px;
  }
  
  .hero .texts .greeting {
    font-size: 45px;
  }
  
  .hero .texts .name {
    font-size: 45px;
  }
  
  .hero img {
    width: 400px;
  }
  
  .about h2 {
    font-size: 42px;
  }
  
  .projects h2 {
    font-size: 42px;
  }
  
  .contact h2 {
    font-size: 42px;
  }
  
  .cells {
    padding: 0 30px;
    gap: 20px;
  }
  
  .projects-grid {
    gap: 40px;
    padding: 0 30px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  /* Navigation - Show hamburger menu */
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: hsla(0, 0%, 100%, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    gap: 0;
    z-index: 99;
  }
  
  body.dark-theme .nav-menu {
    background-color: hsla(222.2, 84%, 4.9%, 0.95);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .nav-menu li a {
    font-size: 18px;
    padding: 10px;
    display: block;
  }
  
  /* Hero Section - Mobile responsive */
  .hero {
    flex-direction: column;
    padding: 100px 20px 50px;
    text-align: center;
    height: auto;
    min-height: 100vh;
    gap: 20px;
  }
  
  .hero .container {
    order: 2;
  }
  
  .hero .links {
    order: 1;
    margin-bottom: 20px;
  }
  
  .hero .texts {
    margin-top: 0;
  }
  
  .hero .texts .greeting {
    font-size: 36px;
  }
  
  .hero .texts .name {
    font-size: 36px;
  }
  
  .hero .texts h2 {
    font-size: 20px;
  }
  
  .hero .texts p {
    font-size: 16px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero .texts .skills {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .hero .texts .skills a {
    font-size: 16px;
  }
  
  .hero img {
    width: 280px;
  }
  
  /* About Section */
  .about {
    height: auto;
    padding: 40px 20px;
  }
  
  .about h2 {
    font-size: 36px;
  }
  
  .about .text {
    font-size: 16px;
    padding: 0 20px;
  }
  
  .cells {
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 20px;
  }
  
  /* Projects Section */
  .projects {
    height: auto;
    padding: 40px 0;
  }
  
  .projects h2 {
    font-size: 36px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
  }
  
  /* Contact Section */
  .contact {
    padding: 60px 16px 40px;
  }
  
  .contact h2 {
    font-size: 36px;
  }
  
  .contact-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }
  
  .contact-form-container {
    padding: 24px;
  }
  
  .social-icons {
    gap: 12px;
  }
  
  .social-link {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Mobile Devices */
@media (max-width: 480px) {
  /* Navigation */
  .navbar {
    padding: 6px 12px;
  }
  
  .nav-left h2 {
    font-size: 16px;
    margin-left: 10px;
  }
  
  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 12px;
    margin-right: 15px;
  }
  
  .nav-menu li a {
    font-size: 16px;
  }
  
  /* Hero Section - Small mobile */
  .hero {
    padding: 80px 15px 40px;
    gap: 15px;
  }
  
  .hero .texts .greeting {
    font-size: 28px;
  }
  
  .hero .texts .name {
    font-size: 28px;
  }
  
  .hero .texts h2 {
    font-size: 18px;
  }
  
  .hero .texts p {
    font-size: 14px;
  }
  
  .hero .texts .skills {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .hero .texts .skills a {
    width: 200px;
    text-align: center;
    font-size: 14px;
    padding: 8px 16px;
  }
  
  .hero img {
    width: 220px;
  }
  
  /* About Section */
  .about {
    padding: 30px 15px;
  }
  
  .about h2 {
    font-size: 28px;
  }
  
  .about .text {
    font-size: 14px;
    padding: 0 15px;
  }
  
  .cells {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
  }
  
  .cell {
    width: 80%;
    max-width: 200px;
  }
  
  .cell img {
    width: 20px;
    height: 20px;
  }
  
  /* Projects Section */
  .projects {
    padding: 30px 0;
  }
  
  .projects h2 {
    font-size: 28px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  
  .project-card {
    height: auto;
    min-height: 280px;
  }
  
  .card-image {
    height: 80px;
    font-size: 24px;
  }
  
  .card-content {
    padding: 12px;
  }
  
  .project-title {
    font-size: 15px;
  }
  
  .project-description {
    font-size: 10px;
    -webkit-line-clamp: 2;
  }
  
  .tech-stack {
    gap: 3px;
    margin-bottom: 12px;
  }
  
  .tech-tag {
    font-size: 8px;
    padding: 1px 5px;
  }
  
  .project-links {
    gap: 6px;
  }
  
  .project-link {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  /* Contact Section */
  .contact {
    padding: 40px 12px 30px;
  }
  
  .contact h2 {
    font-size: 28px;
  }
  
  .contact-description {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-card {
    padding: 20px;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .contact-card h3 {
    font-size: 18px;
  }
  
  .contact-card p {
    font-size: 14px;
  }
  
  .contact-link {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .social-icons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .social-link {
    width: 200px;
    justify-content: center;
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .social-links h3 {
    font-size: 20px;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  /* Navigation */
  .nav-left h2 {
    font-size: 14px;
  }
  
  /* Hero Section */
  .hero {
    padding: 60px 10px 30px;
  }
  
  .hero .texts .greeting {
    font-size: 24px;
  }
  
  .hero .texts .name {
    font-size: 24px;
  }
  
  .hero .texts h2 {
    font-size: 16px;
  }
  
  .hero .texts p {
    font-size: 12px;
  }
  
  .hero .texts .skills a {
    width: 180px;
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .hero img {
    width: 180px;
  }
  
  /* About Section */
  .about h2 {
    font-size: 24px;
  }
  
  .about .text {
    font-size: 12px;
  }
  
  /* Projects Section */
  .projects h2 {
    font-size: 24px;
  }
  
  .projects-grid {
    padding: 0 10px;
  }
  
  /* Contact Section */
  .contact {
    padding: 30px 8px 20px;
  }
  
  .contact h2 {
    font-size: 24px;
  }
  
  .contact-description {
    font-size: 12px;
  }
  
  .social-link {
    width: 180px;
    font-size: 11px;
  }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  .hero {
    flex-direction: row;
    padding: 40px 20px;
    min-height: 100vh;
    align-items: center;
  }
  
  .hero .container {
    order: 1;
    flex: 1;
  }
  
  .hero .links {
    order: 2;
    margin-bottom: 0;
    margin-left: 30px;
  }
  
  .hero .texts {
    text-align: left;
  }
  
  .hero .texts .greeting {
    font-size: 32px;
  }
  
  .hero .texts .name {
    font-size: 32px;
  }
  
  .hero .texts h2 {
    font-size: 18px;
  }
  
  .hero .texts .skills {
    justify-content: flex-start;
    gap: 10px;
  }
  
  .hero .texts .skills a {
    width: auto;
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .hero img {
    width: 200px;
  }
}

