/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo a:hover {
  color: #1d4ed8;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: white;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 50%
    );
  animation: subtleGlow 6s ease-in-out infinite;
}

@keyframes subtleGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 50%
    );
  animation: subtleGlow 8s ease-in-out infinite;
}

/* Smart Contract Code Background */
.code-background {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100vh;
  z-index: -1;
  opacity: 0.15;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
  color: #60a5fa;
  padding: 2rem;
  padding-bottom: 6rem;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(1px);
  overflow-y: auto;
  pointer-events: none;
  box-sizing: border-box;
}

.code-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
  animation: cursorBlink 1s infinite;
}

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

.code-line {
  margin-bottom: 0.3rem;
  white-space: nowrap;
  opacity: 0;
  animation: codeTyping 2s ease-in-out forwards;
}

.code-line:nth-child(1) {
  animation-delay: 0.3s;
}

.code-line:nth-child(2) {
  animation-delay: 0.6s;
}

.code-line:nth-child(3) {
  animation-delay: 0.9s;
}

.code-line:nth-child(4) {
  animation-delay: 1.2s;
}

.code-line:nth-child(5) {
  animation-delay: 1.5s;
}

.code-line:nth-child(6) {
  animation-delay: 1.8s;
}

.code-line:nth-child(7) {
  animation-delay: 2.1s;
}

.code-line:nth-child(8) {
  animation-delay: 2.4s;
}

.code-line:nth-child(9) {
  animation-delay: 2.7s;
}

.code-line:nth-child(10) {
  animation-delay: 3s;
}

.code-line:nth-child(11) {
  animation-delay: 3.3s;
}

.code-line:nth-child(12) {
  animation-delay: 3.6s;
}

.code-line:nth-child(13) {
  animation-delay: 3.9s;
}

.code-line:nth-child(14) {
  animation-delay: 4.2s;
}

.code-line:nth-child(15) {
  animation-delay: 4.5s;
}

.code-line:nth-child(16) {
  animation-delay: 4.8s;
}

.code-line:nth-child(17) {
  animation-delay: 5.1s;
}

.code-line:nth-child(18) {
  animation-delay: 5.4s;
}

.code-line:nth-child(19) {
  animation-delay: 5.7s;
}

.code-line:nth-child(20) {
  animation-delay: 6s;
}

/* Continuous writing effect */
.code-line:nth-child(n + 21) {
  animation: codeTyping 2s ease-in-out forwards;
  animation-delay: calc(0.3s * var(--line-index, 21));
}

/* Loop the animation */
.code-background {
  animation: codeLoop 15s infinite;
}

@keyframes codeLoop {
  0% {
    opacity: 0.25;
  }
  20% {
    opacity: 0.3;
  }
  40% {
    opacity: 0.25;
  }
  60% {
    opacity: 0.3;
  }
  80% {
    opacity: 0.25;
  }
  100% {
    opacity: 0.3;
  }
}

.indent-1 {
  padding-left: 2rem;
}

.indent-2 {
  padding-left: 4rem;
}

.keyword {
  color: #fbbf24;
  font-weight: bold;
}

.type {
  color: #34d399;
  font-weight: bold;
}

.string {
  color: #f472b6;
}

.number {
  color: #a78bfa;
}

.variable {
  color: #60a5fa;
}

.function-name {
  color: #fbbf24;
  font-weight: bold;
}

.contract-name {
  color: #34d399;
  font-weight: bold;
}

.event-name {
  color: #f472b6;
  font-weight: bold;
}

.function-call {
  color: #60a5fa;
}

.version {
  color: #a78bfa;
}

@keyframes codeTyping {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  20% {
    opacity: 0.3;
    transform: translateX(-15px);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-5px);
  }
  80% {
    opacity: 0.9;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  }
}

.highlight {
  color: #fbbf24;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.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.6s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(10px);
}

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

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

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

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #1f2937;
  transform: translateY(-5px) rotateX(10deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: white;
  font-size: 1.5rem;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0.8;
  transform-style: preserve-3d;
  position: relative;
  display: inline-block;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: -1;
}

.social-link:hover::before {
  width: 60px;
  height: 60px;
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-8px) rotateX(15deg) rotateY(15deg) scale(1.2);
  animation: pulse3D 1s ease-in-out infinite;
}

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

.image-placeholder {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.profile-image:hover {
  transform: scale(1.1) rotateY(10deg) rotateX(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.profile-image:hover img {
  transform: scale(1.1);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotateY(0deg);
  }
  50% {
    transform: translateY(-20px) rotateY(5deg);
  }
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1f2937;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #2563eb;
  border-radius: 2px;
}

/* About Section */
.about {
  background: #f8fafc;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #4b5563;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.stat p {
  color: #6b7280;
  font-weight: 500;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.skill-category:nth-child(1) {
  animation-delay: 0s;
}

.skill-category:nth-child(2) {
  animation-delay: 2s;
}

.skill-category:nth-child(3) {
  animation-delay: 4s;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(37, 99, 235, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.8s ease;
  opacity: 0;
}

.skill-category::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.05),
    transparent,
    rgba(37, 99, 235, 0.05)
  );
  opacity: 0;
  transition: opacity 0.8s ease;
}

.skill-category:hover::before {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

.skill-category:hover::after {
  opacity: 1;
}

.skill-category:hover {
  transform: translateY(-20px) rotateX(10deg) rotateY(5deg) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  animation: categoryBounce 0.8s ease-in-out;
}

.skill-category:hover h3 {
  animation: titleGlow 1s ease-in-out infinite alternate;
}

@keyframes categoryFloat {
  0%,
  100% {
    transform: translateY(0px) rotateX(0deg);
  }
  50% {
    transform: translateY(-8px) rotateX(3deg);
  }
}

@keyframes categoryBounce {
  0% {
    transform: translateY(-20px) rotateX(10deg) rotateY(5deg) scale(1.02);
  }
  50% {
    transform: translateY(-25px) rotateX(15deg) rotateY(8deg) scale(1.05);
  }
  100% {
    transform: translateY(-20px) rotateX(10deg) rotateY(5deg) scale(1.02);
  }
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
  }
  100% {
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
  }
}

.skill-category h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

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

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.skill-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 10;
  position: relative;
  pointer-events: auto;
}

