@import url("fade-text.css");

/* AI-Themed Decorative Elements */
.neural-network {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

body.dark-mode .neural-network {
  opacity: 0.2;
}

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.float-icon {
  position: absolute;
  font-size: 2rem;
  color: rgba(102, 126, 234, 0.3);
  animation: floatAnimation 8s ease-in-out infinite;
  animation-delay: var(--delay);
  left: var(--x);
  top: var(--y);
}

@keyframes floatAnimation {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(0, -40px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, -20px) rotate(270deg);
  }
}

body.dark-mode .float-icon {
  color: rgba(102, 126, 234, 0.2);
}

/* Avatar Ring Animation */
.avatar-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.avatar-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 3px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #667eea, #764ba2, #ff6b6b) border-box;
  animation: rotateRing 4s linear infinite;
  z-index: 1;
}

body.dark-mode .avatar-ring {
  background:
    linear-gradient(rgba(30, 35, 50, 0.8), rgba(30, 35, 50, 0.8)) padding-box,
    linear-gradient(135deg, #667eea, #764ba2, #ff6b6b) border-box;
}

@keyframes rotateRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Tech Badges */
.hero-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: badgePulse 3s ease-in-out infinite;
}

.tech-badge:nth-child(1) {
  animation-delay: 0s;
}

.tech-badge:nth-child(2) {
  animation-delay: 0.5s;
}

.tech-badge:nth-child(3) {
  animation-delay: 1s;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
  }
}

.tech-badge i {
  font-size: 1.1em;
}

body.dark-mode .tech-badge {
  background: rgba(30, 35, 50, 0.9);
  color: #90caf9;
  border-color: rgba(102, 126, 234, 0.4);
}

/* Fix card image height for alignment */
.project-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Skills Section Styling */
.skills-title {
  color: #1976d2;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.skill-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 1.8em;
  margin-bottom: 0.2em;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.skill-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.05) 0%,
    transparent 70%
  );
  animation: rotateSkillBox 25s linear infinite;
  pointer-events: none;
}

@keyframes rotateSkillBox {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.skill-box:hover {
  box-shadow:
    0 8px 24px rgba(102, 126, 234, 0.15),
    0 0 0 1px rgba(102, 126, 234, 0.2);
  transform: translateY(-3px);
}

.skill-box-title {
  font-weight: 700;
  color: #1976d2;
  font-size: 1.1em;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.skill-box-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.6em 1.1em;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: default;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #334155;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.skill-tag:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.skill-tag i {
  font-size: 1.1em;
}

/* Color variants for skill tags */
.skill-tag.react {
  background: linear-gradient(
    135deg,
    rgba(225, 244, 253, 0.8) 0%,
    rgba(187, 222, 251, 0.8) 100%
  );
  color: #1976d2;
  border-color: rgba(25, 118, 210, 0.2);
}
.skill-tag.node {
  background: linear-gradient(
    135deg,
    rgba(232, 245, 233, 0.8) 0%,
    rgba(200, 230, 201, 0.8) 100%
  );
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.2);
}
.skill-tag.vue {
  background: linear-gradient(
    135deg,
    rgba(232, 247, 240, 0.8) 0%,
    rgba(178, 223, 219, 0.8) 100%
  );
  color: #00897b;
  border-color: rgba(0, 137, 123, 0.2);
}
.skill-tag.bootstrap {
  background: linear-gradient(
    135deg,
    rgba(243, 229, 245, 0.8) 0%,
    rgba(225, 190, 231, 0.8) 100%
  );
  color: #6a1b9a;
  border-color: rgba(106, 27, 154, 0.2);
}
.skill-tag.tailwind {
  background: linear-gradient(
    135deg,
    rgba(224, 247, 250, 0.8) 0%,
    rgba(178, 235, 242, 0.8) 100%
  );
  color: #0277bd;
  border-color: rgba(2, 119, 189, 0.2);
}
.skill-tag.js {
  background: linear-gradient(
    135deg,
    rgba(255, 249, 230, 0.8) 0%,
    rgba(255, 245, 157, 0.8) 100%
  );
  color: #f57f17;
  border-color: rgba(245, 127, 23, 0.2);
}
.skill-tag.database {
  background: linear-gradient(
    135deg,
    rgba(227, 242, 253, 0.8) 0%,
    rgba(187, 222, 251, 0.8) 100%
  );
  color: #1565c0;
  border-color: rgba(21, 101, 192, 0.2);
}
.skill-tag.devops {
  background: linear-gradient(
    135deg,
    rgba(232, 245, 233, 0.8) 0%,
    rgba(200, 230, 201, 0.8) 100%
  );
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.2);
}
.skill-tag.other {
  background: linear-gradient(
    135deg,
    rgba(252, 228, 236, 0.8) 0%,
    rgba(248, 187, 208, 0.8) 100%
  );
  color: #c2185b;
  border-color: rgba(194, 24, 91, 0.2);
}
.skill-tag.language {
  background: linear-gradient(
    135deg,
    rgba(241, 248, 233, 0.8) 0%,
    rgba(220, 237, 200, 0.8) 100%
  );
  color: #558b2f;
  border-color: rgba(85, 139, 47, 0.2);
}

