:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --secondary: #10b981;
  --dark-bg: #111827;
  --dark-bg-h: #1118274d;
  --dark-card: #1f2937;
  --dark-text: #f3f4f6;
  --light-bg: #F9FAFB4D;
  --light-card: #ffffff;
  --light-text: #111827;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth
}

body {
  background-color: var(--light-bg);
  color: var(--light-text);
  transition: var(--transition)
}

body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text)
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 100;
  transition: var(--transition)
}

body.dark-mode header {
  background-color: var(--dark-bg-h)
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px
}

.logo span {
  display: inline-block;
  animation: pulse 2s infinite
}

.nav-links {
  display: flex;
  gap: 24px
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: var(--transition);
  position: relative
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition)
}

.nav-links a:hover::after {
  width: 100%
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: inherit;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition)
}

.theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05)
}

body.dark-mode .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05)
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: inherit
}

.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh
}

.hero-content {
  flex: 1
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center
}

.hero-img img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block
}

.hero h1::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 4px;
  bottom: -8px;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary))
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 500px
}

.hero-buttons {
  display: flex;
  gap: 16px
}

.btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2)
}

.btn-outline {
  background-color: transparent;
  color: var(--light-text);
  border: 2px solid var(--primary)
}

body.dark-mode .btn-outline {
  color: var(--dark-text)
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2)
}

.about {
  padding: 80px 0
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative
}

.section-title::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 4px;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--secondary))
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center
}

.about-text {
  background-color: var(--light-card);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1
}

.about-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 2
}

.about-text::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: rgba(79, 70, 229, 0.1);
  z-index: -1
}

body.dark-mode .about-text {
  background-color: var(--dark-card)
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 16px
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.6
}

.personal-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px
}

.info-item {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px
}

.info-item i {
  color: var(--primary);
  font-size: 1.2rem;
  width: 28px
}

.info-item .info-text {
  border-bottom: 1px dashed rgba(79, 70, 229, 0.3);
  padding-bottom: 4px;
  width: 100%
}

.info-item .info-text strong {
  color: var(--primary);
  font-weight: 600;
  margin-right: 8px
}

.about-img img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition)
}

.about-img img:hover {
  transform: scale(1.02)
}

.skills {
  padding: 80px 0;
  background-color: var(--light-card);
  transition: var(--transition)
}

body.dark-mode .skills {
  background-color: var(--dark-card)
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px
}

.skill-card {
  background-color: var(--light-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition)
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)
}

body.dark-mode .skill-card {
  background-color: var(--dark-bg)
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 12px
}

.skill-title {
  font-size: 1.2rem;
  margin-bottom: 8px
}

.skill-desc {
  color: #6b7280;
  line-height: 1.6
}

body.dark-mode .skill-desc {
  color: #d1d5db
}

.projects {
  padding: 80px 0
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px
}

.project-card {
  background-color: var(--light-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition)
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)
}

body.dark-mode .project-card {
  background-color: var(--dark-card)
}

.project-img {
  height: 200px;
  overflow: hidden
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition)
}

.project-card:hover .project-img img {
  transform: scale(1.05)
}

.project-content {
  padding: 24px
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 8px
}

.project-desc {
  margin-bottom: 16px;
  color: #6b7280;
  line-height: 1.6
}

body.dark-mode .project-desc {
  color: #d1d5db
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px
}

.project-tag {
  padding: 4px 12px;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem
}

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

.project-link {
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  transition: var(--transition)
}

.project-link:hover {
  color: var(--primary-light)
}

.reviews {
  padding: 80px 0;
  background-color: var(--light-bg);
  transition: var(--transition)
}

body.dark-mode .reviews {
  background-color: var(--dark-bg)
}

.review-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0
}

.review-container {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  padding: 10px 2px
}

.review-card {
  width: 100%;
  height: max-content;
  background-color: var(--light-card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex-shrink: 0
}

body.dark-mode .review-card {
  background-color: var(--dark-card)
}

.review-card:hover {
  transform: translateY(-5px)
}

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px
}

.reviewer-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden
}

.reviewer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.reviewer-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px
}

.reviewer-info p {
  color: #6b7280;
  font-size: 0.9rem
}

