/* Base Styles */
:root {
  --bg-color: #010b1a;
  --text-color: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-light: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(15, 23, 42, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --gradient-1: linear-gradient(to right, #6366f1, #ec4899);
  --gradient-2: linear-gradient(to right, #6366f1, #ffffff, #ec4899);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --grid-color: rgba(255, 255, 255, 0.05);
  --grid-size: 30px;

  /* Colors for competency items */
  --purple-bg: rgba(139, 92, 246, 0.15);
  --purple-text: rgba(139, 92, 246, 0.9);
  --purple-border: rgba(139, 92, 246, 0.3);

  --pink-bg: rgba(236, 72, 153, 0.15);
  --pink-text: rgba(236, 72, 153, 0.9);
  --pink-border: rgba(236, 72, 153, 0.3);

  --blue-bg: rgba(59, 130, 246, 0.15);
  --blue-text: rgba(59, 130, 246, 0.9);
  --blue-border: rgba(59, 130, 246, 0.3);

  --amber-bg: rgba(245, 158, 11, 0.15);
  --amber-text: rgba(245, 158, 11, 0.9);
  --amber-border: rgba(245, 158, 11, 0.3);

  --green-bg: rgba(16, 185, 129, 0.15);
  --green-text: rgba(16, 185, 129, 0.9);
  --green-border: rgba(16, 185, 129, 0.3);

  --violet-bg: rgba(124, 58, 237, 0.15);
  --violet-text: rgba(124, 58, 237, 0.9);
  --violet-border: rgba(124, 58, 237, 0.3);

  --cyan-bg: rgba(6, 182, 212, 0.15);
  --cyan-text: rgba(6, 182, 212, 0.9);
  --cyan-border: rgba(6, 182, 212, 0.3);

  --rose-bg: rgba(244, 63, 94, 0.15);
  --rose-text: rgba(244, 63, 94, 0.9);
  --rose-border: rgba(244, 63, 94, 0.3);

  --emerald-bg: rgba(52, 211, 153, 0.15);
  --emerald-text: rgba(52, 211, 153, 0.9);
  --emerald-border: rgba(52, 211, 153, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Grid Background */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-size: var(--grid-size) var(--grid-size);
  background-image: linear-gradient(
      to right,
      var(--grid-color) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  opacity: 0.4;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 4rem 0;
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 102, 241, 0.05),
    transparent 70%
  );
  z-index: -1;
}

.card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .card {
    padding: 2rem;
  }
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 100% 100%,
    rgba(99, 102, 241, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Playfair Display", serif;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.title-line {
  width: 5rem;
  height: 0.25rem;
  background: var(--gradient-1);
  margin: 0 auto;
  border-radius: var(--radius-full);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.card-text {
  color: var(--text-muted);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

@media (min-width: 768px) {
  .navbar {
    padding: 1.25rem 0;
  }
}

.navbar.scrolled {
  background-color: rgba(1, 11, 26, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: var(--transition);
  font-family: "Playfair Display", serif;
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
}

.logo:hover {
  transform: scale(1.05);
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
  }
}

.nav-link {
  color: var(--text-muted);
  margin-left: 2rem;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--text-color);
}

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

.resume-btn {
  background: var(--gradient-1);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  color: var(--text-color) !important;
  margin-left: 2rem;
  transition: var(--transition);
}

.resume-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.resume-btn::after {
  display: none;
}

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

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: rgba(1, 11, 26, 0.95);
  backdrop-filter: blur(10px);
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
  height: auto;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
}

.nav-mobile .nav-link {
  padding: 0.75rem 0;
  margin: 0;
  opacity: 0;
  transform: translateX(-10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.mobile-nav.active .nav-link {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.active .nav-link:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-nav.active .nav-link:nth-child(2) {
  transition-delay: 0.2s;
}
.mobile-nav.active .nav-link:nth-child(3) {
  transition-delay: 0.3s;
}
.mobile-nav.active .nav-link:nth-child(4) {
  transition-delay: 0.4s;
}
.mobile-nav.active .nav-link:nth-child(5) {
  transition-delay: 0.5s;
}

/* Resume Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background-color: var(--card-bg);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  width: 95%;
  max-width: 900px;
  max-height: 80vh;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .modal-content {
    margin: 5% auto;
    width: 90%;
    max-height: 85vh;
  }
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  color: var(--text-muted);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.close-modal:hover {
  color: var(--text-color);
}

.pdf-container {
  width: 100%;
  height: 65vh;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pdf-container {
    height: 75vh;
  }
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 10;
  padding: 0 1rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.badge {
  display: inline-flex;
  padding: 0.35rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.5s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 768px) {
  .badge {
    margin-bottom: 2rem;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease 0.7s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.title-line {
  display: block;
  background: linear-gradient(
    to bottom,
    var(--text-color),
    rgba(255, 255, 255, 0.8)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-highlight {
  display: block;
  font-family: "Playfair Display", serif;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3.5rem;
}

@media (min-width: 768px) {
  .title-highlight {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  animation: fadeInUp 1s ease 0.9s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1s ease 1.1s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gradient-1);
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
}

@media (min-width: 480px) {
  .btn-primary {
    width: auto;
  }
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #ec4899, #6366f1);
  z-index: -1;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
}

@media (min-width: 480px) {
  .btn-secondary {
    width: auto;
  }
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.shape {
  position: absolute;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  animation: float 12s ease-in-out infinite;
  opacity: 0.7;
}

@media (max-width: 767px) {
  .shape {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.shape::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.2),
    transparent 70%
  );
}

.shape-1 {
  width: 600px;
  height: 140px;
  left: -10%;
  top: 15%;
  transform: rotate(12deg);
  background: linear-gradient(to right, rgba(99, 102, 241, 0.15), transparent);
  animation-delay: 0.3s;
}

.shape-2 {
  width: 500px;
  height: 120px;
  right: -5%;
  top: 70%;
  transform: rotate(-15deg);
  background: linear-gradient(to right, rgba(236, 72, 153, 0.15), transparent);
  animation-delay: 0.5s;
}

.shape-3 {
  width: 300px;
  height: 80px;
  left: 5%;
  bottom: 5%;
  transform: rotate(-8deg);
  background: linear-gradient(to right, rgba(139, 92, 246, 0.15), transparent);
  animation-delay: 0.4s;
}

.shape-4 {
  width: 200px;
  height: 60px;
  right: 15%;
  top: 10%;
  transform: rotate(20deg);
  background: linear-gradient(to right, rgba(251, 191, 36, 0.15), transparent);
  animation-delay: 0.6s;
}

.shape-5 {
  width: 150px;
  height: 40px;
  left: 20%;
  top: 5%;
  transform: rotate(-25deg);
  background: linear-gradient(to right, rgba(6, 182, 212, 0.15), transparent);
  animation-delay: 0.7s;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-color),
    transparent 50%,
    var(--bg-color)
  );
  pointer-events: none;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

.about-card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .about-card {
    padding: 2rem;
  }
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 100% 100%,
    rgba(99, 102, 241, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.main-card {
  margin-bottom: 2rem;
}

.about-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  display: inline-block;
}

@media (min-width: 768px) {
  .about-subtitle {
    font-size: 1.5rem;
  }
}

.about-subtitle::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient-1);
  border-radius: var(--radius-full);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Core Competencies */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .competencies-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
}

.competency-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: center;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .competency-item {
    padding: 1rem;
  }
}

.competency-item i {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 480px) {
  .competency-item i {
    font-size: 1.5rem;
  }
}

.competency-item span {
  font-size: 0.75rem;
  font-weight: 500;
}

@media (min-width: 480px) {
  .competency-item span {
    font-size: 0.875rem;
  }
}

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

/* Competency colors */
.competency-item.purple {
  background-color: var(--purple-bg);
  color: var(--purple-text);
  border: 1px solid var(--purple-border);
}

.competency-item.pink {
  background-color: var(--pink-bg);
  color: var(--pink-text);
  border: 1px solid var(--pink-border);
}

.competency-item.blue {
  background-color: var(--blue-bg);
  color: var(--blue-text);
  border: 1px solid var(--blue-border);
}

.competency-item.amber {
  background-color: var(--amber-bg);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

.competency-item.green {
  background-color: var(--green-bg);
  color: var(--green-text);
  border: 1px solid var(--green-border);
}

.competency-item.violet {
  background-color: var(--violet-bg);
  color: var(--violet-text);
  border: 1px solid var(--violet-border);
}

.competency-item.cyan {
  background-color: var(--cyan-bg);
  color: var(--cyan-text);
  border: 1px solid var(--cyan-border);
}

.competency-item.rose {
  background-color: var(--rose-bg);
  color: var(--rose-text);
  border: 1px solid var(--rose-border);
}

.competency-item.emerald {
  background-color: var(--emerald-bg);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
}

/* Languages */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .languages-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
}

.language-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  text-align: center;
}

.language-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.08);
}

.language-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.25rem;
}

