/*
Theme Name: Academic Portfolio
Theme URI: https://example.com
Description: Simple and elegant portfolio theme for academic research
Version: 1.0
Author: Your Name
Author URI: https://example.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: academic-portfolio
*/

/* ==================== Global Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #0066cc;
  --accent-color: #d4a574;
  --light-bg: #f5f5f5;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
}

/* ==================== Navigation Bar ==================== */
.navbar {
  background: #1a1a1a;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--primary-color);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
  font-family: "Georgia", serif;
}

.logo:hover {
  color: var(--secondary-color);
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
  font-family: "Arial", sans-serif;
  letter-spacing: 0.5px;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--secondary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
  pointer-events: auto;
  will-change: transform;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:hover {
  background: rgba(0, 102, 204, 0.1);
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  will-change: transform;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: var(--secondary-color);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: var(--secondary-color);
}

/* ==================== Hero Section ==================== */
.hero-profile {
  background: #fff;
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.profile-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  align-items: start;
}

.profile-image {
  width: 250px;
  height: 300px;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-light);
  font-weight: bold;
}

.profile-info h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-family: "Georgia", serif;
}

.profile-title {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.profile-links {
  margin-bottom: 1.5rem;
}

.profile-link {
  display: inline;
  color: var(--secondary-color);
  text-decoration: none;
  margin-right: 0.5rem;
  font-weight: 500;
}

.profile-link:hover {
  text-decoration: underline;
}

.profile-contact p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.profile-contact strong {
  font-weight: 700;
  color: var(--text-dark);
}

/* ==================== CTA Button ==================== */
.cta-button {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--secondary-color);
  font-family: "Arial", sans-serif;
}