/* Dark mode for Skills */
body.dark-mode .skills-title {
  color: #64b5f6;
}

body.dark-mode .skill-box {
  background: rgba(30, 35, 50, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark-mode .skill-box::before {
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
}

body.dark-mode .skill-box:hover {
  box-shadow:
    0 8px 24px rgba(102, 126, 234, 0.25),
    0 0 0 1px rgba(102, 126, 234, 0.3);
}

body.dark-mode .skill-box-title {
  color: #90caf9;
}

body.dark-mode .skill-tag {
  background: rgba(45, 55, 72, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .skill-tag:hover {
  background: rgba(55, 65, 81, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .skill-tag.react {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.9) 0%,
    rgba(66, 165, 245, 0.2) 100%
  );
  color: #90caf9;
  border-color: rgba(66, 165, 245, 0.3);
}
body.dark-mode .skill-tag.node {
  background: linear-gradient(
    135deg,
    rgba(27, 58, 31, 0.9) 0%,
    rgba(102, 187, 106, 0.2) 100%
  );
  color: #81c784;
  border-color: rgba(102, 187, 106, 0.3);
}
body.dark-mode .skill-tag.vue {
  background: linear-gradient(
    135deg,
    rgba(26, 61, 53, 0.9) 0%,
    rgba(77, 182, 172, 0.2) 100%
  );
  color: #80cbc4;
  border-color: rgba(77, 182, 172, 0.3);
}
body.dark-mode .skill-tag.bootstrap {
  background: linear-gradient(
    135deg,
    rgba(61, 30, 77, 0.9) 0%,
    rgba(186, 104, 200, 0.2) 100%
  );
  color: #ce93d8;
  border-color: rgba(186, 104, 200, 0.3);
}
body.dark-mode .skill-tag.tailwind {
  background: linear-gradient(
    135deg,
    rgba(26, 58, 77, 0.9) 0%,
    rgba(79, 195, 247, 0.2) 100%
  );
  color: #81d4fa;
  border-color: rgba(79, 195, 247, 0.3);
}
body.dark-mode .skill-tag.js {
  background: linear-gradient(
    135deg,
    rgba(77, 61, 26, 0.9) 0%,
    rgba(255, 202, 40, 0.2) 100%
  );
  color: #ffd54f;
  border-color: rgba(255, 202, 40, 0.3);
}
body.dark-mode .skill-tag.database {
  background: linear-gradient(
    135deg,
    rgba(26, 47, 77, 0.9) 0%,
    rgba(66, 165, 245, 0.2) 100%
  );
  color: #64b5f6;
  border-color: rgba(66, 165, 245, 0.3);
}
body.dark-mode .skill-tag.devops {
  background: linear-gradient(
    135deg,
    rgba(27, 58, 31, 0.9) 0%,
    rgba(102, 187, 106, 0.2) 100%
  );
  color: #81c784;
  border-color: rgba(102, 187, 106, 0.3);
}
body.dark-mode .skill-tag.other {
  background: linear-gradient(
    135deg,
    rgba(77, 26, 47, 0.9) 0%,
    rgba(236, 64, 122, 0.2) 100%
  );
  color: #f48fb1;
  border-color: rgba(236, 64, 122, 0.3);
}
body.dark-mode .skill-tag.language {
  background: linear-gradient(
    135deg,
    rgba(45, 61, 26, 0.9) 0%,
    rgba(156, 204, 101, 0.2) 100%
  );
  color: #aed581;
  border-color: rgba(156, 204, 101, 0.3);
}

/* Nav icons group for header */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-icons .hamburger,
.nav-icons .dark-toggle {
  padding: 0.5rem 0.7rem;
  margin: 0;
  font-size: 1.7rem;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.nav-icons .hamburger:active,
.nav-icons .hamburger:focus,
.nav-icons .dark-toggle:active,
.nav-icons .dark-toggle:focus {
  background: #e2e8f0;
}
/* Import modern font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* Page load animation */
@keyframes fadeInPage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: fadeInPage 0.6s ease-in;
}

/* Smooth element reveals */
.card,
.project-card,
.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reset & base */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    Arial,
    sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  color: #1a202c;
  scroll-behavior: smooth;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

body.dark-mode ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid rgba(255, 255, 255, 0.05);
}

/* Selection styling */
::selection {
  background: rgba(102, 126, 234, 0.3);
  color: #fff;
}

::-moz-selection {
  background: rgba(102, 126, 234, 0.3);
  color: #fff;
}

/* Animated gradient background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.1) 0%,
      rgba(118, 75, 162, 0.1) 100%
    ),
    radial-gradient(
      circle at 20% 50%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 107, 107, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(72, 219, 251, 0.3) 0%,
      transparent 50%
    );
  animation: gradientShift 15s ease infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

body.dark-mode {
  background: linear-gradient(135deg, #1a1c2e 0%, #2d1b3d 100%);
  background-attachment: fixed;
  color: #e2e8f0;
}

body.dark-mode::before {
  background:
    linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.05) 0%,
      rgba(118, 75, 162, 0.05) 100%
    ),
    radial-gradient(
      circle at 20% 50%,
      rgba(120, 119, 198, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 107, 107, 0.2) 0%,
      transparent 50%
    );
}

body.dark-mode header,
body.dark-mode .card,
body.dark-mode .project-card,
body.dark-mode .project-main-content,
body.dark-mode .project-sidebar,
body.dark-mode footer {
  background: rgba(30, 35, 50, 0.7) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0 !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}
body.dark-mode .project-sidebar {
  background: rgba(35, 40, 58, 0.98) !important;
  border: 1.5px solid #3a4058 !important;
  color: #ffe082 !important;
  box-shadow:
    0 8px 40px #0007,
    0 2px 16px #ffe08211;
}
body.dark-mode .project-sidebar li {
  background: #23283a !important;
  color: #e0e0e0 !important;
  border: 1px solid #333b54 !important;
}
body.dark-mode .project-sidebar li:hover {
  background: #2d3347 !important;
  color: #ffe082 !important;
  border-color: #0077ff !important;
}
body.dark-mode .project-sidebar i {
  color: #ffe082 !important;
}
body.dark-mode .project-sidebar strong {
  color: #ffe082 !important;
}
body.dark-mode .project-sidebar span {
  color: #e0e0e0 !important;
}
body.dark-mode .project-sidebar a {
  color: #82b1ff !important;
  text-decoration: underline;
}
body.dark-mode .project-main-content.card {
  background: linear-gradient(120deg, #23283a 90%, #2d3347 100%) !important;
  color: #e0e0e0 !important;
  border: 1px solid #333b54 !important;
}
body.dark-mode .project-main-content.card h2,
body.dark-mode .project-main-content.card h3 {
  color: #ffe082 !important;
}
body.dark-mode .project-main-content.card p,
body.dark-mode .project-main-content.card ul li {
  color: #e0e0e0 !important;
}
body.dark-mode .project-features li {
  background: #23283a !important;
  color: #ffe082 !important;
  border: 1px solid #333b54 !important;
}
body.dark-mode .project-features li:hover {
  background: #2d3347 !important;
  color: #ffe082 !important;
  border-color: #0077ff !important;
}
body.dark-mode .carousel {
  background: #23283a !important;
  border: 1px solid #333b54 !important;
}
body.dark-mode .carousel-btn {
  background: #23283a !important;
  color: #ffe082 !important;
  border: 1px solid #333b54 !important;
}
body.dark-mode .carousel-btn i {
  color: #ffe082 !important;
}
body.dark-mode .carousel-dot {
  background: #333b54 !important;
}
body.dark-mode .carousel-dot.active {
  background: #ffe082 !important;
}
body.dark-mode .card {
  background: linear-gradient(120deg, #23283a 90%, #2d3347 100%) !important;
  box-shadow:
    0 8px 40px #0005,
    0 2px 16px #0077ff11;
}
body.dark-mode #contact-form input,
body.dark-mode #contact-form textarea {
  background: #23283a;
  color: #fff;
  border: 1.5px solid #333b54;
  box-shadow: 0 2px 8px #0002;
}
body.dark-mode #contact-form input:focus,
body.dark-mode #contact-form textarea:focus {
  background: #23283a;
  color: #ffe082;
  border-color: #0077ff;
}
body.dark-mode #contact-form button {
  background: linear-gradient(90deg, #0077ff 0%, #00c6ff 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0077ff33;
}
body.dark-mode #contact-form button:hover {
  background: linear-gradient(90deg, #ff4c60 0%, #0077ff 100%);
  color: #fff;
}
body.dark-mode .contact-info {
  color: #ffe082;
}
body.dark-mode .contact-info i.fa-envelope {
  color: #ffe082;
}
body.dark-mode .contact-info i.fa-linkedin {
  color: #0a66c2;
  background: #fff;
  border-radius: 3px;
  padding: 2px 3px;
  font-size: 1.1em;
  margin-right: 0.3em;
}
body.dark-mode .contact-info a {
  color: #ffe082;
  text-decoration: underline;
}
body.dark-mode .card h2 {
  color: #2196f3;
  text-shadow: 0 2px 8px #0077ff22;
}
body.dark-mode .main-nav ul li a,
body.dark-mode .footer-right a {
  color: #ffe082;
}
body.dark-mode .main-nav li a:hover,
body.dark-mode .footer-right a:hover {
  background: #23283a;
  color: #ff4c60;
}
body.dark-mode .btn-main,
body.dark-mode .btn-outline {
  background: #23283a;
  color: #ffe082;
  border-color: #ffe082;
}
body.dark-mode .btn-main:hover,
body.dark-mode .btn-outline:hover {
  background: #ffe082;
  color: #23283a;
}
body.dark-mode .skills-list li {
  background: #23283a;
  color: #ffe082;
}
body.dark-mode .hero {
  background:
    linear-gradient(
      135deg,
      rgba(26, 28, 46, 0.95) 0%,
      rgba(45, 27, 61, 0.95) 100%
    ),
    url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
body.dark-mode .hero-blob path {
  fill: rgba(102, 126, 234, 0.2);
  fill-opacity: 0.2;
}

/* Dark Mode - Project Cards */
body.dark-mode .project-card {
  background: rgba(30, 35, 50, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .project-card:hover {
  box-shadow:
    0 25px 60px rgba(102, 126, 234, 0.4),
    0 0 0 2px rgba(102, 126, 234, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .project-title {
  color: #e2e8f0;
}

body.dark-mode .project-description {
  color: #94a3b8;
}

body.dark-mode .section-header {
  background: rgba(30, 35, 50, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.dark-mode .section-header h2 {
  color: #e2e8f0;
  text-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

body.dark-mode .section-header h2 i {
  color: #818cf8;
}

body.dark-mode .section-subtitle {
  color: #cbd5e1;
}

body.dark-mode .loading-projects {
  background: rgba(30, 35, 50, 0.5);
  border-color: rgba(102, 126, 234, 0.4);
}

body.dark-mode .loading-projects p {
  color: #94a3b8;
}

body.dark-mode .card::before {
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.15) 0%,
    transparent 80%
  );
}
/* Avatar & blob */
.avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 32px rgba(102, 126, 234, 0.5),
    0 0 0 4px rgba(102, 126, 234, 0.2),
    0 0 60px rgba(255, 255, 255, 0.3);
  object-fit: cover;
  background: #fff;
  transition: all 0.4s ease;
  z-index: 2;
  position: relative;
}
.avatar:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 12px 48px rgba(102, 126, 234, 0.6),
    0 0 0 6px rgba(102, 126, 234, 0.3),
    0 0 80px rgba(255, 255, 255, 0.4);
}
.hero-blob {
  position: absolute;
  left: 50%;
  top: 0;
  width: 600px;
  max-width: 90vw;
  z-index: 0;
  transform: translateX(-50%) scale(1.1);
  pointer-events: none;
}
/* Progress bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, #0077ff 0%, #ff4c60 100%);
  z-index: 9999;
  transition: width 0.18s;
}
/* Parallax background */
#parallax-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: url("https://www.transparenttextures.com/patterns/cubes.png");
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.2s;
}
/* Ripple effect */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(0, 119, 255, 0.18);
  pointer-events: none;
  width: 100px;
  height: 100px;
  left: 50%;
  top: 50%;
  margin-left: -50px;
  margin-top: -50px;
  z-index: 2;
}
@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}
/* Dark mode toggle */
.dark-toggle {
  background: none;
  border: none;
  color: #0077ff;
  font-size: 1.5rem;
  margin-left: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.dark-toggle.active,
.dark-toggle:hover {
  color: #ff4c60;
}
/* Typewriter effect */
#typewriter {
  border-right: 2px solid #ffe082;
  padding-right: 4px;
  font-family: inherit;
  font-size: 1.1em;
}
/* FontAwesome icon size */
.skills-list i,
.contact-info i,
.main-nav i,
.footer-right i {
  margin-right: 0.3em;
  font-size: 1.1em;
  color: #0077ff;
  vertical-align: middle;
}
body.dark-mode .skills-list i,
body.dark-mode .contact-info i,
body.dark-mode .main-nav i,
body.dark-mode .footer-right i {
  color: #ffe082;
}

/* Dark mode for Related Projects section */
body.dark-mode .related-projects {
  border-top: 1px solid #333b54;
}
body.dark-mode .related-projects h3 {
  color: #ffe082;
}
body.dark-mode .related-card {
  background: rgba(35, 40, 58, 0.92);
  color: #e0e0e0;
  border: 1.5px solid #3a4058;
}
body.dark-mode .related-card:hover {
  color: #ffe082;
  border-color: #ffe082;
  box-shadow: 0 16px 32px #ffe08222;
}
body.dark-mode .related-card h4 {
  color: #ffe082;
}
body.dark-mode .related-card p {
  color: #b0b8c9;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #0077ff;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode header {
  background: rgba(30, 35, 50, 0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
}
.logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.logo span {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.main-nav ul {
  display: flex;
  gap: 2rem;
}
.main-nav li a {
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}
.main-nav li a:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateY(-2px);
}
/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #0077ff;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
/* Responsive nav */
@media (max-width: 600px) {
  .main-nav ul {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    padding: 1rem 0;
    display: none;
  }
  .main-nav.open ul {
    display: flex;
  }
  .main-nav ul li {
    text-align: center;
    margin: 0.5rem 0;
  }
  .hamburger {
    display: flex !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.9) 0%,
      rgba(118, 75, 162, 0.9) 100%
    ),
    url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  color: #fff;
  padding: 6rem 0 5rem 0;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140vw;
  height: 140vw;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
}
.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s cubic-bezier(0.23, 1.01, 0.32, 1) both;
}

@keyframes heroGlow {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  text-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
}
.hero .highlight {
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}
.subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.2rem;
  color: #e0e0e0;
  letter-spacing: 0.5px;
}
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  box-shadow:
    0 8px 24px rgba(102, 126, 234, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-main i {
  transition: transform 0.4s ease;
}

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

.btn-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
  border-radius: 50px;
}
.btn-main:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 16px 40px rgba(102, 126, 234, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(102, 126, 234, 0.3);
}
.btn-main:hover::before {
  opacity: 1;
}
.btn-main span {
  position: relative;
  z-index: 1;
}
.btn-main i {
  position: relative;
  z-index: 1;
}
@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 0 2rem 0;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero-content {
    padding: 0 1rem;
  }

  .floating-icons {
    display: none;
  }

  .neural-network {
    opacity: 0.2;
  }

  .hero-badges {
    flex-direction: column;
    gap: 0.8rem;
  }

  .tech-badge {
    width: 100%;
    justify-content: center;
  }

  .avatar-ring {
    width: 110px;
    height: 110px;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }
}