@media (min-width: 480px) {
  .language-icon {
    width: 3rem;
    height: 3rem;
  }
}

.language-details h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

@media (min-width: 480px) {
  .language-details h4 {
    font-size: 1rem;
  }
}

.language-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 480px) {
  .language-details p {
    font-size: 0.875rem;
  }
}

/* Experience Section */
.experience-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .experience-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .experience-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.experience-card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .experience-card {
    padding: 2rem;
  }
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.experience-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.experience-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .experience-title {
    font-size: 1.25rem;
  }
}

.experience-company {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.experience-list {
  list-style: none;
}

.experience-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.experience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: var(--radius-full);
  background: var(--gradient-1);
}

/* Projects Section */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .project-filters {
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }
}

.project-filter {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

@media (min-width: 480px) {
  .project-filter {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
  }
}

.project-filter:hover,
.project-filter.active {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 180px;
}

@media (min-width: 768px) {
  .project-image {
    height: 220px;
  }
}

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

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.project-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  backdrop-filter: blur(5px);
  transition: var(--transition);
  transform: translateY(20px);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-link:hover {
  background-color: rgba(99, 102, 241, 0.5);
}

.project-content {
  padding: 1.5rem;
  text-align: center;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .project-title {
    font-size: 1.25rem;
  }
}

.project-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  justify-content: center;
}

