.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px; /* Header height */
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.1;
  filter: blur(80px);
  z-index: -1;
  transition: opacity 0.3s ease;
}

[data-theme="light"] .hero::before,
[data-theme="warm"] .hero::before {
  opacity: 0.15;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    var(--secondary-color) 0%,
    transparent 70%
  );
  opacity: 0.1;
  filter: blur(80px);
  z-index: -1;
  transition: opacity 0.3s ease;
}

[data-theme="light"] .hero::after,
[data-theme="warm"] .hero::after {
  opacity: 0.15;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blob {
  width: 500px;
  height: 500px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.3;
  }
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.greeting {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.name {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .name {
  background: linear-gradient(to right, #0f172a, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="warm"] .name {
  background: linear-gradient(to right, #2d3142, #4f5d75);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.description {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.about-content strong {
  color: var(--primary-color);
}

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

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 16px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  background: rgba(30, 41, 59, 0.8);
}

[data-theme="light"] .skill-category:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary-color);
}

[data-theme="warm"] .skill-category:hover {
  background: rgba(255, 250, 240, 0.9);
  border-color: var(--primary-color);
}

.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-color);
}

.skill-category h3 i {
  color: var(--secondary-color);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tags span {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.timeline-date {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 16px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--secondary-color);
}

[data-theme="light"] .timeline-content:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--secondary-color);
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.timeline-content h4 {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.timeline-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-stack span {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

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

.publication-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.publication-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.publication-image {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
}

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

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

.publication-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
}

.publication-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.publication-meta {
  margin-bottom: 0.8rem;
}

.pub-category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.publication-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-color);
}

.publication-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.read-more i {
  transition: transform 0.3s ease;
}

.publication-card:hover .read-more i {
  transform: translateX(5px);
}

[data-theme="light"] .publication-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-color);
}

[data-theme="warm"] .publication-card:hover {
  background: rgba(255, 250, 240, 0.95);
  border-color: var(--primary-color);
}

/* Education Section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.education-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

[data-theme="light"] .education-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--accent-color);
}

[data-theme="warm"] .education-card:hover {
  background: rgba(255, 250, 240, 0.9);
  border-color: var(--accent-color);
}

.education-card .icon {
  font-size: 2rem;
  color: var(--accent-color);
  background: rgba(192, 132, 252, 0.1);
  padding: 1rem;
  border-radius: 12px;
}

.education-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

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

/* Contact Section */
.contact-content {
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.8),
    rgba(15, 23, 42, 0.9)
  );
  padding: 4rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  max-width: 600px;
  margin: 0 auto;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .contact-content {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(248, 250, 252, 0.95)
  );
  border: 1px solid rgba(15, 23, 42, 0.15);
}

[data-theme="warm"] .contact-content {
  background: linear-gradient(
    135deg,
    rgba(255, 250, 240, 0.9),
    rgba(254, 246, 228, 0.95)
  );
  border: 1px solid rgba(45, 49, 66, 0.15);
}

[data-theme="ocean"] .contact-content {
  background: linear-gradient(
    135deg,
    rgba(16, 32, 54, 0.9),
    rgba(10, 25, 47, 0.95)
  );
  border: 1px solid rgba(100, 255, 218, 0.2);
}

[data-theme="sunset"] .contact-content {
  background: linear-gradient(
    135deg,
    rgba(42, 20, 60, 0.9),
    rgba(26, 11, 46, 0.95)
  );
  border: 1px solid rgba(255, 107, 107, 0.2);
}

[data-theme="forest"] .contact-content {
  background: linear-gradient(
    135deg,
    rgba(27, 44, 27, 0.9),
    rgba(13, 27, 13, 0.95)
  );
  border: 1px solid rgba(76, 175, 80, 0.2);
}

[data-theme="purple"] .contact-content {
  background: linear-gradient(
    135deg,
    rgba(42, 20, 80, 0.9),
    rgba(26, 0, 51, 0.95)
  );
  border: 1px solid rgba(147, 51, 234, 0.2);
}

[data-theme="cyberpunk"] .contact-content {
  background: linear-gradient(
    135deg,
    rgba(20, 25, 60, 0.9),
    rgba(10, 14, 39, 0.95)
  );
  border: 1px solid rgba(255, 0, 255, 0.3);
}

.contact-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* Contact form styles */
.contact-form {
  margin-top: 1.5rem;
  text-align: left;
}
.contact-form .form-group {
  margin-bottom: 1rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-color);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form .form-error {
  color: #ffb4b4;
  font-size: 0.9rem;
  min-height: 1.1rem;
  margin-top: 0.25rem;
}
.contact-form .form-status {
  margin-top: 1rem;
  font-weight: 600;
}
.hp-field {
  display: none !important;
}
.alt-contact {
  margin-top: 1rem;
  color: var(--text-muted);
}

/* Thank-you / success panel */
.contact-success {
  max-width: 540px;
  margin: 1.5rem auto 0;
  text-align: center;
}
.contact-success .success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.4rem;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.08),
    rgba(129, 140, 248, 0.06)
  );
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.5);
}
.contact-success .success-graphic {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.contact-success h3 {
  margin: 0;
  font-size: 1.25rem;
}
.contact-success p {
  margin: 0;
  color: var(--text-muted);
}
.contact-success .btn {
  margin-top: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  border: none;
  cursor: pointer;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  padding: 1rem 2rem;
  border: 2px solid var(--glass-border);
  border-radius: 50px;
  transition: var(--transition);
}

.contact-email:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--primary-color);
}

[data-theme="light"] .contact-email {
  border: 2px solid rgba(14, 165, 233, 0.3);
}

[data-theme="light"] .contact-email:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--primary-color);
}

[data-theme="warm"] .contact-email {
  border: 2px solid rgba(247, 127, 0, 0.3);
}

[data-theme="warm"] .contact-email:hover {
  background: rgba(247, 127, 0, 0.1);
  border-color: var(--primary-color);
}

[data-theme="ocean"] .contact-email {
  border: 2px solid rgba(100, 255, 218, 0.3);
}

[data-theme="ocean"] .contact-email:hover {
  background: rgba(100, 255, 218, 0.1);
  border-color: var(--primary-color);
}

[data-theme="sunset"] .contact-email {
  border: 2px solid rgba(255, 107, 107, 0.3);
}

[data-theme="sunset"] .contact-email:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: var(--primary-color);
}

[data-theme="forest"] .contact-email {
  border: 2px solid rgba(76, 175, 80, 0.3);
}

[data-theme="forest"] .contact-email:hover {
  background: rgba(76, 175, 80, 0.1);
  border-color: var(--primary-color);
}

[data-theme="purple"] .contact-email {
  border: 2px solid rgba(147, 51, 234, 0.3);
}

[data-theme="purple"] .contact-email:hover {
  background: rgba(147, 51, 234, 0.1);
  border-color: var(--primary-color);
}

[data-theme="cyberpunk"] .contact-email {
  border: 2px solid rgba(255, 0, 255, 0.4);
}

[data-theme="cyberpunk"] .contact-email:hover {
  background: rgba(255, 0, 255, 0.1);
  border-color: var(--primary-color);
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    margin-bottom: 3rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .name {
    font-size: 2.5rem;
  }

  .title {
    font-size: 1.5rem;
  }
}

@media (max-width: 450px) {
  .contact-email {
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
  }

  .name {
    font-size: 2rem;
  }
}