/* Main Layout & Cards */
.main-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}
.content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  padding: 2.5rem !important;
  margin-bottom: 2.5rem !important;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
  z-index: 0;
  animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.card:hover {
  box-shadow:
    0 16px 48px rgba(102, 126, 234, 0.25),
    0 0 0 1px rgba(102, 126, 234, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-5px);
}
.card h2 {
  margin-top: 0;
  margin-bottom: 1.5rem !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
  padding-bottom: 1rem;
  display: inline-block;
}

.card h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.card h2::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(102, 126, 234, 0.3) 0%,
    transparent 100%
  );
}

.card > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 600px) {
  .main-layout {
    padding: 1rem;
  }
  .card {
    padding: 1rem;
  }
}

/* Experience & Skills */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.exp-item h3 {
  margin-bottom: 0.2rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
.exp-item span {
  font-size: 1rem;
  color: #555;
}
.exp-item ul {
  margin: 0.5rem 0 0 1.2rem;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.skills-list li {
  background: #f0f4fa;
  color: #0077ff;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
}
@media (max-width: 600px) {
  .skills-list {
    gap: 0.5rem;
  }
  .skills-list li {
    padding: 0.4rem 0.7rem;
    font-size: 0.95rem;
  }
}

/* Projects Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: stretch;
  position: relative;
}

/* Section Header Styling */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  animation: fadeInDown 0.8s ease-out;
  text-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.section-header h2 i {
  color: #667eea;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.section-subtitle {
  color: #475569;
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Loading State */
.loading-projects {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px dashed rgba(102, 126, 234, 0.3);
}

.loading-spinner {
  margin-bottom: 1.5rem;
}

.loading-spinner i {
  font-size: 3rem;
  color: #667eea;
  animation: spin 1s linear infinite;
}

.loading-projects p {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add stagger effect for project cards */
.project-card:nth-child(3n + 1) {
  transform-origin: left;
}

.project-card:nth-child(3n + 2) {
  transform-origin: center;
}

.project-card:nth-child(3n + 3) {
  transform-origin: right;
}

/* Modern Project Card Design */
.project-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  border: 1px solid rgba(102, 126, 234, 0.1);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: calc(var(--index, 0) * 0.1s);
  opacity: 0;
}

.project-card[data-index="0"] {
  --index: 0;
}
.project-card[data-index="1"] {
  --index: 1;
}
.project-card[data-index="2"] {
  --index: 2;
}
.project-card[data-index="3"] {
  --index: 3;
}
.project-card[data-index="4"] {
  --index: 4;
}
.project-card[data-index="5"] {
  --index: 5;
}

/* Project Image Wrapper */
.project-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient Overlay on Image */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.85) 0%,
    rgba(118, 75, 162, 0.85) 100%
  );
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0) rotate(-180deg);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.overlay-icon i {
  font-size: 28px;
  color: #667eea;
  transition: transform 0.3s ease;
}