.project-category {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  color: var(--text-light);
}

.project-description {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.info-item:hover {
  transform: translateX(5px);
}

.info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.info-value {
  color: rgba(255, 255, 255, 0.8);
  word-break: break-word;
}

.social-title {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  transform: translateY(-5px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-family: inherit;
  transition: var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

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

@media (min-width: 768px) {
  .form-textarea {
    min-height: 150px;
  }
}

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--gradient-1);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
}

@media (min-width: 640px) {
  .form-button {
    width: auto;
  }
}

.form-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #ec4899, #6366f1);
  z-index: -1;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.form-button:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.form-button:hover::before {
  opacity: 1;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

@media (min-width: 768px) {
  .footer {
    padding: 2.5rem 0;
  }
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(99, 102, 241, 0.08),
    transparent 70%
  );
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-1);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  width: fit-content;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

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

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

.footer-logo {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}

.footer-logo span {
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 700;
  opacity: 0.03;
  letter-spacing: 0.5rem;
  font-family: "Playfair Display", serif;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.legal-link {
  color: var(--text-light);
  font-size: 0.875rem;
  transition: var(--transition);
}

.legal-link:hover {
  color: var(--text-color);
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }
  50% {
    transform: translateY(15px) rotate(var(--rotate, 0deg));
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Touch-specific styles */
@media (hover: none) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 70%);
  }

  .project-link {
    transform: translateY(0);
  }

  .nav-link:active {
    color: var(--text-color);
  }

  .btn-primary:active,
  .btn-secondary:active,
  .form-button:active {
    transform: scale(0.98);
  }
}