.skill-item:nth-child(odd) {
  animation-delay: 0.5s;
}

.skill-item:nth-child(even) {
  animation-delay: 1s;
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.8s ease;
  z-index: 1;
  pointer-events: none;
}

.skill-item::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.1) 0%,
    transparent 70%
  );
  transform: scale(0);
  transition: transform 0.8s ease;
  z-index: -1;
  pointer-events: none;
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover::after {
  transform: scale(1);
}

.skill-item:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.skill-item:hover i {
  animation: iconSpin 1s ease-in-out;
}

@keyframes skillFloat {
  0%,
  100% {
    transform: translateY(0px) rotateX(0deg);
  }
  50% {
    transform: translateY(-5px) rotateX(2deg);
  }
}

@keyframes skillBounce {
  0% {
    transform: translateY(-15px) rotateX(15deg) rotateY(15deg) scale(1.1);
  }
  50% {
    transform: translateY(-20px) rotateX(20deg) rotateY(20deg) scale(1.15);
  }
  100% {
    transform: translateY(-15px) rotateX(15deg) rotateY(15deg) scale(1.1);
  }
}

@keyframes iconSpin {
  0% {
    transform: rotateY(0deg) scale(1);
  }
  50% {
    transform: rotateY(180deg) scale(1.2);
  }
  100% {
    transform: rotateY(360deg) scale(1);
  }
}

.skill-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #2563eb;
  transition: color 0.3s ease;
}

.skill-item:hover i {
  color: white;
}

.skill-item span {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Projects Section */
.projects {
  background: #f8fafc;
}

/* Achievements Section */
.achievements {
  background: white;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.achievement-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

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

.achievement-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: #2563eb;
}

.achievement-card:hover .achievement-icon {
  transform: scale(1.2) rotateY(360deg);
}

.achievement-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.achievement-icon::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.achievement-card:hover .achievement-icon::before {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

.achievement-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.achievement-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.achievement-card p:last-child {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

.achievement-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 2px solid #2563eb;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 10;
  position: relative;
  pointer-events: auto;
}

.achievement-link:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(37, 99, 235, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

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

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-card:hover .project-image {
  transform: scale(1.1) rotateY(-5deg);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  animation: shimmer 3s ease-in-out infinite;
}

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

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

.project-image .image-placeholder {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 2rem;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.project-content p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: #e0e7ff;
  color: #2563eb;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  z-index: 10;
  position: relative;
  pointer-events: auto;
}

.tech-tag:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.project-links {
  display: flex;
  gap: 1rem;
  z-index: 10;
  position: relative;
}

.project-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
  z-index: 10;
  position: relative;
  pointer-events: auto;
}

.project-link:hover {
  color: #1d4ed8;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.contact-info p {
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #4b5563;
}

.contact-item i {
  color: #2563eb;
  font-size: 1.2rem;
  width: 20px;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

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

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

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

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

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .profile-image {
    width: 250px;
    height: 250px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    justify-content: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 200px;
  }
}

/* 3D Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) rotateX(20deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes slideIn3D {
  from {
    opacity: 0;
    transform: translateX(-50px) rotateY(45deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
  }
}

@keyframes bounce3D {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  40% {
    transform: translateY(-30px) rotateX(10deg);
  }
  60% {
    transform: translateY(-15px) rotateX(5deg);
  }
}

@keyframes rotate3D {
  from {
    transform: rotateY(0deg) rotateX(0deg);
  }
  to {
    transform: rotateY(360deg) rotateX(360deg);
  }
}

@keyframes pulse3D {
  0% {
    transform: scale(1) rotateX(0deg);
  }
  50% {
    transform: scale(1.05) rotateX(5deg);
  }
  100% {
    transform: scale(1) rotateX(0deg);
  }
}

.hero-content > * {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
  animation-delay: 0.1s;
}

.hero-subtitle {
  animation-delay: 0.2s;
}

.hero-description {
  animation-delay: 0.3s;
}

.hero-buttons {
  animation-delay: 0.4s;
}

.social-links {
  animation-delay: 0.5s;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Professional Micro-interactions */
.section-title {
  position: relative;
  overflow: hidden;
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.6s ease;
}

.section-title:hover::before {
  width: 100%;
}

/* Enhanced Section Backgrounds */
.about {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(37, 99, 235, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(59, 130, 246, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.projects {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  position: relative;
}

.projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(37, 99, 235, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(59, 130, 246, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}