/* Featured Badge */
.project-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a2e;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  z-index: 10;
  animation: badgePulse 2s infinite;
}

.project-badge i {
  font-size: 0.85rem;
}

/* Hover Effects */
.project-card:hover {
  transform: translateY(-12px);
  box-shadow:
    0 25px 60px rgba(102, 126, 234, 0.25),
    0 0 0 2px rgba(102, 126, 234, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(102, 126, 234, 0.3);
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.15);
}

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

.project-card:hover .overlay-icon {
  transform: scale(1) rotate(0deg);
}

.project-card:hover .overlay-icon i {
  transform: translateX(4px);
}

/* Project Info Section */
.project-info {
  padding: 1.8rem;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.project-title i {
  font-size: 1.2rem;
  color: #667eea;
  transition: transform 0.3s ease;
}

.project-card:hover .project-title {
  color: #667eea;
}

.project-card:hover .project-title i {
  transform: rotate(360deg);
}

.project-description {
  color: #64748b;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
}

/* Modern Project Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.project-tags .tag {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  color: #667eea;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-tags .tag i {
  font-size: 0.7rem;
  opacity: 0.8;
}

.project-card:hover .project-tags .tag {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Enhanced Project Detail Button */
.btn-project-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.btn-project-detail::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-project-detail:hover::before {
  left: 100%;
}

.btn-project-detail i {
  font-size: 0.9rem;
  transition: transform 0.4s ease;
}

.btn-project-detail:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.btn-project-detail:hover i {
  transform: translateX(4px);
}

.btn-project-detail:active {
  transform: translateX(2px) scale(0.98);
}

.btn-outline {
  display: inline-block;
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #667eea, #764ba2) border-box;
  color: #667eea;
  padding: 0.7rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  margin-top: 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .section-header {
    padding: 1.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .project-image-wrapper {
    height: 200px;
  }

  .project-info {
    padding: 1.5rem;
  }

  .project-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
    padding: 1.2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    padding: 0;
  }

  .project-image-wrapper {
    height: 220px;
  }

  .project-info {
    padding: 1.2rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  .project-tags .tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .btn-project-detail {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .overlay-icon {
    width: 60px;
    height: 60px;
  }

  .overlay-icon i {
    font-size: 24px;
  }
}

/* Contact Form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
#contact-form input,
#contact-form textarea {
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}
#contact-form button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}
#contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}
.contact-info {
  margin-top: 1.2rem;
  color: #555;
  font-size: 1rem;
}
@media (max-width: 600px) {
  #contact-form input,
  #contact-form textarea {
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
  }
  #contact-form button {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2rem 0;
  margin-top: 3rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.05);
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer-right a {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  transition: all 0.3s ease;
}
.footer-right a:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-right {
    justify-content: center;
    gap: 1rem;
  }
}