/* Accessibility focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Base Styles */
:root {
  --bg-color: #010b1a;
  --text-color: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-light: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(15, 23, 42, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --gradient-1: linear-gradient(to right, #6366f1, #ec4899);
  --gradient-2: linear-gradient(to right, #6366f1, #ffffff, #ec4899);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --grid-color: rgba(255, 255, 255, 0.05);
  --grid-size: 30px;
  --success-color: rgba(16, 185, 129, 0.9);
  --error-color: rgba(244, 63, 94, 0.9);

  /* Colors for competency items */
  --purple-bg: rgba(139, 92, 246, 0.15);
  --purple-text: rgba(139, 92, 246, 0.9);
  --purple-border: rgba(139, 92, 246, 0.3);

  --pink-bg: rgba(236, 72, 153, 0.15);
  --pink-text: rgba(236, 72, 153, 0.9);
  --pink-border: rgba(236, 72, 153, 0.3);

  --blue-bg: rgba(59, 130, 246, 0.15);
  --blue-text: rgba(59, 130, 246, 0.9);
  --blue-border: rgba(59, 130, 246, 0.3);

  --amber-bg: rgba(245, 158, 11, 0.15);
  --amber-text: rgba(245, 158, 11, 0.9);
  --amber-border: rgba(245, 158, 11, 0.3);

  --green-bg: rgba(16, 185, 129, 0.15);
  --green-text: rgba(16, 185, 129, 0.9);
  --green-border: rgba(16, 185, 129, 0.3);

  --violet-bg: rgba(124, 58, 237, 0.15);
  --violet-text: rgba(124, 58, 237, 0.9);
  --violet-border: rgba(124, 58, 237, 0.3);

  --cyan-bg: rgba(6, 182, 212, 0.15);
  --cyan-text: rgba(6, 182, 212, 0.9);
  --cyan-border: rgba(6, 182, 212, 0.3);

  --rose-bg: rgba(244, 63, 94, 0.15);
  --rose-text: rgba(244, 63, 94, 0.9);
  --rose-border: rgba(244, 63, 94, 0.3);

  --emerald-bg: rgba(52, 211, 153, 0.15);
  --emerald-text: rgba(52, 211, 153, 0.9);
  --emerald-border: rgba(52, 211, 153, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Grid Background */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-size: var(--grid-size) var(--grid-size);
  background-image: linear-gradient(
      to right,
      var(--grid-color) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  opacity: 0.4;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 4rem 0;
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 102, 241, 0.05),
    transparent 70%
  );
  z-index: -1;
}

.card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .card {
    padding: 2rem;
  }
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 100% 100%,
    rgba(99, 102, 241, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Playfair Display", serif;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.title-line {
  width: 5rem;
  height: 0.25rem;
  background: var(--gradient-1);
  margin: 0 auto;
  border-radius: var(--radius-full);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.card-text {
  color: var(--text-muted);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

@media (min-width: 768px) {
  .navbar {
    padding: 1.25rem 0;
  }
}

.navbar.scrolled {
  background-color: rgba(1, 11, 26, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: var(--transition);
  font-family: "Playfair Display", serif;
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
}

.logo:hover {
  transform: scale(1.05);
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
  }
}

.nav-link {
  color: var(--text-muted);
  margin-left: 2rem;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--text-color);
}

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

.resume-btn {
  background: var(--gradient-1);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  color: var(--text-color) !important;
  margin-left: 2rem;
  transition: var(--transition);
}

.resume-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.resume-btn::after {
  display: none;
}

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

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: rgba(1, 11, 26, 0.95);
  backdrop-filter: blur(10px);
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
  height: auto;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
}

.nav-mobile .nav-link {
  padding: 0.75rem 0;
  margin: 0;
  opacity: 0;
  transform: translateX(-10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.mobile-nav.active .nav-link {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.active .nav-link:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-nav.active .nav-link:nth-child(2) {
  transition-delay: 0.2s;
}
.mobile-nav.active .nav-link:nth-child(3) {
  transition-delay: 0.3s;
}
.mobile-nav.active .nav-link:nth-child(4) {
  transition-delay: 0.4s;
}
.mobile-nav.active .nav-link:nth-child(5) {
  transition-delay: 0.5s;
}

/* Resume Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background-color: var(--card-bg);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  width: 95%;
  max-width: 900px;
  max-height: 80vh;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .modal-content {
    margin: 5% auto;
    width: 90%;
    max-height: 85vh;
  }
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  color: var(--text-muted);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.close-modal:hover {
  color: var(--text-color);
}

.pdf-container {
  width: 100%;
  height: 65vh;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pdf-container {
    height: 75vh;
  }
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 10;
  padding: 0 1rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.badge {
  display: inline-flex;
  padding: 0.35rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.5s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 768px) {
  .badge {
    margin-bottom: 2rem;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease 0.7s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.title-line {
  display: block;
  background: linear-gradient(
    to bottom,
    var(--text-color),
    rgba(255, 255, 255, 0.8)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-highlight {
  display: block;
  font-family: "Playfair Display", serif;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3.5rem;
}

@media (min-width: 768px) {
  .title-highlight {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  animation: fadeInUp 1s ease 0.9s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1s ease 1.1s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gradient-1);
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
}

@media (min-width: 480px) {
  .btn-primary {
    width: auto;
  }
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #ec4899, #6366f1);
  z-index: -1;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
}

@media (min-width: 480px) {
  .btn-secondary {
    width: auto;
  }
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.shape {
  position: absolute;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  animation: float 12s ease-in-out infinite;
  opacity: 0.7;
}

@media (max-width: 767px) {
  .shape {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.shape::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.2),
    transparent 70%
  );
}

.shape-1 {
  width: 600px;
  height: 140px;
  left: -10%;
  top: 15%;
  transform: rotate(12deg);
  background: linear-gradient(to right, rgba(99, 102, 241, 0.15), transparent);
  animation-delay: 0.3s;
}

.shape-2 {
  width: 500px;
  height: 120px;
  right: -5%;
  top: 70%;
  transform: rotate(-15deg);
  background: linear-gradient(to right, rgba(236, 72, 153, 0.15), transparent);
  animation-delay: 0.5s;
}

.shape-3 {
  width: 300px;
  height: 80px;
  left: 5%;
  bottom: 5%;
  transform: rotate(-8deg);
  background: linear-gradient(to right, rgba(139, 92, 246, 0.15), transparent);
  animation-delay: 0.4s;
}

.shape-4 {
  width: 200px;
  height: 60px;
  right: 15%;
  top: 10%;
  transform: rotate(20deg);
  background: linear-gradient(to right, rgba(251, 191, 36, 0.15), transparent);
  animation-delay: 0.6s;
}

.shape-5 {
  width: 150px;
  height: 40px;
  left: 20%;
  top: 5%;
  transform: rotate(-25deg);
  background: linear-gradient(to right, rgba(6, 182, 212, 0.15), transparent);
  animation-delay: 0.7s;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-color),
    transparent 50%,
    var(--bg-color)
  );
  pointer-events: none;
}

/* Form Status */
.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.875rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: var(--green-bg);
  color: var(--success-color);
  border: 1px solid var(--green-border);
}

.form-status.error {
  display: block;
  background-color: var(--rose-bg);
  color: var(--error-color);
  border: 1px solid var(--rose-border);
}

/* Email Link Styling */
.info-value a {
  color: var(--text-muted);
  transition: var(--transition);
}

.info-value a:hover {
  color: var(--text-color);
  text-decoration: underline;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }
  50% {
    transform: translateY(15px) rotate(var(--rotate, 0deg));
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Touch-specific styles */
@media (hover: none) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 70%);
  }

  .project-link {
    transform: translateY(0);
  }

  .nav-link:active {
    color: var(--text-color);
  }

  .btn-primary:active,
  .btn-secondary:active,
  .form-button:active {
    transform: scale(0.98);
  }
}

/* Accessibility focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Base Styles */
:root {
  --bg-color: #010b1a;
  --text-color: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-light: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(15, 23, 42, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --gradient-1: linear-gradient(to right, #6366f1, #ec4899);
  --gradient-2: linear-gradient(to right, #6366f1, #ffffff, #ec4899);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --grid-color: rgba(255, 255, 255, 0.05);
  --grid-size: 30px;
  --success-color: rgba(16, 185, 129, 0.9);
  --error-color: rgba(244, 63, 94, 0.9);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus-border: rgba(99, 102, 241, 0.5);
  --input-focus-shadow: rgba(99, 102, 241, 0.25);
  --glow-purple: rgba(139, 92, 246, 0.5);
  --glow-pink: rgba(236, 72, 153, 0.5);
  --glow-blue: rgba(59, 130, 246, 0.5);

  /* Colors for competency items */
  --purple-bg: rgba(139, 92, 246, 0.15);
  --purple-text: rgba(139, 92, 246, 0.9);
  --purple-border: rgba(139, 92, 246, 0.3);

  --pink-bg: rgba(236, 72, 153, 0.15);
  --pink-text: rgba(236, 72, 153, 0.9);
  --pink-border: rgba(236, 72, 153, 0.3);

  --blue-bg: rgba(59, 130, 246, 0.15);
  --blue-text: rgba(59, 130, 246, 0.9);
  --blue-border: rgba(59, 130, 246, 0.3);

  --amber-bg: rgba(245, 158, 11, 0.15);
  --amber-text: rgba(245, 158, 11, 0.9);
  --amber-border: rgba(245, 158, 11, 0.3);

  --green-bg: rgba(16, 185, 129, 0.15);
  --green-text: rgba(16, 185, 129, 0.9);
  --green-border: rgba(16, 185, 129, 0.3);

  --violet-bg: rgba(124, 58, 237, 0.15);
  --violet-text: rgba(124, 58, 237, 0.9);
  --violet-border: rgba(124, 58, 237, 0.3);

  --cyan-bg: rgba(6, 182, 212, 0.15);
  --cyan-text: rgba(6, 182, 212, 0.9);
  --cyan-border: rgba(6, 182, 212, 0.3);

  --rose-bg: rgba(244, 63, 94, 0.15);
  --rose-text: rgba(244, 63, 94, 0.9);
  --rose-border: rgba(244, 63, 94, 0.3);

  --emerald-bg: rgba(52, 211, 153, 0.15);
  --emerald-text: rgba(52, 211, 153, 0.9);
  --emerald-border: rgba(52, 211, 153, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Grid Background */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-size: var(--grid-size) var(--grid-size);
  background-image: linear-gradient(
      to right,
      var(--grid-color) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  opacity: 0.4;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 4rem 0;
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 102, 241, 0.05),
    transparent 70%
  );
  z-index: -1;
}

.card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .card {
    padding: 2rem;
  }
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 100% 100%,
    rgba(99, 102, 241, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Playfair Display", serif;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.title-line {
  width: 5rem;
  height: 0.25rem;
  background: var(--gradient-1);
  margin: 0 auto;
  border-radius: var(--radius-full);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.card-text {
  color: var(--text-muted);
}

/* Redesigned Contact Section */
.contact {
  position: relative;
  overflow: hidden;
}

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

.floating-shape {
  position: absolute;
  opacity: 0.1;
  filter: blur(1px);
  animation: float 15s infinite ease-in-out;
}

.shape-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--glow-purple);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.shape-square {
  width: 100px;
  height: 100px;
  background: var(--glow-pink);
  top: 60%;
  right: 10%;
  transform: rotate(45deg);
  animation-delay: 2s;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid var(--glow-blue);
  top: 30%;
  right: 5%;
  opacity: 0.08;
  animation-delay: 4s;
}

.shape-plus {
  width: 80px;
  height: 80px;
  position: absolute;
  top: 70%;
  left: 15%;
  opacity: 0.1;
  animation-delay: 6s;
}

.shape-plus:before,
.shape-plus:after {
  content: "";
  position: absolute;
  background: var(--glow-purple);
}

.shape-plus:before {
  width: 100%;
  height: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.shape-plus:after {
  width: 20px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.shape-x {
  width: 80px;
  height: 80px;
  position: absolute;
  top: 20%;
  right: 20%;
  opacity: 0.1;
  animation-delay: 8s;
}

.shape-x:before,
.shape-x:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 20px;
  background: var(--glow-pink);
  top: 50%;
  left: 0;
}

.shape-x:before {
  transform: translateY(-50%) rotate(45deg);
}

.shape-x:after {
  transform: translateY(-50%) rotate(-45deg);
}

.glow-effect {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--glow-purple);
  top: -100px;
  left: -100px;
  animation: pulse 8s infinite alternate;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: var(--glow-pink);
  bottom: -200px;
  right: -200px;
  animation: pulse 10s infinite alternate-reverse;
}

@keyframes pulse {
  0% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.15;
  }
  100% {
    opacity: 0.1;
    transform: scale(1.1);
  }
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Contact Intro Styles */
.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-intro-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-intro-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.contact-card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2),
    rgba(236, 72, 153, 0.2)
  );
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--text-color);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.contact-card-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.contact-card:hover .contact-card-icon::before {
  opacity: 1;
}

.contact-card-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.contact-link {
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.contact-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-1);
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--text-color);
}

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

/* Social Connect */
.social-connect {
  text-align: center;
}

.social-connect-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.social-icons-wrapper {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.social-icon-link {
  display: block;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-icon-animated {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icon-animated::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(0);
  border-radius: 50%;
}

.social-icon-link:hover .social-icon-animated {
  transform: translateY(-5px);
  color: var(--text-color);
}

.social-icon-link:hover .social-icon-animated::before {
  opacity: 1;
  transform: scale(1);
}

.social-icon-animated i {
  position: relative;
  z-index: 1;
}

/* Contact Form Container */
.contact-form-container {
  position: relative;
}

.form-card {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--glow-purple), transparent 70%);
  opacity: 0.1;
  z-index: -1;
}

.form-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--glow-pink), transparent 70%);
  opacity: 0.1;
  z-index: -1;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Animated Form */
