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

:root {
  --primary: #0f172a;
  --primary-dark: #1e40af;
  --secondary: #64748b;
  --accent: #0ea5e9;
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f1a42;
  --text-main: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue";
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-main);
}

/* Header & Navigation */
header {
  background: var(--bg-dark);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px var(--shadow);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hero Section */

.hero {
  background: var(--primary);
  /* background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  ); */
  color: rgb(255, 255, 255);
  padding: 6rem 2rem;
  text-align: center;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero ul {
  text-align: left;
  list-style-position: outside;
  margin: 1.5rem auto 2rem;
  max-width: 800px;
  padding-left: 2rem;
}

.hero li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

section {
  margin-bottom: 5rem;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.section-header .subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

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

.skill-category {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow);
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

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

.tag {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

/* Experience Cards */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.experience-card:hover {
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--primary);
}

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

.experience-title h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.experience-org {
  color: var(--primary);
  font-weight: 600;
}

.experience-date {
  color: var(--text-light);
  font-size: 0.95rem;
  white-space: nowrap;
}

.experience-description {
  color: var(--text-main);
  margin-bottom: 1rem;
}

.experience-highlights {
  list-style: none;
  padding-left: 0;
}

.experience-highlights li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: var(--text-light);
}

.experience-highlights li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Projects Grid */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--shadow);
}

.project-header {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.project-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.project-type {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.project-body {
  padding: 1.5rem;
}

.project-description {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: var(--bg-alt);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

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

.project-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

/* Publications */
.publication-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.publication-item:hover {
  box-shadow: 0 4px 12px var(--shadow);
  border-color: var(--primary);
}

.publication-title {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.publication-authors {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.publication-venue {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.pub-link {
  background: var(--bg-alt);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
  border: 1px solid var(--border);
}

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

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

.leadership-card {
  background: linear-gradient(135deg, var(--bg-alt) 0%, white 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.leadership-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow);
}

.leadership-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.leadership-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.leadership-card .role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .projects-grid,
  .skills-grid,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .experience-header {
    flex-direction: column;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Add to styles.css */

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Force 4 equal columns */
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1200px; /* Increase max-width to accommodate all 4 */
}

.strengths-grid .strength-card p a {
  color: #ffffff;
  text-decoration: underline;
}

.strength-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition:
    transform 0.3s,
    background 0.3s;
}

.strength-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.strength-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.strength-card h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.strength-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Profile Photo Styles */
.hero-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.profile-photo-container {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0d5e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-title-text {
  text-align: left;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
  .hero-title-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-title-text {
    text-align: center;
  }

  .profile-photo-container {
    width: 100px;
    height: 100px;
  }
}

/* projectportfolio styling */

.portfolio-hero {
  background: var(--primary);
  color: white;
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.portfolio-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.portfolio-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.portfolio-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px var(--shadow);
  border-color: var(--primary);
}

.portfolio-item-title {
  padding: 1.5rem 1.5rem 1rem;
}

.portfolio-item-title a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.portfolio-item-title a:hover {
  color: var(--primary-dark);
}

.portfolio-item-title a::after {
  content: "→";
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.portfolio-item-title a:hover::after {
  transform: translateX(4px);
}

.portfolio-item-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--bg-alt);
}

.portfolio-item-description {
  padding: 1.5rem;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}

@media (max-width: 968px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }

  .portfolio-hero h1 {
    font-size: 2rem;
  }

  .portfolio-item-image {
    height: 220px;
  }
}
