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

:root {
  --spacing: 20px;
  --primary-color: #3a86ff; /* Vibrant blue accent color */
  --primary-dark: #2667cc;
  --text-dark: #333;
  --text-light: #fff;
  --card-bg: #ffffff;
  --body-bg-start: #2b2d42; /* Dark blue-gray */
  --body-bg-end: #5c6784; /* Medium blue-gray */
  --hover-transition: all 0.3s ease;
  --skills-bg: #1a1d29;
  --skills-card-bg: rgba(255, 255, 255, 0.05);
  --skills-border: rgba(255, 255, 255, 0.1);
}

body {
  background: linear-gradient(135deg, var(--body-bg-start), var(--body-bg-end));
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  color: var(--text-dark);
}
a {
  text-decoration: none;
}
.container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  gap: var(--spacing);
}
.about {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  margin-top: 50px;
  transition: var(--hover-transition);
}

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(43, 45, 66, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.main-nav.scrolled {
  padding: 10px 0;
  background-color: rgba(37, 39, 60, 0.98);
}

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

.logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1px;
}

.logo a span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-light);
  transition: all 0.3s ease-in-out;
}

.page-wrapper {
  padding-top: 80px;
}

.card,
.right-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 40px;
  width: 50%;
  min-height: 700px;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  transition: var(--hover-transition);
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: #f0f0f0;
  border: 4px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

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

.name {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-align: center;
}

.pronouns {
  font-size: 22px;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
}

.title {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
  font-weight: 600;
}

.email-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 0;
  width: 100%;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 1px;
  margin-bottom: 40px;
  font-weight: 600;
  transition: var(--hover-transition);
}

.email-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.social-icons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
}

.social-icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
  fill: #555;
  transition: var(--hover-transition);
}

.social-icon:hover {
  fill: var(--primary-color);
  transform: scale(1.1);
}

.instagram:hover {
  fill: #e4405f;
}

.github:hover {
  fill: #181717;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 10px;
  align-self: flex-start;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
  align-self: flex-start;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  overflow-y: auto;
  max-height: 580px;
  padding-right: 10px; /* Space for scrollbar */
}

.projects-grid::-webkit-scrollbar {
  width: 8px;
}

.projects-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(58, 134, 255, 0.3);
}

.project-img {
  width: 100%;
  height: 160px;
  background-color: #f0f0f0;
  overflow: hidden;
  position: relative;
}

.project-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05));
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.project-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  flex-grow: 1;
}

.project-link {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  padding: 8px 16px;
  font-size: 13px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  align-self: flex-start;
  transition: var(--hover-transition);
}

.project-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.skills-section {
  background: linear-gradient(135deg, var(--skills-bg), #252841);
  border-radius: 20px;
  padding: 60px 40px;
  margin: 40px auto;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skills-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(58, 134, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 107, 107, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.skills-content {
  position: relative;
  z-index: 1;
}

.skills-header {
  text-align: center;
  margin-bottom: 50px;
}

.skills-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.skill-card {
  background: var(--skills-card-bg);
  border: 1px solid var(--skills-border);
  border-radius: 16px;
  padding: 30px 25px;
  transition: var(--hover-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.skill-card:hover::before {
  transform: translateX(100%);
}

.skill-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(58, 134, 255, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--text-light);
  position: relative;
}

.skill-icon i {
  z-index: 1;
}

/* Specific skill colors */
.ui-design {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}
.ux-design {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}
.web-design {
  background: linear-gradient(135deg, #45b7d1, #96c93d);
}
.app-design {
  background: linear-gradient(135deg, #f093fb, #f5576c);
} 
.figma {
  background: linear-gradient(135deg, #f24e1e, #ff7262);
}
.html {
  background: linear-gradient(135deg, #e34c26, #f06529);
}
.css {
  background: linear-gradient(135deg, #264de4, #2965f1);
}
.javascript {
  background: linear-gradient(135deg, #f0db4f, #323330);
}
.c {
  background: linear-gradient(135deg, #f0db4f, #657d17);
}
.python {
  background: linear-gradient(135deg, #f0db4f, #1843d2);
}
.reactjs {
  background: linear-gradient(135deg, #ab5a7d, #3770ae);
}

.skill-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
}

.skill-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 20px;
}

.skill-level {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-level-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.skill-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
  border-radius: 2px;
  transition: width 1s ease-in-out;
  position: relative;
}

.skill-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.skill-percentage {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
  min-width: 35px;
  text-align: right;
}

/* Animation for cards */
.skill-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.skill-card:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-card:nth-child(2) {
  animation-delay: 0.2s;
}
.skill-card:nth-child(3) {
  animation-delay: 0.3s;
}
.skill-card:nth-child(4) {
  animation-delay: 0.4s;
}
.skill-card:nth-child(5) {
  animation-delay: 0.5s;
}
.skill-card:nth-child(6) {
  animation-delay: 0.6s;
}
.skill-card:nth-child(7) {
  animation-delay: 0.7s;
}
.skill-card:nth-child(8) {
  animation-delay: 0.8s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .skills-section {
    padding: 40px 20px;
    margin: 20px;
  }

  .skills-title {
    font-size: 36px;
  }

  .skills-subtitle {
    font-size: 16px;
  }

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

  .skill-card {
    padding: 25px 20px;
  }
}

/* Footer Styles */
.footer {
  width: 100%;
  background-color: var(--body-bg-start);
  color: var(--text-light);
  padding: 50px 0 25px;
  margin-top: 60px;
  border-top: 5px solid var(--primary-color);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

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

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 30px;
}

.footer-logo {
  flex: 1;
  min-width: 220px;
  margin-bottom: 20px;
}

.footer-logo h3 {
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-logo p {
  color: var(--primary-color);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.footer-links {
  flex: 1;
  min-width: 160px;
  margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 20px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
  transition: width 0.3s ease;
}

.footer-links h4:hover::after,
.footer-contact h4:hover::after {
  width: 70px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 2px;
}

.footer-links ul li a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-links ul li a:hover::before {
  width: 100%;
}

.footer-contact {
  flex: 1;
  min-width: 220px;
}

.footer-contact p {
  margin-bottom: 15px;
  color: #ccc;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.footer-contact p:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-contact p i {
  margin-right: 12px;
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  gap: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

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

.footer-social .social-icon {
  width: 18px;
  height: 18px;
  fill: #ccc;
  transition: all 0.3s ease;
}

.footer-social a:hover .social-icon {
  fill: #fff;
}

.footer-social .instagram:hover {
  fill: #fff;
}

.footer-social .github:hover {
  fill: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  color: #aaa;
}

.footer-bottom p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-bottom i.fa-heart {
  color: #ff6b6b;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
/* Footer Form Styles */
.footer-form {
  flex: 1;
  min-width: 280px;
  margin-bottom: 20px;
}

.footer-form h4 {
  font-size: 20px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.footer-form h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
  transition: width 0.3s ease;
}

.footer-form h4:hover::after {
  width: 70px;
}

.footer .contact-form input,
.footer .contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.footer .contact-form input:focus,
.footer .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.25);
}

.footer .contact-form input::placeholder,
.footer .contact-form textarea::placeholder {
  color: #aaa;
}

.footer .contact-form .submit-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--hover-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer .contact-form .submit-btn i {
  margin-right: 8px;
}

.footer .contact-form .submit-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