.animated-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-animated {
  position: relative;
}

.input-container {
  position: relative;
  z-index: 1;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 1rem 3rem;
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

.form-label {
  position: absolute;
  left: 3rem;
  top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-input:not(:placeholder-shown),
.form-textarea:not(:placeholder-shown) {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.form-input:focus ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-1.75rem) scale(0.85);
  color: var(--text-color);
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.form-input:focus ~ .input-border,
.form-textarea:focus ~ .input-border {
  background: var(--gradient-1);
  height: 2px;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.textarea-container .input-icon {
  top: 1.5rem;
  transform: none;
}

.form-input:focus ~ .input-icon,
.form-textarea:focus ~ .input-icon {
  color: var(--text-color);
}

.error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding-left: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.error-message.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Submit Button */
.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: var(--text-color);
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 1rem;
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ec4899, #6366f1);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.submit-button:hover::before {
  opacity: 1;
}

.button-icon {
  transition: all 0.3s ease;
}

.submit-button:hover .button-icon {
  transform: translateX(3px);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success Animation */
.success-animation {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
}

.checkmark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--success-color);
  stroke-miterlimit: 10;
  box-shadow: 0 0 20px var(--green-bg);
  animation: fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--success-color);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0 0 0 30px rgba(16, 185, 129, 0.1);
  }
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(20px) rotate(5deg);
  }
}

/* Responsive Fixes */
@media (max-width: 767px) {
  .contact-card {
    padding: 1rem;
  }

  .contact-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .social-icon-animated {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .form-header h3 {
    font-size: 1.25rem;
  }

  .submit-button {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Touch-specific styles */
@media (hover: none) {
  .contact-card:active {
    transform: translateX(5px);
  }

  .social-icon-link:active .social-icon-animated {
    transform: translateY(-5px);
  }

  .submit-button:active {
    transform: translateY(-3px);
  }
}

/* Accessibility focus styles */
.form-input:focus-visible,
.form-textarea:focus-visible,
.submit-button:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .floating-shape,
  .glow-effect,
  .checkmark,
  .checkmark-circle,
  .checkmark-check {
    animation: none !important;
    transition: none !important;
  }
}