body.dark-mode .reviewer-info p {
  color: #d1d5db
}

.review-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  margin-top: 8px
}

.review-text {
  line-height: 1.6;
  color: #6b7280;
  font-style: italic;
  position: relative;
  padding: 0 10px
}

.review-text::before {
  content: '\201C';
  font-size: 3rem;
  color: rgba(79, 70, 229, 0.2);
  position: absolute;
  left: -10px;
  top: -20px
}

.review-text::after {
  content: '\201D';
  font-size: 3rem;
  color: rgba(79, 70, 229, 0.2);
  position: absolute;
}

body.dark-mode .review-text {
  color: #d1d5db
}

.carousel-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px
}

.carousel-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center
}

.carousel-btn:hover {
  background-color: rgba(79, 70, 229, 0.1)
}

.contact {
  padding: 80px 0;
  background-color: var(--light-card);
  transition: var(--transition)
}

body.dark-mode .contact {
  background-color: var(--dark-card)
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--light-bg);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  width: 300px
}

.contact-item:hover {
  transform: translateY(-5px)
}

body.dark-mode .contact-item {
  background-color: var(--dark-bg)
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px
}

.contact-text p,
.contact-text a {
  color: #6b7280;
  text-decoration: none;
  transition: var(--transition)
}

.contact-text a:hover {
  color: var(--primary)
}

body.dark-mode .contact-text p,
body.dark-mode .contact-text a {
  color: #d1d5db
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: center
}

.social-link {
  width: 50px;
  height: 50px;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition)
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px)
}

footer {
  background-color: var(--light-bg);
  color: var(--light-text);
  padding: 40px 0;
  text-align: center;
  transition: var(--transition)
}

body.dark-mode footer {
  background-color: var(--dark-bg);
  color: var(--dark-text)
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px
}

.footer-links {
  display: flex;
  gap: 24px
}

.footer-link {
  text-decoration: none;
  color: inherit;
  transition: var(--transition)
}

.footer-link:hover {
  color: var(--primary)
}

.copyright {
  margin-top: 24px;
  color: #6b7280
}

body.dark-mode .copyright {
  color: #d1d5db
}

.gradient-text {
  font-weight: bold;
  background: linear-gradient(90deg, #4f46e5, #10b981);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  
  50% {
    background-position: 100% 50%;
  }
  
  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {
  0% {
    transform: translateY(0)
  }
  
  50% {
    transform: translateY(-10px)
  }
  
  100% {
    transform: translateY(0)
  }
}

@keyframes pulse {
  0% {
    transform: scale(1)
  }
  
  50% {
    transform: scale(1.05)
  }
  
  100% {
    transform: scale(1)
  }
}

@media screen and (max-width:768px) {
  .mobile-menu-btn {
    display: none
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--light-bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    z-index: 99;
    box-shadow: var(--shadow)
  }
  
  body.dark-mode .nav-links {
    background-color: var(--dark-bg)
  }
  
  .nav-links.show {
    transform: translateY(0);
    opacity: 1
  }
  
  .nav-links a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    width: 100%;
    text-align: center
  }
  
  .nav-links a:last-child {
    border-bottom: none
  }
  
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px
  }
  
  .hero h1::after {
    left: 50%;
    transform: translateX(-50%)
  }
  
  .hero-buttons {
    justify-content: center
  }
  
  .about-content {
    grid-template-columns: 1fr
  }
  
  .personal-info {
    grid-template-columns: 1fr
  }
  
  .hero-img {
    margin-bottom: 40px
  }
  
  .hero-img img {
    max-width: 250px
  }
  
  .project-card {
    min-width: 100%;
    margin: 0 15px
  }
  
  .contact-item {
    width: 100%;
    flex-direction: row;
    text-align: left
  }
  
  .social-links {
    flex-wrap: wrap;
    justify-content: center
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px
  }
}

@media screen and (max-width:480px) {
  .skill-card {
    padding: 16px
  }
  
  .contact-item {
    padding: 15px
  }
  
  .projects-container {
    padding: 0 15px;
    grid-template-columns: 1fr
  }
  
  .project-card {
    margin: 0 0 20px 0
  }
}