.cta-button:hover {
  background: transparent;
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

/* ==================== Main Content ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 3rem 2rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 1rem;
  font-family: "Georgia", serif;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-description {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.section p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ==================== Card Grid ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: 3px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border-left: 4px solid var(--secondary-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-family: "Georgia", serif;
  font-weight: 700;
}

.card-text {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.card-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  font-family: "Arial", sans-serif;
}

.card-link:hover {
  color: var(--text-dark);
  text-decoration: underline;
  transform: translateX(3px);
}

/* ==================== Alternate Sections ==================== */
.section-alt {
  background: var(--light-bg);
}

/* ==================== Publications & Projects ==================== */
.item-list {
  max-width: 100%;
}

.item {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border-left: 4px solid var(--secondary-color);
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-year {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  font-family: "Arial", sans-serif;
  font-weight: 600;
}

.item-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 700;
  font-family: "Georgia", serif;
}

.item-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.item-title a:hover {
  text-decoration: underline;
}

.item-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.item-description {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ==================== Contact Form ==================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-button {
  background: var(--secondary-color);
  color: #fff;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.submit-button:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

/* ==================== Footer ==================== */
footer {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: #fff;
  text-decoration: none;
  line-height: 40px;
  margin: 0 0.5rem;
  transition: var(--transition);
  font-weight: bold;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* ==================== Mobile Responsive Design ==================== */
@media (max-width: 768px) {
  .profile-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }

  .profile-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto;
  }

  .profile-info h1 {
    font-size: 1.8rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
    pointer-events: auto;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d0d0d 100%);
    width: 100%;
    text-align: center;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    padding: 2rem 0;
    z-index: 999;
    will-change: left;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.active {
    left: 0;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.3);
  }

  .nav-menu a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .nav-menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0;
    background: var(--secondary-color);
    transform: translateY(-50%);
    transition: height 0.3s ease;
  }

  .nav-menu a:hover {
    background: rgba(0, 102, 204, 0.15);
    padding-left: 1.5rem;
  }

  .nav-menu a:hover::before {
    height: 100%;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a.active {
    background: rgba(0, 102, 204, 0.25);
    color: var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
  }

  .nav-menu a.active::before {
    height: 100%;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .section-title {
    font-size: 1.6rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 1rem;
  }

  .navbar-container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .profile-info h1 {
    font-size: 1.5rem;
  }

  .profile-title {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .nav-menu {
    top: 50px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .item {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }
}

/* ==================== Publications Page ==================== */
.publications-section {
  padding: 2rem;
}

.publications-intro {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 3px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.publications-intro p {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.publications-intro a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.publications-intro a:hover {
  text-decoration: underline;
}

.publications-list {
  margin-bottom: 3rem;
}

.publications-year {
  margin-bottom: 3rem;
}

.year-heading {
  font-size: 1.6rem;
  font-family: "Georgia", serif;
  font-weight: 700;
  color: var(--text-dark);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--secondary-color);
  margin-bottom: 2rem;
}

.publications-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.publication-item {
  padding: 1.5rem;
  background: #fff;
  border-left: 4px solid var(--secondary-color);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.publication-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.publication-authors {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.author-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.author-link:hover {
  color: var(--secondary-color);
}

.publication-title {
  font-size: 1.1rem;
  font-family: "Georgia", serif;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0.8rem 0;
  line-height: 1.6;
}

.publication-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.publication-title a:hover {
  text-decoration: underline;
  color: var(--text-dark);
}

.publication-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.8rem;
}

.conference {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Arial", sans-serif;
}

.status {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.publication-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.8rem;
  font-style: italic;
}

.publications-note-section {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 3px;
  text-align: center;
  color: var(--text-dark);
  border-left: 4px solid var(--secondary-color);
}

.publications-note-section a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.publications-note-section a:hover {
  text-decoration: underline;
}

/* ==================== PROJECTS PAGE STYLES ==================== */
.projects-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.projects-list {
  margin-top: 2rem;
}

.projects-year {
  margin-bottom: 3rem;
}

.project-item {
  background: #fff;
  border-left: 4px solid var(--secondary-color);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.project-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.project-title {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-dark);
}

.project-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.project-title a:hover {
  color: #0052a3;
  text-decoration: underline;
}

.project-status {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.project-status:contains("Completed") {
  background: #28a745;
}

.project-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.project-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.project-team,
.project-duration {
  display: flex;
  align-items: center;
}

.project-team::before {
  content: "👥";
  margin-right: 0.5rem;
}

.project-duration::before {
  content: "📅";
  margin-right: 0.5rem;
}

.project-content {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid var(--secondary-color);
  border-radius: 3px;
  transition: var(--transition);
}

.project-link:hover {
  background: var(--secondary-color);
  color: white;
}

/* ==================== TEACHING PAGE STYLES ==================== */
.teaching-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.teaching-list {
  margin-top: 2rem;
}

.teaching-year {
  margin-bottom: 3rem;
}

.teaching-item {
  background: #fff;
  border-left: 4px solid var(--secondary-color);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.teaching-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.mentoring-item {
  border-left-color: #d4a574;
  background: linear-gradient(
    135deg,
    rgba(212, 165, 116, 0.05) 0%,
    transparent 100%
  );
}

.teaching-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.course-title {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-dark);
}

.course-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.course-title a:hover {
  color: #0052a3;
  text-decoration: underline;
}

.course-code {
  display: inline-block;
  background: var(--light-bg);
  color: var(--text-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Courier New", monospace;
}

.course-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.course-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.semester::before {
  content: "📚";
  margin-right: 0.5rem;
}

.enrollment::before {
  content: "👨‍🎓";
  margin-right: 0.5rem;
}

.course-content {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.course-rating {
  color: #f39c12;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.course-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.course-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid var(--secondary-color);
  border-radius: 3px;
  transition: var(--transition);
}

.course-link:hover {
  background: var(--secondary-color);
  color: white;
}

.mentoring-content {
  padding: 0;
}

.mentoring-content h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.mentoring-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.mentor-link a {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid var(--secondary-color);
  border-radius: 3px;
  transition: var(--transition);
}

.mentor-link a:hover {
  background: var(--secondary-color);
  color: white;
}

/* ==================== CONTACT PAGE STYLES ==================== */
.contact-section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info-section,
.contact-form-section {
  background: #fff;
}

.contact-info-section h2,
.contact-form-section h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.contact-info-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.contact-info-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info-block h3 {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
}

.contact-info-block p {
  color: var(--text-light);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.contact-email {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-email:hover {
  color: #0052a3;
  text-decoration: underline;
}

.contact-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--secondary-color);
  border-radius: 3px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-link:hover {
  background: var(--secondary-color);
  color: white;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.professional-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-block;
  background: var(--light-bg);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--secondary-color);
}

.social-link:hover {
  background: var(--secondary-color);
  color: white;
}

.form-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.contact-form {
  background: #fff;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.contact-form input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.contact-form label[for="follow-up"] {
  display: flex;
  align-items: center;
  font-weight: normal;
  margin-bottom: 0;
}

.contact-form .submit-button {
  background: var(--secondary-color);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.contact-form .submit-button:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.form-note {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  border-radius: 3px;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #856404;
}

.form-note p {
  margin: 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  /* Projects Page */
  .projects-section {
    margin: 2rem auto;
  }

  .project-header {
    flex-direction: column;
  }

  .project-status {
    align-self: flex-start;
  }

  .project-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Teaching Page */
  .teaching-section {
    margin: 2rem auto;
  }

  .teaching-header {
    flex-direction: column;
  }

  .course-code {
    align-self: flex-start;
  }

  .course-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Contact Page */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  .professional-links {
    flex-direction: column;
  }

  .social-link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Projects Page */
  .project-item {
    padding: 1rem;
  }

  .project-title {
    font-size: 1.1rem;
  }

  .project-links {
    flex-direction: column;
  }

  .project-link {
    width: 100%;
    text-align: center;
  }

  /* Teaching Page */
  .teaching-item {
    padding: 1rem;
  }

  .course-title {
    font-size: 1.1rem;
  }

  .course-meta {
    flex-direction: column;
    gap: 0;
  }

  .course-links {
    flex-direction: column;
  }

  .course-link {
    width: 100%;
    text-align: center;
  }

  .mentor-link a {
    width: 100%;
    text-align: center;
    display: block;
  }

  /* Contact Page */
  .contact-info-block h3 {
    font-size: 1rem;
  }

  .contact-form .submit-button {
    padding: 0.8rem 1rem;
  }
}

/* ==================== Print Styles ==================== */
@media print {
  .navbar,
  footer,
  .cta-button,
  .submit-button {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
